diff --git a/.github/workflows/docker-ci.yml b/.github/workflows/docker-ci.yml index 143cf498c..f5c955db7 100644 --- a/.github/workflows/docker-ci.yml +++ b/.github/workflows/docker-ci.yml @@ -15,5 +15,5 @@ jobs: ${{github.workspace}}/tools/docker - run: > docker run --rm - -v${{github.workspace}}:/home/build-user/workspace:ro + -v${{github.workspace}}:/home/build-user/workspace vanetza/docker-ci:${{matrix.ubuntu-version}} diff --git a/.gitignore b/.gitignore index f3b8a1cd9..e18264ec1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ -build +.vscode/ +build/ +build.asn1/ conanfile.pyc doxygen/html/ -www/ +www/ \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index f0e87d9f2..d08440948 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -75,6 +75,14 @@ if (VANETZA_WITH_OPENSSL) include(CompatOpenSSLTargets) endif() +# ASN.1 select ITS version +option(VANETZA_ASN1_WITH_ITS2 "ENABLE ITS2 ASN.1 support" OFF) +if(VANETZA_ASN1_WITH_ITS2) + set(VANETZA_USE_ITS2 1) +else() + set(VANETZA_USE_ITS2 0) +endif() + add_subdirectory(vanetza/access) add_subdirectory(vanetza/asn1) add_subdirectory(vanetza/btp) diff --git a/asn1/TS102894-2v221-CDD.asn b/asn1/TS102894-2v221-CDD.asn new file mode 100644 index 000000000..782a2f83d --- /dev/null +++ b/asn1/TS102894-2v221-CDD.asn @@ -0,0 +1,7260 @@ +--! @options: no-fields-header + +ETSI-ITS-CDD {itu-t (0) identified-organization (4) etsi (0) itsDomain (5) wg1 (1) ts (102894) cdd (2) major-version-4 (4) minor-version-1 (1)} + +DEFINITIONS AUTOMATIC TAGS ::= + +BEGIN + +------------------------------------------ +-- Specification of CDD Data Elements: +------------------------------------------ + +/** + * This DE indicates a change of acceleration. + * + * The value shall be set to: + * - 0 - `accelerate` - if the magnitude of the horizontal velocity vector increases. + * - 1 - `decelerate` - if the magnitude of the horizontal velocity vector decreases. + * + * @category: Kinematic information + * @revision: Created in V2.1.1 +*/ +AccelerationChange::= ENUMERATED { + accelerate (0), + decelerate (1) +} + +/** + * This DE indicates the acceleration confidence value which represents the estimated absolute accuracy of an acceleration value with a default confidence level of 95 %. + * If required, the confidence level can be defined by the corresponding standards applying this DE. + * + * The value shall be set to: + * - `n` (`n > 0` and `n < 101`) if the confidence value is equal to or less than n x 0,1 m/s^2, and greater than (n-1) x 0,1 m/s^2, + * - `101` if the confidence value is out of range i.e. greater than 10 m/s^2, + * - `102` if the confidence value is unavailable. + * + * The value 0 shall not be used. + * + * @note: The fact that an acceleration value is received with confidence value set to `unavailable(102)` can be caused by several reasons, such as: + * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor, + * - the sensor cannot calculate the accuracy due to lack of variables, or + * - there has been a vehicle bus (e.g. CAN bus) error. + * In all 3 cases above, the acceleration value may be valid and used by the application. + * + * @note: If an acceleration value is received and its confidence value is set to `outOfRange(101)`, it means that the value is not valid and therefore cannot be trusted. Such value is not useful for the application. + * + * @unit 0,1 m/s^2 + * @category: Kinematic information + * @revision: Description revised in V2.1.1 + */ +AccelerationConfidence ::= INTEGER { + outOfRange (101), + unavailable (102) +} (0..102) + +/** + * This DE indicates the current controlling mechanism for longitudinal movement of the vehicle. + * The data may be provided via the in-vehicle network. It indicates whether a specific in-vehicle + * acceleration control system is engaged or not. Currently, this DE includes the information of the + * vehicle brake pedal, gas pedal, emergency brake system, collision warning system, adaptive cruise + * control system, cruise control system and speed limiter system. + * + * The corresponding bit shall be set to 1 under the following conditions: + * - 0 - `brakePedalEngaged` - Driver is stepping on the brake pedal, + * - 1 - `gasPedalEngaged` - Driver is stepping on the gas pedal, + * - 2 - `emergencyBrakeEngaged` - emergency brake system is engaged, + * - 3 - `collisionWarningEngaged`- collision warning system is engaged, + * - 4 - `accEngaged` - ACC is engaged, + * - 5 - `cruiseControlEngaged` - cruise control is engaged, + * - 6 - `speedLimiterEngaged` - speed limiter is engaged. + * + * Otherwise (for example when the corresponding system is not available due to non equipped system + * or information is unavailable), the corresponding bit shall be set to 0. + * + * @note: The system engagement condition is OEM specific and therefore out of scope of the present document. + * @category: Vehicle information + * @revision: V1.3.1 + */ +AccelerationControl ::= BIT STRING { + brakePedalEngaged (0), + gasPedalEngaged (1), + emergencyBrakeEngaged (2), + collisionWarningEngaged (3), + accEngaged (4), + cruiseControlEngaged (5), + speedLimiterEngaged (6) +} (SIZE(7)) + +/** + * This DE represents the magnitude of the acceleration vector in a defined coordinate system. + * + * The value shall be set to: + * - `0` to indicate no acceleration, + * - `n` (`n > 0` and `n < 160`) to indicate acceleration equal to or less than n x 0,1 m/s^2, and greater than (n-1) x 0,1 m/s^2, + * - `160` for acceleration values greater than 15,9 m/s^2, + * - `161` when the data is unavailable. + * + * @unit 0,1 m/s^2 + * @category: Kinematic information + * @revision: Created in V2.1.1 +*/ +AccelerationMagnitudeValue ::= INTEGER { + positiveOutOfRange (160), + unavailable (161) +} (0.. 161) + +/** + * This DE represents the value of an acceleration component in a defined coordinate system. + * + * The value shall be set to: + * - `-160` for acceleration values equal to or less than -16 m/s^2, + * - `n` (`n > -160` and `n <= 0`) to indicate negative acceleration equal to or less than n x 0,1 m/s^2, and greater than (n-1) x 0,1 m/s^2, + * - `n` (`n > 0` and `n < 160`) to indicate positive acceleration equal to or less than n x 0,1 m/s^2, and greater than (n-1) x 0,1 m/s^2, + * - `160` for acceleration values greater than 15,9 m/s^2, + * - `161` when the data is unavailable. + * + * @note: the formula for values > -160 and <160 results in rounding up to the next value. Zero acceleration is indicated using n=0. + * @unit 0,1 m/s^2 + * @category: Kinematic information + * @revision: Created in V2.1.1 +*/ +AccelerationValue ::= INTEGER { + negativeOutOfRange (-160), + positiveOutOfRange (160), + unavailable (161) +} (-160 .. 161) + + +/** + * This DE indicates an access technology. + * + * The value shall be set to: + * - `0`: in case of any access technology class, + * - `1`: in case of ITS-G5 access technology class, + * - `2`: in case of LTE-V2X access technology class, + * - `3`: in case of NR-V2X access technology class. + * + * @category: Communication information + * @revision: Created in V2.1.1 + */ +AccessTechnologyClass ::= ENUMERATED { + any (0), + itsg5Class (1), + ltev2xClass (2), + nrv2xClass (3), + ... +} + +/** + * This DE represents the value of the sub cause code of the @ref CauseCode `accident`. + * + * The value shall be set to: + * - 0 - `unavailable` - in case the information on the sub cause of the accident is unavailable, + * - 1 - `multiVehicleAccident` - in case more than two vehicles are involved in accident, + * - 2 - `heavyAccident` - in case the airbag of the vehicle involved in the accident is triggered, + * the accident requires important rescue and/or recovery work, + * - 3 - `accidentInvolvingLorry` - in case the accident involves a lorry, + * - 4 - `accidentInvolvingBus` - in case the accident involves a bus, + * - 5 - `accidentInvolvingHazardousMaterials`- in case the accident involves hazardous material, + * - 6 - `accidentOnOppositeLane` - in case the accident happens on opposite lanes, + * - 7 - `unsecuredAccident` - in case the accident is not secured, + * - 8 - `assistanceRequested` - in case rescue and assistance are requested, + * - 9-255 - reserved for future usage. + * + * @category: Traffic information + * @revision: V1.3.1 + */ +AccidentSubCauseCode ::= INTEGER { + unavailable (0), + multiVehicleAccident (1), + heavyAccident (2), + accidentInvolvingLorry (3), + accidentInvolvingBus (4), + accidentInvolvingHazardousMaterials (5), + accidentOnOppositeLane (6), + unsecuredAccident (7), + assistanceRequested (8) +} (0..255) + +/** + * This DE represents the value of the sub cause code of the @ref CauseCode `adverseWeatherCondition-Adhesion`. + * + * The value shall be set to: + * - 0 - `unavailable` - in case information on the cause of the low road adhesion is unavailable, + * - 1 - `heavyFrostOnRoad`- in case the low road adhesion is due to heavy frost on the road, + * - 2 - `fuelOnRoad` - in case the low road adhesion is due to fuel on the road, + * - 3 - `mudOnRoad` - in case the low road adhesion is due to mud on the road, + * - 4 - `snowOnRoad` - in case the low road adhesion is due to snow on the road, + * - 5 - `iceOnRoad` - in case the low road adhesion is due to ice on the road, + * - 6 - `blackIceOnRoad` - in case the low road adhesion is due to black ice on the road, + * - 7 - `oilOnRoad` - in case the low road adhesion is due to oil on the road, + * - 8 - `looseChippings` - in case the low road adhesion is due to loose gravel or stone fragments detached from a road surface or from a hazard, + * - 9 - `instantBlackIce` - in case the low road adhesion is due to instant black ice on the road surface, + * - 10 - `roadsSalted` - when the low road adhesion is due to salted road, + * - 11-255 - are reserved for future usage. + * + * @category: Traffic information + * @revision: V1.3.1 + */ +AdverseWeatherCondition-AdhesionSubCauseCode ::= INTEGER { + unavailable (0), + heavyFrostOnRoad (1), + fuelOnRoad (2), + mudOnRoad (3), + snowOnRoad (4), + iceOnRoad (5), + blackIceOnRoad (6), + oilOnRoad (7), + looseChippings (8), + instantBlackIce (9), + roadsSalted (10) +} (0..255) + +/** + * This DE represents the value of the sub cause codes of the @ref CauseCode `adverseWeatherCondition-ExtremeWeatherCondition`. + * + * The value shall be set to: + * - 0 - `unavailable` - in case information on the type of extreme weather condition is unavailable, + * - 1 - `strongWinds` - in case the type of extreme weather condition is strong wind, + * - 2 - `damagingHail`- in case the type of extreme weather condition is damaging hail, + * - 3 - `hurricane` - in case the type of extreme weather condition is hurricane, + * - 4 - `thunderstorm`- in case the type of extreme weather condition is thunderstorm, + * - 5 - `tornado` - in case the type of extreme weather condition is tornado, + * - 6 - `blizzard` - in case the type of extreme weather condition is blizzard. + * - 7-255 - are reserved for future usage. + * + * @category: Traffic information + * @revision: V1.3.1 + */ +AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode ::= INTEGER { + unavailable (0), + strongWinds (1), + damagingHail (2), + hurricane (3), + thunderstorm (4), + tornado (5), + blizzard (6) +} (0..255) + +/** + * This DE represents the value of the sub cause codes of the @ref CauseCode `adverseWeatherCondition-Precipitation`. + * + * The value shall be set to: + * - 0 - `unavailable` - in case information on the type of precipitation is unavailable, + * - 1 - `heavyRain` - in case the type of precipitation is heavy rain, + * - 2 - `heavySnowfall` - in case the type of precipitation is heavy snow fall, + * - 3 - `softHail` - in case the type of precipitation is soft hail. + * - 4-255 - are reserved for future usage + * + * @category: Traffic information + * @revision: V1.3.1 + */ +AdverseWeatherCondition-PrecipitationSubCauseCode ::= INTEGER { + unavailable (0), + heavyRain (1), + heavySnowfall (2), + softHail (3) +} (0..255) + +/** + * This DE represents the value of the sub cause codes of the @ref CauseCode `adverseWeatherCondition-Visibility`. + * + * The value shall be set to: + * - 0 - `unavailable` - in case information on the cause of low visibility is unavailable, + * - 1 - `fog` - in case the cause of low visibility is fog, + * - 2 - `smoke` - in case the cause of low visibility is smoke, + * - 3 - `heavySnowfall` - in case the cause of low visibility is heavy snow fall, + * - 4 - `heavyRain` - in case the cause of low visibility is heavy rain, + * - 5 - `heavyHail` - in case the cause of low visibility is heavy hail, + * - 6 - `lowSunGlare` - in case the cause of low visibility is sun glare, + * - 7 - `sandstorms` - in case the cause of low visibility is sand storm, + * - 8 - `swarmsOfInsects`- in case the cause of low visibility is swarm of insects. + * - 9-255 - are reserved for future usage + * + * @category: Traffic information + * @revision: V1.3.1 + */ +AdverseWeatherCondition-VisibilitySubCauseCode ::= INTEGER { + unavailable (0), + fog (1), + smoke (2), + heavySnowfall (3), + heavyRain (4), + heavyHail (5), + lowSunGlare (6), + sandstorms (7), + swarmsOfInsects (8) +} (0..255) + +/** + * This DE represents the air humidity in tenths of percent. + * + * The value shall be set to: + * - `n` (`n > 0` and `n < 1001`) indicates that the applicable value is equal to or less than n x 0,1 percent and greater than (n-1) x 0,1 percent. + * - `1001` indicates that the air humidity is unavailable. + * + * @category: Basic information + * @unit: 0,1 % + * @revision: created in V2.1.1 + */ +AirHumidity ::= INTEGER { + oneHundredPercent (1000), + unavailable (1001) +} (1..1001) + +/** + * This DE indicates the altitude confidence value which represents the estimated absolute accuracy of an altitude value of a geographical point with a default confidence level of 95 %. + * If required, the confidence level can be defined by the corresponding standards applying this DE. + * + * The value shall be set to: + * - 0 - `alt-000-01` - if the confidence value is equal to or less than 0,01 metre, + * - 1 - `alt-000-02` - if the confidence value is equal to or less than 0,02 metre and greater than 0,01 metre, + * - 2 - `alt-000-05` - if the confidence value is equal to or less than 0,05 metre and greater than 0,02 metre, + * - 3 - `alt-000-10` - if the confidence value is equal to or less than 0,1 metre and greater than 0,05 metre, + * - 4 - `alt-000-20` - if the confidence value is equal to or less than 0,2 metre and greater than 0,1 metre, + * - 5 - `alt-000-50` - if the confidence value is equal to or less than 0,5 metre and greater than 0,2 metre, + * - 6 - `alt-001-00` - if the confidence value is equal to or less than 1 metre and greater than 0,5 metre, + * - 7 - `alt-002-00` - if the confidence value is equal to or less than 2 metres and greater than 1 metre, + * - 8 - `alt-005-00` - if the confidence value is equal to or less than 5 metres and greater than 2 metres, + * - 9 - `alt-010-00` - if the confidence value is equal to or less than 10 metres and greater than 5 metres, + * - 10 - `alt-020-00` - if the confidence value is equal to or less than 20 metres and greater than 10 metres, + * - 11 - `alt-050-00` - if the confidence value is equal to or less than 50 metres and greater than 20 metres, + * - 12 - `alt-100-00` - if the confidence value is equal to or less than 100 metres and greater than 50 metres, + * - 13 - `alt-200-00` - if the confidence value is equal to or less than 200 metres and greater than 100 metres, + * - 14 - `outOfRange` - if the confidence value is out of range, i.e. greater than 200 metres, + * - 15 - `unavailable` - if the confidence value is unavailable. + * + * @note: The fact that an altitude value is received with confidence value set to `unavailable(15)` can be caused + * by several reasons, such as: + * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor, + * - the sensor cannot calculate the accuracy due to lack of variables, or + * - there has been a vehicle bus (e.g. CAN bus) error. + * In all 3 cases above, the altitude value may be valid and used by the application. + * + * @note: If an altitude value is received and its confidence value is set to `outOfRange(14)`, it means that the + * altitude value is not valid and therefore cannot be trusted. Such value is not useful for the application. + * + * @category: GeoReference information + * @revision: Description revised in V2.1.1 + */ +AltitudeConfidence ::= ENUMERATED { + alt-000-01 (0), + alt-000-02 (1), + alt-000-05 (2), + alt-000-10 (3), + alt-000-20 (4), + alt-000-50 (5), + alt-001-00 (6), + alt-002-00 (7), + alt-005-00 (8), + alt-010-00 (9), + alt-020-00 (10), + alt-050-00 (11), + alt-100-00 (12), + alt-200-00 (13), + outOfRange (14), + unavailable (15) +} + +/** + * This DE represents the altitude value in a WGS84 coordinate system. + * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE. + * + * The value shall be set to: + * - `-100 000` if the altitude is equal to or less than -1 000 m, + * - `n` (`n > -100 000` and `n < 800 000`) if the altitude is equal to or less than n x 0,01 metre and greater than (n-1) x 0,01 metre, + * - `800 000` if the altitude greater than 7 999,99 m, + * - `800 001` if the information is not available. + * + * @note: the range of this DE does not use the full binary encoding range, but all reasonable values are covered. In order to cover all possible altitude ranges a larger encoding would be necessary. + * @unit: 0,01 metre + * @category: GeoReference information + * @revision: Description revised in V2.1.1 (definition of 800 000 has slightly changed) + */ +AltitudeValue ::= INTEGER { + negativeOutOfRange (-100000), + postiveOutOfRange (800000), + unavailable (800001) +} (-100000..800001) + +/** + * This DE indicates the angle confidence value which represents the estimated absolute accuracy of an angle value with a default confidence level of 95 %. + * If required, the confidence level can be defined by the corresponding standards applying this DE. + * + * The value shall be set to: + * - `n` (`n > 0` and `n < 126`) if the accuracy is equal to or less than n * 0,1 degrees and greater than (n-1) x * 0,1 degrees, + * - `126` if the accuracy is out of range, i.e. greater than 12,5 degrees, + * - `127` if the accuracy information is not available. + * + * @unit: 0,1 degrees + * @category: Basic information + * @revision: Created in V2.1.1 +*/ +AngleConfidence ::= INTEGER { + outOfRange (126), + unavailable (127) +} (1..127) + +/** + * This DE indicates the angular speed confidence value which represents the estimated absolute accuracy of an angular speed value with a default confidence level of 95 %. + * If required, the confidence level can be defined by the corresponding standards applying this DE. + * For correlation computation, maximum interval levels can be assumed. + * + * The value shall be set to: + * - 0 - `degSec-01` - if the accuracy is equal to or less than 1 degree/second, + * - 1 - `degSec-02` - if the accuracy is equal to or less than 2 degrees/second and greater than 1 degree/second, + * - 2 - `degSec-05` - if the accuracy is equal to or less than 5 degrees/second and greater than 2 degrees/second, + * - 3 - `degSec-10` - if the accuracy is equal to or less than 10 degrees/second and greater than 5 degrees/second, + * - 4 - `degSec-20` - if the accuracy is equal to or less than 20 degrees/second and greater than 10 degrees/second, + * - 5 - `degSec-50` - if the accuracy is equal to or less than 50 degrees/second and greater than 20 degrees/second, + * - 6 - `outOfRange` - if the accuracy is out of range, i.e. greater than 50 degrees/second, + * - 7 - `unavailable` - if the accuracy information is unavailable. + * + * @category: Kinematic information + * @revision: Created in V2.1.1 +*/ +AngularSpeedConfidence ::= ENUMERATED { + degSec-01 (0), + degSec-02 (1), + degSec-05 (2), + degSec-10 (3), + degSec-20 (4), + degSec-50 (5), + outOfRange (6), + unavailable (7) +} + +/** + * This DE indicates the angular acceleration confidence value which represents the estimated accuracy of an angular acceleration value with a default confidence level of 95 %. + * If required, the confidence level can be defined by the corresponding standards applying this DE. + * For correlation computation, maximum interval levels shall be assumed. + * + * The value shall be set to: + * - 0 - `degSecSquared-01` - if the accuracy is equal to or less than 1 degree/second^2, + * - 1 - `degSecSquared-02` - if the accuracy is equal to or less than 2 degrees/second^2 and greater than 1 degree/second^2, + * - 2 - `degSecSquared-05` - if the accuracy is equal to or less than 5 degrees/second^2 and greater than 1 degree/second^2, + * - 3 - `degSecSquared-10` - if the accuracy is equal to or less than 10 degrees/second^2 and greater than 5 degrees/second^2, + * - 4 - `degSecSquared-20` - if the accuracy is equal to or less than 20 degrees/second^2 and greater than 10 degrees/second^2, + * - 5 - `degSecSquared-50` - if the accuracy is equal to or less than 50 degrees/second^2 and greater than 20 degrees/second^2, + * - 6 - `outOfRange` - if the accuracy is out of range, i.e. greater than 50 degrees/second^2, + * - 7 - `unavailable` - if the accuracy information is unavailable. + * + * @category: Kinematic information + * @revision: Created in V2.1.1 +*/ +AngularAccelerationConfidence ::= ENUMERATED { + degSecSquared-01 (0), + degSecSquared-02 (1), + degSecSquared-05 (2), + degSecSquared-10 (3), + degSecSquared-20 (4), + degSecSquared-50 (5), + outOfRange (6), + unavailable (7) +} + +/** + * This DE indicates the number of axles of a passing train. + * + * The value shall be set to: + * - `n` (`n > 2` and `n < 1001`) indicates that the train has n x axles, + * - `1001`indicates that the number of axles is out of range, + * - `1002` the information is unavailable. + * + * + * @unit: Number of axles + * @category: Vehicle information + * @revision: Created in V2.1.1 +*/ +AxlesCount ::= INTEGER{ + outOfRange (1001), + unavailable (1002) +} (2..1002) + +/** + * This DE represents the measured uncompensated atmospheric pressure. + * + * The value shall be set to: + * - `2999` indicates that the applicable value is less than 29990 Pa, + * - `n` (`n > 2999` and `n <= 12000`) indicates that the applicable value is equal to or less than n x 10 Pa and greater than (n-1) x 10 Pa, + * - `12001` indicates that the values is greater than 120000 Pa, + * - `12002` indicates that the information is not available. + * + * @category: Basic information + * @unit: 10 Pascal + * @revision: Created in V2.1.1 +*/ +BarometricPressure ::= INTEGER{ + outOfRangelower (2999), + outOfRangeUpper (12001), + unavailable (12002) +} (2999..12002) + + +/** + * This DE indicates the cardinal number of bogies of a train. + * + * The value shall be set to: + * - `n` (`n > 1` and `n < 100`) indicates that the train has n x bogies, + * - `100`indicates that the number of bogies is out of range, + * - `101` the information is unavailable. + * + * @unit: Number of bogies + * @category: Vehicle information + * @revision: Created in V2.1.1 +*/ +BogiesCount ::= INTEGER{ + outOfRange (100), + unavailable (101) +} (2..101) + +/** + * The DE represents a cardinal number that counts the size of a set. + * + * @category: Basic information + * @revision: Created in V2.1.1 +*/ +CardinalNumber1B ::= INTEGER(0..255) + +/** + * The DE represents a cardinal number that counts the size of a set. + * + * @category: Basic information + * @revision: Created in V2.1.1 +*/ +CardinalNumber3b ::= INTEGER(1..8) + +/** + * This DE represents an angle value described in a local Cartesian coordinate system, per default counted positive in + * a right-hand local coordinate system from the abscissa. + * + * The value shall be set to: + * - `n` (`n >= 0` and `n < 3600`) if the angle is equal to or less than n x 0,1 degrees, and greater than (n-1) x 0,1 degrees, + * - `3601` if the information is not available. + * + * The value 3600 shall not be used. + * + * @unit 0,1 degrees + * @category: Basic information + * @revision: Created in V2.1.1, description and value for 3601 corrected in V2.2.1 +*/ +CartesianAngleValue ::= INTEGER { + valueNotUsed (3600), + unavailable (3601) +} (0..3601) + +/** + * This DE represents an angular acceleration value described in a local Cartesian coordinate system, per default counted positive in + * a right-hand local coordinate system from the abscissa. + * + * The value shall be set to: + * - `-255` if the acceleration is equal to or less than -255 degrees/s^2, + * - `n` (`n > -255` and `n < 255`) if the acceleration is equal to or less than n x 1 degree/s^2, + and greater than `(n-1)` x 0,01 degree/s^2, + * - `255` if the acceleration is greater than 254 degrees/s^2, + * - `256` if the information is unavailable. + * + * @unit: degree/s^2 (degrees per second squared) + * @category: Kinematic information + * @revision: Created in V2.1.1 +*/ +CartesianAngularAccelerationComponentValue ::= INTEGER { + negativeOutOfRange (-255), + positiveOutOfRange (255), + unavailable (256) +} (-255..256) + +/** + * This DE represents an angular velocity component described in a local Cartesian coordinate system, per default counted positive in + * a right-hand local coordinate system from the abscissa. + * + * The value shall be set to: + * - `-255` if the velocity is equal to or less than -255 degrees/s, + * - `n` (`n > -255` and `n < 255`) if the velocity is equal to or less than n x 1 degree/s, and greater than (n-1) x 1 degree/s, + * - `255` if the velocity is greater than 254 degrees/s, + * - `256` if the information is unavailable. + * + * @unit: degree/s + * @category: Kinematic information + * @revision: Created in V2.1.1 +*/ +CartesianAngularVelocityComponentValue ::= INTEGER { + negativeOutofRange (-255), + positiveOutOfRange (255), + unavailable (256) +} (-255..256) + +/** + *The DE represents the value of the cause code of an event. + * + * The value shall be set to: + * - 0 - reserved for future use, + * - 1 - `trafficCondition` - in case the type of event is an abnormal traffic condition, + * - 2 - `accident` - in case the type of event is a road accident, + * - 3 - `roadworks` - in case the type of event is roadwork, + * - 4 - reserved for future usage, + * - 5 - `impassability` - in case the type of event is unmanaged road blocking, referring to any + * blocking of a road, partial or total, which has not been adequately + * secured and signposted, + * - 6 - `adverseWeatherCondition-Adhesion` - in case the type of event is low adhesion, + * - 7 - `aquaplaning` - danger of aquaplaning on the road, + * - 8 - reserved for future usage, + * - 9 - `hazardousLocation-SurfaceCondition` - in case the type of event is abnormal road surface condition, + * - 10 - `hazardousLocation-ObstacleOnTheRoad` - in case the type of event is obstacle on the road, + * - 11 - `hazardousLocation-AnimalOnTheRoad` - in case the type of event is animal on the road, + * - 12 - `humanPresenceOnTheRoad` - in case the type of event is presence of human vulnerable road user on the road, + * - 13 - reserved for future usage, + * - 14 - `wrongWayDriving` - in case the type of the event is vehicle driving in wrong way, + * - 15 - `rescueAndRecoveryWorkInProgress` - in case the type of event is rescue and recovery work for accident or for a road hazard in progress, + * - 16 - reserved for future usage, + * - 17 - `adverseWeatherCondition-ExtremeWeatherCondition`- in case the type of event is extreme weather condition, + * - 18 - `adverseWeatherCondition-Visibility` - in case the type of event is low visibility, + * - 19 - `adverseWeatherCondition-Precipitation` - in case the type of event is precipitation, + * - 20 - `violence` - in case the the type of event is human violence on or near the road, + * - 21-25 - reserved for future usage, + * - 26 - `slowVehicle` - in case the type of event is slow vehicle driving on the road, + * - 27 - `dangerousEndOfQueue` - in case the type of event is dangerous end of vehicle queue, + * - 28 - `publicTransportVehicleApproaching - in case the type of event is a public transport vehicle approaching, with a priority defined by applicable traffic regulations, + * - 29-90 - are reserved for future usage, + * - 91 - `vehicleBreakdown` - in case the type of event is break down vehicle on the road, + * - 92 - `postCrash` - in case the type of event is a detected crash, + * - 93 - `humanProblem` - in case the type of event is human health problem in vehicles involved in traffic, + * - 94 - `stationaryVehicle` - in case the type of event is stationary vehicle, + * - 95 - `emergencyVehicleApproaching` - in case the type of event is an approaching vehicle operating on a mission for which the applicable + traffic regulations provide it with defined priority rights in traffic. + * - 96 - `hazardousLocation-DangerousCurve` - in case the type of event is dangerous curve, + * - 97 - `collisionRisk` - in case the type of event is a collision risk, + * - 98 - `signalViolation` - in case the type of event is signal violation, + * - 99 - `dangerousSituation` - in case the type of event is dangerous situation in which autonomous safety system in vehicle + * is activated, + * - 100 - `railwayLevelCrossing` - in case the type of event is a railway level crossing. + * - 101-255 - are reserved for future usage. + * + * @category: Traffic information + * @revision: V1.3.1, value 28 added in V2.2.1, definition of values 12 and 95 changed in V2.2.1 + */ +CauseCodeType ::= INTEGER { + trafficCondition (1), + accident (2), + roadworks (3), + impassability (5), + adverseWeatherCondition-Adhesion (6), + aquaplaning (7), + hazardousLocation-SurfaceCondition (9), + hazardousLocation-ObstacleOnTheRoad (10), + hazardousLocation-AnimalOnTheRoad (11), + humanPresenceOnTheRoad (12), + wrongWayDriving (14), + rescueAndRecoveryWorkInProgress (15), + adverseWeatherCondition-ExtremeWeatherCondition (17), + adverseWeatherCondition-Visibility (18), + adverseWeatherCondition-Precipitation (19), + violence (20), + slowVehicle (26), + dangerousEndOfQueue (27), + publicTransportVehicleApproaching (28), + vehicleBreakdown (91), + postCrash (92), + humanProblem (93), + stationaryVehicle (94), + emergencyVehicleApproaching (95), + hazardousLocation-DangerousCurve (96), + collisionRisk (97), + signalViolation (98), + dangerousSituation (99), + railwayLevelCrossing (100) +} (0..255) + +/** + * This DF represents the value of a cartesian coordinate with a range of -30,94 metres to +10,00 metres. + * + * The value shall be set to: + * - `3094` if the longitudinal offset is out of range, i.e. less than or equal to -30,94 metres, + * - `n` (`n > -3 094` and `n < 1 001`) if the longitudinal offset information is equal to or less than n x 0,01 metre and more than (n-1) x 0,01 metre, + * - `1001` if the longitudinal offset is out of range, i.e. greater than 10 metres. + * + * @unit 0,01 m + * @category: Basic information + * @revision: Created in V2.1.1 +*/ +CartesianCoordinateSmall::= INTEGER { + negativeOutOfRange (-3094), + positiveOutOfRange (1001) +} (-3094..1001) + +/** + * This DF represents the value of a cartesian coordinate with a range of -327,68 metres to +327,66 metres. + * + * The value shall be set to: + * - `-32 768` if the longitudinal offset is out of range, i.e. less than or equal to -327,68 metres, + * - `n` (`n > -32 768` and `n < 32 767`) if the longitudinal offset information is equal to or less than n x 0,01 metre and more than (n-1) x 0,01 metre, + * - `32 767` if the longitudinal offset is out of range, i.e. greater than + 327,66 metres. + * + * @unit 0,01 m + * @category: Basic information + * @revision: Created in V2.1.1 +*/ +CartesianCoordinate::= INTEGER{ + negativeOutOfRange (-32768), + positiveOutOfRange (32767) +} (-32768..32767) + +/** + * This DF represents the value of a cartesian coordinate with a range of -1 310,72 metres to +1 310,70 metres. + * + * The value shall be set to: + * - `-131072` if the longitudinal offset is out of range, i.e. less than or equal to -1 310,72 metres, + * - `n` (`n > 131 072` and `n < 131 071`) if the longitudinal offset information is equal to or less than n x 0,01 metre and more than (n-1) x 0,01 metre, + * - `131 071` if the longitudinal offset is out of range, i.e. greater than + 1 310,70 metres. + * + * @unit 0,01 m + * @category: Basic information + * @revision: Created in V2.1.1 +*/ +CartesianCoordinateLarge::= INTEGER{ + negativeOutOfRange (-131072), + positiveOutOfRange (131071) +} (-131072..131071) + +/** + * This DE represents the ID of a CEN DSRC tolling zone. + * + * @category: Communication information + * @revision: V1.3.1 + * @note: this DE is deprecated and shall not be used anymore. + */ +CenDsrcTollingZoneID::= ProtectedZoneId + +/** + * This DE indicates the reason why a cluster leader intends to break up the cluster. + * + * The value shall be set to: + * - 0 - `notProvided` - if the information is not provided, + * - 1 - `clusteringPurposeCompleted` - if the cluster purpose has been completed, + * - 2 - `leaderMovedOutOfClusterBoundingBox` - if the leader moved out of the cluster's bounding box, + * - 3 - `joiningAnotherCluster` - if the cluster leader is about to join another cluster, + * - 4 - `enteringLowRiskAreaBasedOnMaps` - if the cluster is entering an area idenrified as low risk based on the use of maps, + * - 5 - `receptionOfCpmContainingCluster` - if the leader received a Collective Perception Message containing information about the same cluster. + * - 6 to 15 - are reserved for future use. + * + * @category: Cluster information + * @revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1 +*/ +ClusterBreakupReason ::= INTEGER { + notProvided (0), + clusteringPurposeCompleted (1), + leaderMovedOutOfClusterBoundingBox (2), + joiningAnotherCluster (3), + enteringLowRiskAreaBasedOnMaps (4), + receptionOfCpmContainingCluster (5) +}(0..15) + +/** + * This DE indicates the reason why a cluster participant is leaving the cluster. + * + * The value shall be set to: + * - 0 - `notProvided ` - if the information is not provided, + * - 1 - `clusterLeaderLost` - if the cluster leader cannot be found anymore, + * - 2 - `clusterDisbandedByLeader` - if the cluster has been disbanded by the leader, + * - 3 - `outOfClusterBoundingBox` - if the participants moved out of the cluster's bounding box, + * - 4 - `outOfClusterSpeedRange` - if the cluster speed moved out of a defined range, + * - 5 - `joiningAnotherCluster` - if the participant is joining another cluster, + * - 6 - `cancelledJoin` - if the participant is cancelling a joining procedure, + * - 7 - `failedJoin` - if the participant failed to join the cluster, + * - 8 - `safetyCondition` - if a safety condition applies. + * - 9 to 15 - are reserved for future use + * + * @category: Cluster information + * @revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1 + */ +ClusterLeaveReason ::= INTEGER { + notProvided (0), + clusterLeaderLost (1), + clusterDisbandedByLeader (2), + outOfClusterBoundingBox (3), + outOfClusterSpeedRange (4), + joiningAnotherCluster (5), + cancelledJoin (6), + failedJoin (7), + safetyCondition (8) +}(0..15) + +/** + * This DE represents the sub cause codes of the @ref CauseCode `collisionRisk`. + * + * The value shall be set to: + * - 0 - `unavailable` - in case information on the type of collision risk is unavailable, + * - 1 - `longitudinalCollisionRisk` - in case the type of detected collision risk is longitudinal collision risk, + * e.g. forward collision or face to face collision, + * - 2 - `crossingCollisionRisk` - in case the type of detected collision risk is crossing collision risk, + * - 3 - `lateralCollisionRisk` - in case the type of detected collision risk is lateral collision risk, + * - 4 - `vulnerableRoadUser` - in case the type of detected collision risk involves vulnerable road users + * e.g. pedestrians or bicycles. + * - 5 - `collisionRiskWithPedestrian` - in case the type of detected collision risk involves at least one pedestrian, + * - 6 - `collisionRiskWithCyclist` - in case the type of detected collision risk involves at least one cyclist (and no pedestrians), + * - 7 - `collisionRiskWithMotorVehicle` - in case the type of detected collision risk involves at least one motor vehicle (and no pedestrians or cyclists), + * - 8-255 - are reserved for future usage. + * + * @category: Traffic information + * @revision: V1.3.1, values 5-7 assigned in V2.2.1 + */ +CollisionRiskSubCauseCode ::= INTEGER { + unavailable (0), + longitudinalCollisionRisk (1), + crossingCollisionRisk (2), + lateralCollisionRisk (3), + vulnerableRoadUser (4), + collisionRiskWithPedestrian (5), + collisionRiskWithCyclist (6), + collisionRiskWithMotorVehicle (7) +}(0..255) + +/** + * This DE represents a confidence level in percentage. + * + * The value shall be set to: + * - `n` (`n > 0` and `n < 101`) : for the confidence level in %, + * - `101` : in case the confidence level is not available. + * + * @unit Percent + * @category: Basic information + * @revision: Created in V2.1.1 +*/ +ConfidenceLevel ::= INTEGER { + unavailable (101) +} (1..101) + +/** + * This DE indicates the coordinate confidence value which represents the estimated absolute accuracy of a position coordinate with a default confidence level of 95 %. + * If required, the confidence level can be defined by the corresponding standards applying this DE. + * + * The value shall be set to: + * - `n` (`n > 0` and `n < 4095`) if the confidence value is is equal to or less than n x 0,01 metre, and greater than (n-1) x 0,01 metre, + * - `4095` if the confidence value is greater than 40,94 metres, + * - `4096` if the confidence value is not available. + * + * @unit 0,01 m + * @category: Basic information + * @revision: Created in V2.1.1 +*/ +CoordinateConfidence ::= INTEGER { + outOfRange (4095), + unavailable (4096) +} (1..4096) + +/** + * This DE represents the Bravais-Pearson correlation value for each cell of a lower triangular correlation matrix. + * + * The value shall be set to: + * - `-100` in case of full negative correlation, + * - `n` (`n > -100` and `n < 0`) if the correlation is negative and equal to n x 100, + * - `0` in case of no correlation, + * - `n` (`n > 0` and `n < 100`) if the correlation is positive and equal to n x 100, + * - `100` in case of full positive correlation, + * - `101` in case the correlation information is unavailable. + * + * @unit: the value is scaled by 100 + * @category: Basic information + * @revision: Created in V2.1.1 +*/ +CorrelationCellValue ::= INTEGER { + full-negative-correlation (-100), + no-correlation (0), + full-positive-correlation (100), + unavailable (101) +} (-100..101) + +/** + * This DE represents an ISO 3166-1 [25] country code encoded using ITA-2 encoding. + * + * @category: Basic information + * @revision: Created in V2.2.1 based on ISO 14816 [23] +*/ +CountryCode ::= BIT STRING(SIZE(10)) + +/** + * The DE describes whether the yaw rate is used to calculate the curvature for a curvature value. + * + * The value shall be set to: + * - 0 - `yawRateUsed` - if the yaw rate is used, + * - 1 - `yawRateNotUsed` - if the yaw rate is not used, + * - 2 - `unavailable` - if the information of curvature calculation mode is unknown. + * + * @category: Vehicle information + * @revision: V1.3.1 + */ +CurvatureCalculationMode ::= ENUMERATED { + yawRateUsed (0), + yawRateNotUsed (1), + unavailable (2), + ... +} + +/** + * This DE indicates the acceleration confidence value which represents the estimated absolute accuracy range of a curvature value with a confidence level of 95 %. + * If required, the confidence level can be defined by the corresponding standards applying this DE. + * + * The value shall be set to: + * - 0 - `onePerMeter-0-00002` - if the confidence value is less than or equal to 0,00002 m-1, + * - 1 - `onePerMeter-0-0001` - if the confidence value is less than or equal to 0,0001 m-1 and greater than 0,00002 m-1, + * - 2 - `onePerMeter-0-0005` - if the confidence value is less than or equal to 0,0005 m-1 and greater than 0,0001 m-1, + * - 3 - `onePerMeter-0-002` - if the confidence value is less than or equal to 0,002 m-1 and greater than 0,0005 m-1, + * - 4 - `nePerMeter-0-01` - if the confidence value is less than or equal to 0,01 m-1 and greater than 0,002 m-1, + * - 5 - `nePerMeter-0-1` - if the confidence value is less than or equal to 0,1 m-1 and greater than 0,01 m-1, + * - 6 - `outOfRange` - if the confidence value is out of range, i.e. greater than 0,1 m-1, + * - 7 - `unavailable` - if the confidence value is not available. + * + * @note: The fact that a curvature value is received with confidence value set to `unavailable(7)` can be caused by + * several reasons, such as: + * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor, + * - the sensor cannot calculate the accuracy due to lack of variables, or + * - there has been a vehicle bus (e.g. CAN bus) error. + * In all 3 cases above, the curvature value may be valid and used by the application. + * + * @note: If a curvature value is received and its confidence value is set to `outOfRange(6)`, it means that the curvature value is not valid + * and therefore cannot be trusted. Such value is not useful for the application. + * + * @category: Vehicle information + * @revision: Description revised in V2.1.1 +*/ +CurvatureConfidence ::= ENUMERATED { + onePerMeter-0-00002 (0), + onePerMeter-0-0001 (1), + onePerMeter-0-0005 (2), + onePerMeter-0-002 (3), + onePerMeter-0-01 (4), + onePerMeter-0-1 (5), + outOfRange (6), + unavailable (7) +} + +/** + * This DE describes vehicle turning curve with the following information: + * ``` + * Value = 1 / Radius * 10000 + * ``` + * wherein radius is the vehicle turning curve radius in metres. + * + * Positive values indicate a turning curve to the left hand side of the driver. + * It corresponds to the vehicle coordinate system as defined in ISO 8855 [21]. + * + * The value shall be set to: + * - `-1023` for values smaller than -1023, + * - `n` (`n > -1023` and `n < 0`) for negative values equal to or less than `n`, and greater than `(n-1)`, + * - `0` when the vehicle is moving straight, + * - `n` (`n > 0` and `n < 1022`) for positive values equal to or less than `n`, and greater than `(n-1)`, + * - `1022`, for values greater than 1021, + * - `1023`, if the information is not available. + * + * @note: The present DE is limited to vehicle types as defined in ISO 8855 [21]. + * + * @unit: 1 over 10 000 metres + * @category: Vehicle information + * @revision: description revised in V2.1.1 (the definition of value 1022 has changed slightly) + */ +CurvatureValue ::= INTEGER { + outOfRangeNegative (-1023), + straight (0), + outOfRangePositive (1022), + unavailable (1023) +} (-1023..1023) + +/** + * This DE represents the value of the sub cause codes of the @ref CauseCode `dangerousEndOfQueue`. + * + * The value shall be set to: + * - 0 - `unavailable` - in case information on the type of dangerous queue is unavailable, + * - 1 - `suddenEndOfQueue`- in case a sudden end of queue is detected, e.g. due to accident or obstacle, + * - 2 - `queueOverHill` - in case the dangerous end of queue is detected on the road hill, + * - 3 - `queueAroundBend` - in case the dangerous end of queue is detected around the road bend, + * - 4 - `queueInTunnel` - in case queue is detected in tunnel, + * - 5-255 - reserved for future usage. + * + * @category: Traffic information + * @revision: V1.3.1 + */ +DangerousEndOfQueueSubCauseCode ::= INTEGER { + unavailable (0), + suddenEndOfQueue (1), + queueOverHill (2), + queueAroundBend (3), + queueInTunnel (4) +} (0..255) + +/** + * This DE indicates the type of the dangerous goods being carried by a heavy vehicle. + * The value is assigned according to `class` and `division` definitions of dangerous goods as specified in part II, + * chapter 2.1.1.1 of European Agreement concerning the International Carriage of Dangerous Goods by Road [3]. + * + * + * @category Vehicle information + * @revision: V1.3.1 + */ +DangerousGoodsBasic::= ENUMERATED { + explosives1 (0), + explosives2 (1), + explosives3 (2), + explosives4 (3), + explosives5 (4), + explosives6 (5), + flammableGases (6), + nonFlammableGases (7), + toxicGases (8), + flammableLiquids (9), + flammableSolids (10), + substancesLiableToSpontaneousCombustion (11), + substancesEmittingFlammableGasesUponContactWithWater (12), + oxidizingSubstances (13), + organicPeroxides (14), + toxicSubstances (15), + infectiousSubstances (16), + radioactiveMaterial (17), + corrosiveSubstances (18), + miscellaneousDangerousSubstances (19) +} + +/** + * This DE represents the value of the sub cause codes of the @ref CauseCode `dangerousSituation` + * + * The value shall be set to: + * - 0 - `unavailable` - in case information on the type of dangerous situation is unavailable, + * - 1 - `emergencyElectronicBrakeEngaged` - in case emergency electronic brake is engaged, + * - 2 - `preCrashSystemEngaged` - in case pre-crash system is engaged, + * - 3 - `espEngaged` - in case Electronic Stability Program (ESP) system is engaged, + * - 4 - `absEngaged` - in case Anti-lock Braking System (ABS) is engaged, + * - 5 - `aebEngaged` - in case Autonomous Emergency Braking (AEB) system is engaged, + * - 6 - `brakeWarningEngaged` - in case brake warning is engaged, + * - 7 - `collisionRiskWarningEngaged` - in case collision risk warning is engaged, + * - 8-255 - reserved for future usage. + * + * @category: Traffic information + * @revision: V1.3.1 + */ +DangerousSituationSubCauseCode ::= INTEGER { + unavailable (0), + emergencyElectronicBrakeEngaged (1), + preCrashSystemEngaged (2), + espEngaged (3), + absEngaged (4), + ebEngaged (5), + brakeWarningEngaged (6), + collisionRiskWarningEngaged (7) +} (0..255) + +/** + * This DE represents an offset altitude with regards to a defined altitude value. + * It may be used to describe a geographical point with regards to a specific reference geographical position. + * + * The value shall be set to: + * - `-12 700` for values equal to or lower than -127 metres, + * - `n` (`n > -12 700` and `n <= 0`) for altitude offset n x 0,01 metre below the reference position, + * - `0` for no altitudinal offset, + * - `n` (`n > 0` and `n < 12799`) for altitude offset n x 0,01 metre above the reference position, + * - `12 799` for values equal to or greater than 127,99 metres, + * - `12 800` when the information is unavailable. + * + * @unit: 0,01 metre + * @category: GeoReference information + * @revision: editorial update in V2.1.1 + */ +DeltaAltitude ::= INTEGER { + negativeOutOfRange (-12700), + positiveOutOfRange (12799), + unavailable (12800) +} (-12700..12800) + +/** + * This DE represents an offset latitude with regards to a defined latitude value. + * It may be used to describe a geographical point with regards to a specific reference geographical position. + * + * The value shall be set to: + * - `n` (`n >= -131 071` and `n < 0`) for offset n x 10^-7 degree towards the south from the reference position, + * - `0` for no latitudinal offset, + * - `n` (`n > 0` and `n < 131 072`) for offset n x 10^-7 degree towards the north from the reference position, + * - `131 072` when the information is unavailable. + * + * @unit: 10^-7 degree + * @category: GeoReference information + * @revision: editorial update in V2.1.1 + */ +DeltaLatitude ::= INTEGER { + unavailable (131072) +} (-131071..131072) + +/** + * This DE represents an offset longitude with regards to a defined longitude value. + * It may be used to describe a geographical point with regards to a specific reference geographical position. + * + * The value shall be set to: + * - `n` (`n >= -131 071` and `n < 0`) for offset n x 10^-7 degree towards the west from the reference position, + * - `0` for no longitudinal offset, + * - `n` (`n > 0` and `n < 131 072`) for offset n x 10^-7 degree towards the east from the reference position, + * - `131 072` when the information is unavailable. + * + * @unit: 10^-7 degree + * @category: GeoReference information + * @revision: editorial update in V2.1.1 + */ +DeltaLongitude ::= INTEGER { + unavailable (131072) +} (-131071..131072) + +/** + * This DE represents a difference in time with respect to a reference time. + * + * The value shall be set to: + * - `n` (`n > 0` and `n < 10001`) to indicate a time value equal to or less than n x 0,001 s, and greater than (n-1) x 0,001 s, + * + * Example: a time interval between two consecutive message transmissions. + * + * @unit: 0,001 s + * @category: Basic information + * @revision: Created in V2.1.1 from the DE TransmissionInterval in [2] + */ +DeltaTimeMilliSecondPositive ::= INTEGER (1..10000) + +/** + * This DE represents a signed difference in time with respect to a reference time. + * + * The value shall be set to: + * - `-2048` for time values equal to or less than -2,048 s, + * - `n` (`n > -2048` and `n < 2047`) to indicate a time value equal to or less than n x 0,001 s, and greater than (n-1) x 0,001 s, + * - `2047` for time values greater than 2,046 s + * + * @unit: 0,001 s + * @category: Basic information + * @revision: Created in V2.1.1 +*/ +DeltaTimeMilliSecondSigned ::= INTEGER (-2048..2047) + +/** + * This DE represents a difference in time with respect to a reference time. + * It can be interpreted as the first 8 bits of a GenerationDeltaTime. To convert it to a @ref GenerationDeltaTime, + * multiply by 256 (i.e. append a `00` byte) + * + * @unit: 256 * 0,001 s + * @category: Basic information + * @revision: Created in V2.1.1 + */ +DeltaTimeQuarterSecond::= INTEGER { + unavailable (255) +} (1..255) + +/** + * This DE represents a difference in time with respect to a reference time. + * + * The value shall be set to: + * - `0` for a difference in time of 0 seconds. + * - `n` (`n > 0` and `n < 128`) to indicate a time value equal to or less than n x 0,1 s, and greater than (n-1) x 0,1 s, + * + * @unit: 0,1 s + * @category: Basic information + * @revision: Created in V2.1.1 +*/ +DeltaTimeTenthOfSecond::= INTEGER { + unavailable (127) +} (0..127) + +/** + * This DE represents a difference in time with respect to a reference time. + * + * The value shall be set to: + * - `-0` for a difference in time of 0 seconds. + * - `n` (`n > 0` and `n <= 86400`) to indicate a time value equal to or less than n x 1 s, and greater than (n-1) x 1 s, + * + * @unit: 1 s + * @category: Basic information + * @revision: Created in V2.1.1 from ValidityDuration +*/ +DeltaTimeSecond ::= INTEGER (0..86400) + +/** + * This DE represents a difference in time with respect to a reference time. + * + * The value shall be set to: + * - `-0` for a difference in time of 0 seconds. + * - `n` (`n > 0` and `n < 128`) to indicate a time value equal to or less than n x 10 s, and greater than (n-1) x 10 s, + * + * @unit: 10 s + * @category: Basic information + * @revision: Created in V2.2.1 +*/ +DeltaTimeTenSeconds ::= INTEGER (0..127) + +/** + * This DE indicates a direction with respect to a defined reference direction. + * Example: a reference direction may be implicitly defined by the definition of a geographical zone. + * + * The value shall be set to: + * - 0 - `sameDirection` - to indicate the same direction as the reference direction, + * - 1 - `oppositeDirection` - to indicate opposite direction as the reference direction, + * - 2 - `bothDirections` - to indicate both directions, i.e. the same and the opposite direction, + * - 3 - `unavailable` - to indicate that the information is unavailable. + * + * @category: GeoReference information + * @revision: Created in V2.1.1 + */ +Direction::= INTEGER{ + sameDirection (0), + oppositeDirection (1), + bothDirections (2), + unavailable (3) + } (0..3) + +/** + * This DE indicates in which direction something is moving. + * + * The value shall be set to: + * - 0 - `forward` - to indicate it is moving forward, + * - 1 - `backwards` - to indicate it is moving backwards, + * - 2 - `unavailable` - to indicate that the information is unavailable. + * + * @category: Kinematic information + * @revision: editorial update in V2.1.1 + */ +DriveDirection ::= ENUMERATED { + forward (0), + backward (1), + unavailable (2) +} + +/** + * This DE indicates whether a driving lane is open to traffic. + * + * A lane is counted from inside border of the road excluding the hard shoulder. The size of the bit string shall + * correspond to the total number of the driving lanes in the carriageway. + * + * The numbering is matched to @ref LanePosition. + * The bit `0` is used to indicate the innermost lane, bit `1` is used to indicate the second lane from inside border. + * + * If a lane is closed to traffic, the corresponding bit shall be set to `1`. Otherwise, it shall be set to `0`. + * + * @note: hard shoulder status is not provided by this DE but in @ref HardShoulderStatus. + * + * @category: Traffic information + * @revision: V1.3.1 + */ +DrivingLaneStatus ::= BIT STRING (SIZE (1..13)) + +/** + * This DE indicates whether a vehicle (e.g. public transport vehicle, truck) is under the embarkation process. + * If that is the case, the value is *TRUE*, otherwise *FALSE*. + * + * @category: Vehicle information + * @revision: editorial update in V2.1.1 + */ +EmbarkationStatus ::= BOOLEAN + +/** + * This DE indicates the right of priority requested or assumed by an operating emergency vehicle. + * The right-of-priority bit shall be set to `1` if the corresponding right is requested. + * + * The corresponding bit shall be set to 1 under the following conditions: + * - 0 - `requestForRightOfWay` - when the vehicle is requesting/assuming the right of way, + * - 1 - `requestForFreeCrossingAtATrafficLight` - when the vehicle is requesting/assuming the right to pass at a (red) traffic light. + * + * @category: Traffic information + * @revision: description revised in V2.1.1 + */ +EmergencyPriority ::= BIT STRING { + requestForRightOfWay (0), + requestForFreeCrossingAtATrafficLight (1) +} (SIZE(2)) + +/** + * This DE represents the value of the sub cause codes of the @ref CauseCode "emergencyVehicleApproaching". + * + * The value shall be set to: + * - 0 - `unavailable` - in case further detailed information on the emergency vehicle approaching event + * is unavailable, + * - 1 - `emergencyVehicleApproaching` - in case an operating emergency vehicle is approaching, + * - 2 - `prioritizedVehicleApproaching` - in case a prioritized vehicle is approaching, + * - 3-255 - reserved for future usage. + * + * @category: Traffic information + * @revision: V1.3.1 + */ +EmergencyVehicleApproachingSubCauseCode ::= INTEGER { + unavailable (0), + emergencyVehicleApproaching (1), + prioritizedVehicleApproaching (2) +} (0..255) + +/** + * This DE indicated the type of energy being used and stored in vehicle. + * + * The corresponding bit shall be set to 1 under the following conditions: + * - 0 - `hydrogenStorage` - when hydrogen is being used and stored in vehicle, + * - 1 - `electricEnergyStorage` - when electric energy is being used and stored in vehicle, + * - 2 - `liquidPropaneGas` - when liquid Propane Gas (LPG) is being used and stored in vehicle, + * - 3 - `compressedNaturalGas ` - when compressedNaturalGas (CNG) is being used and stored in vehicle, + * - 4 - `diesel` - when diesel is being used and stored in vehicle, + * - 5 - `gasoline` - when gasoline is being used and stored in vehicle, + * - 6 - `ammonia` - when ammonia is being used and stored in vehicle. + * + * - Otherwise, the corresponding bit shall be set to `0`. + * + * @category: Vehicle information + * @revision: editorial revision in V2.1.1 + */ +EnergyStorageType ::= BIT STRING { + hydrogenStorage (0), + electricEnergyStorage (1), + liquidPropaneGas (2), + compressedNaturalGas (3), + diesel (4), + gasoline (5), + ammonia (6) +}(SIZE(7)) + +/** + * This DE represents one of the specific categories in the L category: L1, L2, L3, L4, L5, L6, or L7 according to UNECE/TRANS/WP.29/78/Rev.4 [16]. + * + * + * @category: Vehicle information + * @revision: V2.1.1 + */ +EuVehicleCategoryL ::= ENUMERATED { l1, l2, l3, l4, l5, l6, l7 } + +/** + * This DE represents one of the specific categories in the M category: M1, M2, or M3 according to UNECE/TRANS/WP.29/78/Rev.4 [16]. + * + * + * @category: Vehicle information + * @revision: V2.1.1 + */ +EuVehicleCategoryM ::= ENUMERATED {m1, m2, m3} + +/** + * This DE represents one of the specific categories in the N category: N1, N2, or N3 according to UNECE/TRANS/WP.29/78/Rev.4 [16]. + * + * + * @category: Vehicle information + * @revision: V2.1.1 + */ +EuVehicleCategoryN ::= ENUMERATED {n1, n2, n3} + +/** + * This DE represents one of the specific categories in the O category: O1, O2, O3 or O4 according to UNECE/TRANS/WP.29/78/Rev.4 [16]. + * + * + * @category: Vehicle information + * @revision: V2.1.1 + */ +EuVehicleCategoryO ::= ENUMERATED {o1, o2, o3, o4} + +/** + * This DE describes the status of the exterior light switches of a vehicle incl. VRU vehicles. + * + * The corresponding bit shall be set to 1 under the following conditions: + * - 0 - `lowBeamHeadlightsOn` - when the low beam head light switch is on, + * - 1 - `highBeamHeadlightsOn` - when the high beam head light switch is on, + * - 2 - `leftTurnSignalOn` - when the left turnSignal switch is on, + * - 3 - `rightTurnSignalOn` - when the right turn signal switch is on, + * - 4 - `daytimeRunningLightsOn` - when the daytime running light switch is on, + * - 5 - `reverseLightOn` - when the reverse light switch is on, + * - 6 - `fogLightOn` - when the tail fog light switch is on, + * - 7 - `parkingLightsOn` - when the parking light switch is on. + * + * @note: The value of each bit indicates the state of the switch, which commands the corresponding light. + * The bit corresponding to a specific light is set to `1`, when the corresponding switch is turned on, + * either manually by the driver or automatically by a vehicle system. The bit value does not indicate + * if the corresponding lamps are alight or not. + * + * If a vehicle is not equipped with a certain light or if the light switch status information is not available, + * the corresponding bit shall be set to `0`. + * + * As the bit value indicates only the state of the switch, the turn signal and hazard signal bit values shall not + * alternate with the blinking interval. + * + * For hazard indicator, the `leftTurnSignalOn (2)` and `rightTurnSignalOn (3)` shall be both set to `1`. + * + * @category Vehicle information + * @revision: Description revised in V2.1.1 + */ +ExteriorLights ::= BIT STRING { + lowBeamHeadlightsOn (0), + highBeamHeadlightsOn (1), + leftTurnSignalOn (2), + rightTurnSignalOn (3), + daytimeRunningLightsOn (4), + reverseLightOn (5), + fogLightOn (6), + parkingLightsOn (7) +} (SIZE(8)) + +/** + * This DE represents a timestamp based on TimestampIts modulo 65 536. + * This means that generationDeltaTime = TimestampIts mod 65 536. + * + * @category: Basic information + * @revision: Created in V2.1.1 based on ETSI TS 103 900 [1] +*/ +GenerationDeltaTime ::= INTEGER { oneMilliSec(1) } (0..65535) + +/** + * This DE indicates the current status of a hard shoulder: whether it is available for special usage + * (e.g. for stopping or for driving) or closed for all vehicles. + * + * The value shall be set to: + * - 0 - `availableForStopping` - if the hard shoulder is available for stopping in e.g. emergency situations, + * - 1 - `closed` - if the hard shoulder is closed and cannot be occupied in any case, + * - 2 - `availableForDriving` - if the hard shoulder is available for regular driving. + * + * @category: Traffic information + * @revision: Description revised in V2.1.1 + */ +HardShoulderStatus ::= ENUMERATED { + availableForStopping (0), + closed (1), + availableForDriving (2) +} + +/** + * This DE represents the value of the sub cause code of the @ref CauseCode `hazardousLocation-AnimalOnTheRoad`. + * + * The value shall be set to: + * - 0 - `unavailable` - in case further detailed information on the animal(s) on the road is unavailable, + * - 1 - `wildAnimals` - in case wild animals of unknown size are present on the road, + * - 2 - `herdOfAnimals` - in case a herd of animals is present on the road, + * - 3 - `smallAnimals` - in case small size animals of unknown type are present on the road, + * - 4 - `largeAnimals` - in case large size animals of unknown type are present on the road, + * - 5 - `wildAnimalsSmall` - in case small size wild animal(s) are present on the road, + * - 6 - `wildAnimalsLarge` - in case large size wild animal(s) are present on the road, + * - 7 - `domesticAnimals` - in case domestic animal(s) of unknown size are detected on the road, + * - 8 - `domesticAnimalsSmall` - in case small size domestic animal(s) are present on the road, + * - 9 - `domesticAnimalsLarge` - in case large size domestic animal(s) are present on the road. + * - 10-255 - are reserved for future usage. + * + * @category: Traffic information + * @revision: V1.3.1, named values 5 to 9 added in V2.2.1 + */ +HazardousLocation-AnimalOnTheRoadSubCauseCode ::= INTEGER { + unavailable (0), + wildAnimals (1), + herdOfAnimals (2), + smallAnimals (3), + largeAnimals (4), + wildAnimalsSmall (5), + wildAnimalsLarge (6), + domesticAnimals (7), + domesticAnimalsSmall (8), + domesticAnimalsLarge (9) +} (0..255) + +/** + * This DE represents the sub cause code of the @ref CauseCode `hazardousLocation-DangerousCurve`. + * + * The value shall be set to: + * - 0 - `unavailable` - in case further detailed information on the dangerous curve is unavailable, + * - 1 - `dangerousLeftTurnCurve` - in case the dangerous curve is a left turn curve, + * - 2 - `dangerousRightTurnCurve` - in case the dangerous curve is a right turn curve, + * - 3 - `multipleCurvesStartingWithUnknownTurningDirection` - in case of multiple curves for which the starting curve turning direction is not known, + * - 4 - `multipleCurvesStartingWithLeftTurn` - in case of multiple curves starting with a left turn curve, + * - 5 - `multipleCurvesStartingWithRightTurn` - in case of multiple curves starting with a right turn curve. + * - 6-255 - are reserved for future usage. + * + * The definition of whether a curve is dangerous may vary according to region and according to vehicle types/mass + * and vehicle speed driving on the curve. This definition is out of scope of the present document. + * + * @category: Traffic information + * @revision: V1.3.1 + */ +HazardousLocation-DangerousCurveSubCauseCode ::= INTEGER { + unavailable (0), + dangerousLeftTurnCurve (1), + dangerousRightTurnCurve (2), + multipleCurvesStartingWithUnknownTurningDirection (3), + multipleCurvesStartingWithLeftTurn (4), + multipleCurvesStartingWithRightTurn (5) +} (0..255) + +/** + * This DE represents the value of the sub cause code of the @ref CauseCode `hazardousLocation-ObstacleOnTheRoad`. + * + * The value shall be set to: + * - 0 - `unavailable` - in case further detailed information on the detected obstacle is unavailable, + * - 1 - `shedLoad` - in case detected obstacle is large amount of obstacles (shedload), + * - 2 - `partsOfVehicles`- in case detected obstacles are parts of vehicles, + * - 3 - `partsOfTyres` - in case the detected obstacles are parts of tyres, + * - 4 - `bigObjects` - in case the detected obstacles are big objects, + * - 5 - `fallenTrees` - in case the detected obstacles are fallen trees, + * - 6 - `hubCaps` - in case the detected obstacles are hub caps, + * - 7 - `waitingVehicles`- in case the detected obstacles are waiting vehicles. + * - 8-255 - are reserved for future usage. + * + * @category: Traffic information + * @revision: V1.3.1 + */ +HazardousLocation-ObstacleOnTheRoadSubCauseCode ::= INTEGER { + unavailable (0), + shedLoad (1), + partsOfVehicles (2), + partsOfTyres (3), + bigObjects (4), + fallenTrees (5), + hubCaps (6), + waitingVehicles (7) +} (0..255) + +/** + * This DE represents the value of the sub cause code of the @ref CauseCode `hazardousLocation-SurfaceCondition`. + * +The value shall be set to: + * - 0 - `unavailable` - in case further detailed information on the road surface condition is unavailable, + * - 1 - `rockfalls` - in case rock falls are detected on the road surface, + * - 2 - `earthquakeDamage`- in case the road surface is damaged by earthquake, + * - 3 - `sewerCollapse` - in case of sewer collapse on the road surface, + * - 4 - `subsidence` - in case road surface is damaged by subsidence, + * - 5 - `snowDrifts` - in case road surface is damaged due to snow drift, + * - 6 - `stormDamage` - in case road surface is damaged by strong storm, + * - 7 - `burstPipe` - in case road surface is damaged due to pipe burst, + * - 8 - `volcanoEruption` - in case road surface is damaged due to volcano eruption, + * - 9 - `fallingIce` - in case road surface damage is due to falling ice, + * - 10 - `fire` - in case there is fire on or near to the road surface. + * - 11-255 - are reserved for future usage. + * + * @category: Traffic information + * @revision: V1.3.1 + */ +HazardousLocation-SurfaceConditionSubCauseCode ::= INTEGER { + unavailable (0), + rockfalls (1), + earthquakeDamage (2), + sewerCollapse (3), + subsidence (4), + snowDrifts (5), + stormDamage (6), + burstPipe (7), + volcanoEruption (8), + fallingIce (9), + fire (10) +} (0..255) + +/** + * This DE indicates the heading confidence value which represents the estimated absolute accuracy of a heading value with a confidence level of 95 %. + * + * The value shall be set to: + * - `n` (`n > 0` and `n < 126`) if the confidence value is equal to or less than n x 0,1 degree and more than (n-1) x 0,1 degree, + * - `126` if the confidence value is out of range, i.e. greater than 12,5 degrees, + * - `127` if the confidence value information is not available. + * + * @note: The fact that a value is received with confidence value set to `unavailable(127)` can be caused by several reasons, + * such as: + * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor, + * - the sensor cannot calculate the accuracy due to lack of variables, or + * - there has been a vehicle bus (e.g. CAN bus) error. + * In all 3 cases above, the heading value may be valid and used by the application. + * + * @note: If a heading value is received and its confidence value is set to `outOfRange(126)`, it means that the + * heading value is not valid and therefore cannot be trusted. Such value is not useful for the application. + * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref Wgs84AngleConfidence instead. + * + * @unit: 0,1 degree + * @category: GeoReference information + * @revision: Description revised in V2.1.1 + */ +HeadingConfidence ::= INTEGER { + outOfRange (126), + unavailable (127) +} (1..127) + +/** + * This DE represents the orientation of the horizontal velocity vector with regards to the WGS84 north. + * When the information is not available, the DE shall be set to 3 601. The value 3600 shall not be used. + * + * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref Wgs84AngleValue instead. + * + * Unit: 0,1 degree + * Categories: GeoReference information + * @revision: Description revised in V2.1.1 (usage of value 3600 specified) +*/ +HeadingValue ::= INTEGER { + wgs84North (0), + wgs84East (900), + wgs84South (1800), + wgs84West (2700), + doNotUse (3600), + unavailable (3601) +} (0..3601) + +/** + * This DE represents the height of the left or right longitude carrier of vehicle from base to top (left or right carrier seen from vehicle + * rear to front). + * + * The value shall be set to: + * - `n` (`n >= 1` and `n < 99`) if the height information is equal to or less than n x 0,01 metre and more than (n-1) x 0,01 metre, + * - `99` if the height is out of range, i.e. equal to or greater than 0,98 m, + * - `100` if the height information is not available. + * + * @unit 0,01 metre + * @category Vehicle information + * @revision: Description revised in V2.1.1 (the definition of 99 has changed slightly) + */ +HeightLonCarr ::= INTEGER { + outOfRange(99), + unavailable(100) +} (1..100) + +/** + * This DE represents the value of the sub cause code of the @ref CauseCode `humanPresenceOnTheRoad`. + * + * The value shall be set to: + * - 0 - `unavailable` - in case further detailed information abou the human presence on the road is unavailable, + * - 1 - `childrenOnRoadway` - in case children are present on the road, + * - 2 - `cyclistOnRoadway` - in case cyclist(s) are present on the road, + * - 3 - `motorcyclistOnRoadway` - in case motorcyclist(s) are present on the road, + * - 4 - `pedestrian` - in case pedestrian(s) of any type are present on the road, + * - 5 - `ordinary-pedestrian` - in case pedestrian(s) to which no more-specific profile applies are present on the road, + * - 6 - `road-worker` - in case pedestrian(s) with the role of a road worker applies are present on the road, + * - 7 - `first-responder` - in case pedestrian(s) with the role of a first responder applies are present on the road, + * - 8 - `lightVruVehicle - in case light vru vehicle(s) of any type are present on the road, + * - 9 - `bicyclist ` - in case cycle(s) and their bicyclist(s) are present on the road, + * - 10 - `wheelchair-user` - in case wheelchair(s) and their user(s) are present on the road, + * - 11 - `horse-and-rider` - in case horse(s) and rider(s) are present on the road, + * - 12 - `rollerskater` - in case rolleskater(s) and skater(s) are present on the road, + * - 13 - `e-scooter` - in case e-scooter(s) and rider(s) are present on the road, + * - 14 - `personal-transporter` - in case personal-transporter(s) and rider(s) are present on the road, + * - 15 - `pedelec` - in case pedelec(s) and rider(s) are present on the road, + * - 16 - `speed-pedelec` - in case speed-pedelec(s) and rider(s) are present on the road, + * - 17 - `ptw` - in case powered-two-wheeler(s) of any type are present on the road, + * - 18 - `moped` - in case moped(s) and rider(s) are present on the road, + * - 19 - `motorcycle` - in case motorcycle(s) and rider(s) are present on the road, + * - 20 - `motorcycle-and-sidecar-right` - in case motorcycle(s) with sidecar(s) on the right and rider are present on the road, + * - 21 - `motorcycle-and-sidecar-left` - in case motorcycle(s) with sidecar(s) on the left and rider are present on the road. + * - 22-255 - are reserved for future usage. + * + * @category: Traffic information + * @revision: editorial revision in V2.1.1, named values 4-21 added in V2.2.1 + */ +HumanPresenceOnTheRoadSubCauseCode ::= INTEGER { + unavailable (0), + childrenOnRoadway (1), + cyclistOnRoadway (2), + motorcyclistOnRoadway (3), + pedestrian (4), + ordinary-pedestrian (5), + road-worker (6), + first-responder (7), + lightVruVehicle (8), + bicyclist (9), + wheelchair-user (10), + horse-and-rider (11), + rollerskater (12), + e-scooter (13), + personal-transporter (14), + pedelec (15), + speed-pedelec (16), + ptw (17), + moped (18), + motorcycle (19), + motorcycle-and-sidecar-right (20), + motorcycle-and-sidecar-left (21) +} (0..255) + +/** + * This DE represents the value of the sub cause codes of the @ref CauseCode "humanProblem". + * + * The value shall be set to: + * - 0 - `unavailable` - in case further detailed information on human health problem is unavailable, + * - 1 - `glycemiaProblem`- in case human problem is due to glycaemia problem, + * - 2 - `heartProblem` - in case human problem is due to heart problem. + * - 3-255 - reserved for future usage. + * + * @category: Traffic information + * @revision: V1.3.1 + */ +HumanProblemSubCauseCode ::= INTEGER { + unavailable (0), + glycemiaProblem (1), + heartProblem (2) +} (0..255) + +/** + * This DE is a general identifier. + * + * @category: Basic information + * @revision: Created in V2.1.1 +*/ +Identifier1B ::= INTEGER (0..255) + +/** + * This DE is a general identifier. + * + * @category: Basic information + * @revision: Created in V2.1.1 +*/ +Identifier2B ::= INTEGER (0..65535) + +/** + * This DE represents the value of the sub cause codes of the @ref CauseCode `impassability` + * + * The value shall be set to: + * - 0 `unavailable` - in case further detailed information about the unmanaged road blockage is unavailable, + * - 1 `flooding ` - in case the road is affected by flooding, + * - 2 `dangerOfAvalanches` - in case the road is at risk of being affected or blocked by avalanches, + * - 3 `blastingOfAvalanches` - in case there is an active blasting of avalanches on or near the road, + * - 4 `landslips` - in case the road is affected by landslips, + * - 5 `chemicalSpillage` - in case the road is affected by chemical spillage, + * - 6 `winterClosure` - in case the road is impassable due to a winter closure. + * - 7 `sinkhole` - in case the road is impassable due to large holes in the road surface. + * - 8 `earthquakeDamage` - in case the road is obstructed or partially obstructed because of damage caused by an earthquake. + * - 9 `fallenTrees` - in case the road is obstructed or partially obstructed by one or more fallen trees. + * - 10 `rockfalls` - in case the road is obstructed or partially obstructed due to fallen rocks. + * - 11 `sewerOverflow` - in case the road is obstructed or partially obstructed by overflows from one or more sewers. + * - 12 `stormDamage` - in case the road is obstructed or partially obstructed by debris caused by strong winds. + * - 13 `subsidence` - in case the road surface has sunken or collapsed in places. + * - 14 `burstPipe` - in case the road surface has sunken or collapsed in places due to burst pipes. + * - 15 `burstWaterMain` - in case the road is obstructed due to local flooding and/or subsidence. + * - 16 `fallenPowerCables` - in case the road is obstructed or partly obstructed by one or more fallen power cables. + * - 17 `snowDrifts` - in case the road is obstructed or partially obstructed by snow drifting in progress or patches of deep snow due to earlier drifting. + * - 15-255 - are reserved for future usage. + * + * @category: Traffic information + * @revision: Created in V2.2.1 +*/ +ImpassabilitySubCauseCode ::= INTEGER { + unavailable (0), + flooding (1), + dangerOfAvalanches (2), + blastingOfAvalanches (3), + landslips (4), + chemicalSpillage (5), + winterClosure (6), + sinkhole (7), + earthquakeDamage (8), + fallenTrees (9), + rockfalls (10), + sewerOverflow (11), + stormDamage (12), + subsidence (13), + burstPipe (14), + burstWaterMain (15), + fallenPowerCables (16), + snowDrifts (17) +} (0..255) + +/** + * This DE represents the quality level of provided information. + * + * The value shall be set to: + * - `0` if the information is unavailable, + * - `1` if the quality level is lowest, + * - `n` (`n > 1` and `n < 7`) if the quality level is n, + * - `7` if the quality level is highest. + * + * @note: Definition of quality level is out of scope of the present document. + * @category: Basic information + * @revision: Editorial update in V2.1.1 + */ +InformationQuality ::= INTEGER (0..7) + +/** + * This DE defines the type of an interference management zone, so that an ITS-S can + * assert the actions to do while passing by such zone (e.g. reduce the transmit power in case of a DSRC tolling station). + * It is an extension of the type @ref ProtectedZoneType. + * + * The value shall be set to: + * - 0 - `permanentCenDsrcTolling` - as specified in ETSI TS 102 792 [14], + * - 1 - `temporaryCenDsrcTolling` - as specified in ETSI TS 102 792 [14], + * - 2 - `unavailable` - default value. Set to 2 for backwards compatibility with DSRC tolling, + * - 3 - `urbanRail` - as specified in ETSI TS 103 724 [13], clause 7, + * - 4 - `satelliteStation` - as specified in ETSI TS 103 724 [13], clause 7, + * - 5 - `fixedLinks` - as specified in ETSI TS 103 724 [13], clause 7. + * + * @category: Communication information + * @revision: Created in V2.1.1 + */ +InterferenceManagementZoneType ::= ENUMERATED { + permanentCenDsrcTolling (0), + temporaryCenDsrcTolling (1), + unavailable (2), + urbanRail (3), + satelliteStation (4), + fixedLinks (5), + ... +} + +/** + * This DE represents the vehicle type according to ISO 3833 [22]. + * A "term No" refers to the number of the corresponding term and its definition in ISO 3833. + * + * The value shall be set to: + * - 0 - `passengerCar` - term No 3.1.1 + * - 1 - `saloon` - term No 3.1.1.1 (sedan) + * - 2 - `convertibleSaloon` - term No 3.1.1.2 + * - 3 - `pullmanSaloon` - term No 3.1.1.3 + * - 4 - `stationWagon` - term No 3.1.1.4 + * - 5 - `truckStationWagon` - term No 3.1.1.4.1 + * - 6 - `coupe` - term No 3.1.1.5 (coupe) + * - 7 - `convertible` - term No 3.1.1.6 (open tourer, roadstar, spider) + * - 8 - `multipurposePassengerCar` - term No 3.1.1.7 + * - 9 - `forwardControlPassengerCar`- term No 3.1.1.8 + * - 10 - `specialPassengerCar` - term No 3.1.1.9 + * - 11 - `bus` - term No 3.1.2 + * - 12 - `minibus` - term No 3.1.2.1 + * - 13 - `urbanBus` - term No 3.1.2.2 + * - 14 - `interurbanCoach` - term No 3.1.2.3 + * - 15 - `longDistanceCoach` - term No 3.1.2.4 + * - 16 - `articulatedBus` - term No 3.1.2.5 + * - 17 - `trolleyBus ` - term No 3.1.2.6 + * - 18 - `specialBus` - term No 3.1.2.7 + * - 19 - `commercialVehicle` - term No 3.1.3 + * - 20 - `specialCommercialVehicle` - term No 3.1.3.1 + * - 21 - `specialVehicle` - term No 3.1.4 + * - 22 - `trailingTowingVehicle` - term No 3.1.5 (draw-bar tractor) + * - 23 - `semiTrailerTowingVehicle` - term No 3.1.6 (fifth wheel tractor) + * - 24 - `trailer` - term No 3.2.1 + * - 25 - `busTrailer` - term No 3.2.1.1 + * - 26 - `generalPurposeTrailer` - term No 3.2.1.2 + * - 27 - `caravan` - term No 3.2.1.3 + * - 28 - `specialTrailer` - term No 3.2.1.4 + * - 29 - `semiTrailer` - term No 3.2.2 + * - 30 - `busSemiTrailer` - term No 3.2.2.1 + * - 31 - `generalPurposeSemiTrailer` - term No 3.2.2.2 + * - 32 - `specialSemiTrailer` - term No 3.2.2.3 + * - 33 - `roadTrain` - term No 3.3.1 + * - 34 - `passengerRoadTrain` - term No 3.3.2 + * - 35 - `articulatedRoadTrain` - term No 3.3.3 + * - 36 - `doubleRoadTrain` - term No 3.3.4 + * - 37 - `compositeRoadTrain` - term No 3.3.5 + * - 38 - `specialRoadTrain` - term No 3.3.6 + * - 39 - `moped` - term No 3.4 + * - 40 - `motorCycle` - term No 3.5 + * - 41-255 - reserved for future use + * + * @category: Vehicle information + * @revision: Created in V2.1.1 + */ +Iso3833VehicleType ::= INTEGER { + passengerCar (0), + saloon (1), + convertibleSaloon (2), + pullmanSaloon (3), + stationWagon (4), + truckStationWagon (5), + coupe (6), + convertible (7), + multipurposePassengerCar (8), + forwardControlPassengerCar (9), + specialPassengerCar (10), + bus (11), + minibus (12), + urbanBus (13), + interurbanCoach (14), + longDistanceCoach (15), + articulatedBus (16), + trolleyBus (17), + specialBus (18), + commercialVehicle (19), + specialCommercialVehicle (20), + specialVehicle (21), + trailingTowingVehicle (22), + semiTrailerTowingVehicle (23), + trailer (24), + busTrailer (25), + generalPurposeTrailer (26), + caravan (27), + specialTrailer (28), + semiTrailer (29), + busSemiTrailer (30), + generalPurposeSemiTrailer (31), + specialSemiTrailer (32), + roadTrain (33), + passengerRoadTrain (34), + articulatedRoadTrain (35), + doubleRoadTrain (36), + compositeRoadTrain (37), + specialRoadTrain (38), + moped (39), + motorCycle (40) + } (0..255) + +/** + * This DE represent the identifier of an organization according to the applicable registry. + * + * @category: Basic information + * @revision: Created in V2.2.1 based on ISO 14816 [23] +*/ +IssuerIdentifier ::= INTEGER(0 .. 16383) + +/** + * This DE represents the identifier of the IVIM. + * + * @category: Basic information + * @revision: Created in V2.2.1 based on ETSI TS 103 301 [15] +*/ +IviIdentificationNumber::= INTEGER(1..32767,..., 8388607) + +/** + * This DE indicates a transversal position on the carriageway at a specific longitudinal position, in resolution of lanes of the carriageway. + * + * For right-hand traffic roads, the value shall be set to: + * - `-1` if the position is off, i.e. besides the road, + * - `0` if the position is on the inner hard shoulder, i.e. the hard should adjacent to the leftmost lane, + * - `n` (`n > 0` and `n < 14`), if the position is on the n-th driving lane counted from the leftmost lane to the rightmost lane of a specific traffic direction, + * - `14` if the position is on the outer hard shoulder, i.e. the hard should adjacent to rightmost lane (if present). + * + * For left-hand traffic roads, the value shall be set to: + * - `-1` if the position is off, i.e. besides the road, + * - `0` if the position is on the inner hard shoulder, i.e. the hard should adjacent to the rightmost lane, + * - `n` (`n > 0` and `n < 14`), if the position is on the n-th driving lane counted from the rightmost lane to the leftmost lane of a specific traffic direction, + * - `14` if the position is on the outer hard shoulder, i.e. the hard should adjacent to leftmost lane (if present). + * + * @note: in practice this means that the position is counted from "inside" to "outside" no matter which traffic practice is used. + * + * If the carriageway allows only traffic in one direction (e.g. in case of dual or multiple carriageway roads), the position is counted from the physical border of the carriageway. + * If the carriageway allows traffic in both directions and there is no physical delimitation between traffic directions (e.g. on a single carrriageway road), + * the position is counted from the legal (i.e. optical) separation between traffic directions (horizontal marking). + * + * If not indicated otherwise (by lane markings or traffic signs), the legal separation on carriageways allowing traffic on both directions is identified as follows: + * - If the total number of lanes N is even, the lanes are divided evenly between the traffic directions starting from the outside of the carriageway on both sides and the + * imaginary separation between traffic directions is on the border between the even number of lanes N/2. + * - If the total number of lanes N is odd, the lanes are divided evenly between traffic direction starting from the outside of the carriageway on both sides. + * The remaining middle lane is assigned to both traffic directions as innermost lane. + * + * @category: Road topology information + * @revision: Description of the legal separation of carriageways added in V2.2.1 +*/ +LanePosition ::= INTEGER { + offTheRoad (-1), + innerHardShoulder (0), + outerHardShoulder (14) +} (-1..14) + +/** + * This DE represents the type of a lane. + * + * The value shall be set to: + * - 0 - `traffic` - Lane dedicated to the movement of vehicles, + * - 1 - `through` - Lane dedicated to the movement of vehicles travelling ahead and not turning, + * - 2 - `reversible` - Lane where the direction of traffic can be changed to match the peak flow, + * - 3 - `acceleration` - Lane that allows vehicles entering a road to accelerate to the speed of through traffic before merging with it, + * - 4 - `deceleration` - Lane that allows vehicles exiting a road to decelerate before leaving it, + * - 5 - `leftHandTurning` - Lane reserved for slowing down and making a left turn, so as not to disrupt traffic, + * - 6 - `rightHandTurning` - Lane reserved for slowing down and making a right turn so as not to disrupt traffic, + * - 7 - `dedicatedVehicle` - Lane dedicated to movement of motor vehicles with specific characteristics, such as heavy goods vehicles, etc., + * - 8 - `bus` - Lane dedicated to movement of buses providing public transport, + * - 9 - `taxi` - Lane dedicated to movement of taxis, + * - 10 - `hov` - Carpooling lane or high occupancy vehicle lane, + * - 11 - `hot` - High occupancy vehicle lanes that is allowed to be used without meeting the occupancy criteria by paying a toll, + * - 12 - `pedestrian` - Lanes dedicated to pedestrians such as pedestrian sidewalk paths, + * - 13 - `cycleLane` - Lane dedicated to exclusive or preferred use by bicycles, + * - 14 - `median` - Lane not dedicated to movement of vehicles but representing a median / central reservation such as the central median, + separating the two directional carriageways of the highway, + * - 15 - `striping` - Lane not dedicated to movement of vehicles but covered with roadway markings, + * - 16 - `trackedVehicle` - Lane dedicated to movement of trains, trams and trolleys, + * - 17 - `parking` - Lanes dedicated to vehicles parking, stopping and loading lanes, + * - 18 - `emergency` - Lane dedicated to vehicles in breakdown or to emergency vehicles also called hard shoulder, + * - 19 - `verge` - Lane representing the verge, i.e. a narrow strip of grass or plants and sometimes also trees located between + the road surface edge and the boundary of a road, + * - 20 `minimumRiskManoeuvre` - Lane dedicated to automated vehicles making a minimum risk manoeuvre, + * - 21 `separatedCycleLane` - Lane dedicated to exclusive or preferred use by bicycles that is phyisically separated from the vehicle-traffic lanes, e.g. by a verge. + * - values 22 to 30 reserved for future use. + * + * @category: Road topology information + * @revision: Created in V2.1.1, named value 21 added in V2.2.1 +*/ +LaneType::= INTEGER{ + traffic (0), + through (1), + reversible (2), + acceleration (3), + deceleration (4), + leftHandTurning (5), + rightHandTurning (6), + dedicatedVehicle (7), + bus (8), + taxi (9), + hov (10), + hot (11), + pedestrian (12), + cycleLane (13), + median (14), + striping (15), + trackedVehicle (16), + parking (17), + emergency (18), + verge (19), + minimumRiskManoeuvre (20), + exclusiveCycleLane (21), + unknown (31) +}(0..31) + +/** + * This DE represents the width of a lane measured at a defined position. + * + * The value shall be set to: + * - `n` (`n > 0` and `n < 1022`) if the lane width information is equal to or less than n x 0,01 metre and more than (n-1) x 0,01 metre, + * - `1022` if the lane width is out of range, i.e. greater than 10,21 m, + * - `1023` if the lane width information is not available. + * + * The value 0 shall not be used. + * + * @unit: 0,01 metre + * @category: Road topology information + * @revision: Created in V2.1.1 + */ +LaneWidth::= INTEGER (0..1023) + +/** + * This DE represents the absolute geographical latitude in a WGS84 coordinate system, providing a range of 90 degrees in north or + * in south hemisphere. + * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE. + * + * The value shall be set to: + * - `n` (`n >= -900 000 000` and `n < 0`) x 10^-7 degree, i.e. negative values for latitudes south of the Equator, + * - `0` is used for the latitude of the equator, + * - `n` (`n > 0` and `n < 900 000 001`) x 10^-7 degree, i.e. positive values for latitudes north of the Equator, + * - `900 000 001` when the information is unavailable. + * + * @unit: 10^-7 degree + * @category: GeoReference information + * @revision: Editorial update in V2.1.1 + */ +Latitude ::= INTEGER { + unavailable(900000001) +} (-900000000..900000001) + +/** + * This DE represents the vehicle acceleration at lateral direction in the centre of the mass of the empty vehicle. + * It corresponds to the vehicle coordinate system as specified in ISO 8855 [21]. + * + * The value shall be set to: + * - `-160` for acceleration values equal to or less than -16 m/s^2, + * - `n` (`n > -160` and `n <= 0`) to indicate that the vehicle is accelerating towards the right side with regards to the vehicle orientation + * with acceleration equal to or less than n x 0,1 m/s^2 and greater than (n-1) x 0,1 m/s^2, + * - `n` (`n > 0` and `n < 160`) to indicate that the vehicle is accelerating towards the left hand side with regards to the vehicle orientation + with acceleration equal to or less than n x 0,1 m/s^2 and greater than (n-1) x 0,1 m/s^2, + * - `160` for acceleration values greater than 15,9 m/s^2, + * - `161` when the data is unavailable. + * + * @note: the empty load vehicle is defined in ISO 1176 [8], clause 4.6. + * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationValue instead. + * + * @unit: 0,1 m/s^2 + * @category: Vehicle information + * @revision: Description updated in V2.1.1 (the meaning of 160 has changed slightly). + */ +LateralAccelerationValue ::= INTEGER { + negativeOutOfRange (-160), + positiveOutOfRange (160), + unavailable (161) +} (-160 .. 161) + +/** + * This DE indicates the status of light bar and any sort of audible alarm system besides the horn. + * This includes various common sirens as well as backup up beepers and other slow speed manoeuvring alerts. + * + * The corresponding bit shall be set to 1 under the following conditions: + * - 0 - `lightBarActivated` - when the light bar is activated, + * - 1 - `sirenActivated` - when the siren is activated. + * + * Otherwise, it shall be set to 0. + * + * @category Vehicle information + * @revision: Editorial update in V2.1.1 + */ +LightBarSirenInUse ::= BIT STRING { + lightBarActivated (0), + sirenActivated (1) +} (SIZE(2)) + +/** + * This DE represents the absolute geographical longitude in a WGS84 coordinate system, providing a range of 180 degrees + * to the east or to the west of the prime meridian. + * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE. + * + * The value shall be set to: + * - `n` (`n > -1 800 000 000` and `n < 0`) x 10^-7 degree, i.e. negative values for longitudes to the west, + * - `0` to indicate the prime meridian, + * - `n` (`n > 0` and `n < 1 800 000 001`) x 10^-7 degree, i.e. positive values for longitudes to the east, + * - `1 800 000 001` when the information is unavailable. + * + * The value -1 800 000 000 shall not be used. + * + * @unit: 10^-7 degree + * @category: GeoReference information + * @revision: Description revised in V2.1.1 + */ +Longitude ::= INTEGER { + valueNotUsed (-1800000000), + unavailable (1800000001) +} (-1800000000..1800000001) + + /** + * This DE represents the vehicle acceleration at longitudinal direction in the centre of the mass of the empty vehicle. + * The value shall be provided in the vehicle coordinate system as defined in ISO 8855 [21], clause 2.11. + * + * The value shall be set to: + * - `-160` for acceleration values equal to or less than -16 m/s^2, + * - `n` (`n > -160` and `n <= 0`) to indicate that the vehicle is braking with acceleration equal to or less than n x 0,1 m/s^2, and greater than (n-1) x 0,1 m/s^2 + * - `n` (`n > 0` and `n < 160`) to indicate that the vehicle is accelerating with acceleration equal to or less than n x 0,1 m/s^2, and greater than (n-1) x 0,1 m/s^2, + * - `160` for acceleration values greater than 15,9 m/s^2, + * - `161` when the data is unavailable. + * + * This acceleration is along the tangent plane of the road surface and does not include gravity components. + * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationValue instead. + * + * @note: The empty load vehicle is defined in ISO 1176 [8], clause 4.6. + * @unit: 0,1 m/s^2 + * @category: Vehicle information + * @revision: description revised in V2.1.1 (the meaning of 160 has changed slightly). T + */ +LongitudinalAccelerationValue::= INTEGER { + negativeOutOfRange (-160), + positiveOutOfRange (160), + unavailable (161) +} (-160 .. 161) + +/** + * This DE represents the longitudinal offset of a map-matched position along a matched lane, beginning from the lane's starting point. + * + * The value shall be set to: + * - `n` (`n >= 0` and `n < 32766`) if the longitudinal offset information is equal to or less than n x 0,1 metre and more than (n-1) x 0,1 metre, + * - `32 766` if the longitudinal offset is out of range, i.e. greater than 3276,5 m, + * - `32 767` if the longitudinal offset information is not available. + * + * @unit 0,1 metre + * @category: GeoReference information + * @revision: Created in V2.1.1 +*/ +LongitudinalLanePositionValue ::= INTEGER { + outOfRange(32766), + unavailable(32767) +}(0..32767) + +/** + * This DE indicates the longitudinal lane position confidence value which represents the estimated accuracy of longitudinal lane position measurement with a default confidence level of 95 %. + * If required, the confidence level can be defined by the corresponding standards applying this DE. + * + * The value shall be set to: + * - `n` (`n > 0` and `n < 1 022`) if the confidence value is equal to or less than n x 0,1 m, and more than (n-1) x 0,1 m, + * - `1 022` if the confidence value is out of range i.e. greater than 102,1 m, + * - `1 023` if the confidence value is unavailable. + * + * @unit 0,1 metre + * @category: GeoReference information + * @revision: Created in V2.1.1 +*/ +LongitudinalLanePositionConfidence ::= INTEGER { + outOfRange (1022), + unavailable (1023) +} (0..1023) + +/** + * This DE indicates the components of an @ref PerceivedObject that are included in the @ref LowerTriangularPositiveSemidefiniteMatrix. + * + * The corresponding bit shall be set to 1 if the component is included: + * - 0 - `xCoordinate` - when the component xCoordinate of the component @ref CartesianPosition3dWithConfidence is included, + * - 1 - `yCoordinate` - when the component yCoordinate of the component @ref CartesianPosition3dWithConfidence is included, + * - 2 - `zCoordinate` - when the component zCoordinate of the component @ref CartesianPosition3dWithConfidence is included, + * - 3 - `xVelocityOrVelocityMagnitude` - when the component xVelocity of the component @ref VelocityCartesian or the component VelocityMagnitude of the component @ref VelocityPolarWithZ is included, + * - 4 - `yVelocityOrVelocityDirection` - when the component yVelocity of the component @ref VelocityCartesian or the component VelocityDirection of the component @ref VelocityPolarWithZ is included, + * - 5 - `zVelocity` - when the component zVelocity of the component @ref VelocityCartesian or of the component @ref VelocityPolarWithZ is included, + * - 6 - `xAccelOrAccelMagnitude` - when the component xAcceleration of the component @ref AccelerationCartesian or the component AccelerationMagnitude of the component @ref AccelerationPolarWithZ is included, + * - 7 - `yAccelOrAccelDirection` - when the component yAcceleration of the component @ref AccelerationCartesian or the component AccelerationDirection of the component @ref AccelerationPolarWithZ is included, + * - 8 - `zAcceleration` - when the component zAcceleration of the component @ref AccelerationCartesian or of the component @ref AccelerationPolarWithZ is included, + * - 9 - `zAngle` - when the component zAngle is included, + * - 10 - `yAngle` - when the component yAngle is included, + * - 11 - `xAngle` - when the component xAngle is included, + * - 12 - `zAngularVelocity` - when the component zAngularVelocity is included. + * + * Otherwise, it shall be set to 0. + * + * @category: Sensing information + * @revision: Created in V2.1.1 + */ +MatrixIncludedComponents::= BIT STRING{ + xPosition (0), + yPosition (1), + zPosition (2), + xVelocityOrVelocityMagnitude (3), + yVelocityOrVelocityDirection (4), + zSpeed (5), + xAccelOrAccelMagnitude (6), + yAccelOrAccelDirection (7), + zAcceleration (8), + zAngle (9), + yAngle (10), + xAngle (11), + zAngularVelocity (12) +} (SIZE(13,...)) + +/** + * This DE represents the type of facility layer message. + * + * The value shall be set to: + * - 1 - `denm` - for Decentralized Environmental Notification Message (DENM) as specified in ETSI EN 302 637-3 [2], + * - 2 - `cam` - for Cooperative Awareness Message (CAM) as specified in ETSI EN 302 637-2 [1], + * - 3 - `poim` - for Point of Interest message as specified in ETSI TS 103 916 [9], + * - 4 - `spatem` - for Signal Phase And Timing Extended Message (SPATEM) as specified in ETSI TS 103 301 [15], + * - 5 - `mapem` - for MAP Extended Message (MAPEM) as specified in ETSI TS 103 301 [15], + * - 6 - `ivim` - for in Vehicle Information Message (IVIM) as specified in ETSI TS 103 301 [15], + * - 7 - `rfu1` - reserved for future usage, + * - 8 - `rfu2` - reserved for future usage, + * - 9 - `srem` - for Signal Request Extended Message as specified in ETSI TS 103 301 [15], + * - 10 - `ssem` - for Signal request Status Extended Message as specified in ETSI TS 103 301 [15], + * - 11 - `evcsn` - for Electrical Vehicle Charging Spot Notification message as specified in ETSI TS 101 556-1 [9], + * - 12 - `saem` - for Services Announcement Extended Message as specified in ETSI EN 302 890-1 [17], + * - 13 - `rtcmem` - for Radio Technical Commission for Maritime Services Extended Message (RTCMEM) as specified in ETSI TS 103 301 [15], + * - 14 - `cpm` - reserved for Collective Perception Message (CPM), + * - 15 - `imzm` - for Interference Management Zone Message (IMZM) as specified in ETSI TS 103 724 [13], + * - 16 - `vam` - for Vulnerable Road User Awareness Message as specified in ETSI TS 130 300-3 [12], + * - 17 - `dsm` - reserved for Diagnosis, logging and Status Message, + * - 18 - `pcim` - reserved for Parking Control Infrastructure Message, + * - 19 - `pcvm` - reserved for Parking Control Vehicle Message, + * - 20 - `mcm` - reserved for Manoeuvre Coordination Message, + * - 21 - `pam` - reserved for Parking Availability Message, + * - 22-255 - reserved for future usage. + * + * @category: Communication information + * @revision: Created in V2.1.1 from @ref ItsPduHeader. Value 3 re-assigned to poim and value 7 and 8 reserved in V2.2.1 + */ +MessageId::= INTEGER { + denm (1), + cam (2), + poim (3), + spatem (4), + mapem (5), + ivim (6), + rfu1 (7), + rfu2 (8), + srem (9), + ssem (10), + evcsn (11), + saem (12), + rtcmem (13), + cpm (14), + imzm (15), + vam (16), + dsm (17), + pcim (18), + pcvm (19), + mcm (20), + pam (21) +} (0..255) + +/** + * This DE represents the number of occupants in a vehicle. + * + * The value shall be set to: + * - `n` (`n >= 0` and `n < 126`) for the number n of occupants, + * - `126` for values equal to or higher than 125, + * - `127` if information is not available. + * + * @unit: 1 person + * @category: Vehicle information + * @revision: Editorial update in V2.1.1 + */ +NumberOfOccupants ::= INTEGER { + outOfRange (126), + unavailable (127) +} (0 .. 127) + +/** + * This DE represents a single-value indication about the overall information quality of a perceived object. + * + * The value shall be set to: + * - `0` : if there is no confidence in detected object, e.g. for "ghost"-objects or if confidence could not be computed, + * - `n` (`n > 0` and `n < 15`) : for the applicable confidence value, + * - `15` : if there is full confidence in the detected Object. + * + * @unit n/a + * @category: Sensing information + * @revision: Created in V2.1.1 +*/ +ObjectPerceptionQuality ::= INTEGER { + noConfidence (0), + fullConfidence (15) +} (0..15) + +/** + * This DE represents a single dimension of an object. + * + * The value shall be set to: + * - `n` (`n > 0` and `n < 255`) if the accuracy is equal to or less than n x 0,1 m, and more than (n-1) x 0,1 m, + * - `255` if the accuracy is out of range i.e. greater than 25,4 m, + * - `256` if the data is unavailable. + * + * @unit 0,1 m + * @category: Basic information + * @revision: Created in V2.1.1 +*/ +ObjectDimensionValue ::= INTEGER { + outOfRange (255), + unavailable (256) +}(1..256) + +/** + * This DE indicates the object dimension confidence value which represents the estimated absolute accuracy of an object dimension value with a default confidence level of 95 %. + * If required, the confidence level can be defined by the corresponding standards applying this DE. + * + * The value shall be set to: + * - `n` (`n > 0` and `n < 31`) if the confidence value is equal to or less than n x 0,1 metre, and more than (n-1) x 0,1 metre, + * - `31` if the confidence value is out of range i.e. greater than 3,0 m, + * - `32` if the confidence value is unavailable. + * + * @unit 0,1 m + * @category: Sensing information + * @revision: Created in V2.1.1 +*/ +ObjectDimensionConfidence ::= INTEGER { + outOfRange (31), + unavailable (32) +} (1..32) + +/** + * This DE indicates the face or part of a face of a solid object. + * + * The object is modelled as a rectangular prism that has a length that is greater than its width, with the faces of the object being defined as: + * - front: the face defined by the prism's width and height, and which is the first face in direction of longitudinal movement of the object, + * - back: the face defined by the prism's width and height, and which is the last face in direction of longitudinal movement of the object, + * - side: the faces defined by the prism's length and height with "left" and "right" defined by looking at the front face and "front" and "back" defined w.r.t to the front and back faces. + * + * Note: It is permissible to derive the required object dimensions and orientation from models to provide a best guess. + * + * @category: Basic information + * @revision: V2.1.1 +*/ +ObjectFace ::= ENUMERATED { + front (0), + sideLeftFront (1), + sideLeftBack (2), + sideRightFront (3), + sideRightBack (4), + back (5) +} + +/** + * This DE represents a time period to describe the opening days and hours of a Point of Interest. + * (for example local commerce). + * + * @category: Basic information + * @revision: V1.3.1 + */ +OpeningDaysHours ::= UTF8String + +/** + * The DE represents an ordinal number that indicates the position of an element in a set. + * + * @category: Basic information + * @revision: Created in V2.1.1 +*/ +OrdinalNumber1B ::= INTEGER(0..255) + + +/** + * The DE represents an ordinal number that indicates the position of an element in a set. + * + * @category: Basic information + * @revision: Created in V2.1.1 +*/ +OrdinalNumber3b ::= INTEGER(1..8) + +/** + * This DE indicates the subclass of a detected object for @ref ObjectClass "otherSubclass". + * + * The value shall be set to: + * - `0` - unknown - if the subclass is unknown. + * - `1` - singleObject - if the object is a single object. + * - `2` - multipleObjects - if the object is a group of multiple objects. + * - `3` - bulkMaterial - if the object is a bulk material. + * + * @category: Sensing information + * @revision: Created in V2.1.1 + */ +OtherSubClass ::= INTEGER { + unknown (0), + singleObject (1), + multipleObjects (2), + bulkMaterial (3) +} (0..255) + +/** + * This DE represents the recorded or estimated travel time between a position and a predefined reference position. + * + * @unit 0,01 second + * @category: Basic information + * @revision: V1.3.1 + */ +PathDeltaTime ::= INTEGER (1..65535, ...) + +/** + * This DE indicates an ordinal number that represents the position of a component in the list of @ref Traces or @ref TracesExtended. + * + * The value shall be set to: + * - `0` - noPath - if no path is identified + * - `1..7` - for instances 1..7 of @ref Traces + * - `8..14` - for instances 1..7 of @ref TracesExtended. + * + * @category: Road topology information + * @revision: Created in V2.2.1 +*/ +PathId ::= INTEGER { + noPath (0), + path1 (1), + path2 (2), + path3 (3), + path4 (4), + path5 (5), + path6 (6), + path7 (7), + pathExtended1 (8), + pathExtended2 (9), + pathExtended3 (10), + pathExtended4 (11), + pathExtended5 (12), + pathExtended6 (13), + pathExtended7 (14) +} (0..14) + +/** + * This DE denotes the ability of an ITS-S to provide up-to-date information. + * A performance class value is used to describe age of data. The exact values are out of scope of the present document. + * + * The value shall be set to: + * - `0` if the performance class is unknown, + * - `1` for performance class A as defined in ETSI TS 101 539-1 [5], + * - `2` for performance class B as defined in ETSI TS 101 539-1 [5], + * - 3-7 reserved for future use. + * + * @category: Vehicle information + * @revision: Editorial update in V2.1.1 + */ +PerformanceClass ::= INTEGER { + unavailable (0), + performanceClassA (1), + performanceClassB (2) +} (0..7) + +/** + * This DE represents a telephone number + * + * @category: Basic information + * @revision: V1.3.1 + */ +PhoneNumber ::= NumericString (SIZE(1..16)) + +/** + * This DE indicates the perpendicular distance from the centre of mass of an empty load vehicle to the front line of + * the vehicle bounding box of the empty load vehicle. + * + * The value shall be set to: + * - `n` (`n > 0` and `n < 62`) for any aplicable value n between 0,1 metre and 6,2 metres, + * - `62` for values equal to or higher than 6.1 metres, + * - `63` if the information is unavailable. + * + * @note: The empty load vehicle is defined in ISO 1176 [8], clause 4.6. + * + * @unit 0,1 metre + * @category Vehicle information + * @revision: description revised in V2.1.1 (the meaning of 62 has changed slightly) + */ +PosCentMass ::= INTEGER { + tenCentimetres (1), + outOfRange (62), + unavailable (63) +} (1..63) + +/** + * This DE indicates the positioning technology being used to estimate a geographical position. + * + * The value shall be set to: + * - 0 `noPositioningSolution` - no positioning solution used, + * - 1 `sGNSS` - Global Navigation Satellite System used, + * - 2 `dGNSS` - Differential GNSS used, + * - 3 `sGNSSplusDR` - GNSS and dead reckoning used, + * - 4 `dGNSSplusDR` - Differential GNSS and dead reckoning used, + * - 5 `dR` - dead reckoning used, + * - 6 `manuallyByOperator` - position set manually by a human operator. + * + * @category: GeoReference information + * @revision: V1.3.1, extension with value 6 added in V2.2.1 + */ +PositioningSolutionType ::= ENUMERATED { + noPositioningSolution (0), + sGNSS (1), + dGNSS (2), + sGNSSplusDR (3), + dGNSSplusDR (4), + dR (5), + ..., + manuallyByOperator (6) +} + +/** + * This DE indicates whether a passenger seat is occupied or whether the occupation status is detectable or not. + * + * The number of row in vehicle seats layout is counted in rows from the driver row backwards from front to the rear + * of the vehicle. + * The left side seat of a row refers to the left hand side seen from vehicle rear to front. + * Additionally, a bit is reserved for each seat row, to indicate if the seat occupation of a row is detectable or not, + * i.e. `row1NotDetectable (3)`, `row2NotDetectable(8)`, `row3NotDetectable(13)` and `row4NotDetectable(18)`. + * Finally, a bit is reserved for each row seat to indicate if the seat row is present or not in the vehicle, + * i.e. `row1NotPresent (4)`, `row2NotPresent (9)`, `row3NotPresent(14)`, `row4NotPresent(19)`. + * + * When a seat is detected to be occupied, the corresponding seat occupation bit shall be set to `1`. + * For example, when the row 1 left seat is occupied, `row1LeftOccupied(0)` bit shall be set to `1`. + * When a seat is detected to be not occupied, the corresponding seat occupation bit shall be set to `0`. + * Otherwise, the value of seat occupation bit shall be set according to the following conditions: + * - If the seat occupation of a seat row is not detectable, the corresponding bit shall be set to `1`. + * When any seat row not detectable bit is set to `1`, all corresponding seat occupation bits of the same row + * shall be set to `1`. + * - If the seat row is not present, the corresponding not present bit of the same row shall be set to `1`. + * When any of the seat row not present bit is set to `1`, the corresponding not detectable bit for that row + * shall be set to `1`, and all the corresponding seat occupation bits in that row shall be set to `0`. + * + * @category: Vehicle information + * @revision: V1.3.1 + */ +PositionOfOccupants ::= BIT STRING { + row1LeftOccupied (0), + row1RightOccupied (1), + row1MidOccupied (2), + row1NotDetectable (3), + row1NotPresent (4), + row2LeftOccupied (5), + row2RightOccupied (6), + row2MidOccupied (7), + row2NotDetectable (8), + row2NotPresent (9), + row3LeftOccupied (10), + row3RightOccupied (11), + row3MidOccupied (12), + row3NotDetectable (13), + row3NotPresent (14), + row4LeftOccupied (15), + row4RightOccupied (16), + row4MidOccupied (17), + row4NotDetectable (18), + row4NotPresent (19) +} (SIZE(20)) + +/** + * This DE indicates the perpendicular distance between the vehicle front line of the bounding box and the front wheel axle in 0,1 metre. + * + * The value shall be set to: + * - `n` (`n > 0` and `n < 19`) for any aplicable value between 0,1 metre and 1,9 metres, + * - `19` for values equal to or higher than 1.8 metres, + * - `20` if the information is unavailable. + * + * @category: Vehicle information + * @unit 0,1 metre + * @revision: description revised in V2.1.1 (the meaning of 19 has changed slightly) + */ +PosFrontAx ::= INTEGER { + outOfRange (19), + unavailable(20) +} (1..20) + +/** + * This DE represents a position along a single dimension such as the middle of a road or lane, measured as an offset from an externally defined starting point, + * in direction of an externally defined reference direction. + * + * The value shall be set to: + * - `n` (`n >= -8190` and `n < 0`) if the position is equal to or less than n x 1 metre and more than (n-1) x 1 metre, in opposite direction of the reference direction, + * - `0` if the position is at the starting point, + * - `n` (`n > 0` and `n < 8190`) if the position is equal to or less than n x 1 metre and more than (n-1) x 1 metre, in the same direction as the reference direction, + * - `8 190` if the position is out of range, i.e. equal to or greater than 8 189 m, + * - `8 191` if the position information is not available. + * + * @unit 1 metre + * @category: GeoReference information + * @revision: Created in V2.2.1 + */ +Position1d ::= INTEGER { + outOfRange(8190), + unavailable(8191) +}(-8190..8191) + +/** + * This DE represents the distance from the centre of vehicle front bumper to the right or left longitudinal carrier of vehicle. + * The left/right carrier refers to the left/right as seen from a passenger sitting in the vehicle. + * + * The value shall be set to: + * - `n` (`n > 0` and `n < 126`) for any aplicable value between 0,01 metre and 1,26 metres, + * - `126` for values equal to or higher than 1.25 metres, + * - `127` if the information is unavailable. + * + * @unit 0,01 metre + * @category Vehicle information + * @revision: description revised in V2.1.1 (the meaning of 126 has changed slightly) + */ +PosLonCarr ::= INTEGER { + outOfRange (126), + unavailable (127) +} (1..127) + +/** + * This DE represents the perpendicular inter-distance of neighbouring pillar axis of vehicle starting from the + * middle point of the front line of the vehicle bounding box. + * + * The value shall be set to: + * - `n` (`n > 0` and `n < 29`) for any aplicable value between 0,1 metre and 2,9 metres, + * - `29` for values equal to or greater than 2.8 metres, + * - `30` if the information is unavailable. + * + * @unit 0,1 metre + * @category Vehicle information + * @revision: description revised in V2.1.1 (the meaning of 29 has changed slightly) + */ +PosPillar ::= INTEGER { + outOfRange (29), + unavailable (30) +} (1..30) + +/** + * This DE represents the value of the sub cause codes of the @ref CauseCode `postCrash` . + * + * The value shall be set to: + * - 0 `unavailable` - in case further detailed information on post crash event is unavailable, + * - 1 `accidentWithoutECallTriggered` - in case no eCall has been triggered for an accident, + * - 2 `accidentWithECallManuallyTriggered` - in case eCall has been manually triggered and transmitted to eCall back end, + * - 3 `accidentWithECallAutomaticallyTriggered` - in case eCall has been automatically triggered and transmitted to eCall back end, + * - 4 `accidentWithECallTriggeredWithoutAccessToCellularNetwork` - in case eCall has been triggered but cellular network is not accessible from triggering vehicle. + * - 5-255 - are reserved for future usage. + * + * @category: Traffic information + * @revision: V1.3.1 + */ +PostCrashSubCauseCode ::= INTEGER { + unavailable (0), + accidentWithoutECallTriggered (1), + accidentWithECallManuallyTriggered (2), + accidentWithECallAutomaticallyTriggered (3), + accidentWithECallTriggeredWithoutAccessToCellularNetwork (4) +} (0..255) + +/** +* This DE represent the total amount of rain falling during one hour. It is measured in mm per hour at an area of 1 square metre. +* +* The following values are specified: +* - `n` (`n > 0` and `n < 2000`) if the amount of rain falling is equal to or less than n x 0,1 mm/h and greater than (n-1) x 0,1 mm/h, +* - `2000` if the amount of rain falling is greater than 199.9 mm/h, +* - `2001` if the information is not available. +* +* @unit: 0,1 mm/h +* @category: Basic Information +* @revision: created in V2.1.1 +*/ +PrecipitationIntensity ::= INTEGER { + outOfRange (2000), + unavailable (2001) +} (1..2001) + +/** + * This DE represents the indentifier of a protected communication zone. + * + * + * @category: Infrastructure information, Communication information + * @revision: Revision in V2.1.1 (changed name from ProtectedZoneID to ProtectedZoneId) + */ +ProtectedZoneId ::= INTEGER (0.. 134217727) + +/** + * This DE represents the radius of a protected communication zone. + * + * + * @unit: metre + * @category: Infrastructure information, Communication information + * @revision: V1.3.1 + */ +ProtectedZoneRadius ::= INTEGER (1..255,...) + +/** + * This DE indicates the type of a protected communication zone, so that an ITS-S is aware of the actions to do + * while passing by such zone (e.g. reduce the transmit power in case of a DSRC tolling station). + * + * The protected zone type is defined in ETSI TS 102 792 [14]. + * + * + * @category: Communication information + * @revision: V1.3.1 + */ +ProtectedZoneType::= ENUMERATED { + permanentCenDsrcTolling (0), + ..., + temporaryCenDsrcTolling (1) +} + +/** + * This DE is used for various tasks in the public transportation environment, especially for controlling traffic + * signal systems to prioritize and speed up public transportation in urban area (e.g. intersection "_bottlenecks_"). + * The traffic lights may be controlled by an approaching bus or tram automatically. This permits "_In Time_" activation + * of the green phase, will enable the individual traffic to clear a potential traffic jam in advance. Thereby the + * approaching bus or tram may pass an intersection with activated green light without slowing down the speed due to + * traffic congestion. Other usage of the DE is the provision of information like the public transport line number + * or the schedule delay of a public transport vehicle. + * + * @category: Vehicle information + * @revision: V1.3.1 + */ +PtActivationData ::= OCTET STRING (SIZE(1..20)) + +/** + * This DE indicates a certain coding type of the PtActivationData data. + * + * The folowing value are specified: + * - 0 `undefinedCodingType` : undefined coding type, + * - 1 `r09-16CodingType` : coding of PtActivationData conform to VDV recommendation 420 [7], + * - 2 `vdv-50149CodingType` : coding of PtActivationData based on VDV recommendation 420 [7]. + * - 3 - 255 : reserved for alternative and future use. + * + * @category: Vehicle information + * @revision: V1.3.1 + */ +PtActivationType ::= INTEGER { + undefinedCodingType (0), + r09-16CodingType (1), + vdv-50149CodingType (2) +} (0..255) + +/** + * This DE represents the value of the sub cause codes of the @ref CauseCode `railwayLevelCrossing` . + * + * The value shall be set to: + * - 0 `unavailable` - in case no further detailed information on the railway level crossing status is available, + * - 1 `doNotCrossAbnormalSituation` - in case when something wrong is detected by equation or sensors of the railway level crossing, + including level crossing is closed for too long (e.g. more than 10 minutes long ; default value), + * - 2 `closed` - in case the crossing is closed (barriers down), + * - 3 `unguarded` - in case the level crossing is unguarded (i.e a Saint Andrew cross level crossing without detection of train), + * - 4 `nominal` - in case the barriers are up and lights are off. + * - 5-255: reserved for future usage. + * + * @category: Traffic information + * @revision: V1.3.1 + */ +RailwayLevelCrossingSubCauseCode ::= INTEGER { + unavailable (0), + doNotCrossAbnormalSituation (1), + closed (2), + unguarded (3), + nominal (4) +} (0..255) + +/** + * This DE describes a distance of relevance for information indicated in a message. + * + * The value shall be set to: + * - 0 `lessThan50m` - for distances below 50 m, + * - 1 `lessThan100m` - for distances below 100 m, + * - 2 `lessThan200m` - for distances below 200 m, + * - 3 `lessThan500m` - for distances below 300 m, + * - 4 `lessThan1000m` - for distances below 1 000 m, + * - 5 `lessThan5km` - for distances below 5 000 m, + * - 6 `lessThan10km` - for distances below 10 000 m, + * - 7 `over10km` - for distances over 10 000 m. + * + * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref StandardLength3b instead. + * + * @category: GeoReference information + * @revision: Editorial update in V2.1.1 + */ +RelevanceDistance ::= ENUMERATED { + lessThan50m(0), + lessThan100m(1), + lessThan200m(2), + lessThan500m(3), + lessThan1000m(4), + lessThan5km(5), + lessThan10km(6), + over10km(7) +} + +/** + * This DE indicates a traffic direction that is relevant to information indicated in a message. + * + * The value shall be set to: + * - 0 `allTrafficDirections` - for all traffic directions, + * - 1 `upstreamTraffic` - for upstream traffic, + * - 2 `downstreamTraffic` - for downstream traffic, + * - 3 `oppositeTraffic` - for traffic in the opposite direction. + * + * The terms `upstream`, `downstream` and `oppositeTraffic` are relative to the event position. + * + * @note: Upstream traffic corresponds to the incoming traffic towards the event position, + * and downstream traffic to the departing traffic away from the event position. + * + * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref TrafficDirection instead. + * + * @category: GeoReference information + * @revision: Editorial update in V2.1.1 + */ +RelevanceTrafficDirection ::= ENUMERATED { + allTrafficDirections(0), + upstreamTraffic(1), + downstreamTraffic(2), + oppositeTraffic(3) +} + +/** + * This DE indicates whether an ITS message is transmitted as request from ITS-S or a response transmitted from + * ITS-S after receiving request from other ITS-Ss. + * + * The value shall be set to: + * - 0 `request` - for a request message, + * - 1 `response` - for a response message. + * + * @category Communication information + * @revision: Editorial update in V2.1.1 + */ +RequestResponseIndication ::= ENUMERATED { + request (0), + response (1) +} + +/** + * This DE represents the value of the sub cause codes of the @ref CauseCode `rescueAndRecoveryWorkInProgress` + * + * The value shall be set to: + * - 0 `unavailable` - in case further detailed information on rescue and recovery work is unavailable, + * - 1 `emergencyVehicles` - in case rescue and/or safeguarding work is ongoing by emergency vehicles, i.e. by vehicles that have the absolute right of way, + * - 2 `rescueHelicopterLanding` - in case rescue helicopter is landing, + * - 3 `policeActivityOngoing` - in case police activity is ongoing (only to be used if a more specific sub cause than (1) is needed), + * - 4 `medicalEmergencyOngoing` - in case medical emergency recovery is ongoing (only to be used if a more specific sub cause than (1) is needed), + * - 5 `childAbductionInProgress` - in case a child kidnapping alarm is activated and rescue work is ongoing (only to be used if a more specific sub cause than (1) is needed), + * - 6 `prioritizedVehicle` - in case rescue and/or safeguarding work is ongoing by prioritized vehicles, i.e. by vehicles that have priority but not the absolute right of way, + * - 7 `rescueAndRecoveryVehicle` - in case technical rescue work is ongoing by rescue and recovery vehicles. + * - 8-255: reserved for future usage. + + * + * @category: Traffic information + * @revision: V1.3.1, named values 6 and 7 added in V2.2.1 + */ +RescueAndRecoveryWorkInProgressSubCauseCode ::= INTEGER { + unavailable (0), + emergencyVehicles (1), + rescueHelicopterLanding (2), + policeActivityOngoing (3), + medicalEmergencyOngoing (4), + childAbductionInProgress (5), + prioritizedVehicle (6), + rescueAndRecoveryVehicle (7) +} (0..255) + + +/** + * This DE indicates an ordinal number that represents the position of a component in the list @ref RoadConfigurationSectionList. + * + * The value shall be set to: + * - `0` - if no road section is identified + * - `1..8` - for instances 1..8 of @ref RoadConfigurationSectionList + * + * @category: Road topology information + * @revision: Created in V2.2.1 +*/ + +RoadSectionId::= INTEGER (0..8, ...) + +/** + * This DE indicates the type of a road segment. + * + * The value shall be set to: + * - 0 `urban-NoStructuralSeparationToOppositeLanes` - for an urban road with no structural separation between lanes carrying traffic in opposite directions, + * - 1 `urban-WithStructuralSeparationToOppositeLanes` - for an urban road with structural separation between lanes carrying traffic in opposite directions, + * - 2 `nonUrban-NoStructuralSeparationToOppositeLanes` - for an non urban road with no structural separation between lanes carrying traffic in opposite directions, + * - 3 `nonUrban-WithStructuralSeparationToOppositeLanes` - for an non urban road with structural separation between lanes carrying traffic in opposite directions. + * + * @category: Road Topology Information + * @revision: Editorial update in V2.1.1 + */ +RoadType ::= ENUMERATED { + urban-NoStructuralSeparationToOppositeLanes (0), + urban-WithStructuralSeparationToOppositeLanes (1), + nonUrban-NoStructuralSeparationToOppositeLanes (2), + nonUrban-WithStructuralSeparationToOppositeLanes (3) +} + +/** + * This DE represents the value of the sub cause codes of the @ref CauseCode `roadworks`. + * +The value shall be set to: + * - 0 `unavailable` - in case further detailed information on roadworks is unavailable, + * - 1 `majorRoadworks` - in case a major roadworks is ongoing, + * - 2 `roadMarkingWork` - in case a road marking work is ongoing, + * - 3 `slowMovingRoadMaintenance` - in case slow moving road maintenance work is ongoing, + * - 4 `shortTermStationaryRoadworks`- in case a short term stationary roadwork is ongoing, + * - 5 `streetCleaning` - in case a vehicle street cleaning work is ongoing, + * - 6 `winterService` - in case winter service work is ongoing. + * - 7-255 - are reserved for future usage. + * + * @category: Traffic information + * @revision: V1.3.1 + */ +RoadworksSubCauseCode ::= INTEGER { + unavailable (0), + majorRoadworks (1), + roadMarkingWork (2), + slowMovingRoadMaintenance (3), + shortTermStationaryRoadworks (4), + streetCleaning (5), + winterService (6) +} (0..255) + +/** + * This DE indicates if a distance is safe. + * + * The value shall be set to: + * - `FALSE` if the triple {LaD, LoD, VD} < {MSLaD, MSLoD, MSVD} is simultaneously satisfied with confidence level of 90 % or more, + * - `TRUE` otherwise. + * + * @note: the abbreviations used are Lateral Distance (LaD), Longitudinal Distance (LoD) and Vertical Distance (VD) + * and their respective thresholds, Minimum Safe Lateral Distance (MSLaD), Minimum Safe Longitudinal Distance (MSLoD), and Minimum Safe Vertical Distance (MSVD). + * + * @category: Traffic information, Kinematic information + * @revision: created in V2.1.1 +*/ +SafeDistanceIndicator::= BOOLEAN + +/** + * This DE indicates the horizontal position confidence value which represents the estimated absolute position accuracy, in one of the axis direction as defined in a shape of ellipse with a + * confidence level of 95 %. + * + * The value shall be set to: + * - `n` (`n > 0` and `n < 4 094`) if the accuracy is equal to or less than n * 0,01 metre, + * - `4 094` if the accuracy is out of range, i.e. greater than 4,093 m, + * - `4 095` if the accuracy information is unavailable. + * + * The value 0 shall not be used. + * + * @note: The fact that a position coordinate value is received with confidence value set to `unavailable(4095)`. + * can be caused by several reasons, such as: + * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor, + * - the sensor cannot calculate the accuracy due to lack of variables, or + * - there has been a vehicle bus (e.g. CAN bus) error. + * In all 3 cases above, the position coordinate value may be valid and used by the application. + * If a position coordinate value is received and its confidence value is set to `outOfRange(4094)`, it means that + * the position coordinate value is not valid and therefore cannot be trusted. Such value is not useful + * for the application. + + * @unit 0,01 metre + * @category: GeoReference Information + * @revision: Description revised in V2.1.1 + */ +SemiAxisLength ::= INTEGER{ + doNotUse (0), + outOfRange (4094), + unavailable (4095) +} (0..4095) + +/** + * This DE indicates the type of sensor. + * + * The value shall be set to: + * - 0 `undefined` - in case the sensor type is undefined. + * - 1 `radar` - in case the sensor is a radar, + * - 2 `lidar` - in case the sensor is a lidar, + * - 3 `monovideo` - in case the sensor is mono video, + * - 4 `stereovision` - in case the sensor is stereo vision, + * - 5 `nightvision` - in case the sensor is night vision, + * - 6 `ultrasonic` - in case the sensor is ultrasonic, + * - 7 `pmd` - in case the sensor is photonic mixing device, + * - 8 `inductionLoop` - in case the sensor is an induction loop, + * - 9 `sphericalCamera` - in case the sensor is a spherical camera, + * - 10 `uwb` - in case the sensor is ultra wide band, + * - 11 `acoustic` - in case the sensor is acoustic, + * - 12 `localAggregation` - in case the information is provided by a system that aggregates information from different local sensors. Aggregation may include fusion, + * - 13 `itsAggregation` - in case the information is provided by a system that aggregates information from other received ITS messages. + * - 14-31 - are reserved for future usage. + * + * @category: Sensing Information + * @revision: created in V2.1.1 +*/ +SensorType ::= INTEGER { + undefined (0), + radar (1), + lidar (2), + monovideo (3), + stereovision (4), + nightvision (5), + ultrasonic (6), + pmd (7), + inductionLoop (8), + sphericalCamera (9), + uwb (10), + acoustic (11), + localAggregation (12), + itsAggregation (13) +} (0..31) + +/** + * This DE indicates the type of sensor(s). + * The corresponding bit shall be set to 1 under the following conditions: + * + * - 0 `undefined` - in case the sensor type is undefined. + * - 1 `radar` - in case the sensor is a radar, + * - 2 `lidar` - in case the sensor is a lidar, + * - 3 `monovideo` - in case the sensor is mono video, + * - 4 `stereovision` - in case the sensor is stereo vision, + * - 5 `nightvision` - in case the sensor is night vision, + * - 6 `ultrasonic` - in case the sensor is ultrasonic, + * - 7 `pmd` - in case the sensor is photonic mixing device, + * - 8 `inductionLoop` - in case the sensor is an induction loop, + * - 9 `sphericalCamera` - in case the sensor is a spherical camera, + * - 10 `uwb` - in case the sensor is ultra wide band, + * - 11 `acoustic` - in case the sensor is acoustic, + * - 12 `localAggregation` - in case the information is provided by a system that aggregates information from different local sensors. Aggregation may include fusion, + * - 13 `itsAggregation` - in case the information is provided by a system that aggregates information from other received ITS messages. + * - 14-15 - are reserved for future usage. + * + * @note: If all bits are set to 0, then no sensor type is used + * + * @category: Sensing Information + * @revision: created in V2.2.1 +*/ +SensorTypes ::= BIT STRING { + undefined (0), + radar (1), + lidar (2), + monovideo (3), + stereovision (4), + nightvision (5), + ultrasonic (6), + pmd (7), + inductionLoop (8), + sphericalCamera (9), + uwb (10), + acoustic (11), + localAggregation (12), + itsAggregation (13) +} (SIZE (16,... )) + +/** + * This DE represents a sequence number. + * + * @category: Basic information + * @revision: V1.3.1 + */ +SequenceNumber ::= INTEGER (0..65535) + +/** + * This DE represents the value of the sub cause codes of the @ref CauseCode `signalViolation`. + * + * The value shall be set to: + * - 0 `unavailable` - in case further detailed information on signal violation event is unavailable, + * - 1 `stopSignViolation` - in case a stop sign violation is detected, + * - 2 `trafficLightViolation` - in case a traffic light violation is detected, + * - 3 `turningRegulationViolation`- in case a turning regulation violation is detected. + * - 4-255 - are reserved for future usage. + * + * @category: Traffic information + * @revision: V1.3.1 + */ +SignalViolationSubCauseCode ::= INTEGER { + unavailable (0), + stopSignViolation (1), + trafficLightViolation (2), + turningRegulationViolation (3) +} (0..255) + +/** + * This DE represents the sub cause codes of the @ref CauseCode "slowVehicle". + * + * The value shall be set to: + * - 0 `unavailable` - in case further detailed information on slow vehicle driving event is + * unavailable, + * - 1 `maintenanceVehicle` - in case of a slow driving maintenance vehicle on the road, + * - 2 `vehiclesSlowingToLookAtAccident`- in case vehicle is temporally slowing down to look at accident, spot, etc., + * - 3 `abnormalLoad` - in case an abnormal loaded vehicle is driving slowly on the road, + * - 4 `abnormalWideLoad` - in case an abnormal wide load vehicle is driving slowly on the road, + * - 5 `convoy` - in case of slow driving convoy on the road, + * - 6 `snowplough` - in case of slow driving snow plough on the road, + * - 7 `deicing` - in case of slow driving de-icing vehicle on the road, + * - 8 `saltingVehicles` - in case of slow driving salting vehicle on the road. + * - 9-255 - are reserved for future usage. + * + * @category: Traffic information + * @revision: V1.3.1 + */ +SlowVehicleSubCauseCode ::= INTEGER { + unavailable (0), + maintenanceVehicle (1), + vehiclesSlowingToLookAtAccident (2), + abnormalLoad (3), + abnormalWideLoad (4), + convoy (5), + snowplough (6), + deicing (7), + saltingVehicles (8) +} (0..255) + +/** + * The DE indicates if a vehicle is carrying goods in the special transport conditions. + * + * The corresponding bit shall be set to 1 under the following conditions: + * - 0 `heavyLoad` - the vehicle is carrying goods with heavy load, + * - 1 `excessWidth` - the vehicle is carrying goods in excess of width, + * - 2 `excessLength` - the vehicle is carrying goods in excess of length, + * - 3 `excessHeight` - the vehicle is carrying goods in excess of height. + * + * Otherwise, the corresponding bit shall be set to 0. + * @category Vehicle information + * @revision: Description revised in V2.1.1 + */ +SpecialTransportType ::= BIT STRING { + heavyLoad (0), + excessWidth (1), + excessLength (2), + excessHeight (3) +} (SIZE(4)) + +/** + * This DE indicates the speed confidence value which represents the estimated absolute accuracy of a speed value with a default confidence level of 95 %. + * If required, the confidence level can be defined by the corresponding standards applying this DE. + * + * The value shall be set to: + * - `n` (`n > 0` and `n < 126`) if the confidence value is equal to or less than n * 0,01 m/s. + * - `126` if the confidence value is out of range, i.e. greater than 1,25 m/s, + * - `127` if the confidence value information is not available. + * + * @note: The fact that a speed value is received with confidence value set to `unavailable(127)` can be caused by several reasons, such as: + * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor, + * - the sensor cannot calculate the accuracy due to lack of variables, or + * - there has been a vehicle bus (e.g. CAN bus) error. + * In all 3 cases above, the speed value may be valid and used by the application. + * + * @note: If a speed value is received and its confidence value is set to `outOfRange(126)`, it means that the speed value is not valid + * and therefore cannot be trusted. Such is not useful for the application. + * + * @unit: 0,01 m/s + * @category: Vehicle information + * @revision: Description revised in V2.1.1 + */ +SpeedConfidence ::= INTEGER { + outOfRange (126), + unavailable (127) +} (1..127) + +/** + * This DE represents a speed limitation applied to a geographical position, a road section or a geographical region. + * + * @unit: km/h + * @category: Infrastructure information, Traffic information + * @revision: V1.3.1 + */ +SpeedLimit ::= INTEGER (1..255) + +/** + * This DE represents a speed value, i.e. the magnitude of the velocity-vector. + * + * The value shall be set to: + * - `0` in a standstill situation. + * - `n` (`n > 0` and `n < 16 382`) if the applicable value is equal to or less than n x 0,01 m/s, and greater than (n-1) x 0,01 m/s, + * - `16 382` for speed values greater than 163,81 m/s, + * - `16 383` if the speed accuracy information is not available. + * + * @note: the definition of standstill is out of scope of the present document. + * + * @unit: 0,01 m/s + * @category: Kinematic information + * @revision: Description revised in V2.1.1 (the meaning of 16382 has changed slightly) +*/ +SpeedValue ::= INTEGER { + standstill (0), + outOfRange (16382), + unavailable (16383) +} (0..16383) + +/** + * This DE indicates the type of stored information. + * + * The corresponding bit shall be set to 1 under the following conditions: + * + * - `0` undefined - in case the stored information type is undefined. + * - `1` staticDb - in case the stored information type is a static database. + * - `2` dynamicDb - in case the stored information type is a dynamic database + * - `3` realTimeDb - in case the stored information type is a real time updated database. + * - `4` map - in case the stored information type is a road topology map. + * - Bits 5 to 7 - are reserved for future use. + * + * @note: If all bits are set to 0, then no stored information type is used + * + * @category: Basic Information + * @revision: created in V2.2.1 +*/ +StoredInformationType::= BIT STRING { + undefined (0), + staticDb (1), + dynamicDb (2), + realTimeDb (3), + map (4) +} (SIZE (8,... )) + +/** + * This DE represents the value of a velocity component in a defined coordinate system. + * + * The value shall be set to: + * - `-16 383` if the velocity is equal to or smaller than -163,83 m/s, + * - `n` (`n > -16 383` and `n < 16 382`) if the applicable value is equal to or less than n x 0,01 m/s, and greater than (n-1) x 0,01 m/s, + * - `16 382` for velocity values equal to or greater than 163,81 m/s, + * - `16 383` if the velocity information is not available. + * + * @unit: 0,01 m/s + * @category: Kinematic information + * @revision: Created in V2.1.1 +*/ +VelocityComponentValue ::= INTEGER { + negativeOutOfRange (-16383), + positiveOutOfRange (16382), + unavailable (16383) +} (-16383..16383) + + +/** + * This DE indicates the estimated probability of a stability level and conversely also the probability of a stability loss. + * + * The value shall be set to: + * - `0` to indicate an estimated probability of a loss of stability of 0 %, i.e. "stable", + * - `n` (`n > 0` and `n < 50`) to indicate the actual stability level, + * - `50` to indicate a estimated probability of a loss of stability of 100 %, i.e. "total loss of stability", + * - the values between 51 and 62 are reserved for future use, + * - `63`: this value indicates that the information is unavailable. + * + * @unit: 2 % + * @category: Kinematic information + * @revision: Created in V2.1.1 + */ +StabilityLossProbability ::= INTEGER { + stable (0), + totalLossOfStability (50), + unavailable (63) +} (0..63) + +/** + * The DE represents length as a measure of distance between points or as a dimension of an object or shape. + * + * @unit: 0,1 metre + * @category: Basic information + * @revision: Created in V2.1.1 + */ +StandardLength12b::= INTEGER (0..4095) + +/** + * The DE represents length as a measure of distance between points. + * + * The value shall be set to: + * - 0 `lessThan50m` - for distances below 50 m, + * - 1 `lessThan100m` - for distances below 100 m, + * - 2 `lessThan200m` - for distances below 200 m, + * - 3 `lessThan500m` - for distances below 300 m, + * - 4 `lessThan1000m` - for distances below 1 000 m, + * - 5 `lessThan5km` - for distances below 5 000 m, + * - 6 `lessThan10km` - for distances below 10 000 m, + * - 7 `over10km` - for distances over 10 000 m. + * + * @category: GeoReference information + * @revision: Created in V2.1.1 from RelevanceDistance + */ +StandardLength3b ::= ENUMERATED { + lessThan50m (0), + lessThan100m (1), + lessThan200m (2), + lessThan500m (3), + lessThan1000m (4), + lessThan5km (5), + lessThan10km (6), + over10km (7) +} + +/** + * The DE represents length as a measure of distance between points or as a dimension of an object. + * + * @unit: 0,1 metre + * @category: Basic information + * @revision: Created in V2.1.1 + */ +StandardLength9b::= INTEGER (0..511) + +/** + * The DE represents length as a measure of distance between points or as a dimension of an object. + * + * @unit: 0,1 metre + * @category: Basic information + * @revision: Created in V2.1.1 + */ +StandardLength1B::= INTEGER (0..255) + +/** + * The DE represents length as a measure of distance between points or as a dimension of an object. + * + * @unit: 0,1 metre + * @category: Basic information + * @revision: Created in V2.1.1 + */ +StandardLength2B::= INTEGER (0..65535) + +/** + * This DE indicates the duration in minutes since which something is stationary. + * + * The value shall be set to: + * - 0 `lessThan1Minute` - for being stationary since less than 1 minute, + * - 1 `lessThan2Minutes` - for being stationary since less than 2 minute and for equal to or more than 1 minute, + * - 2 `lessThan15Minutes` - for being stationary since less than 15 minutes and for equal to or more than 1 minute, + * - 3 `equalOrGreater15Minutes` - for being stationary since equal to or more than 15 minutes. + * + * @category: Kinematic information + * @revision: Created in V2.1.1 + */ +StationarySince ::= ENUMERATED { + lessThan1Minute (0), + lessThan2Minutes (1), + lessThan15Minutes (2), + equalOrGreater15Minutes (3) +} + +/** + * This DE provides the value of the sub cause codes of the @ref CauseCode "stationaryVehicle". + * + * The value shall be set to: + * - 0 `unavailable` - in case further detailed information on stationary vehicle is unavailable, + * - 1 `humanProblem` - in case stationary vehicle is due to health problem of driver or passenger, + * - 2 `vehicleBreakdown` - in case stationary vehicle is due to vehicle break down, + * - 3 `postCrash` - in case stationary vehicle is caused by collision, + * - 4 `publicTransportStop` - in case public transport vehicle is stationary at bus stop, + * - 5 `carryingDangerousGoods`- in case the stationary vehicle is carrying dangerous goods, + * - 6 `vehicleOnFire` - in case of vehicle on fire. + * - 7-255 reserved for future usage. + * + * @category: Traffic information + * @revision: V1.3.1 + */ +StationaryVehicleSubCauseCode ::= INTEGER { + unavailable (0), + humanProblem (1), + vehicleBreakdown (2), + postCrash (3), + publicTransportStop (4), + carryingDangerousGoods (5), + vehicleOnFire (6) +} (0..255) + +/** + * This DE represents the identifier of an ITS-S. + * The ITS-S ID may be a pseudonym. It may change over space and/or over time. + * + * @category: Basic information + * @revision: Created in V2.1.1 based on @ref StationID + */ +StationId ::= INTEGER(0..4294967295) + +/** + * This DE represents the identifier of an ITS-S. + * The ITS-S ID may be a pseudonym. It may change over space and/or over time. + * + * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref StationId instead. + * @category: Basic information + * @revision: V1.3.1 + */ +StationID ::= INTEGER(0..4294967295) + +/** + * This DE represents the type of technical context the ITS-S is integrated in. + * The station type depends on the integration environment of ITS-S into vehicle, mobile devices or at infrastructure. + * + * The value shall be set to: + * - 0 `unknown` - information about the ITS-S context is not provided, + * - 1 `pedestrian` - ITS-S carried by human being not using a mechanical device for their trip (VRU profile 1), + * - 2 `cyclist` - ITS-S mounted on non-motorized unicycles, bicycles , tricycles, quadracycles (VRU profile 2), + * - 3 `moped` - ITS-S mounted on light motor vehicles with less than four wheels as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] + class L1, L2 (VRU Profile 3), + * - 4 `motorcycles` - ITS-S mounted on motor vehicles with less than four wheels as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] + class L3, L4, L5, L6, L7 (VRU Profile 3), + * - 5 `passengerCar` - ITS-S mounted on small passenger vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class M1, + * - 6 `bus` - ITS-S mounted on large passenger vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class M2, M3, + * - 7 `lightTruck` - ITS-S mounted on light Goods Vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class N1, + * - 8 `heavyTruck` - ITS-S mounted on Heavy Goods Vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class N2 and N3, + * - 9 `trailer` - ITS-S mounted on an unpowered vehicle that is intended to be towed by a powered vehicle as defined in + UNECE/TRANS/WP.29/78/Rev.4 [16] class O, + * - 10 `specialVehicles` - ITS-S mounted on vehicles which have special purposes other than the above (e.g. moving road works vehicle), + * - 11 `tram` - ITS-S mounted on a vehicle which runs on tracks along public streets, + * - 12 `lightVruVehicle` - ITS-S carried by a human being traveling on light vehicle , incl. possible use of roller skates or skateboards (VRU profile 2), + * - 13 `animal` - ITS-S carried by an animal presenting a safety risk to other road users e.g. domesticated dog in a city or horse (VRU Profile 4), + * - 14 - reserved for future usage, + * - 15 `roadSideUnit` - ITS-S mounted on an infrastructure typically positioned outside of the drivable roadway (e.g. on a gantry, on a pole, + on a stationary road works trailer); the infrastructure is static during the entire operation period of the ITS-S (e.g. no stop and go activity), + * - 16-255 - are reserved for future usage. + * + * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref TrafficParticipantType instead. + * @category: Communication information. + * @revision: revised in V2.1.1 (named values 12 and 13 added and note to value 9 deleted) + */ +StationType ::= INTEGER { + unknown (0), + pedestrian (1), + cyclist (2), + moped (3), + motorcycle (4), + passengerCar (5), + bus (6), + lightTruck (7), + heavyTruck (8), + trailer (9), + specialVehicle (10), + tram (11), + lightVruVehicle (12), + animal (13), + roadSideUnit (15) +} (0..255) + +/** + * This DE indicates the steering wheel angle confidence value which represents the estimated absolute accuracy for a steering wheel angle value with a confidence level of 95 %. + * + * The value shall be set to: + * - `n` (`n > 0` and `n < 126`) if the confidence value is equal to or less than n x 1,5 degrees, + * - `126` if the confidence value is out of range, i.e. greater than 187,5 degrees, + * - `127` if the confidence value is not available. + * + * @note: The fact that a steering wheel angle value is received with confidence value set to `unavailable(127)` + * can be caused by several reasons, such as: + * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor, + * - the sensor cannot calculate the accuracy due to lack of variables, or + * - there has been a vehicle bus (e.g. CAN bus) error. + * In all 3 cases above, the steering wheel angle value may be valid and used by the application. + * + * If a steering wheel angle value is received and its confidence value is set to `outOfRange(126)`, + * it means that the steering wheel angle value is not valid and therefore cannot be trusted. + * Such value is not useful for the application. + * + * @unit: 1,5 degree + * @category: Vehicle Information + * @revision: Description revised in V2.1.1 +*/ +SteeringWheelAngleConfidence ::= INTEGER { + outOfRange (126), + unavailable (127) +} (1..127) + +/** + * This DE represents the steering wheel angle of the vehicle at certain point in time. + * The value shall be provided in the vehicle coordinate system as defined in ISO 8855 [21], clause 2.11. + * + * The value shall be set to: + * - `-511` if the steering wheel angle is equal to or greater than 511 x 1,5 degrees = 766,5 degrees to the right, + * - `n` (`n > -511` and `n <= 0`) if the steering wheel angle is equal to or less than n x 1,5 degrees, and greater than (n-1) x 1,5 degrees, + turning clockwise (i.e. to the right), + * - `n` (`n >= 1` and `n < 511`) if the steering wheel angle is equal to or less than n x 0,1 degrees, and greater than (n-1) x 0,1 degrees, + turning counter-clockwise (i.e. to the left), + * - `511` if the steering wheel angle is greater than 510 x 1,5 degrees = 765 degrees to the left, + * - `512` if information is not available. + * + * @unit: 1,5 degree + * @revision: Description revised in V2.1.1 (meaning of value 511 has changed slightly). + */ +SteeringWheelAngleValue ::= INTEGER { + negativeOutOfRange (-511), + positiveOutOfRange (511), + unavailable (512) +} (-511..512) + +/** + * This DE indicates the generic sub cause of a detected event. + * + * @note: The sub cause code value assignment varies based on value of @ref CauseCode. + * + * @category: Traffic information + * @revision: Description revised in V2.1.1 (this is the generic sub cause type) + */ +SubCauseCodeType ::= INTEGER (0..255) + +/** + * This DE indicates a temperature value. + + * The value shall be set to: + * - `-60` for temperature equal to or less than -60 degrees C, + * - `n` (`n > -60` and `n < 67`) for the actual temperature n in degrees C, + * - `67` for temperature equal to or greater than 67 degrees C. + * + * @unit: degrees Celsius + * @category: Basic information + * @revision: Editorial update in V2.1.1 + */ +Temperature ::= INTEGER { + equalOrSmallerThanMinus60Deg (-60), + equalOrGreaterThan67Deg(67)} (-60..67) + +/** + * This DE represents the number of elapsed (TAI) milliseconds since the ITS Epoch. + * The ITS epoch is `00:00:00.000 UTC, 1 January 2004`. + * "Elapsed" means that the true number of milliseconds is continuously counted without interruption, + * i.e. it is not altered by leap seconds, which occur in UTC. + * + * @note: International Atomic Time (TAI) is the time reference coordinate on the basis of the readings of atomic clocks, + * operated in accordance with the definition of the second, the unit of time of the International System of Units. + * TAI is a continuous time scale. UTC has discontinuities, as it is occasionally adjusted by leap seconds. + * As of 1 January, 2022, TimestampIts is 5 seconds ahead of UTC, because since the ITS epoch on 1 January 2004 00:00:00.000 UTC, + * further 5 leap seconds have been inserted in UTC. + * + * EXAMPLE: The value for TimestampIts for 1 January 2007 00:00:00.000 UTC is `94 694 401 000` milliseconds, + * which includes one leap second insertion since the ITS epoch. + * @unit: 0,001 s + * @category: Basic information + * @revision: Description revised in in V2.1.1 + */ +TimestampIts ::= INTEGER (0..4398046511103) + +/** + * This DE represents the value of the sub cause codes of the @ref CauseCode `trafficCondition`. + * + * The value shall be set to: + * - 0 `unavailable` - in case further detailed information on the traffic condition is unavailable, + * - 1 `increasedVolumeOfTraffic` - in case the type of traffic condition is increased traffic volume, + * - 2 `trafficJamSlowlyIncreasing` - in case the type of traffic condition is a traffic jam which volume is increasing slowly, + * - 3 `trafficJamIncreasing` - in case the type of traffic condition is a traffic jam which volume is increasing, + * - 4 `trafficJamStronglyIncreasing` - in case the type of traffic condition is a traffic jam which volume is strongly increasing, + * - 5 `trafficJam` ` - in case the type of traffic condition is a traffic jam and no further detailed information about its volume is available, + * - 6 `trafficJamSlightlyDecreasing` - in case the type of traffic condition is a traffic jam which volume is decreasing slowly, + * - 7 `trafficJamDecreasing` - in case the type of traffic condition is a traffic jam which volume is decreasing, + * - 8 `trafficJamStronglyDecreasing` - in case the type of traffic condition is a traffic jam which volume is decreasing rapidly, + * - 9 `trafficJamStable` - in case the traffic condition is a traffic jam with stable volume, + * - 10-255: reserved for future usage. + * + * @category: Traffic information + * @revision: V1.3.1, definition of value 0 and 1 changed in V2.2.1, name and definition of value 5 changed in V2.2.1, value 9 added in V2.2.1 + */ +TrafficConditionSubCauseCode ::= INTEGER { + unavailable (0), + increasedVolumeOfTraffic (1), + trafficJamSlowlyIncreasing (2), + trafficJamIncreasing (3), + trafficJamStronglyIncreasing (4), + trafficJam (5), + trafficJamSlightlyDecreasing (6), + trafficJamDecreasing (7), + trafficJamStronglyDecreasing (8), + trafficJamStable (9) +} (0..255) + +/** + * This DE indicates a direction of traffic with respect to a reference direction, and a portion of that traffic with respect to a reference position. + * + * The value shall be set to: + * - 0 `allTrafficDirections` - for all directions of traffic, + * - 1 `sameAsReferenceDirection-upstreamOfReferencePosition` - for the direction of traffic according to the reference direction, and the portion of traffic upstream of the reference position, + * - 2 `sameAsReferenceDirection-downstreamOfReferencePosition` - for the direction of traffic according to the reference direction, and the portion of traffic downstream of the reference position, + * - 3 `oppositeToReferenceDirection` - for the direction of traffic opposite to the reference direction. + * + * @note: Upstream traffic corresponds to the incoming traffic towards the event position, and downstream traffic to the departing traffic away from the event position. + * @category: GeoReference information + * @revision: Created in V2.1.1 from RelevanceTrafficDirection, description and naming of values changed in V2.2.1 + * + */ + TrafficDirection ::= ENUMERATED { + allTrafficDirections(0), + sameAsReferenceDirection-upstreamOfReferencePosition(1), + sameAsReferenceDirection-downstreamOfReferencePosition(2), + oppositeToReferenceDirection(3) +} + +/** + * This DE represents the type of a traffic participant. + * + * The value shall be set to: + * - 0 `unknown` - information about traffic participant is not provided, + * - 1 `pedestrian` - human being not using a mechanical device for their trip (VRU profile 1), + * - 2 `cyclist` - non-motorized unicycles, bicycles , tricycles, quadracycles (VRU profile 2), + * - 3 `moped` - light motor vehicles with less than four wheels as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class L1, L2 (VRU Profile 3), + * - 4 `motorcycles` - motor vehicles with less than four wheels as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class L3, L4, L5, L6, L7 (VRU Profile 3), + * - 5 `passengerCar` - small passenger vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class M1, + * - 6 `bus` - large passenger vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class M2, M3, + * - 7 `lightTruck` - light Goods Vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class N1, + * - 8 `heavyTruck` - Heavy Goods Vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class N2 and N3, + * - 9 `trailer` - unpowered vehicle that is intended to be towed by a powered vehicle as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class O, + * - 10 `specialVehicles` - vehicles which have special purposes other than the above (e.g. moving road works vehicle), + * - 11 `tram` - vehicle which runs on tracks along public streets, + * - 12 `lightVruVehicle` - human being traveling on light vehicle, incl. possible use of roller skates or skateboards (VRU profile 2), + * - 13 `animal` - animal presenting a safety risk to other road users e.g. domesticated dog in a city or horse (VRU Profile 4), + * - 14 `agricultural` - agricultural and forestry vehicles as defined in UNECE/TRANS/WP.29/78/Rev.4 [16] class T, + * - 15 `roadSideUnit` - infrastructure typically positioned outside of the drivable roadway (e.g. on a gantry, on a pole, + on a stationary road works trailer); the infrastructure is static during the entire operation period of the ITS-S (e.g. no stop and go activity), + * - 16-255 - are reserved for future usage. + * + * @category: Communication information. + * @revision: Created in V2.1.1 based on StationType + */ +TrafficParticipantType ::= INTEGER { + unknown (0), + pedestrian (1), + cyclist (2), + moped (3), + motorcycle (4), + passengerCar (5), + bus (6), + lightTruck (7), + heavyTruck (8), + trailer (9), + specialVehicle (10), + tram (11), + lightVruVehicle (12), + animal (13), + agricultural (14), + roadSideUnit (15) +} (0..255) + +/** + * This DE indicates traffic rules that apply to vehicles at a certain position. + * + * The value shall be set to: + * - `0` - if overtaking is prohibited for all vehicles, + * - `1` - if overtaking is prohibited for trucks, + * - `2` - if vehicles should pass to the right lane, + * - `3` - if vehicles should pass to the left lane. + * - `4` - if vehicles should pass to the left or right lane. + * + * @category: Infrastructure information, Traffic information + * @revision: Editorial update in V2.1.1 + */ +TrafficRule ::= ENUMERATED { + noPassing (0), + noPassingForTrucks (1), + passToRight (2), + passToLeft (3), + ..., + passToLeftOrRight (4) +} + +/** + * This DE provides information about the presence of a trailer. + * + * The value shall be set to: + * - 0 `noTrailerPresent` - to indicate that no trailer is present, i.e. either the vehicle is physically not enabled to tow a trailer or it has been detected that no trailer is present. + * - 1 `trailerPresentWithKnownLength` - to indicate that a trailer has been detected as present and the length is included in the vehicle length value. + * - 2 `trailerPresentWithUnknownLength` - to indicate that a trailer has been detected as present and the length is not included in the vehicle length value. + * - 3 `trailerPresenceIsUnknown` - to indicate that information about the trailer presence is unknown, i.e. the vehicle is physically enabled to tow a trailer but the detection of trailer presence/absence is not possible. + * - 4 `unavailable` - to indicate that the information about the presence of a trailer is not available, i.e. it is neither known whether the vehicle is able to tow a trailer + * nor the detection of trailer presence/absence is possible. + * + * @category: Vehicle information + * @revision: Created in V2.1.1 based on VehicleLengthConfidenceIndication +*/ +TrailerPresenceInformation ::= ENUMERATED { + noTrailerPresent (0), + trailerPresentWithKnownLength (1), + trailerPresentWithUnknownLength (2), + trailerPresenceIsUnknown (3), + unavailable (4) +} + +/** + * This DE defines the probability that the ego trajectory intercepts with any other object's trajectory on the road. + * + * The value shall be set to: + * - `n` (`n >= 0` and `n <= 50`) to indicate the actual probability, + * - the values between 51 and 62 are reserved, + * - `63`: to indicate that the information is unavailable. + * + * @unit: 2 % + * @category: Kinematic information + * @revision: Created in V2.1.1 + */ +TrajectoryInterceptionProbability ::= INTEGER { + unavailable (63) +} (0..63) + +/** + * This DE defines the confidence level of the trajectoryInterceptionProbability. + * + * The value shall be set to: + * - `0` - to indicate confidence level less than 50 %, + * - `1` - to indicate confidence level greater than or equal to 50 % and less than 70 %, + * - `2` - to indicate confidence level greater than or equal to 70 % and less than 90 %, + * - `3` - to indicate confidence level greater than or equal to 90%. + * + * @category: Kinematic information + * @revision: Created in V2.1.1 + */ +TrajectoryInterceptionConfidence ::= INTEGER { + lessthan50percent (0), + between50and70Percent (1), + between70and90Percent (2), + above90Percent (3) +} (0..3) + +/** + * This DE represents the time interval between two consecutive message transmissions. + * + * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref DeltaTimeMilliSecondPos instead. + * @unit: 0,001 s + * @category: Basic information + * @revision: V1.3.1 + */ +TransmissionInterval::= INTEGER (1..10000) + +/** + * This DE provides the turning direction. + * + * The value shall be set to: + * - `left` for turning to te left. + * - `right` for turing to the right. + * + * @category: Kinematic information + * @revision: Created in V2.1.1 + */ +TurningDirection::= ENUMERATED { + left, + right +} + +/** + * This DE represents the smallest circular turn (i.e. U-turn) that the vehicle is capable of making. + * + * The value shall be set to: + * - `n` (`n > 0` and `n < 254`) to indicate the applicable value is equal to or less than n x 0,4 metre, and greater than (n-1) x 0,4 metre, + * - `254` to indicate that the turning radius is greater than 253 x 0,4 metre = 101.2 metres, + * - `255` to indicate that the information is unavailable. + * + * For vehicle with tracker, the turning radius applies to the vehicle only. + * + * @category: Vehicle information + * @unit 0,4 metre + * @revision: Description revised V2.1.1 (the meaning of 254 has changed slightly) + */ +TurningRadius ::= INTEGER { + outOfRange (254), + unavailable (255) +} (1..255) + +/** + * This DE represents indication of how a certain path or area will be used. + * + * The value shall be set to: + * - 0 - ` noIndication ` - in case it will remain free to be used, + * - 1 - ` specialUse ` - in case it will be physically blocked by special use, + * - 2 - ` rescueOperation` - in case it is intended to be used for rescue operations, + * + * @category: Basic information + * @revision: Created in V2.2.1 + */ +UsageIndication ::= ENUMERATED { + noIndication(0), + specialUse (1), + rescueOperation (2), + ... +} + +/** + * This DE represents the duration of a traffic event validity. + * + * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref DeltaTimeSecond instead. + * @unit: 1 s + * @category: Basic information + * @revision: V1.3.1 +*/ +ValidityDuration::= INTEGER { + timeOfDetection(0), + oneSecondAfterDetection(1) +} (0..86400) + +/** + * This DE represents the Vehicle Descriptor Section (VDS). The values are assigned according to ISO 3779 [6]. + * + * @category: Vehicle information + * @revision: V1.3.1 + */ +VDS ::= IA5String (SIZE(6)) + +/** + * This DE represents the value of the sub cause codes of the @ref CauseCode `vehicleBreakdown`. + * + * The value shall be set to: + * - 0 `unavailable` - in case further detailed information on cause of vehicle break down is unavailable, + * - 1 `lackOfFuel` - in case vehicle break down is due to lack of fuel, + * - 2 `lackOfBatteryPower` - in case vehicle break down is caused by lack of battery power, + * - 3 `engineProblem` - in case vehicle break down is caused by an engine problem, + * - 4 `transmissionProblem` - in case vehicle break down is caused by transmission problem, + * - 5 `engineCoolingProblem`- in case vehicle break down is caused by an engine cooling problem, + * - 6 `brakingSystemProblem`- in case vehicle break down is caused by a braking system problem, + * - 7 `steeringProblem` - in case vehicle break down is caused by a steering problem, + * - 8 `tyrePuncture` - in case vehicle break down is caused by tyre puncture, + * - 9 `tyrePressureProblem` - in case low tyre pressure in detected, + * - 10 `vehicleOnFire` - in case the vehicle is on fire. + * - 11-255 - are reserved for future usage. + * + * @category: Traffic information + + */ +VehicleBreakdownSubCauseCode ::= INTEGER { + unavailable (0), + lackOfFuel (1), + lackOfBatteryPower (2), + engineProblem (3), + transmissionProblem (4), + engineCoolingProblem (5), + brakingSystemProblem (6), + steeringProblem (7), + tyrePuncture (8), + tyrePressureProblem (9), + vehicleOnFire (10) +} (0..255) + +/** + * This DE represents the height of the vehicle, measured from the ground to the highest point, excluding any antennas. + * In case vehicles are equipped with adjustable ride heights, camper shells, and any other + * equipment which may result in varying height, the largest possible height shall be used. + * + * The value shall be set to: + * - `n` (`n >0` and `n < 127`) indicates the applicable value is equal to or less than n x 0,05 metre, and greater than (n-1) x 0,05 metre, + * - `127` indicates that the vehicle width is greater than 6,3 metres, + * - `128` indicates that the information in unavailable. + * + * @unit: 0,05 metre + * @category: Vehicle information + * @revision: created in V2.1.1 +*/ +VehicleHeight ::= INTEGER { + outOfRange (126), + unavailable (127) +}(1..128) + +/** + * This DE provides information about the presence of a trailer. + * + * The value shall be set to: + * - 0 `noTrailerPresent` - to indicate that no trailer is present, i.e. either the vehicle is physically not enabled to tow a trailer or it has been detected that no trailer is present, + * - 1 `trailerPresentWithKnownLength` - to indicate that a trailer has been detected as present and the length is included in the vehicle length value, + * - 2 `trailerPresentWithUnknownLength` - to indicate that a trailer has been detected as present and the length is not included in the vehicle length value, + * - 3 `trailerPresenceIsUnknown` - to indicate that information about the trailer presence is unknown, i.e. the vehicle is physically enabled to tow a trailer but the detection of trailer presence/absence is not possible, + * - 4 `unavailable` - to indicate that the information about the presence of a trailer is not available, i.e. it is neither known whether the vehicle is able to tow a trailer, + * nor the detection of trailer presence/absence is possible. + * + * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref TrailerPresenceInformation instead. + * @category: Vehicle information + * @revision: Description revised in V2.1.1 +*/ +VehicleLengthConfidenceIndication ::= ENUMERATED { + noTrailerPresent (0), + trailerPresentWithKnownLength (1), + trailerPresentWithUnknownLength (2), + trailerPresenceIsUnknown (3), + unavailable (4) +} + +/** + * This DE represents the length of a vehicle. + * + * The value shall be set to: + * - `n` (`n > 0` and `n < 1022`) to indicate the applicable value n is equal to or less than n x 0,1 metre, and greater than (n-1) x 0,1 metre, + * - `1 022` to indicate that the vehicle length is greater than 102.1 metres, + * - `1 023` to indicate that the information in unavailable. + * + * + * @unit: 0,1 metre + * @category: Vehicle information + * @revision: Description updated in V2.1.1 (the meaning of 1 022 has changed slightly). + */ +VehicleLengthValue ::= INTEGER { + outOfRange(1022), + unavailable(1023) +} (1..1023) + +/** + * This DE represents the mass of an empty loaded vehicle. + * + * The value shall be set to: + * - `n` (`n > 0` and `n < 1023`) to indicate that the applicable value is equal to or less than n x 10^5 gramm, and greater than (n-1) x 10^5 gramm, + * - `1 023` indicates that the vehicle mass is greater than 102 200 000 g, + * - `1 024` indicates the vehicle mass information is unavailable. + * + * @note: The empty load vehicle is defined in ISO 1176 [8], clause 4.6. + * + * @unit: 10^5 gramm + * @category: Vehicle information + * @revision: Description updated in V2.1.1 (the meaning of 1 023 has changed slightly). +*/ +VehicleMass ::= INTEGER { + outOfRange (1023), + unavailable(1024) +} (1..1024) + +/** + * This DE indicates the role played by a vehicle at a point in time. + * + * The value shall be set to: + * - 0 `default` - to indicate the default vehicle role as indicated by the vehicle type, + * - 1 `publicTransport` - to indicate that the vehicle is used to operate public transport service, + * - 2 `specialTransport` - to indicate that the vehicle is used for special transport purpose, e.g. oversized trucks, + * - 3 `dangerousGoods` - to indicate that the vehicle is used for dangerous goods transportation, + * - 4 `roadWork` - to indicate that the vehicle is used to realize roadwork or road maintenance mission, + * - 5 `rescue` - to indicate that the vehicle is used for rescue purpose in case of an accident, e.g. as a towing service, + * - 6 `emergency` - to indicate that the vehicle is used for emergency mission, e.g. ambulance, fire brigade, + * - 7 `safetyCar` - to indicate that the vehicle is used for public safety, e.g. patrol, + * - 8 `agriculture` - to indicate that the vehicle is used for agriculture, e.g. farm tractor, + * - 9 `commercial` - to indicate that the vehicle is used for transportation of commercial goods, + * - 10 `military` - to indicate that the vehicle is used for military purpose, + * - 11 `roadOperator` - to indicate that the vehicle is used in road operator missions, + * - 12 `taxi` - to indicate that the vehicle is used to provide an authorized taxi service, + * - 13 `uvar` - to indicate that the vehicle is authorized to enter a zone according to the applicable Urban Vehicle Access Restrictions. + * - 14 `rfu1` - is reserved for future usage. + * - 15 `rfu2` - is reserved for future usage. + * + * @category: Vehicle Information + * @revision: Description updated in V2.1.1 (removed reference to CEN/TS 16157-3), value 13 assigned in V2.2.1 + */ +VehicleRole ::= ENUMERATED { + default (0), + publicTransport (1), + specialTransport(2), + dangerousGoods (3), + roadWork (4), + rescue (5), + emergency (6), + safetyCar (7), + agriculture (8), + commercial (9), + military (10), + roadOperator (11), + taxi (12), + uvar (13), + rfu1 (14), + rfu2 (15) +} + +/** + * This DE represents the width of a vehicle, excluding side mirrors and possible similar extensions. + + * The value shall be set to: + * - `n` (`n > 0` and `n < 61`) indicates the applicable value is equal to or less than n x 0,1 metre, and greater than (n-1) x 0,1 metre, + * - `61` indicates that the vehicle width is greater than 6,0 metres, + * - `62` indicates that the information in unavailable. + * + * @unit: 0,1 metre + * @category: Vehicle information + * @revision: Description updated in V2.1.1 (the meaning of 61 has changed slightly). + */ +VehicleWidth ::= INTEGER { + outOfRange (61), + unavailable (62) +} (1..62) + +/** + * This DE represents the vehicle acceleration at vertical direction in the centre of the mass of the empty vehicle. + * The value shall be provided in the vehicle coordinate system as defined in ISO 8855 [21], clause 2.11. + * + * The value shall be set to: + * - `-160` for acceleration values equal to or less than -16 m/s^2, + * - `n` (`n > -160` and `n <= 0`) to indicate downwards acceleration equal to or less than n x 0,1 m/s^2, and greater than (n-1) x 0,1 m/s^2, + * - `n` (`n > 0` and `n < 160`) to indicate upwards acceleration equal to or less than n x 0,1 m/s^2, and greater than (n-1) x 0,1 m/s^2, + * - `160` for acceleration values greater than 15,9 m/s^2, + * - `161` when the data is unavailable. + * + * @note: The empty load vehicle is defined in ISO 1176 [8], clause 4.6. + * + * @category: Vehicle information + * @unit: 0,1 m/s^2 + * @revision: Desciption updated in V2.1.1 (the meaning of 160 has changed slightly). + * +*/ +VerticalAccelerationValue ::= INTEGER { + negativeOutOfRange (-160), + positiveOutOfRange (160), + unavailable (161) +} (-160 .. 161) + +/** + * This DE Identifies all the VRU profile types within a cluster. + * It consist of a Bitmap encoding VRU profiles, to allow multiple profiles to be indicated in a single cluster (heterogeneous cluster if more than one profile). + * + * The corresponding bit shall be set to 1 under the following conditions: + * - 0 `pedestrian` - indicates that the VRU cluster contains at least one pedestrian VRU, + * - 1 `bicycle` - indicates that the VRU cluster contains at least one bicycle VRU member, + * - 2 `motorcyclist`- indicates that the VRU cluster contains at least one motorcycle VRU member, + * - 3 `animal` - indicates that the VRU cluster contains at least one animal VRU member. + * + * Otherwise, the corresponding bit shall be set to 0. + * + * @category: VRU information + * @revision: Created in V2.1.1 +*/ +VruClusterProfiles ::= BIT STRING { + pedestrian (0), + bicyclist (1), + motorcyclist (2), + animal (3) +} (SIZE(4)) + +/** + * This DE represents the possible usage conditions of the VRU device. + + * - The value shall be set to: + * - 0 `unavailable` - to indicate that the usage conditions are unavailable, + * - 1 `other` - to indicate that the VRU device is in a state not defined below, + * - 2 `idle` - to indicate that the human is currently not interacting with the device, + * - 3 `listeningToAudio` - to indicate that any audio source other than calling is in use, + * - 4 `typing` - to indicate that the human is texting or performaing any other manual input activity, + * - 5 `calling` - to indicate that the VRU device is currently receiving a call, + * - 6 `playingGames` - to indicate that the human is playing games, + * - 7 `reading` - to indicate that the human is reading on the VRU device, + * - 8 `viewing` - to indicate that the human is watching dynamic content, including following navigation prompts, viewing videos or other visual contents that are not static. + * - value 9 to 15 - are reserved for future usage. + * + * @category: VRU information + * @revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1 and range changed from 0..255 to 0..15 + */ +VruDeviceUsage ::= INTEGER { + unavailable (0), + other (1), + idle (2), + listeningToAudio (3), + typing (4), + calling (5), + playingGames (6), + reading (7), + viewing (8) +}(0..15) + +/** + * This DE represents the possible VRU environment conditions. + * + * - The value shall be set to: + * - 0 `unavailable` - to indicate that the information on the type of environment is unavailable, + * - 1 `intersectionCrossing` - to indicate that the VRU is on an intersection or crossing, + * - 2 `zebraCrossing` - to indicate that the VRU is on a zebra crossing (crosswalk), + * - 3 `sidewalk` - to indicate that the VRU is on a sidewalk, + * - 4 `onVehicleRoad` - to indicate that the VRU is on a traffic lane, + * - 5 `protectedGeographicArea`- to indicate that the VRU is in a protected area. + * - value 6 to 15 - are reserved for future usage. + * + * @category: VRU information + * @revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1 and range changed from 0..255 to 0..15 + */ +VruEnvironment ::= INTEGER { + unavailable (0), + intersectionCrossing (1), + zebraCrossing (2), + sidewalk (3), + onVehicleRoad (4), + protectedGeographicArea (5) +}(0..15) + +/** + * This DE indicates the status of the possible human control over a VRU vehicle. + * + * The value shall be set to: + * - 0 `unavailable` - to indicate that the information is unavailable, + * - 1 `braking` - to indicate that the VRU is braking, + * - 2 `hardBraking` - to indicate that the VRU is braking hard, + * - 3 `stopPedaling` - to indicate that the VRU stopped pedaling, + * - 4 `brakingAndStopPedaling` - to indicate that the VRU stopped pedaling an is braking, + * - 5 `hardBrakingAndStopPedaling` - to indicate that the VRU stopped pedaling an is braking hard, + * - 6 `noReaction` - to indicate that the VRU is not changing its behavior. + * - 7 to 15 - are reserved for future usage. + * + * @category: VRU information + * @revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1 and range changed from 0..255 to 0..15 + */ +VruMovementControl ::= INTEGER { + unavailable (0), + braking (1), + hardBraking (2), + stopPedaling (3), + brakingAndStopPedaling (4), + hardBrakingAndStopPedaling (5), + noReaction (6) +}(0..15) + +/** + * This DE indicates the profile of a pedestrian. + * + * The value shall be set to: + * - 0 `unavailable` - to indicate that the information on is unavailable, + * - 1 `ordinary-pedestrian` - to indicate a pedestrian to which no more-specific profile applies, + * - 2 `road-worker` - to indicate a pedestrian with the role of a road worker, + * - 3 `first-responder` - to indicate a pedestrian with the role of a first responder. + * - value 4 to 15 - are reserved for future usage. + * + * @category: VRU information + * @revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1 + */ +VruSubProfilePedestrian ::= INTEGER { + unavailable (0), + ordinary-pedestrian (1), + road-worker (2), + first-responder (3) +}(0..15) + +/** + * This DE indicates the profile of a VRU and its light VRU vehicle / mounted animal. + * + * The value shall be set to: + * - 0 `unavailable` - to indicate that the information is unavailable, + * - 1 `bicyclist ` - to indicate a cycle and bicyclist to which no more-specific profile applies, + * - 2 `wheelchair-user` - to indicate a wheelchair and its user, + * - 3 `horse-and-rider` - to indicate a horse and rider, + * - 4 `rollerskater` - to indicate a roller-skater and skater, + * - 5 `e-scooter` - to indicate an e-scooter and rider, + * - 6 `personal-transporter` - to indicate a personal-transporter and rider, + * - 7 `pedelec` - to indicate a pedelec and rider to which no more-specific profile applies, + * - 8 `speed-pedelec` - to indicate a speed-pedelec and rider. + * - 9 `roadbike` - to indicate a road bicycle (or road pedelec) and rider, + * - 10 `childrensbike` - to indicate a children�s bicycle (or children�s pedelec) and rider, + * - 11 to 15 - are reserved for future usage. + * + * @category: VRU information + * @revision: Created in V2.1.1, values 9 and 10 assigned in V2.2.1 + */ +VruSubProfileBicyclist ::= INTEGER { + unavailable (0), + bicyclist (1), + wheelchair-user (2), + horse-and-rider (3), + rollerskater (4), + e-scooter (5), + personal-transporter (6), + pedelec (7), + speed-pedelec (8), + roadbike (9), + childrensbike (10) +}(0..15) + +/** + * This DE indicates the profile of a motorcyclist and corresponding vehicle. + * + * The value shall be set to: + * - 0 `unavailable ` - to indicate that the information is unavailable, + * - 1 `moped` - to indicate a moped and rider, + * - 2 `motorcycle` - to indicate a motorcycle and rider, + * - 3 `motorcycle-and-sidecar-right` - to indicate a motorcycle with sidecar on the right and rider, + * - 4 `motorcycle-and-sidecar-left` - to indicate a motorcycle with sidecar on the left and rider. + * - 5 to 15 - are reserved for future usage. + * + * @category: VRU information + * @revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1 + */ +VruSubProfileMotorcyclist ::= INTEGER { + unavailable (0), + moped (1), + motorcycle (2), + motorcycle-and-sidecar-right (3), + motorcycle-and-sidecar-left (4) +}(0..15) + +/** + * This DE indicates the profile of an animal + * + * The value shall be set to: + * - 0 `unavailable` - to indicate that the information is unavailable, + * - 1 `wild-animal` - to indicate a animal living in the wildness, + * - 2 `farm-animal` - to indicate an animal beloning to a farm, + * - 3 `service-animal` - to indicate an animal that supports a human being. + * - 4 to 15 - are reserved for future usage. + * + * @category: VRU information + * @revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1 + */ +VruSubProfileAnimal ::= INTEGER { + unavailable (0), + wild-animal (1), + farm-animal (2), + service-animal (3) +}(0..15) + +/** + * This DE indicates the approximate size of a VRU including the VRU vehicle used. + * + * The value shall be set to: + * - 0 `unavailable` - to indicate that there is no matched size class or due to privacy reasons in profile 1, + * - 1 `low` - to indicate that the VRU size class is low depending on the VRU profile, + * - 2 `medium` - to indicate that the VRU size class is medium depending on the VRU profile, + * - 3 `high` - to indicate that the VRU size class is high depending on the VRU profile. + * - 4 to 15 - are reserved for future usage. + * + * @category: VRU information + * @revision: Created in V2.1.1, type changed from ENUMERATED to INTEGER in V2.2.1 + */ +VruSizeClass ::= INTEGER { + unavailable (0), + low (1), + medium (2), + high (3) +}(0..15) + +/** + * This DE describes the status of the exterior light switches of a VRU. + * + * The value of each bit indicates the state of the switch, which commands the corresponding light. + * The bit corresponding to a specific light shall be set to 1, when the corresponding switch is turned on, either manually by the driver or VRU + * or automatically by a vehicle or VRU system: + * - 0 `unavailable` - indicates no information available, + * - 1 `backFlashLight ` - indicates the status of the back flash light, + * - 2 `helmetLight` - indicates the status of the helmet light, + * - 3 `armLight` - indicates the status of the arm light, + * - 4 `legLight` - indicates the status of the leg light, + * - 5 `wheelLight` - indicates the status of the wheel light. + * - Bits 6 to 8 - are reserved for future use. + * The bit values do not indicate if the corresponding lamps are alight or not. + * If VRU is not equipped with a certain light or if the light switch status information is not available, the corresponding bit shall be set to 0. + * + * @category: VRU information + * @revision: Created in V2.1.1 + */ +VruSpecificExteriorLights ::= BIT STRING { + unavailable (0), + backFlashLight (1), + helmetLight (2), + armLight (3), + legLight (4), + wheelLight (5) +} (SIZE(8)) + +/** + * This DE indicates the perpendicular distance between front and rear axle of the wheel base of vehicle. + * + * The value shall be set to: + * - `n` (`n >= 1` and `n < 126`) if the value is equal to or less than n x 0,1 metre and more than (n-1) x 0,1 metre, + * - `126` indicates that the wheel base distance is equal to or greater than 12,5 metres, + * - `127` indicates that the information is unavailable. + * + * @unit 0,1 metre + * @category: Vehicle information + * @revision: Created in V2.1.1 + */ +WheelBaseVehicle ::= INTEGER { + outOfRange (126), + unavailable (127) +} (1..127) + +/** + * This DE indicates the angle confidence value which represents the estimated accuracy of an angle value with a default confidence level of 95 %. + * If required, the confidence level can be defined by the corresponding standards applying this DE. + * + * The value shall be set to: + * - `n` (`n >= 1` and `n < 126`) if the confidence value is equal to or less than n x 0,1 degrees and more than (n-1) x 0,1 degrees, + * - `126` if the confidence value is out of range, i.e. greater than 12,5 degrees, + * - `127` if the confidence value is not available. + * + * + * @unit 0,1 degrees + * @category: GeoReference Information + * @revision: Created in V2.1.1 +*/ +Wgs84AngleConfidence ::= INTEGER { + outOfRange (126), + unavailable (127) +} (1..127) + + +/** + * This DE represents an angle value in degrees described in the WGS84 reference system with respect to the WGS84 north. + * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE. + * When the information is not available, the DE shall be set to 3 601. The value 3600 shall not be used. + * + * @unit 0,1 degrees + * @category: GeoReference Information + * @revision: Created in V2.1.1 +*/ +Wgs84AngleValue ::= INTEGER { + wgs84North (0), + wgs84East (900), + wgs84South (1800), + wgs84West (2700), + doNotUse (3600), + unavailable (3601) +} (0..3601) + +/** + * This DE represents the World Manufacturer Identifier (WMI). The values are assigned according to ISO 3779 [6]. + * + * + * @category: Vehicle information + * @revision: V1.3.1 + */ +WMInumber ::= IA5String (SIZE(1..3)) + +/** + * This DE represents the sub cause codes of the @ref CauseCode `wrongWayDriving` . + * + * The value shall be set to: + * - 0 `unavailable` - in case further detailed information on wrong way driving event is unavailable, + * - 1 `wrongLane` - in case vehicle is driving on a lane for which it has no authorization to use, + * - 2 `wrongDirection` - in case vehicle is driving in a direction that it is not allowed, + * - 3-255 - reserved for future usage. + * + * @category: Traffic information + * @revision: V1.3.1 + */ +WrongWayDrivingSubCauseCode ::= INTEGER { + unavailable (0), + wrongLane (1), + wrongDirection (2) +} (0..255) + +/** + * This DE indicates the yaw rate confidence value which represents the estimated accuracy for a yaw rate value with a default confidence level of 95 %. + * If required, the confidence level can be defined by the corresponding standards applying this DE. + * + * The value shall be set to: + * - `0` if the confidence value is equal to or less than 0,01 degree/second, + * - `1` if the confidence value is equal to or less than 0,05 degrees/second or greater than 0,01 degree/second, + * - `2` if the confidence value is equal to or less than 0,1 degree/second or greater than 0,05 degree/second, + * - `3` if the confidence value is equal to or less than 1 degree/second or greater than 0,1 degree/second, + * - `4` if the confidence value is equal to or less than 5 degrees/second or greater than 1 degrees/second, + * - `5` if the confidence value is equal to or less than 10 degrees/second or greater than 5 degrees/second, + * - `6` if the confidence value is equal to or less than 100 degrees/second or greater than 10 degrees/second, + * - `7` if the confidence value is out of range, i.e. greater than 100 degrees/second, + * - `8` if the confidence value is unavailable. + * + * NOTE: The fact that a yaw rate value is received with confidence value set to `unavailable(8)` can be caused by + * several reasons, such as: + * - the sensor cannot deliver the accuracy at the defined confidence level because it is a low-end sensor, + * - the sensor cannot calculate the accuracy due to lack of variables, or + * - there has been a vehicle bus (e.g. CAN bus) error. + * In all 3 cases above, the yaw rate value may be valid and used by the application. + * + * If a yaw rate value is received and its confidence value is set to `outOfRange(7)`, it means that the + * yaw rate value is not valid and therefore cannot be trusted. Such value is not useful the application. + * + * @category: Vehicle information + * @revision: Description revised in V2.1.1 + */ +YawRateConfidence ::= ENUMERATED { + degSec-000-01 (0), + degSec-000-05 (1), + degSec-000-10 (2), + degSec-001-00 (3), + degSec-005-00 (4), + degSec-010-00 (5), + degSec-100-00 (6), + outOfRange (7), + unavailable (8) +} + +/** + * This DE represents the vehicle rotation around z-axis of the coordinate system centred on the centre of mass of the empty-loaded + * vehicle. The leading sign denotes the direction of rotation. + * + * The value shall be provided in the vehicle coordinate system as defined in ISO 8855 [21], clause 2.11. + * + * The value shall be set to: + * - `-32 766` to indicate that the yaw rate is equal to or greater than 327,66 degrees/second to the right, + * - `n` (`n > -32 766` and `n <= 0`) to indicate that the rotation is clockwise (i.e. to the right) and is equal to or less than n x 0,01 degrees/s, + and greater than (n-1) x 0,01 degrees/s, + * - `n` (`n > 0` and `n < 32 766`) to indicate that the rotation is anti-clockwise (i.e. to the left) and is equal to or less than n x 0,01 degrees/s, + and greater than (n-1) x 0,01 degrees/s, + * - `32 766` to indicate that the yaw rate is greater than 327.65 degrees/second to the left, + * - `32 767` to indicate that the information is not available. + * + * The yaw rate value shall be a raw data value, i.e. not filtered, smoothed or otherwise modified. + * The reading instant should be the same as for the vehicle acceleration. + * + * @note: The empty load vehicle is defined in ISO 1176 [8], clause 4.6. + * + * @unit: 0,01 degree per second. + * @category: Vehicle Information + * @revision: Desription revised in V2.1.1 (the meaning of 32766 has changed slightly). +*/ +YawRateValue ::= INTEGER { + negativeOutOfRange (-32766), + positiveOutOfRange (32766), + unavailable (32767) +} (-32766..32767) + +---------------------------------------- +-- Specification of CDD Data Frames: +---------------------------------------- + +/** + * This DF represents an acceleration vector with associated confidence value. + * + * It shall include the following components: + * + * @field polarAcceleration: the representation of the acceleration vector in a polar or cylindrical coordinate system. + * + * @field cartesianAcceleration: the representation of the acceleration vector in a cartesian coordinate system. + * + * @category: Kinematic information + * @revision: Created in V2.1.1 + */ +Acceleration3dWithConfidence::= CHOICE { + polarAcceleration AccelerationPolarWithZ, + cartesianAcceleration AccelerationCartesian +} + +/** + * This DF represents an acceleration vector in a polar or cylindrical coordinate system. + + * It shall include the following components: + * + * @field accelerationMagnitude: magnitude of the acceleration vector projected onto the reference plane, with the associated confidence value. + * + * @field accelerationDirection: polar angle of the acceleration vector projected onto the reference plane, with the associated confidence value. + * + * @field zAcceleration: the optional z component of the acceleration vector along the reference axis of the cylindrical coordinate system, with the associated confidence value. + * + * @category: Kinematic information + * @revision: Created in V2.1.1 + */ +AccelerationPolarWithZ::= SEQUENCE{ + accelerationMagnitude AccelerationMagnitude, + accelerationDirection CartesianAngle, + zAcceleration AccelerationComponent OPTIONAL +} + +/** + * This DF represents a acceleration vector in a cartesian coordinate system. + + * It shall include the following components: + * + * @field xAcceleration: the x component of the acceleration vector with the associated confidence value. + * + * @field yAcceleration: the y component of the acceleration vector with the associated confidence value. + * + * @field zAcceleration: the optional z component of the acceleration vector with the associated confidence value. + * + * @category: Kinematic information + * @revision: Created in V2.1.1 + */ +AccelerationCartesian::= SEQUENCE{ + xAcceleration AccelerationComponent, + yAcceleration AccelerationComponent, + zAcceleration AccelerationComponent OPTIONAL +} + +/** + * This DF represents an acceleration component along with a confidence value. + * + * It shall include the following components: + * + * @field value: the value of the acceleration component which can be estimated as the mean of the current distribution. + * + * @field confidence: the confidence value associated to the provided value. + * + * @category: Kinematic Information + * @revision: Created in V2.1.1 + */ +AccelerationComponent ::= SEQUENCE { + value AccelerationValue, + confidence AccelerationConfidence +} + +/** + * This DF represents information associated to changes in acceleration. + * + * It shall include the following components: + * + * @field accelOrDecel: the indication of an acceleration change. + * + * @field actionDeltaTime: the period over which the acceleration change action is performed. + * + * @category: Kinematic Information + * @revision: Created in V2.1.1 + */ +AccelerationChangeIndication ::= SEQUENCE { + accelOrDecel AccelerationChange, + actionDeltaTime DeltaTimeTenthOfSecond, + ... +} + +/** + * This DF represents the magnitude of the acceleration vector and associated confidence value. + * + * It shall include the following components: + * + * @field accelerationMagnitudeValue: the magnitude of the acceleration vector. + * + * @field accelerationConfidence: the confidence value of the magnitude value. + * + * @category: Kinematic information + * @revision: Created in V2.1.1 + */ +AccelerationMagnitude::= SEQUENCE { + accelerationMagnitudeValue AccelerationMagnitudeValue, + accelerationConfidence AccelerationConfidence +} + +/** + * This DF represents an identifier used to describe a protocol action taken by an ITS-S. + * + * It shall include the following components: + * + * @field originatingStationId: Id of the ITS-S that takes the action. + * + * @field sequenceNumber: a sequence number. + * + * @category: Communication information + * @revision: Created in V2.1.1 based on @ref ActionID. + */ +ActionId ::= SEQUENCE { + originatingStationId StationId, + sequenceNumber SequenceNumber +} + +/** + * This DF represents an identifier used to describe a protocol action taken by an ITS-S. + * + * It shall include the following components: + * + * @field originatingStationId: Id of the ITS-S that takes the action. + * + * @field sequenceNumber: a sequence number. + * + * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref ActionId instead. + * @category: Communication information + * @revision: V1.3.1 + */ +ActionID ::= SEQUENCE { + originatingStationId StationID, + sequenceNumber SequenceNumber +} + +/** + * This DF shall contain a list of @ref ActionId. + + * @category: Communication Information + * @revision: Created in V2.1.1 based on ReferenceDenms from DENM Release 1 +*/ +ActionIdList::= SEQUENCE (SIZE(1..8, ...)) OF ActionId + +/** + * This DF provides the altitude and confidence level of an altitude information in a WGS84 coordinate system. + * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE. + * + * It shall include the following components: + * + * @field altitudeValue: altitude of a geographical point. + * + * @field altitudeConfidence: confidence level of the altitudeValue. + * + * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref AltitudeWithConfidence instead. + * @category: GeoReference information + * @revision: Description revised in V2.1.1 + */ +Altitude ::= SEQUENCE { + altitudeValue AltitudeValue, + altitudeConfidence AltitudeConfidence +} + +/** + * This DE represents a general container for usage in various types of messages. + * + * It shall include the following components: + * + * @field stationType: the type of technical context in which the ITS-S that has generated the message is integrated in. + * + * @field referencePosition: the reference position of the station that has generated the message that contains the basic container. + * + * @category: Basic information + * @revision: Created in V2.1.1 +*/ +BasicContainer ::= SEQUENCE { + stationType TrafficParticipantType, + referencePosition ReferencePositionWithConfidence, + ... +} + +/** + * This DF provides information about the configuration of a road section in terms of lanes using a list of @ref LanePositionAndType . + * + * @category: Road topology information + * @revision: Created in V2.2.1 +*/ +BasicLaneConfiguration::= SEQUENCE(SIZE(1..16,...)) OF BasicLaneInformation + +/** + * This DF provides basic information about a single lane of a road segment. + * It includes the following components: + * + * @field laneNumber: the number associated to the lane that provides a transversal identification. + * + * @field direction: the direction of traffic flow allowed on the lane. + * + * @field laneWidth: the optional width of the lane. + * + * @field connectingLane: the number of the connecting lane in the next road section, i.e. the number of the lane which the vehicle will use when travelling from one section to the next, + * if it does not actively change lanes. If this component is absent, the lane name number remains the same in the next section. + * + * @field connectingRoadSection: the identifier of the next road section in direction of traffic, that is connecting to the current road section. + * If this component is absent, the connecting road section is the one following the instance where this DF is placed in the @ref RoadConfigurationSectionList. + * + * @category: Road topology information + * @revision: Created in V2.2.1 +*/ + +BasicLaneInformation::= SEQUENCE{ + laneNumber LanePosition, + direction Direction, + laneWidth LaneWidth OPTIONAL, + connectingLane LanePosition OPTIONAL, + connectingRoadSection RoadSectionId OPTIONAL, + ... +} +((WITH COMPONENTS {..., connectingLane PRESENT}) | + (WITH COMPONENTS {..., connectingLane ABSENT, connectingRoadSection ABSENT})) + +/** + * This DF represents a general Data Frame to describe an angle component along with a confidence value in a cartesian coordinate system. + * + * It shall include the following components: + * + * @field value: The angle value which can be estimated as the mean of the current distribution. + * + * @field confidence: The confidence value associated to the provided value. + * + * @category: Basic information + * @revision: Created in V2.1.1 + */ +CartesianAngle ::= SEQUENCE { + value CartesianAngleValue, + confidence AngleConfidence +} + +/** + * This DF represents an angular velocity component along with a confidence value in a cartesian coordinate system. + * + * It shall include the following components: + * + * @field value: The angular velocity component. + * + * @field confidence: The confidence value associated to the provided value. + * + * @category: Kinematic information + * @revision: Created in V2.1.1 + */ +CartesianAngularVelocityComponent ::= SEQUENCE { + value CartesianAngularVelocityComponentValue, + confidence AngularSpeedConfidence +} + +/** + * This DF represents a general Data Frame to describe an angular acceleration component along with a confidence value in a cartesian coordinate system. + * + * It shall include the following components: + * + * @field value: The angular acceleration component value. + * + * @field confidence: The confidence value associated to the provided value. + * + * @category: Kinematic information + * @revision: Created in V2.1.1 + */ +CartesianAngularAccelerationComponent ::= SEQUENCE { + value CartesianAngularAccelerationComponentValue, + confidence AngularAccelerationConfidence +} + +/** + * This DF represents a coordinate along with a confidence value in a cartesian reference system. + * + * It shall include the following components: + * + * @field value: the coordinate value, which can be estimated as the mean of the current distribution. + * + * @field confidence: the coordinate confidence value associated to the provided value. + * + * @category: GeoReference information + * @revision: Created in V2.1.1 +*/ +CartesianCoordinateWithConfidence ::= SEQUENCE { + value CartesianCoordinateLarge, + confidence CoordinateConfidence +} + +/** + * This DF represents a position in a two- or three-dimensional cartesian coordinate system. + * + * It shall include the following components: + * + * @field xCoordinate: the X coordinate value. + * + * @field yCoordinate: the Y coordinate value. + * + * @field zCoordinate: the optional Z coordinate value. + * + * @category: GeoReference information + * @revision: Created in V2.1.1 +*/ +CartesianPosition3d::=SEQUENCE{ + xCoordinate CartesianCoordinate, + yCoordinate CartesianCoordinate, + zCoordinate CartesianCoordinate OPTIONAL +} + +/** + * This DF represents a position in a two- or three-dimensional cartesian coordinate system with an associated confidence level for each coordinate. + * + * It shall include the following components: + * + * @field xCoordinate: the X coordinate value with the associated confidence level. + * + * @field yCoordinate: the Y coordinate value with the associated confidence level. + * + * @field zCoordinate: the optional Z coordinate value with the associated confidence level. + * + * @category: GeoReference information + * @revision: Created in V2.1.1 +*/ +CartesianPosition3dWithConfidence::= SEQUENCE{ + xCoordinate CartesianCoordinateWithConfidence, + yCoordinate CartesianCoordinateWithConfidence, + zCoordinate CartesianCoordinateWithConfidence OPTIONAL +} + +/** + * This DF is a representation of the cause code value of a traffic event. + * + * It shall include the following components: + * + * @field causeCode: the main cause of a detected event. + * + * @field subCauseCode: the subordinate cause of a detected event. + * + * The semantics of the entire DF are completely defined by the component causeCode. The interpretation of the subCauseCode may + * provide additional information that is not strictly necessary to understand the causeCode itself, and is therefore optional. + * + * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref CauseCodeV2 instead. + * + * @category: Traffic information + * @revision: Editorial update in V2.1.1 + */ +CauseCode ::= SEQUENCE { + causeCode CauseCodeType, + subCauseCode SubCauseCodeType, + ... +} + +/** + * This DF is a representation of the cause code value and associated sub cause code value of a traffic event. + * + * The following options are available: + * - 0 - reserved for future use, + * - 1 - `trafficCondition1` - in case the type of event is an abnormal traffic condition, + * - 2 - `accident2` - in case the type of event is a road accident, + * - 3 - `roadworks3` - in case the type of event is roadwork, + * - 4 - reserved for future usage, + * - 5 - `impassability5` - in case the type of event is unmanaged road blocking, referring to any + * blocking of a road, partial or total, which has not been adequately secured and signposted, + * - 6 - `adverseWeatherCondition-Adhesion6` - in case the type of event is low adhesion, + * - 7 - `aquaplaning7` - danger of aquaplaning on the road, + * - 8 - reserved for future usage, + * - 9 - `hazardousLocation-SurfaceCondition9` - in case the type of event is abnormal road surface condition, + * - 10 - `hazardousLocation-ObstacleOnTheRoad10` - in case the type of event is obstacle on the road, + * - 11 - `hazardousLocation-AnimalOnTheRoad11` - in case the type of event is animal on the road, + * - 12 - `humanPresenceOnTheRoad` - in case the type of event is presence of human vulnerable road user on the road, + * - 13 - reserved for future usage, + * - 14 - `wrongWayDriving14` - in case the type of the event is vehicle driving in wrong way, + * - 15 - `rescueAndRecoveryWorkInProgress15` - in case the type of event is rescue and recovery work for accident or for a road hazard in progress, + * - 16 - reserved for future usage, + * - 17 - `adverseWeatherCondition-ExtremeWeatherCondition17` - in case the type of event is extreme weather condition, + * - 18 - `adverseWeatherCondition-Visibility18` - in case the type of event is low visibility, + * - 19 - `adverseWeatherCondition-Precipitation19` - in case the type of event is precipitation, + * - 20 - `violence20` - in case the the type of event is human violence on or near the road, + * - 21-25 - reserved for future usage, + * - 26 - `slowVehicle26` - in case the type of event is slow vehicle driving on the road, + * - 27 - `dangerousEndOfQueue27` - in case the type of event is dangerous end of vehicle queue, + * - 28 - `publicTransportVehicleApproaching - in case the type of event is a public transport vehicle approaching, with a priority defined by applicable traffic regulations, + * - 29-90 - are reserved for future usage, + * - 91 - `vehicleBreakdown91` - in case the type of event is break down vehicle on the road, + * - 92 - `postCrash92` - in case the type of event is a detected crash, + * - 93 - `humanProblem93` - in case the type of event is human health problem in vehicles involved in traffic, + * - 94 - `stationaryVehicle94` - in case the type of event is stationary vehicle, + * - 95 - `emergencyVehicleApproaching95` - in case the type of event is an approaching vehicle operating on a mission for which the + applicable traffic regulations provide it with defined priority rights in traffic. + * - 96 - `hazardousLocation-DangerousCurve96` - in case the type of event is dangerous curve, + * - 97 - `collisionRisk97` - in case the type of event is a collision risk, + * - 98 - `signalViolation98` - in case the type of event is signal violation, + * - 99 - `dangerousSituation99` - in case the type of event is dangerous situation in which autonomous safety system in vehicle + * is activated, + * - 100 - `railwayLevelCrossing100` - in case the type of event is a railway level crossing. + * - 101-255 - are reserved for future usage. + * + * @note: this DF is defined for use as part of CauseCodeV2. It is recommended to use CauseCodeV2. + * @category: Traffic information + * @revision: Created in V2.1.1, the type of impassability5 changed to ImpassabilitySubCauseCode in V2.2.1, value 28 added in V2.2.1, definition of value 12 and 95 changed in V2.2.1 + */ +CauseCodeChoice::= CHOICE { + reserved0 SubCauseCodeType, + trafficCondition1 TrafficConditionSubCauseCode, + accident2 AccidentSubCauseCode, + roadworks3 RoadworksSubCauseCode, + reserved4 SubCauseCodeType, + impassability5 ImpassabilitySubCauseCode, + adverseWeatherCondition-Adhesion6 AdverseWeatherCondition-AdhesionSubCauseCode, + aquaplaning7 SubCauseCodeType, + reserved8 SubCauseCodeType, + hazardousLocation-SurfaceCondition9 HazardousLocation-SurfaceConditionSubCauseCode, + hazardousLocation-ObstacleOnTheRoad10 HazardousLocation-ObstacleOnTheRoadSubCauseCode, + hazardousLocation-AnimalOnTheRoad11 HazardousLocation-AnimalOnTheRoadSubCauseCode, + humanPresenceOnTheRoad12 HumanPresenceOnTheRoadSubCauseCode, + reserved13 SubCauseCodeType, + wrongWayDriving14 WrongWayDrivingSubCauseCode, + rescueAndRecoveryWorkInProgress15 RescueAndRecoveryWorkInProgressSubCauseCode, + reserved16 SubCauseCodeType, + adverseWeatherCondition-ExtremeWeatherCondition17 AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode, + adverseWeatherCondition-Visibility18 AdverseWeatherCondition-VisibilitySubCauseCode, + adverseWeatherCondition-Precipitation19 AdverseWeatherCondition-PrecipitationSubCauseCode, + violence20 SubCauseCodeType, + reserved21 SubCauseCodeType, + reserved22 SubCauseCodeType, + reserved23 SubCauseCodeType, + reserved24 SubCauseCodeType, + reserved25 SubCauseCodeType, + slowVehicle26 SlowVehicleSubCauseCode, + dangerousEndOfQueue27 DangerousEndOfQueueSubCauseCode, + publicTransportVehicleApproaching28 SubCauseCodeType, + reserved29 SubCauseCodeType, + reserved30 SubCauseCodeType, + reserved31 SubCauseCodeType, + reserved32 SubCauseCodeType, + reserved33 SubCauseCodeType, + reserved34 SubCauseCodeType, + reserved35 SubCauseCodeType, + reserved36 SubCauseCodeType, + reserved37 SubCauseCodeType, + reserved38 SubCauseCodeType, + reserved39 SubCauseCodeType, + reserved40 SubCauseCodeType, + reserved41 SubCauseCodeType, + reserved42 SubCauseCodeType, + reserved43 SubCauseCodeType, + reserved44 SubCauseCodeType, + reserved45 SubCauseCodeType, + reserved46 SubCauseCodeType, + reserved47 SubCauseCodeType, + reserved48 SubCauseCodeType, + reserved49 SubCauseCodeType, + reserved50 SubCauseCodeType, + reserved51 SubCauseCodeType, + reserved52 SubCauseCodeType, + reserved53 SubCauseCodeType, + reserved54 SubCauseCodeType, + reserved55 SubCauseCodeType, + reserved56 SubCauseCodeType, + reserved57 SubCauseCodeType, + reserved58 SubCauseCodeType, + reserved59 SubCauseCodeType, + reserved60 SubCauseCodeType, + reserved61 SubCauseCodeType, + reserved62 SubCauseCodeType, + reserved63 SubCauseCodeType, + reserved64 SubCauseCodeType, + reserved65 SubCauseCodeType, + reserved66 SubCauseCodeType, + reserved67 SubCauseCodeType, + reserved68 SubCauseCodeType, + reserved69 SubCauseCodeType, + reserved70 SubCauseCodeType, + reserved71 SubCauseCodeType, + reserved72 SubCauseCodeType, + reserved73 SubCauseCodeType, + reserved74 SubCauseCodeType, + reserved75 SubCauseCodeType, + reserved76 SubCauseCodeType, + reserved77 SubCauseCodeType, + reserved78 SubCauseCodeType, + reserved79 SubCauseCodeType, + reserved80 SubCauseCodeType, + reserved81 SubCauseCodeType, + reserved82 SubCauseCodeType, + reserved83 SubCauseCodeType, + reserved84 SubCauseCodeType, + reserved85 SubCauseCodeType, + reserved86 SubCauseCodeType, + reserved87 SubCauseCodeType, + reserved88 SubCauseCodeType, + reserved89 SubCauseCodeType, + reserved90 SubCauseCodeType, + vehicleBreakdown91 VehicleBreakdownSubCauseCode, + postCrash92 PostCrashSubCauseCode, + humanProblem93 HumanProblemSubCauseCode, + stationaryVehicle94 StationaryVehicleSubCauseCode, + emergencyVehicleApproaching95 EmergencyVehicleApproachingSubCauseCode, + hazardousLocation-DangerousCurve96 HazardousLocation-DangerousCurveSubCauseCode, + collisionRisk97 CollisionRiskSubCauseCode, + signalViolation98 SignalViolationSubCauseCode, + dangerousSituation99 DangerousSituationSubCauseCode, + railwayLevelCrossing100 RailwayLevelCrossingSubCauseCode, + reserved101 SubCauseCodeType, + reserved102 SubCauseCodeType, + reserved103 SubCauseCodeType, + reserved104 SubCauseCodeType, + reserved105 SubCauseCodeType, + reserved106 SubCauseCodeType, + reserved107 SubCauseCodeType, + reserved108 SubCauseCodeType, + reserved109 SubCauseCodeType, + reserved110 SubCauseCodeType, + reserved111 SubCauseCodeType, + reserved112 SubCauseCodeType, + reserved113 SubCauseCodeType, + reserved114 SubCauseCodeType, + reserved115 SubCauseCodeType, + reserved116 SubCauseCodeType, + reserved117 SubCauseCodeType, + reserved118 SubCauseCodeType, + reserved119 SubCauseCodeType, + reserved120 SubCauseCodeType, + reserved121 SubCauseCodeType, + reserved122 SubCauseCodeType, + reserved123 SubCauseCodeType, + reserved124 SubCauseCodeType, + reserved125 SubCauseCodeType, + reserved126 SubCauseCodeType, + reserved127 SubCauseCodeType, + reserved128 SubCauseCodeType + } + +/** + * This DF is an alternative representation of the cause code value of a traffic event. + * + * It shall include the following components: + * + * @field ccAndScc: the main cause of a detected event. Each entry is of a different type and represents the sub cause code. + + * The semantics of the entire DF are completely defined by the choice value which represents the cause code value. + * The interpretation of the sub cause code value may provide additional information that is not strictly necessary to understand + * the cause code itself, and is therefore optional. + * + * @category: Traffic information + * @revision: Created in V2.1.1, description amended in V2.2.1 + */ +CauseCodeV2 ::= SEQUENCE { + ccAndScc CauseCodeChoice, + ... +} + +/** + * The DF describes the position of a CEN DSRC road side equipment. + * + * It shall include the following components: + * + * @field protectedZoneLatitude: the latitude of the CEN DSRC road side equipment. + * + * @field protectedZoneLongitude: the latitude of the CEN DSRC road side equipment. + * + * @field cenDsrcTollingZoneID: the optional ID of the CEN DSRC road side equipment. + * + * @category: Infrastructure information, Communication information + * @revision: revised in V2.1.1 (cenDsrcTollingZoneId is directly of type ProtectedZoneId) + */ +CenDsrcTollingZone ::= SEQUENCE { + protectedZoneLatitude Latitude, + protectedZoneLongitude Longitude, + cenDsrcTollingZoneId ProtectedZoneId OPTIONAL, + ... +} + +/** + * + * This DF represents the shape of a circular area or a right cylinder that is centred on the shape's reference point. + * + * It shall include the following components: + * + * @field shapeReferencePoint: optional reference point that represents the centre of the circle, relative to an externally specified reference position. + * If this component is absent, the externally specified reference position represents the shape's reference point. + * + * @field radius: the radius of the circular area. + * + * @field height: the optional height, present if the shape is a right cylinder extending in the positive z-axis. + * + * + * @category: GeoReference information + * @revision: Created in V2.1.1 + */ +CircularShape ::= SEQUENCE { + shapeReferencePoint CartesianPosition3d OPTIONAL, + radius StandardLength12b, + height StandardLength12b OPTIONAL +} + +/** + * This DF indicates the opening/closure status of the lanes of a carriageway. + * + * It shall include the following components: + * + * @field innerhardShoulderStatus: this information is optional and shall be included if an inner hard shoulder is present and the information is known. + * It indicates the open/closing status of inner hard shoulder lanes. + * + * @field outerhardShoulderStatus: this information is optional and shall be included if an outer hard shoulder is present and the information is known. + * It indicates the open/closing status of outer hard shoulder lanes. + * + * @field drivingLaneStatus: this information is optional and shall be included if the information is known. + * It indicates the open/closing status of driving lanes. + * For carriageways with more than 13 driving lanes, the drivingLaneStatus component shall not be present. + * + * @category: Infrastructure information, Road topology information + * @revision: Description revised in V2.1.1 + */ +ClosedLanes ::= SEQUENCE { + innerhardShoulderStatus HardShoulderStatus OPTIONAL, + outerhardShoulderStatus HardShoulderStatus OPTIONAL, + drivingLaneStatus DrivingLaneStatus OPTIONAL, + ... +} + +/** + * This DF provides information about the breakup of a cluster. + * + * It shall include the following components: + * + * @field clusterBreakupReason: indicates the reason for breakup. + * + * @field breakupTime: indicates the time of breakup. + * + * @category: Cluster Information + * @revision: Created in V2.1.1 + */ +ClusterBreakupInfo ::= SEQUENCE { + clusterBreakupReason ClusterBreakupReason, + breakupTime DeltaTimeQuarterSecond, + ... +} + +/** + * This DF provides information about the joining of a cluster. + * + * It shall include the following components: + * + * @field clusterId: indicates the identifier of the cluster. + * + * @field joinTime: indicates the time of joining. + * + * @category: Cluster Information + * @revision: Created in V2.1.1 + */ +ClusterJoinInfo ::= SEQUENCE { + clusterId Identifier1B, + joinTime DeltaTimeQuarterSecond, + ... +} + +/** + * The DF provides information about the leaving of a cluster. + * + * It shall include the following components: + * + * @field clusterId: indicates the cluster. + * + * @field clusterLeaveReason: indicates the reason for leaving. + * + * @category: Cluster Information + * @revision: Created in V2.1.1 + */ +ClusterLeaveInfo ::= SEQUENCE { + clusterId Identifier1B, + clusterLeaveReason ClusterLeaveReason, + ... +} + +/** + * This DF represents a column of a lower triangular positive semi-definite matrix and consists of a list of correlation cell values ordered by rows. + * Given a matrix "A" of size n x n, the number of columns to be included in the lower triangular matrix is k=n-1. + * Each column "i" of the lower triangular matrix then contains k-(i-1) values (ordered by rows from 1 to n-1), where "i" refers to the column number count + * starting at 1 from the left. + * + * @category: Sensing Information + * @revision: Created in V2.1.1 +*/ +CorrelationColumn ::= SEQUENCE SIZE (1..13,...) OF CorrelationCellValue + +/** + * This DF represents the curvature of the vehicle trajectory and the associated confidence value. + * The curvature detected by a vehicle represents the curvature of actual vehicle trajectory. + * + * It shall include the following components: + * + * @field curvatureValue: Detected curvature of the vehicle trajectory. + * + * @field curvatureConfidence: along with a confidence value of the curvature value with a predefined confidence level. + * + * @category: Vehicle information + * @revision: Description revised in V2.1.1 + */ +Curvature ::= SEQUENCE { + curvatureValue CurvatureValue, + curvatureConfidence CurvatureConfidence +} + +/** + * This DF provides a description of dangerous goods being carried by a heavy vehicle. + * + * It shall include the following components: + * + * @field dangerousGoodsType: Type of dangerous goods. + * + * @field unNumber: a 4-digit number that identifies the substance of the dangerous goods as specified in + * United Nations Recommendations on the Transport of Dangerous Goods - Model Regulations [4], + * + * @field elevatedTemperature: whether the carried dangerous goods are transported at high temperature. + * If yes, the value shall be set to TRUE, + * + * @field tunnelsRestricted: whether the heavy vehicle carrying dangerous goods is restricted to enter tunnels. + * If yes, the value shall be set to TRUE, + * + * @field limitedQuantity: whether the carried dangerous goods are packed with limited quantity. + * If yes, the value shall be set to TRUE, + * + * @field emergencyActionCode: physical signage placard at the vehicle that carries information on how an emergency + * service should deal with an incident. This component is optional; it shall be present if the information is available. + * + * @field phoneNumber: contact phone number of assistance service in case of incident or accident. + * This component is optional, it shall be present if the information is available. + * + * @field companyName: name of company that manages the transportation of the dangerous goods. + * This component is optional; it shall be present if the information is available. + * + * @category Vehicle information + * @revision: V1.3.1 + */ +DangerousGoodsExtended ::= SEQUENCE { + dangerousGoodsType DangerousGoodsBasic, + unNumber INTEGER (0..9999), + elevatedTemperature BOOLEAN, + tunnelsRestricted BOOLEAN, + limitedQuantity BOOLEAN, + emergencyActionCode IA5String (SIZE (1..24)) OPTIONAL, + phoneNumber PhoneNumber OPTIONAL, + companyName UTF8String (SIZE (1..24)) OPTIONAL, + ... +} + +/** + * This DF defines a geographical point position as a 3 dimensional offset position to a geographical reference point. + * + * It shall include the following components: + * + * @field deltaLatitude: A delta latitude offset with regards to the latitude value of the reference position. + * + * @field deltaLongitude: A delta longitude offset with regards to the longitude value of the reference position. + * + * @field deltaAltitude: A delta altitude offset with regards to the altitude value of the reference position. + * + * @category: GeoReference information + * @revision: V1.3.1 + */ +DeltaReferencePosition ::= SEQUENCE { + deltaLatitude DeltaLatitude, + deltaLongitude DeltaLongitude, + deltaAltitude DeltaAltitude +} + +/** + * This DF represents a portion of digital map. It shall contain a list of waypoints @ref ReferencePosition. + * + * @category: GeoReference information + * @revision: V1.3.1 + */ +DigitalMap ::= SEQUENCE (SIZE(1..256)) OF ReferencePosition + +/** + * + * This DF represents the shape of an elliptical area or right elliptical cylinder that is centred + * on the shape's reference point defined outside of the context of this DF and oriented w.r.t. a + * cartesian coordinate system defined outside of the context of this DF. + * + * It shall include the following components: + * + * @field shapeReferencePoint: optional reference point which represents the centre of the ellipse, + * relative to an externally specified reference position. If this component is absent, the + * externally specified reference position represents the shape's reference point. + * + * @field semiMajorAxisLength: half length of the major axis of the ellipse located in the X-Y Plane. + * + * @field semiMinorAxisLength: half length of the minor axis of the ellipse located in the X-Y Plane. + * + * @field orientation: the optional orientation of the major axis of the ellipse, measured with + * positive values turning around the z-axis using the right-hand rule, starting from the X-axis. + * + * @field height: the optional height, present if the shape is a right elliptical cylinder extending + * in the positive Z-axis. + * + * @category: GeoReference information + * @revision: Created in V2.1.1, the type of the field orientation changed and the description revised in V2.2.1 +*/ + +EllipticalShape ::= SEQUENCE { + shapeReferencePoint CartesianPosition3d OPTIONAL, + semiMajorAxisLength StandardLength12b, + semiMinorAxisLength StandardLength12b, + orientation CartesianAngleValue OPTIONAL, + height StandardLength12b OPTIONAL +} + +/** + * This DF represents the Euler angles which describe the orientation of an object bounding box in a Cartesian coordinate system with an associated confidence level for each angle. + * + * It shall include the following components: + * + * @field zAngle: z-angle of object bounding box at the time of measurement, with the associated confidence. + * The angle is measured with positive values considering the object orientation turning around the z-axis using the right-hand rule, starting from the x-axis. + * This extrinsic rotation shall be applied around the centre point of the object bounding box before all other rotations. + * + * @field yAngle: optional y-angle of object bounding box at the time of measurement, with the associated confidence. + * The angle is measured with positive values considering the object orientation turning around the y-axis using the right-hand rule, starting from the z-axis. + * This extrinsic rotation shall be applied around the centre point of the object bounding box after the rotation by zAngle and before the rotation by xAngle. + * + * @field xAngle: optional x-angle of object bounding box at the time of measurement, with the associated confidence. + * The angle is measured with positive values considering the object orientation turning around the x-axis using the right-hand rule, starting from the z-axis. + * This extrinsic rotation shall be applied around the centre point of the object bounding box after all other rotations. + * + * @category: Basic information + * @revision: Created in V2.1.1 +*/ +EulerAnglesWithConfidence ::= SEQUENCE { + zAngle CartesianAngle, + yAngle CartesianAngle OPTIONAL, + xAngle CartesianAngle OPTIONAL +} + +/** + * + * This DF represents a vehicle category according to the UNECE/TRANS/WP.29/78/Rev.4 [16]. + * The following options are available: + * + * @field euVehicleCategoryL: indicates a vehicle in the L category. + * + * @field euVehicleCategoryM: indicates a vehicle in the M category. + * + * @field euVehicleCategoryN: indicates a vehicle in the N category. + * + * @field euVehicleCategoryO: indicates a vehicle in the O category. + * + * @field euVehicleCategoryT: indicates a vehicle in the T category. + * + * @field euVehicleCategoryG: indicates a vehicle in the G category. + * + * @category: Vehicle information + * @revision: Created in V2.1.1 +*/ +EuVehicleCategoryCode ::= CHOICE { + euVehicleCategoryL EuVehicleCategoryL, + euVehicleCategoryM EuVehicleCategoryM, + euVehicleCategoryN EuVehicleCategoryN, + euVehicleCategoryO EuVehicleCategoryO, + euVehicleCategoryT NULL, + euVehicleCategoryG NULL +} + +/** + * The DF shall contain a list of @ref EventPoint. + * + * The eventPosition of each @ref EventPoint is defined with respect to the previous @ref EventPoint in the list. + * Except for the first @ref EventPoint which is defined with respect to a position outside of the context of this DF. + * + * @category: GeoReference information, Traffic information + * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref EventZone instead. + * @revision: Generalized the semantics in V2.1.1 + */ +EventHistory::= SEQUENCE (SIZE(1..23)) OF EventPoint + +/** + * This DF provides information related to an event at a defined position. + * + * It shall include the following components: + * + * @field eventPosition: offset position of a detected event point to a defined position. + * + * @field eventDeltaTime: optional time travelled by the detecting ITS-S since the previous detected event point. + * + * @field informationQuality: Information quality of the detection for this event point. + * + * @category: GeoReference information, Traffic information + * @revision: generalized the semantics in V2.1.1 + */ +EventPoint ::= SEQUENCE { + eventPosition DeltaReferencePosition, + eventDeltaTime PathDeltaTime OPTIONAL, + informationQuality InformationQuality +} + +/** + * The DF shall contain a list of @ref EventPoint, where all @ref EventPoint either contain the COMPONENT eventDeltaTime + * or do not contain the COMPONENT eventDeltaTime. + * + * The eventPosition of each @ref EventPoint is defined with respect to the previous @ref EventPoint in the list. + * Except for the first @ref EventPoint which is defined with respect to a position outside of the context of this DF. + * + * @category: GeoReference information, Traffic information + * @revision: created in V2.1.1 based on EventHistory + */ +EventZone::= EventHistory + ((WITH COMPONENT (WITH COMPONENTS {..., eventDeltaTime PRESENT})) | + (WITH COMPONENT (WITH COMPONENTS {..., eventDeltaTime ABSENT}))) + +/** + * This DF indicates a geographical position. + * + * It shall include the following components: + * + * @field latitude: the latitude of the geographical position. + * + * @field longitude: the longitude of the geographical position. + * + * @field altitude: the altitude of the geographical position with default value unavailable. + * +*/ +GeoPosition::= SEQUENCE{ + latitude Latitude, + longitude Longitude, + altitude AltitudeValue DEFAULT unavailable +} + +/** + * This DF represents the top-level DF to represent a lane position. A lane position is a transversal position on the carriageway at a specific longitudinal position, in resolution of lanes of the carriageway. + * + * @note: This DF is the most general way to represent a lane position: it provides a complete set of information regarding a transversal (dimensionless) position on the carriageway at a specific + * reference position, i.e. it provides different options and synonyms to represent the lane at which the reference position (the point) is located. A confidence is used to describe the probability + * that the object is located in the provided lane. The dimension of the object or extension of an area are not considered: See @ref OccupiedLanesWithConfidence for describing the occupation of lanes, + * where the dimensions of an object or the extension of an area is considered. + * + * It shall include the following components: + * + * @field lanePositionBased: lane position information for a defined reference position. + * + * @field mapBased: optional lane position information described in the context of a MAPEM as specified in ETSI TS 103 301 [15]. + * If present, it shall describe the same reference position using the lane identification in the MAPEM. This component can be used only if a MAPEM is available for the reference position + * (e.g. on an intersection): In this case it is used as a synonym to the mandatory component lanePositionBased. + * + * @field confidence: confidence information for expressing the probability that the object is located at the indicated lane. + * If the value of the component lanePositionBased is generated directly from the absolute reference position and reference topology information, + * no sensor shall be indicated in the component usedDetectionInformation of the @ref MetaInformation. + * + * @category: Road Topology information + * @revision: newly created in V2.2.1. The previous DF GeneralizedLanePosition is now renamed to @ref LanePositionOptions. + */ +GeneralizedLanePosition ::= SEQUENCE { + lanePositionBased LanePositionOptions, + mapBased MapPosition OPTIONAL, + confidence MetaInformation, + ... +} + +/** + * This DF represents transversal position information with respect to the road, at an externally defined reference position. It shall contain a set of up to `4` @ref GeneralizedLanePosition. + * Multiple entries can be used to describe several lane positions with the associated confidence, in cases where the reference position cannot be mapped to a single lane. + * + * @category: Road Topology information + * @revision: Created in V2.2.1 + */ +GeneralizedLanePositions ::= SEQUENCE (SIZE(1..4)) OF GeneralizedLanePosition + +/** + * This DF represents the Heading in a WGS84 co-ordinates system. + * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE. + * + * It shall include the following components: + * + * @field headingValue: the heading value. + * + * @field headingConfidence: the confidence value of the heading value with a predefined confidence level. + * + * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use the @ref Wgs84Angle instead. + * @category: Kinematic Information + * @revision: Description revised in V2.1.1 + */ +Heading ::= SEQUENCE { + headingValue HeadingValue, + headingConfidence HeadingConfidence +} + + +/** + * This DF provides information associated to heading change indicators such as a change of direction. + * + * It shall include the following components: + * + * @field direction: the direction of heading change value. + * + * @field actionDeltaTime: the period over which a direction change action is performed. + * + * @category: Kinematic Information + * @revision: created in V2.1.1 + */ +HeadingChangeIndication ::= SEQUENCE { + direction TurningDirection, + actionDeltaTime DeltaTimeTenthOfSecond, + ... +} + +/** + * This DF represents a frequency channel + * + * It shall include the following components: + * + * @field centreFrequency: the centre frequency of the channel in 10^(exp+2) Hz (where exp is exponent) + * + * @field channelWidth: width of the channel in 10^exp Hz (where exp is exponent) + * + * @field exponent: exponent of the power of 10 used in the calculation of the components above. + * + * @category: Communication information + * @revision: created in V2.1.1 +*/ +InterferenceManagementChannel ::= SEQUENCE { + centreFrequency INTEGER (1 .. 99999), + channelWidth INTEGER (0 .. 9999), + exponent INTEGER (0 .. 15) +} + +/** + * + * This DF represents a zone inside which the ITS communication should be restricted in order to manage interference. + * + * It shall include the following components: + * + * @field zoneDefinition: contains the geographical definition of the zone. + * + * @field managementInfo: contains interference management information applicable in the zone defined in the component zoneDefinition. + * + * @category: Communication information + * @revision: created in V2.1.1 + */ +InterferenceManagementZone ::= SEQUENCE { + zoneDefinition InterferenceManagementZoneDefinition, + managementInfo InterferenceManagementInfo +} + +/** + * This DF represents the geographical definition of the zone where band sharing occurs. + * + * It shall include the following components: + * + * @field interferenceManagementZoneLatitude: Latitude of the centre point of the interference management zone. + * + * @field interferenceManagementZoneLongitude: Longitude of the centre point of the interference management zone. + * + * @field interferenceManagementZoneId: optional identification of the interference management zone. + * + * @field interferenceManagementZoneShape: shape of the interference management zone placed at the centre point. + * + * @category: Communication information + * @revision: created in V2.1.1 + */ +InterferenceManagementZoneDefinition::= SEQUENCE{ + interferenceManagementZoneLatitude Latitude, + interferenceManagementZoneLongitude Longitude, + interferenceManagementZoneId ProtectedZoneId OPTIONAL, + interferenceManagementZoneShape Shape + (WITH COMPONENTS{..., radial ABSENT, radialShapes ABSENT}) OPTIONAL, + ... +} + +/** + * This DF shall contain a list of up to 16 definitions containing interference management information, per affected frequency channels. + * + * @category: Communication information. + * @revision: created in V2.1.1 + */ +InterferenceManagementInfo::= SEQUENCE (SIZE(1..16,...)) OF InterferenceManagementInfoPerChannel + + +/** + * This DF contains interference management information for one affected frequency channel. + * + * It shall include the following components: + * + * @field interferenceManagementChannel: frequency channel for which the zone should be applied interference management + * + * @field interferenceManagementZoneType: type of the interference management zone. + * + * @field interferenceManagementMitigationType: optional type of the mitigation to be used in the interference management zone. + * In the case where no mitigation should be applied by the ITS-S, this is indicated by the field interferenceManagementMitigationType being absent. + * + * @field expiryTime: optional time at which the validity of the interference management communication zone will expire. + * This component is present when the interference management is temporarily valid + * + * @category: Communication information + * @revision: created in V2.1.1 + */ +InterferenceManagementInfoPerChannel ::= SEQUENCE { + interferenceManagementChannel InterferenceManagementChannel, + interferenceManagementZoneType InterferenceManagementZoneType, + interferenceManagementMitigationType MitigationForTechnologies OPTIONAL, + expiryTime TimestampIts OPTIONAL, + ... +} + +/** + * This DF shall contain a list of up to 16 interference management zones. + * + * **EXAMPLE**: An interference management communication zone may be defined around a CEN DSRC road side equipment or an urban rail operational area. + * + * @category: Communication information + * @revision: created in V2.1.1 + */ +InterferenceManagementZones ::= SEQUENCE (SIZE(1..16), ...) OF InterferenceManagementZone + +/** + * This DF represents a unique id for an intersection, in accordance with ETSI TS 103 301 [15]. + * + * It shall include the following components: + * + * @field region: the optional identifier of the entity that is responsible for the region in which the intersection is placed. + * It is the duty of that entity to guarantee that the @ref Id is unique within the region. + * + * @field id: the identifier of the intersection + * + * @note: when the component region is present, the IntersectionReferenceId is guaranteed to be globally unique. + * @category: Road topology information + * @revision: created in V2.1.1 + */ +IntersectionReferenceId ::= SEQUENCE { + region Identifier2B OPTIONAL, + id Identifier2B +} + +/** + * This DF shall contain a list of waypoints @ref ReferencePosition. + * + * @category: GeoReference information + * @revision: Editorial update in V2.1.1 + */ +ItineraryPath ::= SEQUENCE SIZE(1..40) OF ReferencePosition + +/** + * This DF represents a common message header for application and facilities layer messages. + * It is included at the beginning of an ITS message as the message header. + * + * It shall include the following components: + * + * @field protocolVersion: version of the ITS message. + * + * @field messageId: type of the ITS message. + * + * @field stationId: the identifier of the ITS-S that generated the ITS message. + * + * @category: Communication information + * @revision: update in V2.1.1: messageID and stationID changed to messageId and stationId; messageId is of type MessageId. + */ +ItsPduHeader ::= SEQUENCE { + protocolVersion OrdinalNumber1B, + messageId MessageId, + stationId StationId +} + +/** + * This DF provides the reference to the information contained in a IVIM according to ETSI TS 103 301 [15]. + * + * It shall include the following components: + * + * @field serviceProviderId: identifier of the organization that provided the IVIM. + * + * @field iviIdentificationNumber: identifier of the IVIM, as assigned by the organization identified in serviceProviderId. + * + * @category: Communication information + * @revision: Created in V2.2.1 + */ +IvimReference::= SEQUENCE { + serviceProviderId Provider, + iviIdentificationNumber IviIdentificationNumber +} + +/** + * This DF shall contain a list of @ref IvimReference. + * + * @category: Communication information + * @revision: Created in V2.2.1 +*/ +IvimReferences::= SEQUENCE (SIZE(1..8,...)) OF IvimReference + +/** + * This DF indicates a transversal position in resolution of lanes and other associated details. + * + * It shall include the following components: + * + * @field transversalPosition: the transversal position. + * + * @field laneType: the type of the lane identified in the component transversalPosition. By default set to `traffic`. + * + * @field direction: the traffic direction for the lane position relative to a defined reference direction. By default set to `sameDirection`, i.e. following the reference direction. + * + * @category Road topology information + * @revision: direction added in V2.2.1 + */ +LanePositionAndType::= SEQUENCE { + transversalPosition LanePosition, + laneType LaneType DEFAULT traffic, + direction Direction DEFAULT sameDirection, + ... +} + +/** + * This DF represents a set of options to describe a lane position and is the second level DF to represent a lane position. The top-level DFs are @ref GeneralizedLanePosition or @ref OccupiedLanesWithConfidence. + * A lane position is a transversal position on the carriageway at a specific longitudinal position, in resolution of lanes of the carriageway. + * + * The following options are available: + * + * @field simplelanePosition: a single lane position without any additional context information. + * + * @field simpleLaneType: a lane type, to be used when the lane position is unknown but the type of lane is known. This can be used in scenarios where a certain confidence about the used lane type is given + * but no or limited knowledge about the absolute lane number is available. For example, a cyclist on a cycle-lane or vehicles on a specific lane that is unique for the part of the road (e.g. a bus lane). + * + * @field detailedlanePosition: a single lane position with additional lane details. + * + * @field lanePositionWithLateralDetails: a single lane position with additional details and the lateral position within the lane. + * + * @field trafficIslandPosition: a position on a traffic island, i.e. between two lanes. + * + * @category: Road Topology information + * @revision: Created in V2.2.1 from the DF GeneralizedLanePosition of V2.1.1. + */ +LanePositionOptions ::= CHOICE { + simplelanePosition LanePosition, + simpleLaneType LaneType, + detailedlanePosition LanePositionAndType, + lanePositionWithLateralDetails LanePositionWithLateralDetails, + trafficIslandPosition TrafficIslandPosition, + ... +} + +/** + * This DF is a third-level DF that represents a lane position and is an extended version of @ref LanePositionAndType that adds the distances to the left and right lane border. + * + * It shall additionally include the following components: + * + * @field distanceToLeftBorder: the distance of the transversal position to the left lane border. The real value shall be rounded to the next lower encoding-value. + * + * @field distanceToRightBorder: the distance of the transversal position to the right lane border. The real value shall be rounded to the next lower encoding-value. + * + * @category: Road Topology information + * @revision: Created in V2.2.1 + */ +LanePositionWithLateralDetails ::= SEQUENCE { + COMPONENTS OF LanePositionAndType, + distanceToLeftBorder StandardLength9b, + distanceToRightBorder StandardLength9b, + ... +} + +/** + * This DF indicates the vehicle acceleration at lateral direction and the confidence value of the lateral acceleration. + * + * It shall include the following components: + * + * @field lateralAccelerationValue: lateral acceleration value at a point in time. + * + * @field lateralAccelerationConfidence: confidence value of the lateral acceleration value. + * + * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationComponent instead. + * @category Vehicle information + * @revision: Description revised in V2.1.1 + */ +LateralAcceleration ::= SEQUENCE { + lateralAccelerationValue LateralAccelerationValue, + lateralAccelerationConfidence AccelerationConfidence +} + +/** + * This DF indicates the vehicle acceleration at longitudinal direction and the confidence value of the longitudinal acceleration. + * + * It shall include the following components: + * + * @field longitudinalAccelerationValue: longitudinal acceleration value at a point in time. + + * @field longitudinalAccelerationConfidence: confidence value of the longitudinal acceleration value. + * + * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationComponent instead. + * @category: Vehicle information + * @revision: V1.3.1 + */ +LongitudinalAcceleration ::= SEQUENCE { + longitudinalAccelerationValue LongitudinalAccelerationValue, + longitudinalAccelerationConfidence AccelerationConfidence +} + +/** + * This DF represents the estimated position along the longitudinal extension of a carriageway or lane. + * + * It shall include the following components: + * + * @field longitudinalLanePositionValue: the mean value of the longitudinal position along the carriageway or lane w.r.t. an externally defined start position. + * + * @field longitudinalLanePositionConfidence: The confidence value associated to the value. + * + * @category: Road topology information + * @revision: created in V2.1.1, description revised in V2.2.1 + */ +LongitudinalLanePosition ::= SEQUENCE { + longitudinalLanePositionValue LongitudinalLanePositionValue, + longitudinalLanePositionConfidence LongitudinalLanePositionConfidence +} + +/** + * This DF shall contain a list of a lower triangular positive semi-definite matrices. + * + * @category: Sensing information + * @revision: Created in V2.1.1 +*/ +LowerTriangularPositiveSemidefiniteMatrices::= SEQUENCE SIZE (1..4) OF LowerTriangularPositiveSemidefiniteMatrix + +/** + * This DF represents a lower triangular positive semi-definite matrix. + * + * It shall include the following components: + * + * @field componentsIncludedIntheMatrix: the indication of which components of a @ref PerceivedObject are included in the matrix. + * This component also implicitly indicates the number n of included components which defines the size (n x n) of the full correlation matrix "A". + * + * @field matrix: the list of cells of the lower triangular positive semi-definite matrix ordered by columns and by rows. + * + * The number of columns to be included "k" is equal to the number of included components "n" indicated by componentsIncludedIntheMatrix minus 1: k = n-1. + * These components shall be included in the order or their appearance in componentsIncludedIntheMatrix. + * Each column "i" of the lowerTriangularCorrelationMatrixColumns contains k-(i-1) values. + * + * @category: Sensing information + * @revision: Created in V2.1.1 +*/ +LowerTriangularPositiveSemidefiniteMatrix ::= SEQUENCE{ + componentsIncludedIntheMatrix MatrixIncludedComponents, + matrix LowerTriangularPositiveSemidefiniteMatrixColumns +} + +/** + * This DF represents the columns of a lower triangular positive semi-definite matrix, each column not including the main diagonal cell of the matrix. + * Given a matrix "A" of size n x n, the number of @ref CorrelationColumn to be included in the lower triangular matrix is k=n-1. + * + * @category: Sensing information + * @revision: Created in V2.1.1, extension indicator added in V2.2.1 +*/ +LowerTriangularPositiveSemidefiniteMatrixColumns ::= SEQUENCE SIZE (1..13,...) OF CorrelationColumn + +/** + * This DF provides information about the configuration of a road section in terms of MAPEM lanes or connections using a list of @ref MapemExtractedElementReference. + + * @category: Road topology information + * @revision: Created in V2.2.1 +*/ +MapemConfiguration::= SEQUENCE(SIZE(1..16,...)) OF MapemElementReference + +/** + * This DF provides references to an element described in a MAPEM according to ETSI TS 103 301 [i.15], such as a lane or connection at a specific intersection or road segment. + * + * It shall include the following components: + * + * @field mapReference: the optional reference to a MAPEM that describes the intersection or road segment. It is absent if the MAPEM topology is known from the context. + * + * @field laneIds: the optional list of the identifiers of the lanes to be referenced. + * + * @field connectionIds: the optional list of the identifiers of the connections to be referenced. + * + * @category: Road topology information + * @revision: Created in V2.2.1 +*/ + +MapemElementReference::= SEQUENCE { + mapReference MapReference OPTIONAL, + laneIds MapemLaneList OPTIONAL, + connectionIds MapemConnectionList OPTIONAL, + ... +} +((WITH COMPONENTS {..., laneIds PRESENT}) | + (WITH COMPONENTS {..., connectionIds PRESENT })) + +/** + * This DF provides references to MAPEM lanes using a list of @ref Identifier1B. + * + * @category: Road topology information + * @revision: Created in 2.2.1 +*/ +MapemLaneList ::= SEQUENCE (SIZE(1..8,...)) OF Identifier1B + +/** + * This DF provides references to MAPEM connections using a list of @ref Identifier1B. + * Note: connections are allowed �maneuvers� (e.g. an ingress / egress relation) on an intersection. + * + * @category: Road topology information + * @revision: Created in V2.2.1 +*/ +MapemConnectionList ::= SEQUENCE (SIZE(1..8,...)) OF Identifier1B + +/** + * This DF indicates a position on a topology description transmitted in a MAPEM according to ETSI TS 103 301 [15]. + * + * It shall include the following components: + * + * @field mapReference: optionally identifies the MAPEM containing the topology information. + * It is absent if the MAPEM topology is known from the context. + * + * @field laneId: optionally identifies the lane in the road segment or intersection topology on which the position is located. + * + * @field connectionId: optionally identifies the connection inside the conflict area of an intersection, i.e. it identifies a trajectory for travelling through the + * conflict area of an intersection which connects e.g an ingress with an egress lane. + * + * @field longitudinalLanePosition: optionally indicates the longitudinal offset of the map-matched position of the object along the lane or connection measured from the start of the lane/connection, along the lane. + * + * @category: Road topology information + * @revision: Created in V2.1.1, definition of longitudinalLanePosition amended in V2.2.1 + */ +MapPosition ::= SEQUENCE { + mapReference MapReference OPTIONAL, + laneId Identifier1B OPTIONAL, + connectionId Identifier1B OPTIONAL, + longitudinalLanePosition LongitudinalLanePosition OPTIONAL, + ... +} + ((WITH COMPONENTS {..., laneId PRESENT, connectionId ABSENT }) | + (WITH COMPONENTS {..., laneId ABSENT, connectionId PRESENT })) + +/** + * This DF provides the reference to the information contained in a MAPEM according to ETSI TS 103 301 [15]. + * + * The following options are provided: + * + * @field roadsegment: option that identifies the description of a road segment contained in a MAPEM. + * + * @field intersection: option that identifies the description of an intersection contained in a MAPEM. + * + * @category: Road topology information + * @revision: Created in V2.1.1 + */ +MapReference::= CHOICE { + roadsegment RoadSegmentReferenceId, + intersection IntersectionReferenceId +} + +/** + * This DF shall contain a list of @ref MapReference. + * + * @category: Road topology information + * @revision: Created in V2.2.1 +*/ +MapReferences::= SEQUENCE (SIZE(1..8,...)) OF MapReference + + +/** + * This DE indicates a message rate. + * + * @field mantissa: indicates the mantissa. + * + * @field exponent: indicates the exponent. + * + * The specified message rate is: mantissa*(10^exponent) + * + * @unit: Hz + * @category: Communication information + * @revision: Created in V2.1.1 + */ +MessageRateHz::= SEQUENCE { + mantissa INTEGER (1..100), + exponent INTEGER (-5..2) +} + +/** + * This DF provides information about a message with respect to the segmentation process on facility layer at the sender. + * + * It shall include the following components: + * + * @field totalMsgNo: indicates the total number of messages that have been assembled on the transmitter side to encode the information + * during the same messsage generation process. + * + * @field thisMsgNo: indicates the position of the message within of the total set of messages generated during the same message generation process. + * + * @category: Communication information + * @revision: Created in V2.1.1, description revised in V2.2.1 + */ +MessageSegmentationInfo ::= SEQUENCE { + totalMsgNo CardinalNumber3b, + thisMsgNo OrdinalNumber3b +} + +/** + * This DF provides information about the source of and confidence in information. + * + * It shall include the following components: + * + * @field usedDetectionInformation: the type of sensor(s) that is used to provide the detection information. + * + * @field usedStoredInformation: the type of source of the stored information. + * + * @field confidenceValue: an optional confidence value associated to the information. + * + * @category: Basic information + * @revision: Created in V2.2.1 +*/ +MetaInformation::=SEQUENCE{ + usedDetectionInformation SensorTypes, + usedStoredInformation StoredInformationType, + confidenceValue ConfidenceLevel OPTIONAL, + ... +} + +/** + * This DF shall contain a list of @ref MitigationPerTechnologyClass. + * + * @category: Communication information + * @revision: Created in V2.1.1 +*/ +MitigationForTechnologies ::= SEQUENCE (SIZE(1..8)) OF MitigationPerTechnologyClass + +/** + * This DF represents a set of mitigation parameters for a specific technology, as specified in ETSI TS 103 724 [24], clause 7. + * + * It shall include the following components: + * + * @field accessTechnologyClass: channel access technology to which this mitigation is intended to be applied. + * + * @field lowDutyCycle: duty cycle limit. + * @unit: 0,01 % steps + * + * @field powerReduction: the delta value of power to be reduced. + * @unit: dB + * + * @field dmcToffLimit: idle time limit as defined in ETSI TS 103 175 [19]. + * @unit: ms + * + * @field dmcTonLimit: Transmission duration limit, as defined in ETSI EN 302 571 [20]. + * @unit: ms + * + * @note: All parameters are optional, as they may not apply to some of the technologies or + * interference management zone types. Specification details are in ETSI TS 103 724 [24], clause 7. + * + * @category: Communication information + * @revision: Created in V2.1.1 + */ +MitigationPerTechnologyClass ::= SEQUENCE { + accessTechnologyClass AccessTechnologyClass, + lowDutyCycle INTEGER (0 .. 10000) OPTIONAL, + powerReduction INTEGER (0 .. 30) OPTIONAL, + dmcToffLimit INTEGER (0 .. 1200) OPTIONAL, + dmcTonLimit INTEGER (0 .. 20) OPTIONAL, + ... +} + +/** + * This DF indicates both the class and associated subclass that best describes an object. + * + * The following options are available: + * + * @field vehicleSubClass: the object is a road vehicle and the specific subclass is specified. + * + * @field vruSubClass: the object is a VRU and the specific subclass is specified. + * + * @field groupSubClass: the object is a VRU group or cluster and the cluster information is specified. + * + * @field otherSubClass: the object is of a different type than the above and the specific subclass is specified. + * + * @category: Sensing information + * @revision: Created in V2.1.1 + */ +ObjectClass ::= CHOICE { + vehicleSubClass TrafficParticipantType (unknown|passengerCar..tram|agricultural), + vruSubClass VruProfileAndSubprofile, + groupSubClass VruClusterInformation + (WITH COMPONENTS{..., clusterBoundingBoxShape ABSENT}), + otherSubClass OtherSubClass, + ... +} + +/** + * This DF shall contain a list of object classes. + * + * @category: Sensing information + * @revision: Created in V2.1.1 +*/ +ObjectClassDescription ::= SEQUENCE (SIZE(1..8)) OF ObjectClassWithConfidence + +/** + * This DF represents the classification of a detected object together with a confidence level. + * + * It shall include the following components: + * + * @field objectClass: the class of the object. + * + * @field Confidence: the associated confidence level. + * + * @category: Sensing information + * @revision: Created in V2.1.1 +*/ +ObjectClassWithConfidence ::= SEQUENCE { + objectClass ObjectClass, + confidence ConfidenceLevel +} + +/** + * This DF represents a dimension of an object together with a confidence value. + * + * It shall include the following components: + * + * @field value: the object dimension value which can be estimated as the mean of the current distribution. + * + * @field confidence: the associated confidence value. + * + * @category: Sensing information + * @revision: Created in V2.1.1 +*/ +ObjectDimension ::= SEQUENCE { + value ObjectDimensionValue, + confidence ObjectDimensionConfidence +} + +/** + * This DF represents a set of lanes which are partially or fully occupied by an object or event at an externally defined reference position. + * + * @note: In contrast to @ref GeneralizedLanePosition, the dimension of the object or event area (width and length) is taken into account to determine the occupancy, + * i.e. this DF describes the lanes which are blocked by an object or event and not the position of the object / event itself. A confidence is used to describe the + * probability that exactly all the provided lanes are occupied. + * + * It shall include the following components: + * + * @field lanePositionBased: a set of up to `4` lanes that are partially or fully occupied by an object or event, ordered by increasing value of @ref LanePosition. + * Lanes that are partially occupied can be described using the component lanePositionWithLateralDetails of @ref Options, with the following constraints: + * The distance to lane borders which are covered by the object / event shall be set to 0. Only the distances to the leftmost and/or rightmost border which are not covered by + * the object / event shall be provided with values > 0. Those values shall be added to the respective instances of @ref LanePositionOptions, i.e. the first entry shall contain the component distanceToLeftBorder > 0 , + * and/or the last entry shall contain the component distanceToRightBorder > 0; the respective other components of these entries shall be set to 0. + * + * @field mapBased: optional lane information described in the context of a MAPEM as specified in ETSI TS 103 301 [15]. + * If present, it shall describe the same lane(s) as listed in the component lanePositionBased, but using the lane identification of the MAPEM. This component can be used only if a + * MAPEM is available for the reference position (e.g. on an intersection): In this case it is used as a synonym to the mandatory component lanePositionBased. + * + * @field confidence: mandatory confidence information for expressing the probability that all the provided lanes are occupied. It also provides information on how the lane + * information were generated. If none of the sensors were used, the lane information is assumed to be derived directly from the absolute reference position and the related dimension. + * + * @category: Road Topology information + * @revision: Created in V2.2.1 + */ +OccupiedLanesWithConfidence::= SEQUENCE { + lanePositionBased SEQUENCE (SIZE(1..4)) OF LanePositionOptions, + mapBased SEQUENCE (SIZE(1..4)) OF MapPosition OPTIONAL, + confidence MetaInformation, + ... +} + +/** + * This DF represents a path with a set of path points. + * It shall contain up to `40` @ref PathPoint. + * + * The first PathPoint presents an offset delta position with regards to an external reference position. + * Each other PathPoint presents an offset delta position and optionally an offset travel time with regards to the previous PathPoint. + * + * @category: GeoReference information, Vehicle information + * @revision: created in V2.1.1 based on PathHistory + */ +Path::= SEQUENCE (SIZE(0..40)) OF PathPoint + +/** + * This DF represents estimated/predicted travel time between a position and a predefined reference position. + * + * the following options are available: + * + * @field deltaTimeHighPrecision: delta time with precision of 0,1 s. + * + * @field deltaTimeBigRange: delta time with precision of 10 s. + * + * @category: Basic information + * @revision: Created in V2.2.1 + */ +PathDeltaTimeChoice::= CHOICE { + deltaTimeHighPrecision DeltaTimeTenthOfSecond, + deltaTimeBigRange DeltaTimeTenSeconds, + ... +} + +/** + * This DF represents a path towards a specific point specified in the @ref EventZone. + * + * It shall include the following components: + * + * @field pointOfEventZone: the ordinal number of the point within the DF EventZone, i.e. within the list of EventPoints. + * + * @field path: the associated path towards the point specified in pointOfEventZone. + * The first PathPoint presents an offset delta position with regards to the position of that pointOfEventZone. + * + * @category: GeoReference information + * @revision: Created in V2.2.1 +*/ +PathExtended::= SEQUENCE { + pointOfEventZone INTEGER(1..23), + path Path +} + +/** + * This DF represents a path history with a set of path points. + * It shall contain up to `40` @ref PathPoint. + * + * The first PathPoint presents an offset delta position with regards to an external reference position. + * Each other PathPoint presents an offset delta position and optionally an offset travel time with regards to the previous PathPoint. + * + * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref Path instead. + * @category: GeoReference information, Vehicle information + * @revision: semantics updated in V2.1.1, size corrected to 0..40 in V2.2.1 + */ +PathHistory::= SEQUENCE (SIZE(0..40)) OF PathPoint + +/** + * This DF represents a predicted path or trajectory with a set of predicted points and optional information to generate a shape which is estimated to contain the real path. + * It shall contain up to `16` @ref PathPointPredicted. + * + * The first PathPoint presents an offset delta position with regards to an external reference position. + * Each other PathPoint presents an offset delta position and optionally an offset travel time with regards to the previous PathPoint. + * + * @category: GeoReference information + * @revision: created in V2.1.1 , size constraint changed to SIZE(1..16, ...) in V2.2.1 + */ +PathPredicted::= SEQUENCE (SIZE(1..16,...)) OF PathPointPredicted + +/** + * This DF represents a predicted path, predicted trajectory or predicted path zone together with usage information and a prediction confidence. + * + * It shall include the following components: + * + * @field pathPredicted: the predicted path (pathDeltaTime ABSENT) or trajectory (pathDeltaTime PRESENT) and/or the path zone (symmetricAreaOffset PRESENT). + * + * @field usageIndication: an indication of how the predicted path will be used. + * + * @field confidenceLevel: the confidence that the path/trajectory in pathPredicted will occur as predicted. + * + * @category: GeoReference information + * @revision: created in V2.2.1 + */ +PathPredicted2::= SEQUENCE{ + pathPredicted PathPredicted + ((WITH COMPONENT (WITH COMPONENTS {..., pathDeltaTime ABSENT, symmetricAreaOffset ABSENT})) | + (WITH COMPONENT (WITH COMPONENTS {..., pathDeltaTime PRESENT, symmetricAreaOffset ABSENT})) | + (WITH COMPONENT (WITH COMPONENTS {..., pathDeltaTime ABSENT, symmetricAreaOffset PRESENT})) | + (WITH COMPONENT (WITH COMPONENTS {..., pathDeltaTime PRESENT, symmetricAreaOffset PRESENT}))), + usageIndication UsageIndication, + confidenceLevel ConfidenceLevel, + ... +} + +/** + * This DF represents one or more predicted paths, or trajectories or path zones (zones that include all possible paths/trajectories within its boundaries) using @ref PathPredicted2. + * It shall contain up to `16` @ref PathPredicted2. + * + * @category: GeoReference information + * @revision: V2.2.1 + */ +PathPredictedList ::= SEQUENCE SIZE(1..16,...) OF PathPredicted2 + +/** + * This DF defines an offset waypoint position within a path. + * + * It shall include the following components: + * + * @field pathPosition: The waypoint position defined as an offset position with regards to a pre-defined reference position. + * + * @field pathDeltaTime: The optional travel time separated from a waypoint to the predefined reference position. + * + * @category GeoReference information + * @revision: semantics updated in V2.1.1 + */ +PathPoint ::= SEQUENCE { + pathPosition DeltaReferencePosition, + pathDeltaTime PathDeltaTime OPTIONAL +} + +/** + * This DF defines a predicted offset position that can be used within a predicted path or trajectory, together with optional data to describe a path zone shape. + * + * It shall include the following components: + * + * @field deltaLatitude: the offset latitude with regards to a pre-defined reference position. + * + * @field deltaLongitude: the offset longitude with regards to a pre-defined reference position. + * + * @field horizontalPositionConfidence: the optional confidence value associated to the horizontal geographical position. + * + * @field deltaAltitude: the optional offset altitude with regards to a pre-defined reference position, with default value unavailable. + * + * @field altitudeConfidence: the optional confidence value associated to the altitude value of the geographical position, with default value unavailable. + * + * @field pathDeltaTime: the optional travel time to the waypoint from the predefined reference position. + + * @field symmetricAreaOffset: the optional symmetric offset to generate a shape, see Annex D for details. + * + * @field asymmetricAreaOffset: the optional asymmetric offset to generate a shape, see Annex D for details. + * + * @category GeoReference information + * @revision: Created in V2.1.1, type of pathDeltaTime changed and optionality added, fields symmetricAreaOffset and asymmetricAreaOffset added in V2.2.1 + */ +PathPointPredicted::= SEQUENCE { + deltaLatitude DeltaLatitude, + deltaLongitude DeltaLongitude, + horizontalPositionConfidence PosConfidenceEllipse OPTIONAL, + deltaAltitude DeltaAltitude DEFAULT unavailable, + altitudeConfidence AltitudeConfidence DEFAULT unavailable, + pathDeltaTime PathDeltaTimeChoice OPTIONAL, + symmetricAreaOffset StandardLength9b OPTIONAL, + asymmetricAreaOffset StandardLength9b OPTIONAL, + ... +} + ((WITH COMPONENTS {..., symmetricAreaOffset ABSENT, asymmetricAreaOffset ABSENT}) | + (WITH COMPONENTS {..., symmetricAreaOffset PRESENT, asymmetricAreaOffset ABSENT}) | + (WITH COMPONENTS {..., symmetricAreaOffset PRESENT, asymmetricAreaOffset PRESENT})) + +/** + * This DF represents a list of references to the components of a @ref Traces or @ref TracesExtended DF using the @ref PathId. + * + * @category: Road topology information + * @revision: Created in V2.2.1 +*/ +PathReferences ::= SEQUENCE (SIZE(1..14)) OF PathId + +/** + * This DF contains information about a perceived object including its kinematic state and attitude vector in a pre-defined coordinate system and with respect to a reference time. + * + * It shall include the following components: + * + * @field objectId: optional identifier assigned to a detected object. + * + * @field measurementDeltaTime: the time difference from a reference time to the time of the measurement of the object. + * Negative values indicate that the provided object state refers to a point in time before the reference time. + * + * @field position: the position of the geometric centre of the object's bounding box within the pre-defined coordinate system. + * + * @field velocity: the velocity vector of the object within the pre-defined coordinate system. + * + * @field acceleration: the acceleration vector of the object within the pre-defined coordinate system. + * + * @field angles: optional Euler angles of the object bounding box at the time of measurement. + * + * @field zAngularVelocity: optional angular velocity of the object around the z-axis at the time of measurement. + * The angular velocity is measured with positive values considering the object orientation turning around the z-axis using the right-hand rule. + * + * @field lowerTriangularCorrelationMatrices: optional set of lower triangular correlation matrices for selected components of the provided kinematic state and attitude vector. + * + * @field objectDimensionZ: optional z-dimension of object bounding box. + * This dimension shall be measured along the direction of the z-axis after all the rotations have been applied. + * + * @field objectDimensionY: optional y-dimension of the object bounding box. + * This dimension shall be measured along the direction of the y-axis after all the rotations have been applied. + * + * @field objectDimensionX: optional x-dimension of object bounding box. + * This dimension shall be measured along the direction of the x-axis after all the rotations have been applied. + * + * @field objectAge: optional age of the detected and described object, i.e. the difference in time between the moment + * it has been first detected and the reference time of the message. Value `1500` indicates that the object has been observed for more than 1.5s. + * + * @field objectPerceptionQuality: optional confidence associated to the object. + * + * @field sensorIdList: optional list of sensor-IDs which provided the measurement data. + * + * @field classification: optional classification of the described object + * + * @field matchedPosition: optional map-matched position of an object. + * + * @category Sensing information + * @revision: created in V2.1.1 + */ +PerceivedObject ::= SEQUENCE { + objectId Identifier2B OPTIONAL, + measurementDeltaTime DeltaTimeMilliSecondSigned, + position CartesianPosition3dWithConfidence, + velocity Velocity3dWithConfidence OPTIONAL, + acceleration Acceleration3dWithConfidence OPTIONAL, + angles EulerAnglesWithConfidence OPTIONAL, + zAngularVelocity CartesianAngularVelocityComponent OPTIONAL, + lowerTriangularCorrelationMatrices LowerTriangularPositiveSemidefiniteMatrices OPTIONAL, + objectDimensionZ ObjectDimension OPTIONAL, + objectDimensionY ObjectDimension OPTIONAL, + objectDimensionX ObjectDimension OPTIONAL, + objectAge DeltaTimeMilliSecondSigned (0..2047) OPTIONAL, + objectPerceptionQuality ObjectPerceptionQuality OPTIONAL, + sensorIdList SequenceOfIdentifier1B OPTIONAL, + classification ObjectClassDescription OPTIONAL, + mapPosition MapPosition OPTIONAL, + ... +} + +/** + * This DF represents the shape of a polygonal area or of a right prism. + * + * It shall include the following components: + * + * @field shapeReferencePoint: the optional reference point used for the definition of the shape, relative to an externally specified reference position. + * If this component is absent, the externally specified reference position represents the shape's reference point. + * + * @field polygon: the polygonal area represented by a list of minimum `3` to maximum `16` @ref CartesianPosition3d. + * All nodes of the polygon shall be considered relative to the shape's reference point. + * + * @field height: the optional height, present if the shape is a right prism extending in the positive z-axis. + * + * @category GeoReference information + * @revision: created in V2.1.1 + * + */ +PolygonalShape ::= SEQUENCE { + shapeReferencePoint CartesianPosition3d OPTIONAL, + polygon SequenceOfCartesianPosition3d (SIZE(3..16,...)), + height StandardLength12b OPTIONAL +} + +/** + * This DF indicates the horizontal position confidence ellipse which represents the estimated accuracy with a + * confidence level of 95 %. The centre of the ellipse shape corresponds to the reference + * position point for which the position accuracy is evaluated. + * + * It shall include the following components: + * + * @field semiMajorConfidence: half of length of the major axis, i.e. distance between the centre point + * and major axis point of the position accuracy ellipse. + * + * @field semiMinorConfidence: half of length of the minor axis, i.e. distance between the centre point + * and minor axis point of the position accuracy ellipse. + * + * @field semiMajorOrientation: orientation direction of the ellipse major axis of the position accuracy + * ellipse with regards to the WGS84 north. + * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE. + * + * + * @category GeoReference information + * @revision: V1.3.1 + */ +PosConfidenceEllipse ::= SEQUENCE { + semiMajorConfidence SemiAxisLength, + semiMinorConfidence SemiAxisLength, + semiMajorOrientation HeadingValue +} + +/** + * This DF indicates the horizontal position confidence ellipse which represents the estimated accuracy with a + * confidence level of 95 %. The centre of the ellipse shape corresponds to the reference + * position point for which the position accuracy is evaluated. + * + * It shall include the following components: + * + * @field semiMajorAxisLength: half of length of the major axis, i.e. distance between the centre point + * and major axis point of the position accuracy ellipse. + * + * @field semiMinorAxisLength: half of length of the minor axis, i.e. distance between the centre point + * and minor axis point of the position accuracy ellipse. + * + * @field semiMajorAxisOrientation: orientation direction of the ellipse major axis of the position accuracy + * ellipse with regards to the WGS84 north. + * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE. + * + * @category GeoReference information + * @revision: created in V2.1.1 based on @ref PosConfidenceEllipse + */ +PositionConfidenceEllipse ::= SEQUENCE { + semiMajorAxisLength SemiAxisLength, + semiMinorAxisLength SemiAxisLength, + semiMajorAxisOrientation Wgs84AngleValue +} + +/** + * This DF shall contain a list of distances @ref PosPillar that refer to the perpendicular distance between centre of vehicle front bumper + * and vehicle pillar A, between neighbour pillars until the last pillar of the vehicle. + * + * Vehicle pillars refer to the vertical or near vertical support of vehicle, + * designated respectively as the A, B, C or D and other pillars moving in side profile view from the front to rear. + * + * The first value of the DF refers to the perpendicular distance from the centre of vehicle front bumper to + * vehicle A pillar. The second value refers to the perpendicular distance from the centre position of A pillar + * to the B pillar of vehicle and so on until the last pillar. + * + * @category: Vehicle information + * @revision: V1.3.1 + */ +PositionOfPillars ::= SEQUENCE (SIZE(1..3, ...)) OF PosPillar + +/** + * This DF describes a zone of protection inside which the ITS communication should be restricted. + * + * It shall include the following components: + * + * @field protectedZoneType: type of the protected zone. + * + * @field expiryTime: optional time at which the validity of the protected communication zone will expire. + * + * @field protectedZoneLatitude: latitude of the centre point of the protected communication zone. + * + * @field protectedZoneLongitude: longitude of the centre point of the protected communication zone. + * + * @field protectedZoneRadius: optional radius of the protected communication zone in metres. + * + * @field protectedZoneId: the optional ID of the protected communication zone. + * + * @note: A protected communication zone may be defined around a CEN DSRC road side equipment. + * + * @category: Infrastructure information, Communication information + * @revision: revised in V2.1.1 (changed protectedZoneID to protectedZoneId) + */ +ProtectedCommunicationZone ::= SEQUENCE { + protectedZoneType ProtectedZoneType, + expiryTime TimestampIts OPTIONAL, + protectedZoneLatitude Latitude, + protectedZoneLongitude Longitude, + protectedZoneRadius ProtectedZoneRadius OPTIONAL, + protectedZoneId ProtectedZoneId OPTIONAL, + ... +} + +/** + * This DF shall contain a list of @ref ProtectedCommunicationZone provided by a road side ITS-S (Road Side Unit RSU). + * + * It may provide up to 16 protected communication zones information. + * + * @category: Infrastructure information, Communication information + * @revision: V1.3.1 + */ +ProtectedCommunicationZonesRSU ::= SEQUENCE (SIZE(1..16)) OF ProtectedCommunicationZone + +/** + * This DF identifies an organization. + * + * It shall include the following components: + * + * @field countryCode: represents the country code that identifies the country of the national registration administrator for issuers according to ISO 14816. + * + * @field providerIdentifier: identifies the organization according to the national ISO 14816 register for issuers. + * + * @note: See https://www.itsstandards.eu/registries/register-of-nra-i-cs1/ for a list of national registration administrators and their respective registers + * + * @category: Communication information + * @revision: Created in V2.2.1 based on ISO 17573-3 [24] + */ +Provider ::= SEQUENCE { + countryCode CountryCode, + providerIdentifier IssuerIdentifier +} + +/** + * This DF represents activation data for real-time systems designed for operations control, traffic light priorities, track switches, barriers, etc. + * using a range of activation devices equipped in public transport vehicles. + * + * The activation of the corresponding equipment is triggered by the approach or passage of a public transport + * vehicle at a certain point (e.g. a beacon). + * + * @field ptActivationType: type of activation. + * + * @field ptActicationData: data of activation. + * + * Today there are different payload variants defined for public transport activation-data. The R09.x is one of + * the industry standard used by public transport vehicles (e.g. buses, trams) in Europe (e.g. Germany Austria) + * for controlling traffic lights, barriers, bollards, etc. This DF shall include information like route, course, + * destination, priority, etc. + * + * The R09.x content is defined in VDV recommendation 420 [7]. It includes following information: + * - Priority Request Information (pre-request, request, ready to start) + * - End of Prioritization procedure + * - Priority request direction + * - Public Transport line number + * - Priority of public transport + * - Route line identifier of the public transport + * - Route number identification + * - Destination of public transport vehicle + * + * Other countries may use different message sets defined by the local administration. + * @category: Vehicle information + * @revision: V1.3.1 + */ +PtActivation ::= SEQUENCE { + ptActivationType PtActivationType, + ptActivationData PtActivationData +} + +/** + * This DF describes a radial shape. The circular or spherical sector is constructed by sweeping + * the provided range about the reference position specified outside of the context of this DF or + * about the optional shapeReferencePoint. The range is swept between a horizontal start and a + * horizontal end angle in the X-Y plane of a cartesian coordinate system specified outside of the + * context of this DF, in a right-hand positive angular direction w.r.t. the x-axis. + * A vertical opening angle in the X-Z plane may optionally be provided in a right-hand positive + * angular direction w.r.t. the x-axis. + * + * It shall include the following components: + * + * @field shapeReferencePoint: the optional reference point used for the definition of the shape, + * relative to an externally specified reference position. If this component is absent, the + * externally specified reference position represents the shape's reference point. + * + * @field range: the radial range of the shape from the shape's reference point. + * + * @field horizontalOpeningAngleStart: the start of the shape's horizontal opening angle. + * + * @field horizontalOpeningAngleEnd: the end of the shape's horizontal opening angle. + * + * @field verticalOpeningAngleStart: optional start of the shape's vertical opening angle. + * + * @field verticalOpeningAngleEnd: optional end of the shape's vertical opening angle. + * + * @category GeoReference information + * @revision: created in V2.1.1, names and types of the horizontal opening angles changed, constraint added and description revised in V2.2.1 +*/ +RadialShape ::= SEQUENCE { + shapeReferencePoint CartesianPosition3d OPTIONAL, + range StandardLength12b, + horizontalOpeningAngleStart CartesianAngleValue, + horizontalOpeningAngleEnd CartesianAngleValue, + verticalOpeningAngleStart CartesianAngleValue OPTIONAL, + verticalOpeningAngleEnd CartesianAngleValue OPTIONAL +} + ((WITH COMPONENTS {..., verticalOpeningAngleStart ABSENT, verticalOpeningAngleEnd ABSENT }) | + (WITH COMPONENTS {..., verticalOpeningAngleStart PRESENT, verticalOpeningAngleEnd PRESENT })) + + +/** + * This DF describes a list of radial shapes positioned w.r.t. to an offset position defined + * relative to a reference position specified outside of the context of this DF and oriented w.r.t. + * a cartesian coordinate system specified outside of the context of this DF. + * + * It shall include the following components: + * + * @field refPointId: the identification of the reference point in case of a sensor mounted to trailer. Defaults to ITS ReferencePoint (0). + * + * @field xCoordinate: the x-coordinate of the offset position. + * + * @field yCoordinate: the y-coordinate of the offset position. + * + * @field zCoordinate: the optional z-coordinate of the offset position. + * + * @field radialShapesList: the list of radial shape details. + * + * @category: Georeference information + * @revision: created in V2.1.1, description revised in V2.2.1 + */ +RadialShapes ::= SEQUENCE { + refPointId Identifier1B, + xCoordinate CartesianCoordinateSmall, + yCoordinate CartesianCoordinateSmall, + zCoordinate CartesianCoordinateSmall OPTIONAL, + radialShapesList RadialShapesList +} + +/** + * The DF contains a list of @ref RadialShapeDetails. + * + * @category: Georeference information + * @revision: created in V2.1.1 + */ + +RadialShapesList ::= SEQUENCE SIZE(1..16,...) OF RadialShapeDetails + +/** + * This DF describes radial shape details. The circular sector or cone is + * constructed by sweeping the provided range about the position specified outside of the + * context of this DF. The range is swept between a horizontal start and a horizontal end angle in + * the X-Y plane of a right-hand cartesian coordinate system specified outside of the context of + * this DF, in positive angular direction w.r.t. the x-axis. A vertical opening angle in the X-Z + * plane may optionally be provided in positive angular direction w.r.t. the x-axis. + * + * It shall include the following components: + * + * @field range: the radial range of the sensor from the reference point or sensor point offset. + * + * @field horizontalOpeningAngleStart: the start of the shape's horizontal opening angle. + * + * @field horizontalOpeningAngleEnd: the end of the shape's horizontal opening angle. + * + * @field verticalOpeningAngleStart: optional start of the shape's vertical opening angle. + * + * @field verticalOpeningAngleEnd: optional end of the shape's vertical opening angle. + * + * @category: Georeference information + * @revision: created in V2.1.1, description revised and constraint added in V2.2.1 + */ +RadialShapeDetails ::= SEQUENCE { + range StandardLength12b, + horizontalOpeningAngleStart CartesianAngleValue, + horizontalOpeningAngleEnd CartesianAngleValue, + verticalOpeningAngleStart CartesianAngleValue OPTIONAL, + verticalOpeningAngleEnd CartesianAngleValue OPTIONAL +} + ((WITH COMPONENTS {..., verticalOpeningAngleStart ABSENT, verticalOpeningAngleEnd ABSENT }) | + (WITH COMPONENTS {..., verticalOpeningAngleStart PRESENT, verticalOpeningAngleEnd PRESENT })) + +/** + * This DF represents the shape of a rectangular area or a right rectangular prism that is centred + * on a reference position defined outside of the context of this DF and oriented w.r.t. a cartesian + * coordinate system defined outside of the context of this DF. + * + * It shall include the following components: + * + * @field shapeReferencePoint: represents an optional offset point which the rectangle is centred on with + * respect to the reference position. If this component is absent, the externally specified + * reference position represents the shape's reference point. + * + * @field semiLength: represents half the length of the rectangle located in the X-Y Plane. + * + * @field semiBreadth: represents half the breadth of the rectangle located in the X-Y Plane. + * + * @field orientation: represents the optional orientation of the length of the rectangle, + * measured with positive values turning around the Z-axis using the right-hand rule, starting from + * the X-axis. + * + * @field height: represents the optional height, present if the shape is a right rectangular prism + * with height extending in the positive Z-axis. + * + * @category GeoReference information + * @revision: created in V2.1.1, centerPoint renamed to shapeReferencePoint, the type of the field orientation changed and description revised in V2.2.1 + */ +RectangularShape ::= SEQUENCE { + shapeReferencePoint CartesianPosition3d OPTIONAL, + semiLength StandardLength12b, + semiBreadth StandardLength12b, + orientation CartesianAngleValue OPTIONAL, + height StandardLength12b OPTIONAL +} + +/** + * A position within a geographic coordinate system together with a confidence ellipse. + * + * It shall include the following components: + * + * @field latitude: the latitude of the geographical point. + * + * @field longitude: the longitude of the geographical point. + * + * @field positionConfidenceEllipse: the confidence ellipse associated to the geographical position. + * + * @field altitude: the altitude and an altitude accuracy of the geographical point. + * + * @note: this DE is kept for backwards compatibility reasons only. It is recommended to use the @ref ReferencePositionWithConfidence instead. + * @category: GeoReference information + * @revision: description updated in V2.1.1 + */ +ReferencePosition ::= SEQUENCE { + latitude Latitude, + longitude Longitude, + positionConfidenceEllipse PosConfidenceEllipse, + altitude Altitude +} + +/** + * A position within a geographic coordinate system together with a confidence ellipse. + * + * It shall include the following components: + * + * @field latitude: the latitude of the geographical point. + * + * @field longitude: the longitude of the geographical point. + * + * @field positionConfidenceEllipse: the confidence ellipse associated to the geographical position. + * + * @field altitude: the altitude and an altitude accuracy of the geographical point. + * + * @category: GeoReference information + * @revision: created in V2.1.1 based on @ref ReferencePosition but using @ref PositionConfidenceEllipse. + */ +ReferencePositionWithConfidence ::= SEQUENCE { + latitude Latitude, + longitude Longitude, + positionConfidenceEllipse PositionConfidenceEllipse, + altitude Altitude +} + +/** + * This DF shall contain a list of @ref StationType. to which a certain traffic restriction, e.g. the speed limit, applies. + * + * @category: Infrastructure information, Traffic information + * @revision: V1.3.1 + */ +RestrictedTypes ::= SEQUENCE (SIZE(1..3, ...)) OF StationType + +/** + * This DF provides configuration information about a road section. + * + * It shall include the following components: + * + * @field roadSectionDefinition: the topological definition of the road section for which the information in the other components applies throughout its entire length. + * + * @field roadType: the optional type of road on which the section is located. + * + * @field laneConfiguration: the optional configuration of the road section in terms of basic information per lane. + * + * @field mapemConfiguration: the optional configuration of the road section in terms of MAPEM lanes or connections. + * + * @category: Road topology information + * @revision: Created in V2.2.1 +*/ + +RoadConfigurationSection ::= SEQUENCE { + roadSectionDefinition RoadSectionDefinition, + roadType RoadType OPTIONAL, + laneConfiguration BasicLaneConfiguration OPTIONAL, + mapemConfiguration MapemConfiguration OPTIONAL, + ... +} + ((WITH COMPONENTS {..., laneConfiguration PRESENT}) | + (WITH COMPONENTS {..., mapemConfiguration PRESENT})) + +/** + * This DF shall contain a list of @ref RoadConfigurationSection. + * + * @category: Road Topology information + * @revision: Created in V2.2.1 + */ +RoadConfigurationSectionList::= SEQUENCE (SIZE(1..8,...)) OF RoadConfigurationSection + +/** + * This DF provides the basic topological definition of a road section. + * + * It shall include the following components: + * + * @field startingPointSection: the position of the starting point of the section. + * + * @field lengthOfSection: the optional length of the section along the road profile (i.e. including curves). + * + * @field endingPointSection: the optional position of the ending point of the section. + * If this component is absent, the ending position is implicitly defined by other means, e.g. the starting point of the next RoadConfigurationSection, or the section�s length. + * + * @field connectedPaths: the identifier(s) of the path(s) having one or an ordered subset of waypoints located upstream of the RoadConfigurationSection� starting point. + * + * @field includedPaths: the identifier(s) of the path(s) that covers (either with all its length or with a part of it) a RoadConfigurationSection. + * + * @field isEventZoneIncluded: indicates, if set to TRUE, that the @ref EventZone incl. its reference position covers a RoadConfigurationSection (either with all its length or with a part of it). + * + * @field isEventZoneConnected: indicates, if set to TRUE, that the @ref EventZone incl. its reference position has one or an ordered subset of waypoints located upstream of the RoadConfigurationSection� starting point. + * + * @category: Road topology information + * @revision: Created in V2.2.1 +*/ +RoadSectionDefinition::= SEQUENCE { + startingPointSection GeoPosition, + lengthOfSection StandardLength2B OPTIONAL, + endingPointSection GeoPosition OPTIONAL, + connectedPaths PathReferences, + includedPaths PathReferences, + isEventZoneIncluded BOOLEAN, + isEventZoneConnected BOOLEAN, + ... +} + +/** + * This DF represents a unique id for a road segment + * + * It shall include the following components: + * + * @field region: the optional identifier of the entity that is responsible for the region in which the road segment is placed. + * It is the duty of that entity to guarantee that the @ref Id is unique within the region. + * + * @field id: the identifier of the road segment. + * + * @note: when the component region is present, the RoadSegmentReferenceId is guaranteed to be globally unique. + * @category: GeoReference information + * @revision: created in V2.1.1 + */ +RoadSegmentReferenceId ::= SEQUENCE { + region Identifier2B OPTIONAL, + id Identifier2B +} + +/** + * This DF provides the safe distance indication of a traffic participant with other traffic participant(s). + * + * It shall include the following components: + * + * @field subjectStation: optionally indicates one "other" traffic participant identified by its ITS-S. + * + * @field safeDistanceIndicator: indicates whether the distance between the ego ITS-S and the traffic participant(s) is safe. + * If subjectStation is present then it indicates whether the distance between the ego ITS-S and the traffic participant indicated in the component subjectStation is safe. + * + * @field timeToCollision: optionally indicated the time-to-collision calculated as sqrt(LaDi^2 + LoDi^2 + VDi^2/relative speed + * and represented in the nearest 100 ms. This component may be present only if subjectStation is present. + * + * @note: the abbreviations used are Lateral Distance (LaD), Longitudinal Distance (LoD) and Vertical Distance (VD) + * and their respective thresholds, Minimum Safe Lateral Distance (MSLaD), Minimum Safe Longitudinal Distance (MSLoD), and Minimum Safe Vertical Distance (MSVD). + * + * @category: Traffic information, Kinematic information + * @revision: created in V2.1.1 + */ +SafeDistanceIndication ::= SEQUENCE { + subjectStation StationId OPTIONAL, + safeDistanceIndicator SafeDistanceIndicator, + timeToCollision DeltaTimeTenthOfSecond OPTIONAL, + ... +} + +/** + * This DF shall contain a list of DF @ref CartesianPosition3d. + * + * @category: GeoReference information + * @revision: created in V2.1.1 + */ +SequenceOfCartesianPosition3d ::= SEQUENCE (SIZE(1..16, ...)) OF CartesianPosition3d + +/** + * The DF contains a list of DE @ref Identifier1B. + * + * @category: Basic information + * @revision: created in V2.1.1 +*/ +SequenceOfIdentifier1B ::= SEQUENCE SIZE(1..128, ...) OF Identifier1B + +/** + * The DF contains a list of DF @ref SafeDistanceIndication. + * + * @category: Traffic information, Kinematic information + * @revision: created in V2.1.1 +*/ +SequenceOfSafeDistanceIndication ::= SEQUENCE(SIZE(1..8,...)) OF SafeDistanceIndication + +/** + * The DF shall contain a list of DF @ref TrajectoryInterceptionIndication. + * + * @category: Traffic information, Kinematic information + * @revision: created in V2.1.1 +*/ +SequenceOfTrajectoryInterceptionIndication ::= SEQUENCE (SIZE(1..8,...)) OF TrajectoryInterceptionIndication + +/** + * This DF provides the definition of a geographical area or volume, based on different options. + * + * It is a choice of the following components: + * + * @field rectangular: definition of an rectangular area or a right rectangular prism (with a rectangular base) also called a cuboid, or informally a rectangular box. + * + * @field circular: definition of an area of circular shape or a right circular cylinder. + * + * @field polygonal: definition of an area of polygonal shape or a right prism. + * + * @field elliptical: definition of an area of elliptical shape or a right elliptical cylinder. + * + * @field radial: definition of a radial shape. + * + * @field radialList: definition of list of radial shapes. + * + * @category: GeoReference information + * @revision: Created in V2.1.1 + */ +Shape::= CHOICE { + rectangular RectangularShape, + circular CircularShape, + polygonal PolygonalShape, + elliptical EllipticalShape, + radial RadialShape, + radialShapes RadialShapes, + ... +} + +/** + * This DF represents the speed and associated confidence value. + * + * It shall include the following components: + * + * @field speedValue: the speed value. + * + * @field speedConfidence: the confidence value of the speed value. + * + * @category: Kinematic information + * @revision: V1.3.1 + */ +Speed ::= SEQUENCE { + speedValue SpeedValue, + speedConfidence SpeedConfidence +} + +/** + * This DF provides the indication of change in stability. + * + * It shall include the following components: + * + * @field lossProbability: the probability of stability loss. + * + * @field actionDeltaTime: the period over which the the probability of stability loss is estimated. + * + * @category: Kinematic information + * @revision: V2.1.1 + */ +StabilityChangeIndication ::= SEQUENCE { + lossProbability StabilityLossProbability, + actionDeltaTime DeltaTimeTenthOfSecond, + ... +} + +/** + * This DF represents the steering wheel angle of the vehicle at certain point in time. + * + * It shall include the following components: + * + * @field steeringWheelAngleValue: steering wheel angle value. + * + * @field steeringWheelAngleConfidence: confidence value of the steering wheel angle value. + * + * @category: Vehicle information + * @revision: Created in V2.1.1 + */ +SteeringWheelAngle ::= SEQUENCE { + steeringWheelAngleValue SteeringWheelAngleValue, + steeringWheelAngleConfidence SteeringWheelAngleConfidence +} + +/** + * This DF represents one or more paths using @ref Path. + * + * @category: GeoReference information + * @revision: Description revised in V2.1.1. Is is now based on Path and not on PathHistory + */ +Traces ::= SEQUENCE SIZE(1..7) OF Path + +/** + * This DF represents one or more paths using @ref PathExtended. + * + * @category: GeoReference information + * @revision: Created in V2.2.1 + */ +TracesExtended ::= SEQUENCE SIZE(1..7) OF PathExtended + +/** + * Ths DF represents the a position on a traffic island between two lanes. + * + * It shall include the following components: + * + * @field oneSide: represents one lane. + * + * @field otherSide: represents the other lane. + * + * @category: Road Topology information + * @revision: Created in V2.1.1 + */ +TrafficIslandPosition ::= SEQUENCE { + oneSide LanePositionAndType, + otherSide LanePositionAndType, + ... +} + +/** + * This DF provides detailed information about an attached trailer. + * + * It shall include the following components: + * + * @field refPointId: identifier of the reference point of the trailer. + * + * @field hitchPointOffset: optional position of the hitch point in negative x-direction (according to ISO 8855) from the + * vehicle Reference Point. + * + * @field frontOverhang: optional length of the trailer overhang in the positive x direction (according to ISO 8855) from the + * trailer Reference Point indicated by the refPointID. The value defaults to 0 in case the trailer + * is not overhanging to the front with respect to the trailer reference point. + * + * @field rearOverhang: optional length of the trailer overhang in the negative x direction (according to ISO 8855) from the + * trailer Reference Point indicated by the refPointID. + * + * @field trailerWidth: optional width of the trailer. + * + * @field hitchAngle: optional Value and confidence value of the angle between the trailer orientation (corresponding to the x + * direction of the ISO 8855 [21] coordinate system centered on the trailer) and the direction of + * the segment having as end points the reference point of the trailer and the reference point of + * the pulling vehicle, which can be another trailer or a vehicle looking on the horizontal plane + * xy, described in the local Cartesian coordinate system of the trailer. The + * angle is measured with negative values considering the trailer orientation turning clockwise + * starting from the segment direction. The angle value accuracy is provided with the + * confidence level of 95 %. + * + * @category: Vehicle information + * @revision: Created in V2.1.1 +*/ +TrailerData ::= SEQUENCE { + refPointId Identifier1B, + hitchPointOffset StandardLength1B, + frontOverhang StandardLength1B OPTIONAL, + rearOverhang StandardLength1B OPTIONAL, + trailerWidth VehicleWidth OPTIONAL, + hitchAngle CartesianAngle, + ... +} + +/** + * This DF provides the trajectory interception indication of ego-VRU ITS-S with another ITS-Ss. + * + * It shall include the following components: + * + * @field subjectStation: indicates the subject station. + * + * @field trajectoryInterceptionProbability: indicates the propbability of the interception of the subject station trajectory + * with the trajectory of the station indicated in the component subjectStation. + * + * @field trajectoryInterceptionConfidence: indicates the confidence of interception of the subject station trajectory + * with the trajectory of the station indicated in the component subjectStation. + * + * @category: Vehicle information + * @revision: Created in V2.1.1 + */ +TrajectoryInterceptionIndication ::= SEQUENCE { + subjectStation StationId OPTIONAL, + trajectoryInterceptionProbability TrajectoryInterceptionProbability, + trajectoryInterceptionConfidence TrajectoryInterceptionConfidence OPTIONAL, + ... +} + +/** + * This DF together with its sub DFs Ext1, Ext2 and the DE Ext3 provides the custom (i.e. not ASN.1 standard) definition of an integer with variable lenght, that can be used for example to encode the ITS-AID. + * + * @category: Basic information + * @revision: Created in V2.1.1 + */ +VarLengthNumber::=CHOICE{ + content [0] INTEGER(0..127), -- one octet length + extension [1] Ext1 + } +Ext1::=CHOICE{ + content [0] INTEGER(128..16511), -- two octets length + extension [1] Ext2 +} +Ext2::=CHOICE{ + content [0] INTEGER(16512..2113663), -- three octets length + extension [1] Ext3 + } +Ext3::= INTEGER(2113664..270549119,...) -- four and more octets length + +/** + * This DF indicates the vehicle acceleration at vertical direction and the associated confidence value. + * + * It shall include the following components: + * + * @field verticalAccelerationValue: vertical acceleration value at a point in time. + * + * @field verticalAccelerationConfidence: confidence value of the vertical acceleration value with a predefined confidence level. + * + * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref AccelerationComponent instead. + * @category Vehicle information + * @revision: Description revised in V2.1.1 + */ +VerticalAcceleration ::= SEQUENCE { + verticalAccelerationValue VerticalAccelerationValue, + verticalAccelerationConfidence AccelerationConfidence +} + +/** + * This DF provides information related to the identification of a vehicle. + * + * It shall include the following components: + * + * @field wMInumber: World Manufacturer Identifier (WMI) code. + * + * @field vDS: Vehicle Descriptor Section (VDS). + * + * @category: Vehicle information + * @revision: V1.3.1 + */ +VehicleIdentification ::= SEQUENCE { + wMInumber WMInumber OPTIONAL, + vDS VDS OPTIONAL, + ... +} + +/** + * This DF represents the length of vehicle and accuracy indication information. + * + * It shall include the following components: + * + * @field vehicleLengthValue: length of vehicle. + * + * @field vehicleLengthConfidenceIndication: indication of the length value confidence. + * + * @note: this DF is kept for backwards compatibility reasons only. It is recommended to use @ref VehicleLengthV2 instead. + * @category: Vehicle information + * @revision: V1.3.1 + */ +VehicleLength ::= SEQUENCE { + vehicleLengthValue VehicleLengthValue, + vehicleLengthConfidenceIndication VehicleLengthConfidenceIndication +} + +/** + * This DF represents the length of vehicle and accuracy indication information. + * + * It shall include the following components: + * + * @field vehicleLengthValue: length of vehicle. + * + * @field trailerPresenceInformation: information about the trailer presence. + * + * @category: Vehicle information + * @revision: created in V2.1.1 based on @ref VehicleLength but using @ref TrailerPresenceInformation. + */ +VehicleLengthV2 ::= SEQUENCE { + vehicleLengthValue VehicleLengthValue, + trailerPresenceInformation TrailerPresenceInformation +} + +/** + * This DF represents a velocity vector with associated confidence value. + * + * The following options are available: + * + * @field polarVelocity: the representation of the velocity vector in a polar or cylindrical coordinate system. + * + * @field cartesianVelocity: the representation of the velocity vector in a cartesian coordinate system. + * + * @category: Kinematic information + * @revision: Created in V2.1.1 + */ +Velocity3dWithConfidence::= CHOICE{ + polarVelocity VelocityPolarWithZ, + cartesianVelocity VelocityCartesian +} + +/** + * This DF represents a velocity vector in a cartesian coordinate system. + + * It shall include the following components: + * + * @field xVelocity: the x component of the velocity vector with the associated confidence value. + * + * @field yVelocity: the y component of the velocity vector with the associated confidence value. + * + * @field zVelocity: the optional z component of the velocity vector with the associated confidence value. + * + * @category: Kinematic information + * @revision: Created in V2.1.1 + */ +VelocityCartesian::= SEQUENCE { + xVelocity VelocityComponent, + yVelocity VelocityComponent, + zVelocity VelocityComponent OPTIONAL +} + +/** + * This DF represents a component of the velocity vector and the associated confidence value. + * + * It shall include the following components: + * + * @field value: the value of the component. + * + * @field confidence: the confidence value of the value. + * + * @category: Kinematic information + * @revision: V2.1.1 + */ +VelocityComponent ::= SEQUENCE { + value VelocityComponentValue, + confidence SpeedConfidence +} + +/** + * This DF represents a velocity vector in a polar or cylindrical coordinate system. + * + * It shall include the following components: + * + * @field velocityMagnitude: magnitude of the velocity vector on the reference plane, with the associated confidence value. + * + * @field velocityDirection: polar angle of the velocity vector on the reference plane, with the associated confidence value. + * + * @field zVelocity: the optional z component of the velocity vector along the reference axis of the cylindrical coordinate system, with the associated confidence value. + * + * @category: Kinematic information + * @revision: Created in V2.1.1 + */ +VelocityPolarWithZ::= SEQUENCE { + velocityMagnitude Speed, + velocityDirection CartesianAngle, + zVelocity VelocityComponent OPTIONAL +} + +/** + * This DF provides information about a VRU cluster. + * + * It shall include the following components: + * + * @field clusterId: optional identifier of a VRU cluster. + * + * @field clusterBoundingBoxShape: optionally indicates the shape of the cluster bounding box, per default inside an East-North-Up coordinate system + * centered around a reference point defined outside of the context of this DF. + * + * @field clusterCardinalitySize: indicates an estimation of the number of VRUs in the group, e.g. the known members in the cluster + 1 (for the cluster leader) . + * + * @field clusterProfiles: optionally identifies all the VRU profile types that are estimated to be within the cluster. + * if this component is absent it means that the information is unavailable. + * + * @category: VRU information + * @revision: Created in V2.1.1, description revised in V2.2.1 +*/ +VruClusterInformation ::= SEQUENCE { + clusterId Identifier1B OPTIONAL, + clusterBoundingBoxShape Shape (WITH COMPONENTS{..., elliptical ABSENT, radial ABSENT, radialShapes ABSENT}) OPTIONAL, + clusterCardinalitySize CardinalNumber1B, + clusterProfiles VruClusterProfiles OPTIONAL, + ... +} + +/** + * This DF represents the status of the exterior light switches of a VRU. + * This DF is an extension of the vehicular DE @ref ExteriorLights. + * + * It shall include the following components: + * + * @field vehicular: represents the status of the exterior light switches of a road vehicle. + * + * @field vruSpecific: represents the status of the exterior light switches of a VRU. + * + * @category: VRU information + * @revision: created in V2.1.1 + */ +VruExteriorLights ::= SEQUENCE { + vehicular ExteriorLights, + vruSpecific VruSpecificExteriorLights, + ... +} + +/** + * This DF indicates the profile of a VRU including sub-profile information + * It identifies four options corresponding to the four types of VRU profiles specified in ETSI TS 103 300-2 [18]: + * + * @field pedestrian: VRU Profile 1 - Pedestrian. + * + * @field bicyclistAndLightVruVehicle: VRU Profile 2 - Bicyclist. + * + * @field motorcyclist: VRU Profile 3 - Motorcyclist. + * + * @field animal: VRU Profile 4 - Animal. + * + * @category: VRU information + * @revision: Created in V2.1.1 + */ +VruProfileAndSubprofile ::= CHOICE { + pedestrian VruSubProfilePedestrian, + bicyclistAndLightVruVehicle VruSubProfileBicyclist, + motorcyclist VruSubProfileMotorcyclist, + animal VruSubProfileAnimal, + ... +} + +/** + * This DF represents an angular component along with a confidence value in the WGS84 coordinate system. + * The specific WGS84 coordinate system is specified by the corresponding standards applying this DE. + * + * It shall include the following components: + * + * @field value: the angle value, which can be estimated as the mean of the current distribution. + * + * @field confidence: the confidence value associated to the angle value. + * + * @category: GeoReference information + * @revision: Created in V2.1.1 +*/ +Wgs84Angle ::= SEQUENCE { + value Wgs84AngleValue, + confidence Wgs84AngleConfidence +} + + +/** + * This DF represents a yaw rate of vehicle at a point in time. + * + * It shall include the following components: + * + * @field yawRateValue: yaw rate value at a point in time. + * + * @field yawRateConfidence: confidence value associated to the yaw rate value. + * + * @category: Vehicle Information + * @revision: V1.3.1 + */ +YawRate::= SEQUENCE { + yawRateValue YawRateValue, + yawRateConfidence YawRateConfidence +} + +------------------------------------------ +/** + * ## References: + * 1. ETSI TS 103 900: "Intelligent Transport Systems (ITS); Vehicular Communications; Basic Set of Applications; Part 2: Specification of Cooperative Awareness Basic Service; Release 2". + * 2. ETSI TS 103 831: "Intelligent Transport Systems (ITS); Vehicular Communications; Basic Set of Applications; Part 3: Specifications of Decentralized Environmental Notification Basic Service"; Release 2. + * 3. [European Agreement (Applicable as from 1 January 2011): "Concerning the International Carriage of Dangerous Goods by Road"](http://www.unece.org/trans/danger/publi/adr/adr2011/11ContentsE.html). + * 4. [United Nations: "Recommendations on the Transport of Dangerous Goods - Model Regulations", Twelfth revised edition](http://www.unece.org/trans/danger/publi/unrec/12_e.html). + * 5. ETSI TS 101 539-1: "Intelligent Transport Systems (ITS); V2X Applications; Part 1: Road Hazard Signalling (RHS) application requirements specification". + * 6. ISO 3779 (2011-07): "Road vehicles - Vehicle identification number (VIN) Content and structure". + * 7. VDV recommendation 420 (1992): "Technical Requirements for Automatic Vehicle Location / Control Systems - Radio Data Transmission (BON Version) with Supplement 1 and Supplement 2". + * 8. ISO 1176:1990: "Road vehicles - Masses - Vocabulary and codes". + * 9. ETSI TS 103 916 Intelligent Transport Systems (ITS); Parking Availability Service Specification; Release 2 + * 10. void + * 11. void + * 12. ETSI TS 103 300-3: "Intelligent Transport Systems (ITS); Vulnerable Road Users (VRU) awareness; Part 3: Specification of VRU awareness basic service; Release 2" + * 13. ETSI TS 103 724: "Intelligent Transport Systems (ITS); Facilities layer function; Interference Management Zone Message (IMZM); Release 2" + * 14. ETSI TS 102 792: "Intelligent Transport Systems (ITS); Mitigation techniques to avoid interference between European CEN Dedicated Short Range Communication (CEN DSRC) equipment and Intelligent Transport Systems (ITS) operating in the 5 GHz frequency range". + * 15. ETSI TS 103 301: "Intelligent Transport Systems (ITS); Vehicular Communications; Basic Set of Applications; Facilities layer protocols and communication requirements for infrastructure services; Release 2". + * 16. UNECE/TRANS/WP.29/78/Rev.4: "Consolidated Resolution on the Construction of Vehicles (R.E.3)". + * 17. ETSI EN 302 890-1: "Intelligent Transport Systems (ITS); Facilities layer function; Part 1: Services Announcement (SA) specification". + * 18. ETSI TS 103 300-2 "Intelligent Transport System (ITS); Vulnerable Road Users (VRU) awareness; Part 2: Functional Architecture and Requirements definition; Release 2" + * 19. ETSI TS 103 175: "Intelligent Transport Systems (ITS); Cross Layer DCC Management Entity for operation in the ITS G5A and ITS G5B medium" + * 20. ETSI EN 302 571: "Intelligent Transport Systems (ITS); Radiocommunications equipment operating in the 5 855 MHz to 5 925 MHz frequency band; Harmonised Standard covering the essential requirements of article 3.2 of Directive 2014/53/EU" + * 21. ISO 8855: "Road vehicles - Vehicle dynamics and road-holding ability - Vocabulary". + * 22. ISO 3833: "Road vehicles - Types - Terms and definitions". + * 23. ISO 14816:2015 + Amd1:2019: " Road transport and traffic telematics � Automatic vehicle and equipment identification � Numbering and data structure" + * 24. ISO 17573-3: "Electronic fee collection � System architecture for vehicle-related tolling � Part 3: Data dictionary" + * 25. ISO 3166-1: "Codes for the representation of names of countries and their subdivisions � Part 1: Country code" +*/ + +END + diff --git a/asn1/TS103300-3v221-VAM-MotorcylistSpecialContainer.asn b/asn1/TS103300-3v221-VAM-MotorcylistSpecialContainer.asn new file mode 100644 index 000000000..d641f4757 --- /dev/null +++ b/asn1/TS103300-3v221-VAM-MotorcylistSpecialContainer.asn @@ -0,0 +1,39 @@ +-- Draft V0.0.4_2.2.1 - TS 103 300-3 +-- Based on the official version available at @url https://forge.etsi.org/rep/ITS/asn1/vam-ts103300_3/-/tree/v2.1.1 +-- Modified to import from the CDD module V2.1.1 + +-- This module defines a special container for motorcycles, to be integrated into the +-- Cooperative Awareness Message (CAM) defined in ETSI TS 103 900 + +VRU-Motorcyclist-Special-Container {itu-t(0) identified-organization(4) etsi(0) itsDomain(5) + wg1(1) 103300 motorcyclist-special-container(2) version2(2)} + + +DEFINITIONS AUTOMATIC TAGS ::= + +BEGIN + +IMPORTS + PathPredicted, SequenceOfSafeDistanceIndication, + StabilityChangeIndication, Wgs84Angle, CartesianAngle, + VruSizeClass, VruSubProfileMotorcyclist +FROM ETSI-ITS-CDD + {itu-t(0) identified-organization(4) etsi(0) + itsDomain(5) wg1(1) 102894 cdd(2) major-version-4(4) minor-version-1(1)} +; + +MotorcylistSpecialContainer ::= SEQUENCE { + motorcyclist VruSubProfileMotorcyclist, + sizeClass VruSizeClass, + rollAngle CartesianAngle OPTIONAL, + orientation Wgs84Angle OPTIONAL, + safeDistance SequenceOfSafeDistanceIndication OPTIONAL, + pathPrediction PathPredicted OPTIONAL, + stabilityChangeIndication StabilityChangeIndication OPTIONAL, + ... +} + + + +END + diff --git a/asn1/TS103300-3v221-VAM.asn b/asn1/TS103300-3v221-VAM.asn new file mode 100644 index 000000000..f70d9196a --- /dev/null +++ b/asn1/TS103300-3v221-VAM.asn @@ -0,0 +1,229 @@ +-- Draft V0.0.4_2.2.1 - VAM TS 103 300-1 ASN.1 module +-- Based on the official version available at @url https://forge.etsi.org/rep/ITS/asn1/vam-ts103300_3/-/tree/v2.1.1 +-- Modified to import from the CDD module V2.1.1 + +VAM-PDU-Descriptions {itu-t(0) identified-organization(4) etsi(0) itsDomain(5) + wg1(1) 103300 vam(1) major-version-3(3) minor-version-1(1)} +DEFINITIONS AUTOMATIC TAGS ::= +BEGIN + + IMPORTS + AccelerationChangeIndication, BasicContainer, CartesianAngle, ClusterBreakupInfo, + ClusterJoinInfo, ClusterLeaveInfo, Curvature, CurvatureCalculationMode, + DeltaTimeQuarterSecond, GenerationDeltaTime, HeadingChangeIndication, ItsPduHeader, LanePosition, + LateralAcceleration, LongitudinalAcceleration, PathHistory, PathPredicted, + SequenceOfSafeDistanceIndication, SequenceOfTrajectoryInterceptionIndication, + SequenceOfTrajectoryInterceptionIndication, Speed, StabilityChangeIndication, StationId, + TrajectoryInterceptionIndication, VerticalAcceleration, VruClusterInformation, VruDeviceUsage, + VruEnvironment, VruExteriorLights, GeneralizedLanePosition, VruProfileAndSubprofile, VruMovementControl, + VruSizeClass, YawRate, Wgs84Angle + FROM ETSI-ITS-CDD {itu-t (0) identified-organization (4) etsi (0) itsDomain (5) wg1 (1) 102894 cdd (2) major-version-4 (4) minor-version-1 (1) } + WITH SUCCESSORS + ; + + VAM ::= SEQUENCE { + header ItsPduHeaderVam, + vam VruAwareness + } + +/** + * @details ItsPduHeaderVam + * The ITS PDU header for the VAM. + * + * This DF includes DEs for the VAM _protocolVersion_, the VAM message type identifier _messageID_ + * and the station identifier _stationID_ of the originating ITS-S. + * + * @category: Communication information + * @revision: V2.2.1 + */ + ItsPduHeaderVam ::= ItsPduHeader(WITH COMPONENTS {..., protocolVersion(3), messageId(vam)}) + + +/** + * @details VruAwareness + * VAM payload. + * + * It includes the time stamp of the VAM and the VAM different containers + * + * @category: Communication information + * @revision: V2.2.1 + */ + VruAwareness ::= SEQUENCE { + generationDeltaTime GenerationDeltaTime, + vamParameters VamParameters + } + +/** + * @details VamParameters + * The VAM payload includes the @ref BasicContainer and @ref VruHighFrequencyContainer. + * The VAM payload may also include additional containers: @ref VruLowFrequencyContainer, + * @ref VruClusterInformationContainer, @ref VruClusterOperationContainer and @ref VruMotionPredictionContainer. + * The selection of the additional containers depends on the dissemination criteria, + * e.g. _vruCluster_ or _MotionDynamicPrediction_ availability. + * + * @category: Communication information + * @revision: V2.2.1 +**/ + VamParameters ::= SEQUENCE { + basicContainer BasicContainer, + vruHighFrequencyContainer VruHighFrequencyContainer, + vruLowFrequencyContainer VruLowFrequencyContainer OPTIONAL, + vruClusterInformationContainer VruClusterInformationContainer OPTIONAL, + vruClusterOperationContainer VruClusterOperationContainer OPTIONAL, + vruMotionPredictionContainer VruMotionPredictionContainer OPTIONAL, + ... + } + +/** + * @details VruHighFrequencyContainer + * The VRU HF container of the VAM contains potentially fast-changing status information of the VRU ITS-S. + * It includes the following components (setting indications are specified in clause 7.3.3 of TS 103 300-3): + * + * @field heading: heading and heading confidence of the originating VRU with regards to the true north. + * @field speed: speed in moving direction and speed confidence of the originating VRU. + * @field longitudinalAcceleration: longitudinal acceleration of the originating VRU. + * @field curvature: related to the actual trajectory of the originating VRU vehicle. + _(recommended for VRU Profile 2)_ + * @field curvatureCalculationMode: indicates whether vehicle yaw-rate is used in the calculation of + * the curvature of the VRU vehicle ITS-S that originates the VAM. _(recommended for VRU Profile 2)_ + * @field yawRate: yaw rate of originating VRU vehicle. _(recommended for VRU Profile 2)_ + * @field lateralAcceleration: originating VRU lateral acceleration in the street plane. + * This field shall be present if the data is available at the originating ITS-S. _(recommended for VRU Profile 2)_ + * @field verticalAcceleration: vertical acceleration of the originating VRU. + * This field shall be present if the data is available at the originating ITS-S. + * @field vruLanePosition: lane position of the referencePosition of a VRU, which is either a VRU-specific non-traffic lane + * or a standard traffic lane. This field shall be present if the data is available at the originating ITS-S. + * @field environment: provides contextual awareness of the VRU among other road users. + * This field shall be present only if the data is available at the originating ITS-S. + * @field movementControl: indicates the mechanism used by the VRU to control the longitudinal movement of the VRU vehicle. + * This field shall be present only if the data is available at the originating ITS-S. _(recommended for VRU Profile 2)_ + * @field orientation : complements the dimensions of the VRU vehicle by defining the angle of the VRU vehicle longitudinal + * axis with regards to the WGS84 north. _(recommended for VRU Profile 2)_ + * @field rollAngle: provides the angle and angle accuracy between the ground plane and the current orientation of a vehicle's + * y-axis with respect to the ground plane about the x-axis according to the ISO 8855. + * This field shall be present only if the data is available at the originating ITS-S. _(recommended for VRU Profile 2)_ + * @field deviceUsage: provides indications from the personal device about the potential + * activity of the VRU. This field shall be present only if the data is available at the originating ITS-S. + * _(recommended for VRU Profile 1)_ + * + * @category: VRU information + * @revision: V2.2.1 + */ + VruHighFrequencyContainer ::= SEQUENCE { + heading Wgs84Angle, + speed Speed, + longitudinalAcceleration LongitudinalAcceleration, + curvature Curvature OPTIONAL, + curvatureCalculationMode CurvatureCalculationMode OPTIONAL, + yawRate YawRate OPTIONAL, + lateralAcceleration LateralAcceleration OPTIONAL, + verticalAcceleration VerticalAcceleration OPTIONAL, + vruLanePosition GeneralizedLanePosition OPTIONAL, + environment VruEnvironment OPTIONAL, + movementControl VruMovementControl OPTIONAL, + orientation Wgs84Angle OPTIONAL, + rollAngle CartesianAngle OPTIONAL, + deviceUsage VruDeviceUsage OPTIONAL, + ... + } + +/** + * @details VruLowFrequencyContainer + * The VRU LF container of the VAM contains potentially slow-changing information of the VRU ITS-S. + * It is mandatory with higher periodicity as specified in clause 6.2 or when VRU cluster operation container is present. + * It includes the following components (setting indications are specified in clause 7.3.4 of TS 103 300-3): + * + * @field profileAndSubprofile: profile of the ITS-S that originates the VAM, including sub-profile information. + * @field sizeClass: information about the size of the VRU. + * @field exteriorLights: status of the most important exterior lights switches of the VRU ITS-S that originates the VAM. + * _(conditional mandatory as specified in clause 7.3.4 of TS 103 300-3)_ + * + * @category: VRU information + * @revision: V2.2.1 + */ + VruLowFrequencyContainer ::= SEQUENCE { + profileAndSubprofile VruProfileAndSubprofile, + sizeClass VruSizeClass OPTIONAL, + exteriorLights VruExteriorLights OPTIONAL, + ... + } + + /** + * @details VruClusterInformationContainer + * The VRU Cluster Information container of the VAM provides the information/parameters relevant to the VRU cluster. + * It is mandatory if the VAM is transmitted by VRU cluster leader. + * It includes the following components (setting indications are specified in clause 7.3.5 of TS 103 300-3): + * + * @field vruClusterInformation: set of parammeters releated to the VRU cluster. + * When transmitted by a VRU ITS-S, the clusterId and clusterBoundingBoxShape fields inside this DF shall be present. + * The clusterBoundingBoxShape is positioned with respect to the position sent in the BasicContainer. + * + * @category: VRU information + * @revision: V2.2.1 + */ + VruClusterInformationContainer::= SEQUENCE{ + vruClusterInformation VruClusterInformation (WITH COMPONENTS{..., clusterId, clusterBoundingBoxShape PRESENT}), + ... + } + + + /** + * @details VruClusterOperationContainer + * The VRU Cluster Operation container of the VAM provides information relevant to change of cluster state and composition. + * It is mandatory if the VAM is transmitted by a VRU joining, leaving or breaking up a cluster. + * It includes the following components (setting indications are specified in clause 7.3.5 of TS 103 300-3). + * At least one of the fields below shall be present if the container is present in the VAM: + * + * @field clusterJoinInfo: indicates the intent of an individual VAM transmitter to join a cluster. + * @field clusterLeaveInfo : indicates that an individual VAM transmitter has recently left the VRU cluster. + * @field clusterBreakupInfo: indicates the intent of a cluster VAM transmitter to stop sending cluster VAMs. + * @field clusterIdChangeTimeInfo: indicates the intent of a cluster VAM transmitter to change cluster ID. + * + * @category: VRU information + * @revision: V2.2.1 + */ + VruClusterOperationContainer ::= SEQUENCE { + clusterJoinInfo ClusterJoinInfo OPTIONAL, + clusterLeaveInfo ClusterLeaveInfo OPTIONAL, + clusterBreakupInfo ClusterBreakupInfo OPTIONAL, + clusterIdChangeTimeInfo DeltaTimeQuarterSecond OPTIONAL, + ... + } + + /** + * @details VruMotionPredictionContainer + * The VRU Motion Prediction container of the VAM carries the past and future motion state information of the VRU. + * It includes the following components (setting indications are specified in clause 7.3.6 of TS 103 300-3). + * At least one of the fields below shall be present if the container is present in the VAM: + * + * @field pathHistory: represents the VRU's recent movement over some past time and/or distance. + * It consists of a list of path points. + * @field pathPrediction: provides the set of predicted locations of the ITS-S, confidence values + * and the corresponding future time instants. + * @field safeDistance: provides indication of safe distance between an ego-VRU and up to 8 other ITS-S + * or entity on the road to indicate whether the ego-VRU is at a safe distance (that is less likely to + * physically collide) from another ITS-S or entity on the road. + * @field trajectoryInterceptionIndication: provides the indication for possible trajectory interception + * with up to 8 VRUs or other objects on the road.. + * @field accelerationChangeIndication: provides an acceleration change indication of the VRU. + * When present this DF indicates an anticipated change in the VRU speed for period of actionDeltaTime. + * @field headingChangeIndication: provides additional data elements associated to heading change indicators + * such as a change of travel direction (left or right). + * The direction change action is performed for a period of actionDeltaTime. + * @field stabilityChangeIndication: provides an estimation of the VRU stability. + * + * @category: GeoReference information, VRU information + * @revision: V2.2.1 + */ + VruMotionPredictionContainer ::= SEQUENCE { + pathHistory PathHistory OPTIONAL, + pathPrediction PathPredicted OPTIONAL, + safeDistance SequenceOfSafeDistanceIndication OPTIONAL, + trajectoryInterceptionIndication SequenceOfTrajectoryInterceptionIndication OPTIONAL, + accelerationChangeIndication AccelerationChangeIndication OPTIONAL, + headingChangeIndication HeadingChangeIndication OPTIONAL, + stabilityChangeIndication StabilityChangeIndication OPTIONAL, + ... + } + +END diff --git a/asn1/TS103324v211-CPM-OriginatingStationContainers.asn b/asn1/TS103324v211-CPM-OriginatingStationContainers.asn new file mode 100644 index 000000000..608543378 --- /dev/null +++ b/asn1/TS103324v211-CPM-OriginatingStationContainers.asn @@ -0,0 +1,54 @@ +CPM-OriginatingStationContainers {itu-t (0) identified-organization (4) etsi (0) itsDomain (5) wg1 (1) ts (103324) originatingStationContainers (2) major-version-1 (1) minor-version-1(1)} + +DEFINITIONS AUTOMATIC TAGS ::= + +BEGIN + +IMPORTS + +CartesianAngle, MapReference, Speed, StationType, TrailerData, Wgs84Angle +FROM ETSI-ITS-CDD {itu-t (0) identified-organization (4) etsi (0) itsDomain (5) wg1 (1) ts (102894) cdd (2) major-version-4 (4) minor-version-1 (1)} +; + +/** + * This DF represents the Originating Vehicle Container + * + * It shall include the following components: + * + * @field orientationAngle: the angle and angle accuracy of the absolute orientation of the disseminating vehicle in the WGS84 coordinate system with respect to true North. + * + * @field pitchAngle: the optional angle and angle accuracy between the ground plane and the current orientation of the vehicle's x-axis with respect to the ground plane about the y-axis according to the ISO 8855. + * + * @field rollAngle: the optional angle and angle accuracy between the ground plane and the current orientation of a vehicle's y-axis with respect to the ground plane about the x-axis according to the ISO 8855 + * + * @field trailerData: information about the trailer dimensions and orientation in case a trailer is present. + * +*/ +OriginatingVehicleContainer ::= SEQUENCE { + orientationAngle Wgs84Angle, + pitchAngle CartesianAngle OPTIONAL, + rollAngle CartesianAngle OPTIONAL, + trailerDataSet TrailerDataSet OPTIONAL, + ... +} + +/** + * This DF represents the Originating RSU Container. + * + * It shall include the following components: + * + * @field mapReference: identifies the MAPEM containing the topology information reference in the Perceived Object Container + * +*/ +OriginatingRsuContainer ::= SEQUENCE{ + mapReference MapReference OPTIONAL, + ... +} + +/** + * This DF represents a list of trailer data. + * +*/ +TrailerDataSet::= SEQUENCE SIZE(1..8,...) OF TrailerData (WITH COMPONENTS {... ,frontOverhang ABSENT, rearOverhang ABSENT, trailerWidth ABSENT}) + +END diff --git a/asn1/TS103324v211-CPM-PerceivedObjectContainer.asn b/asn1/TS103324v211-CPM-PerceivedObjectContainer.asn new file mode 100644 index 000000000..2f80e53fb --- /dev/null +++ b/asn1/TS103324v211-CPM-PerceivedObjectContainer.asn @@ -0,0 +1,34 @@ +CPM-PerceivedObjectContainer {itu-t (0) identified-organization (4) etsi (0) itsDomain (5) wg1 (1) ts (103324) perceivedObjectContainer (4) major-version-1 (1) minor-version-1(1)} + +DEFINITIONS AUTOMATIC TAGS ::= + +BEGIN + +IMPORTS + +CardinalNumber1B, PerceivedObject +FROM ETSI-ITS-CDD {itu-t (0) identified-organization (4) etsi (0) itsDomain (5) wg1 (1) ts (102894) cdd (2) major-version-4 (4) minor-version-1 (1)} +; + +/** + * This DF represents the Perceived Object Container + * + * It shall include the following components: + * + * @field numberOfPerceivedObjects: the total number of perceived objects at the time of generating the message. + * + * @field perceivedObjects: the list of perceived objects. + * +*/ +PerceivedObjectContainer ::= SEQUENCE { + numberOfPerceivedObjects CardinalNumber1B, + perceivedObjects PerceivedObjects, + ... +} + +/** @brief Perceived Objects + * This DF provides a list of perceived objects represented in the coordinate system in which the y-axis corresponds to the North direction, the x-axis to the East direction, and the z- axis to the vertical direction. +*/ +PerceivedObjects::= SEQUENCE SIZE(0..255, ...) OF PerceivedObject (WITH COMPONENTS {... ,objectId PRESENT}) + +END diff --git a/asn1/TS103324v211-CPM-PerceptionRegionContainer.asn b/asn1/TS103324v211-CPM-PerceptionRegionContainer.asn new file mode 100644 index 000000000..c0a0e5b03 --- /dev/null +++ b/asn1/TS103324v211-CPM-PerceptionRegionContainer.asn @@ -0,0 +1,54 @@ +CPM-PerceptionRegionContainer {itu-t (0) identified-organization (4) etsi (0) itsDomain (5) wg1 (1) ts (103324) perceptionRegionContainer (5) major-version-1 (1) minor-version-1(1)} + +DEFINITIONS AUTOMATIC TAGS ::= + +BEGIN + +IMPORTS + +CardinalNumber1B, DeltaTimeMilliSecondSigned, Identifier2B, Shape, ConfidenceLevel, SensorType, SequenceOfIdentifier1B +FROM ETSI-ITS-CDD {itu-t (0) identified-organization (4) etsi (0) itsDomain (5) wg1 (1) ts (102894) cdd (2) major-version-4 (4) minor-version-1 (1)} +; + +/** + * This DF represents the Perception Region Container as a list of perception region information objects. +*/ +PerceptionRegionContainer ::= SEQUENCE SIZE(1..256, ...) OF PerceptionRegion + +/** + * This DF represents the actual perception capabilities available to the transmitting ITS-S, offering additional (often dynamic) details to the information provided in the sensor information container. + * + * It shall include the following components: + + * @field measurementDeltaTime: difference between the time of estimation of the perception region and the reference time. Positive values indicates that the provided information refers to a point in time after the reference time. + * + * @field perceptionRegionConfidence: the perception confidence. + * + * @field perceptionRegionShape: specification of the shape of the perception region. + * + * @field shadowingApplies: indicates if the standard shadowing approach applies to the described perception region. + * + * @field sensorIdList: the optional list of identifiers of the sensors which are involved in perceiving the region. + * + * @field numberOfPerceivedObjects: the optional number of perceived objects contained in the perception region specified in the component perceptionRegionShape. + * + * @field perceivedObjectIds: the optional list of identifiers of the objects specified in the Perceived Object Container that are contained in the perception region specified in the component perceptionRegionShape. + * +*/ +PerceptionRegion ::= SEQUENCE { + measurementDeltaTime DeltaTimeMilliSecondSigned, + perceptionRegionConfidence ConfidenceLevel, + perceptionRegionShape Shape, + shadowingApplies BOOLEAN, + sensorIdList SequenceOfIdentifier1B OPTIONAL, + numberOfPerceivedObjects CardinalNumber1B OPTIONAL, + perceivedObjectIds PerceivedObjectIds OPTIONAL, + ... +} + +/** + * This DF represents a list of identifiers of perceived objects. +*/ +PerceivedObjectIds::= SEQUENCE SIZE(0..255, ...) OF Identifier2B + +END diff --git a/asn1/TS103324v211-CPM-SensorInformationContainer.asn b/asn1/TS103324v211-CPM-SensorInformationContainer.asn new file mode 100644 index 000000000..e0c85348f --- /dev/null +++ b/asn1/TS103324v211-CPM-SensorInformationContainer.asn @@ -0,0 +1,47 @@ +CPM-SensorInformationContainer {itu-t (0) identified-organization (4) etsi (0) itsDomain (5) wg1 (1) ts (103324) sensorInformationContainer (3) major-version-1 (1) minor-version-1(1)} + +DEFINITIONS AUTOMATIC TAGS ::= + +BEGIN + +IMPORTS + +Shape, ConfidenceLevel, Identifier1B, SensorType +FROM ETSI-ITS-CDD {itu-t (0) identified-organization (4) etsi (0) itsDomain (5) wg1 (1) ts (102894) cdd (2) major-version-4 (4) minor-version-1 (1) } +; + +/** + * This DF represents the Sensor Information Container as a list of information objects about the sensors or data fusion systems from which the station provides information about detected objects. +*/ +SensorInformationContainer ::= SEQUENCE SIZE(1..128, ...) OF SensorInformation + + +/** + * This DF represents the characteristics of a single sensor or data fusion system. + * + * It shall include the following components: + * + * @field sensorId: identifier of the sensor or data fusion system used to relate the perceived object in the Perceived Object Container to the sensor that detected it. + * this identifier shall uniquely identify the sensor inside the CPM, but may be changed from one CPM to the next. + * + * @field sensorType: the type of the sensor. + * + * @field perceptionRegionShape: the perception region of the sensor. + * + * @field perceptionRegionConfidence: the homogeneous perception region confidence that can be assumed for the entire perception region shape of this sensor. + * + * @field shadowingApplies: indicates if the standard shadowing approach applies to the described perception region. + * +*/ + +SensorInformation ::= SEQUENCE { + sensorId Identifier1B, + sensorType SensorType, + perceptionRegionShape Shape OPTIONAL, + perceptionRegionConfidence ConfidenceLevel OPTIONAL, + shadowingApplies BOOLEAN, + ... +} + + +END diff --git a/asn1/TS103324v211-CPM.asn b/asn1/TS103324v211-CPM.asn new file mode 100644 index 000000000..33eb6906c --- /dev/null +++ b/asn1/TS103324v211-CPM.asn @@ -0,0 +1,171 @@ +CPM-PDU-Descriptions { itu-t (0) identified-organization (4) etsi (0) itsDomain (5) wg1 (1) ts (103324) cpm (1) major-version-1 (1) minor-version-1(1)} + +DEFINITIONS AUTOMATIC TAGS ::= + +BEGIN + +IMPORTS + +ItsPduHeader, MessageRateHz, MessageSegmentationInfo, OrdinalNumber1B, ReferencePosition, StationType, TimestampIts +FROM ETSI-ITS-CDD {itu-t (0) identified-organization (4) etsi (0) itsDomain (5) wg1 (1) ts (102894) cdd (2) major-version-4 (4) minor-version-1 (1)} +WITH SUCCESSORS + +OriginatingRsuContainer, OriginatingVehicleContainer +FROM CPM-OriginatingStationContainers {itu-t (0) identified-organization (4) etsi (0) itsDomain (5) wg1 (1) ts (103324) originatingStationContainers (2) major-version-1 (1) minor-version-1(1)} +WITH SUCCESSORS + +SensorInformationContainer +FROM CPM-SensorInformationContainer {itu-t (0) identified-organization (4) etsi (0) itsDomain (5) wg1 (1) ts (103324) sensorInformationContainer (3) major-version-1 (1) minor-version-1(1)} +WITH SUCCESSORS + +PerceptionRegionContainer +FROM CPM-PerceptionRegionContainer {itu-t (0) identified-organization (4) etsi (0) itsDomain (5) wg1 (1) ts (103324) perceptionRegionContainer (5) major-version-1 (1) minor-version-1(1)} +WITH SUCCESSORS + +PerceivedObjectContainer +FROM CPM-PerceivedObjectContainer {itu-t (0) identified-organization (4) etsi (0) itsDomain (5) wg1 (1) ts (103324) perceivedObjectContainer (4) major-version-1 (1) minor-version-1(1)} +WITH SUCCESSORS + +; + +/** + * This DF represents the Collective Perception Message (CPM) and is the top level Protocol Data Unit. + * + * It shall include the following components: + * + * @field header: the common message header for the facilities layer message. + * + * @field payload: the payload of the message. + * +*/ +CollectivePerceptionMessage ::= SEQUENCE { + header ItsPduHeader (WITH COMPONENTS {... , protocolVersion (2), messageId(cpm)}), + payload CpmPayload +} + +/** + * This DF represents the payload of the CPM. + * + * It shall include the following components: + * + * @field managementContainer: the management container. + * + * @field cpmContainers: the list of CPM containers, including its container type identifier and including either one or none of originatingVehicleContainer and/or originatingRsuContainer. + * +*/ +CpmPayload ::= SEQUENCE { + managementContainer ManagementContainer, + cpmContainers ConstraintWrappedCpmContainers, + ... +} + +/** + * This DF represents the management container of the CPM. + * The management container provides basic information about the originating ITS-S, which are not specific to a specific type of station. + * + * It shall include the following components: + * + * @field referenceTime: the reference time for all time related information in the CPM. + * + * @field messageRateRange: the planned or expected range of the CPM generation rate. + * + * @field segmentationInfo: information regarding the message segmentation on facility layer. + * + * @field referencePosition: the reference position for all position related information in the CPM. + * +*/ +ManagementContainer ::= SEQUENCE { + referenceTime TimestampIts, + referencePosition ReferencePosition, + segmentationInfo MessageSegmentationInfo OPTIONAL, + messageRateRange MessageRateRange OPTIONAL, + ... +} + +/** + * This information object class is an abstract template to instantiate containers. + * + * It shall include the following components: + * + * @field &id: the identifier of the container type. + * + * @field &Type: the container content. + * +*/ + +CPM-CONTAINER-ID-AND-TYPE ::= CLASS { + &id CpmContainerId UNIQUE, + &Type +} WITH SYNTAX {&Type IDENTIFIED BY &id} + +/** + * This DE represents the identifier of the container type. + * +*/ +CpmContainerId ::= INTEGER (1..16) + +/** + * These value assignements represent specific values of the container type identifier. +*/ +originatingVehicleContainer CpmContainerId ::= 1 +originatingRsuContainer CpmContainerId ::= 2 +sensorInformationContainer CpmContainerId ::= 3 +perceptionRegionContainer CpmContainerId ::= 4 +perceivedObjectContainer CpmContainerId ::= 5 + + +/** + * This information object set represents the association between the container type and the container content. +*/ +CpmContainers CPM-CONTAINER-ID-AND-TYPE ::= { + {OriginatingVehicleContainer IDENTIFIED BY originatingVehicleContainer} | + {OriginatingRsuContainer IDENTIFIED BY originatingRsuContainer} | + {SensorInformationContainer IDENTIFIED BY sensorInformationContainer} | + {PerceptionRegionContainer IDENTIFIED BY perceptionRegionContainer} | + {PerceivedObjectContainer IDENTIFIED BY perceivedObjectContainer}, + ... +} + +/** + * This DF represents a CPM container preceded by its type identifier and a lenght indicator. + * + * It shall include the following components: + * + * @field containerId: the identifier of the container type. + * + * @field containerData: the container content consistent with the container type. + * +*/ +WrappedCpmContainer ::= SEQUENCE { + containerId CPM-CONTAINER-ID-AND-TYPE.&id( {CpmContainers} ), + containerData CPM-CONTAINER-ID-AND-TYPE.&Type( {CpmContainers}{@containerId} ) +} + +/** + * This DF represents a list of CPM containers, each with their type identifier. +*/ +WrappedCpmContainers::= SEQUENCE SIZE(1..8,...) OF WrappedCpmContainer + +/** + * This DF represents a list of CPM containers, each with their type identifier with an additional constraint. +*/ +ConstraintWrappedCpmContainers ::= WrappedCpmContainers + ((WITH COMPONENT (WITH COMPONENTS {..., containerId (ALL EXCEPT 1)})) | + (WITH COMPONENT (WITH COMPONENTS {..., containerId (ALL EXCEPT 2)}))) + +/** + * This DF represents the planned or expected range of the message generation rate. + * + * It shall include the following components: + * + * @field messageRateMin: the minimum planned or expected message rate. + * + * @field messageRateMax: the maximum planned or expected message rate. + * +*/ +MessageRateRange::= SEQUENCE{ + messageRateMin MessageRateHz, + messageRateMax MessageRateHz +} + +END diff --git a/asn1/TS103831v211-DENM.asn b/asn1/TS103831v211-DENM.asn new file mode 100644 index 000000000..45651d572 --- /dev/null +++ b/asn1/TS103831v211-DENM.asn @@ -0,0 +1,111 @@ +DENM-PDU-Description {itu-t (0) identified-organization (4) etsi (0) itsDomain (5) wg1 (1) denmPduRelease2 (103831) major-version-2 (2) minor-version-1 (1)} + +DEFINITIONS AUTOMATIC TAGS ::= + +BEGIN + +IMPORTS + +ActionId, ActionIdList, CauseCodeV2, ClosedLanes, DangerousGoodsExtended, DeltaReferencePosition, DeltaTimeMilliSecondPositive, DeltaTimeSecond, +EnergyStorageType, EventZone, HeightLonCarr, InformationQuality, ItsPduHeader, LanePosition, LightBarSirenInUse, ItineraryPath, NumberOfOccupants, +PosLonCarr, PosCentMass, PositionOfPillars, PositioningSolutionType, PosFrontAx, PositionOfOccupants, RequestResponseIndication, ReferencePosition, +RestrictedTypes, RoadType, StandardLength3b, StationType, Speed, SpeedLimit, StationarySince, TimestampIts, Traces, +TrafficDirection, TrafficRule, TurningRadius, Temperature, VehicleMass, VehicleIdentification, Wgs84Angle, WheelBaseVehicle + +FROM ETSI-ITS-CDD {itu-t (0) identified-organization (4) etsi (0) itsDomain (5) wg1 (1) ts (102894) cdd (2) major-version-4 (4) minor-version-1 (1)} +; + + +DENM ::= SEQUENCE { + header ItsPduHeader (WITH COMPONENTS {... , protocolVersion (2), messageId(denm)}), + denm DenmPayload +} + +DenmPayload ::= SEQUENCE { + management ManagementContainer, + situation SituationContainer OPTIONAL, + location LocationContainer OPTIONAL, + alacarte AlacarteContainer OPTIONAL +} + +ManagementContainer ::= SEQUENCE { + actionId ActionId, + detectionTime TimestampIts, + referenceTime TimestampIts, + termination Termination OPTIONAL, + eventPosition ReferencePosition, + awarenessDistance StandardLength3b OPTIONAL, + awarenessTrafficDirection TrafficDirection OPTIONAL, + validityDuration DeltaTimeSecond DEFAULT defaultValidity, + transmissionInterval DeltaTimeMilliSecondPositive OPTIONAL, + stationType StationType, + ... +} + +SituationContainer ::= SEQUENCE { + informationQuality InformationQuality, + eventType CauseCodeV2, + linkedCause CauseCodeV2 OPTIONAL, + eventZone EventZone OPTIONAL, + ... +} + +LocationContainer ::= SEQUENCE { + eventSpeed Speed OPTIONAL, + eventPositionHeading Wgs84Angle OPTIONAL, + traces Traces, + roadType RoadType OPTIONAL, + ... +} + +ImpactReductionContainer ::= SEQUENCE { + heightLonCarrLeft HeightLonCarr, + heightLonCarrRight HeightLonCarr, + posLonCarrLeft PosLonCarr, + posLonCarrRight PosLonCarr, + positionOfPillars PositionOfPillars, + posCentMass PosCentMass, + wheelBaseVehicle WheelBaseVehicle, + turningRadius TurningRadius, + posFrontAx PosFrontAx, + positionOfOccupants PositionOfOccupants, + vehicleMass VehicleMass, + requestResponseIndication RequestResponseIndication +} + +RoadWorksContainerExtended ::= SEQUENCE { + lightBarSirenInUse LightBarSirenInUse OPTIONAL, + closedLanes ClosedLanes OPTIONAL, + restriction RestrictedTypes OPTIONAL, + speedLimit SpeedLimit OPTIONAL, + incidentIndication CauseCodeV2 OPTIONAL, + recommendedPath ItineraryPath OPTIONAL, + startingPointSpeedLimit DeltaReferencePosition OPTIONAL, + trafficFlowRule TrafficRule OPTIONAL, + referenceDenms ActionIdList OPTIONAL + } + +StationaryVehicleContainer ::= SEQUENCE { + stationarySince StationarySince OPTIONAL, + stationaryCause CauseCodeV2 OPTIONAL, + carryingDangerousGoods DangerousGoodsExtended OPTIONAL, + numberOfOccupants NumberOfOccupants OPTIONAL, + vehicleIdentification VehicleIdentification OPTIONAL, + energyStorageType EnergyStorageType OPTIONAL +} + +AlacarteContainer ::= SEQUENCE { + lanePosition LanePosition OPTIONAL, + impactReduction ImpactReductionContainer OPTIONAL, + externalTemperature Temperature OPTIONAL, + roadWorks RoadWorksContainerExtended OPTIONAL, + positioningSolution PositioningSolutionType OPTIONAL, + stationaryVehicle StationaryVehicleContainer OPTIONAL, + ... +} + +defaultValidity INTEGER ::= 600 + +Termination ::= ENUMERATED {isCancellation(0), isNegation (1)} + +END diff --git a/asn1/TS103900v211-CAM.asn b/asn1/TS103900v211-CAM.asn new file mode 100644 index 000000000..97add3ac7 --- /dev/null +++ b/asn1/TS103900v211-CAM.asn @@ -0,0 +1,336 @@ +CAM-PDU-Descriptions {itu-t (0) identified-organization (4) etsi (0) itsDomain (5) wg1 (1) camPduRelease2 (103900) major-version-2 (2) minor-version-1 (1)} + +DEFINITIONS AUTOMATIC TAGS ::= + +BEGIN + +IMPORTS +ItsPduHeader, CauseCodeV2, ReferencePosition, AccelerationControl, Curvature, CurvatureCalculationMode, Heading, LanePosition, EmergencyPriority, EmbarkationStatus, Speed, +DriveDirection, AccelerationComponent, StationType, ExteriorLights, DangerousGoodsBasic, SpecialTransportType, LightBarSirenInUse, +VehicleRole, VehicleLength, VehicleWidth, Path, RoadworksSubCauseCode, ClosedLanes, TrafficRule, SpeedLimit, SteeringWheelAngle, PerformanceClass, YawRate, +PtActivation, ProtectedCommunicationZonesRSU, CenDsrcTollingZone, GenerationDeltaTime, BasicContainer + +FROM ETSI-ITS-CDD {itu-t (0) identified-organization (4) etsi (0) itsDomain (5) wg1 (1) 102894 cdd (2) major-version-4 (4) minor-version-1 (1)} WITH SUCCESSORS +; + + +-- The root data frame for cooperative awareness messages + +/** +* This type represents the CAM PDU. +* +* It shall include the following componenets: +* +* @field header: the header of the CAM PDU. +* +* @field cam: the payload of the CAM PDU. +*/ + +CAM ::= SEQUENCE { + header ItsPduHeader (WITH COMPONENTS {... , protocolVersion (2), messageId(cam)}), + cam CamPayload +} + +/** +* This type represents the CAM payload. +* +* It shall include the following components: +* +* @field generationDeltaTime: Time corresponding to the time of the reference position in the CAM, considered as time of the CAM generation. +* +* @field camParameters: The sequence of CAM mandatory and optional container. +* +*/ +CamPayload ::= SEQUENCE { + generationDeltaTime GenerationDeltaTime, + camParameters CamParameters +} + +/** +* @field basicContainer: the mandatory basic container of the CAM. +* +* @field highFrequencyContainer: the mandatory container represents the high frequency of the CAM. +* +* @field lowFrequencyContainer: the optional conatainer represents the low frequency of the CAM. +* +* @field specialVehicleContainer: The special container of the CAM shall be present as defined in clause 6.1.2. +* The content of the container shall be set according to the value of the vehicleRole component as specified in Table 5. +*/ +CamParameters ::= SEQUENCE { + basicContainer BasicContainer, + highFrequencyContainer HighFrequencyContainer, + lowFrequencyContainer LowFrequencyContainer OPTIONAL, + specialVehicleContainer SpecialVehicleContainer OPTIONAL, + ... +} + +/** +* This type represents the high frequency container. +* +* It shall include the following components: +* +* @field basicVehicleContainerHighFrequency: The mandatory high frequency container of the CAM when the originating ITS-S is of the type vehicle ITS-S. +* +* @field rsuContainerHighFrequency: The mandatory high frequency container of CAM when the type of the originating ITS-S is RSU ITS-S. +*/ +HighFrequencyContainer ::= CHOICE { + basicVehicleContainerHighFrequency BasicVehicleContainerHighFrequency, + rsuContainerHighFrequency RSUContainerHighFrequency, + ... +} + +/** +* This type represents the low frequency container. +* +* It shall include the following components: +* +* The low frequency container of the CAM when the originating ITS-S is of the type vehicle ITS-S. It shall be present as defined in clause 6.1.2. +*/ + LowFrequencyContainer ::= CHOICE { + basicVehicleContainerLowFrequency BasicVehicleContainerLowFrequency, + ... +} + +/** +* This type represent the Special Vehicle Container. +* +* It shall include the following components: +* +* @field publicTransportContainer: If the vehicleRole component is set to publicTransport(1) this container shall be present. +* +* @field specialTransportContainer: If the vehicleRole component is set to specialTransport(2) this container shall be present. +* +* @field dangerousGoodsContainer: If the vehicleRole component is set to dangerousGoods(3) this container shall be present. +* +* @field roadWorksContainerBasic: If the vehicleRole component is set to roadWork(4) this container shall be present. +* +* @field rescueContainer: If the vehicleRole component is set to rescue(5) this container shall be present. +* +* @field emergencyContainer: If the vehicleRole component is set to emergency(6) this container shall be present. +* +* @field safetyCarContainer: If the vehicleRole component is set to safetyCar(7) this container shall be present. +*/ +SpecialVehicleContainer ::= CHOICE { + publicTransportContainer PublicTransportContainer, + specialTransportContainer SpecialTransportContainer, + dangerousGoodsContainer DangerousGoodsContainer, + roadWorksContainerBasic RoadWorksContainerBasic, + rescueContainer RescueContainer, + emergencyContainer EmergencyContainer, + safetyCarContainer SafetyCarContainer, + ... +} + +/** +* This type contains detaild information of the Basic Vehicle Container High Frequency. +* +* It shall include the following components: +* +* @field heading: It represent the heading and heading accuracy of the vehicle movement of the originating ITS-S with regards to the true north. +* The heading accuracy provided in the heading Confidence value shall provide the accuracy of the measured vehicle heading with a confidence level +* of 95 %. Otherwise, the value of the headingConfidence shall be set to unavailable. +* +* @field speed: It represent driving speed and speed accuracy of the originating ITS-S. The speed accuracy provided in the speedConfidence shall +* provide the accuracy of the speed value with a confidence level of 95 %. Otherwise, the speedConfidence shall be set to unavailable. +* +* @field driveDirection: This component represent the vehicle drive direction (forward or backward) of the originating ITS-S. +* +* @field vehicleLength: This component represent the vehicle length value and vehicle length confidence indication of the vehicle ITS-S that +* originate the CAM. +* +* @field vehicleWidth: This component represents the Vehicle Width of the vehicle ITS-S that originates the CAM excluding side mirrors and possible +* similar extensions. +* +* @field longitudinalAcceleration: It represent the vehicle Longitudinal Acceleration of the originating ITS-S in the centre of the mass of the +* empty vehicle. It shall include the measured vehicle longitudinal acceleration and its accuracy value with the confidence level of 95 %. +* Otherwise, the longitudinalAccelerationConfidence shall be set to unavailable. +* +* @field curvature: this component reppresent the actual trajectory of the vehicle. +* +* @field curvatureCalculationMode: It indicates whether vehicle yaw-rate is used in the calculation of the curvature of the vehicle ITS-S that +* originates the CAM. +* +* @field yawRate: It denotes the vehicle rotation around the centre of mass of the empty vehicle. The leading sign denotes the direction of +* rotation. The value is negative if the motion is clockwise when viewing from the top. +* yawRateConfidence denotes the accuracy for the 95 % confidence level for the measured yawRateValue. Otherwise, the value of yawRateConfidence +* shall be set to unavailable. +* +* @field accelerationControl: an optional component which represents the current status of the vehcile mechnanisms controlling the longitudinal movement of the vehcile ITS-S +* (e.g. brake pedal, gas pedal, etc. engaged) that originate the CAM. +* +* @field lanePosition: an optional component which represents the lanePosition of the referencePosition of a vehicle. This component shall be present if the data is +* available at the originating ITS-S. +* +* @field steeringWheelAngle: an optional component which indicates the steering wheel angle and accuracy as measured at the vehicle ITS-S that originates the CAM. +* +* @field lateralAcceleration: an optional component which represents the vehicle lateral acceleration of the originating ITS-S in the centre of the mass of the empty vehicle. +* It shall include the measured vehicle lateral acceleration and its accuracy value with the confidence level of 95%. +* +* @field verticalAcceleration: an optional component which indicates the originating ITS-S in the centre of the mass of the empty vehicle. +* +* @field performanceClass: an optional component characterizes the maximum age of the CAM data elements with regard to the generation delta time. +* +* @field cenDsrcTollingZone: an optional component which represents the information about the position of a CEN DSRC Tolling Station operating in the 5,8 GHz frequency band. +*/ +BasicVehicleContainerHighFrequency ::= SEQUENCE { + heading Heading, + speed Speed, + driveDirection DriveDirection, + vehicleLength VehicleLength, + vehicleWidth VehicleWidth, + longitudinalAcceleration AccelerationComponent, + curvature Curvature, + curvatureCalculationMode CurvatureCalculationMode, + yawRate YawRate, + accelerationControl AccelerationControl OPTIONAL, + lanePosition LanePosition OPTIONAL, + steeringWheelAngle SteeringWheelAngle OPTIONAL, + lateralAcceleration AccelerationComponent OPTIONAL, + verticalAcceleration AccelerationComponent OPTIONAL, + performanceClass PerformanceClass OPTIONAL, + cenDsrcTollingZone CenDsrcTollingZone OPTIONAL +} + +/** +* This type contains detaild information of the Basic Vehicle Container Low Frequency. +* +* It shall include the following components: +* +* @field vehicleRole: represent the role of the vehicle ITS-S that originates the CAM. Only values 0 to 7 shall be used. +* +* @field exteriorLights: represent the status of the most important exterior lights switches of the vehicle ITS-S that originates the CAM. +* +* @field pathHistory: which represents the vehicle's recent movement over some past time and/or distance. It consists of a list of path points, +* each represented as DF PathPoint. The list of path points may consist of up to 23 elements. +*/ +BasicVehicleContainerLowFrequency ::= SEQUENCE { + vehicleRole VehicleRole, + exteriorLights ExteriorLights, + pathHistory Path (SIZE (0..23)) +} + +/** +* This type contains detaild information of the Public Transport Container. +* +* It shall include the following components: +* +* @field embarkationStatus: It indicates whether the passenger embarkation is currently ongoing. +* +* @field ptActivation: an optional component used for controlling traffic lights, barriers, bollards, etc. +*/ +PublicTransportContainer ::= SEQUENCE { + embarkationStatus EmbarkationStatus, + ptActivation PtActivation OPTIONAL +} + +/** +* This type contains detaild information of the Special Transport Container. +* +* It shall include the following components: +* +* @field specialTransportType: which indicates whether the originating ITS-S is mounted on a special transport vehicle with heavy or oversized load +* or both. It shall be present if the data is available in originating ITS-S. +* +* @field lightBarSirenInUse: indicates whether light-bar or a siren is in use by the vehicle originating the CAM. +*/ +SpecialTransportContainer ::= SEQUENCE { + specialTransportType SpecialTransportType, + lightBarSirenInUse LightBarSirenInUse +} + +/** +* This type contains detaild information of the Dangerous Goods Container. +* +* It shall include the following components: +* +* @field dangerousGoodsBasic: identifies the type of the dangerous goods transported by the vehicle that originates the CAM. It shall be present if +* the data is available in the originating ITS S. +*/ + DangerousGoodsContainer ::= SEQUENCE { + dangerousGoodsBasic DangerousGoodsBasic + } + + /** +* This type contains detaild information of the Road Works Container Basic. +* +* It shall include the following components: +* +* @field roadworksSubCauseCode: The optional component, in case the originating ITS-S is mounted to a vehicle ITS-S participating to roadwork. It +* provides information on the type of roadwork that it is currently undertaking. This component shall be present if the data is available in +* originating ITS S. +* +* @field lightBarSirenInUse: it indicates whether light-bar or a siren is in use by the vehicle originating the CAM. +* +* @field closedLanes: an optional component which provides information about the opening/closure status of the lanes ahead. Lanes are counted from +* the outside boarder of the road. If a lane is closed to traffic, the corresponding bit shall be set to 1. +*/ + RoadWorksContainerBasic ::= SEQUENCE { + roadworksSubCauseCode RoadworksSubCauseCode OPTIONAL, + lightBarSirenInUse LightBarSirenInUse, + closedLanes ClosedLanes OPTIONAL + } + +/** +* This type contains detaild information of the Rescue Container. +* +* It shall include the following components: +* +* @field lightBarSirenInUse: it indicates whether light-bar or a siren is in use by the vehicle originating the CAM. +*/ +RescueContainer ::= SEQUENCE { + lightBarSirenInUse LightBarSirenInUse +} + +/** +* This type contains detaild information of the Emergency Container. +* +* It shall include the following components: +* +* @field lightBarSirenInUse: it indicates whether light-bar or a siren is in use by the vehicle originating the CAM. +* +* @field incidentIndication: the optional incident related to the roadworks to provide additional information of the roadworks zone. +* +* @field emergencyPriority: the optional component represent right of way indicator of the vehicle ITS-S that originates the CAM PDU. +*/ +EmergencyContainer ::= SEQUENCE { + lightBarSirenInUse LightBarSirenInUse, + incidentIndication CauseCodeV2 OPTIONAL, + emergencyPriority EmergencyPriority OPTIONAL +} + +/** +* This type contains detaild information of the Safety Car Container. +* +* It shall include the following components: +* +* @field lightBarSirenInUse: it indicates whether light-bar or a siren is in use by the vehicle originating the CAM. +* +* @field incidentIndication: the optional incident related to the roadworks to provide additional information of the roadworks zone. +* +* @field trafficRule: an optional rule indicates whether vehicles are allowed to overtake a safety car that is originating this CAM. +* +* @field speedLimit: an optional speed indicates whether a speed limit is applied to vehicles following the safety car. +*/ +SafetyCarContainer ::= SEQUENCE { + lightBarSirenInUse LightBarSirenInUse, + incidentIndication CauseCodeV2 OPTIONAL, + trafficRule TrafficRule OPTIONAL, + speedLimit SpeedLimit OPTIONAL +} + +/** +* This type contains detaild information of the RSU Container High Frequency. +* +* It shall include the following components: +* +* @field protectedCommunicationZonesRSU: an optional Information about position of a CEN DSRC Tolling Station operating in the 5,8 GHz frequency +* band. If this information is provided by RSUs a receiving vehicle ITS-S is prepared to adopt mitigation techniques when being in the vicinity of +* CEN DSRC tolling stations. + +*/ +RSUContainerHighFrequency ::= SEQUENCE { + protectedCommunicationZonesRSU ProtectedCommunicationZonesRSU OPTIONAL, + ... +} + +END diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index a8802e791..57339062a 100644 --- a/tools/docker/Dockerfile +++ b/tools/docker/Dockerfile @@ -18,7 +18,6 @@ RUN update_cmake.sh && apt-get update && \ && rm -rf /var/lib/apt/lists/* COPY build_and_run_tests.sh /usr/local/bin/build_and_run_tests.sh RUN useradd -m build-user -USER build-user WORKDIR /home/build-user ENTRYPOINT ["build_and_run_tests.sh"] CMD ["/home/build-user/workspace"] diff --git a/tools/docker/run_local.sh b/tools/docker/run_local.sh index c55696c51..a7f581172 100755 --- a/tools/docker/run_local.sh +++ b/tools/docker/run_local.sh @@ -6,4 +6,4 @@ ROOT_DIR=$(readlink -m "${SCRIPT_DIR}/../..") echo "Compiling Vanetza for Ubuntu ${UBUNTU_VERSION} and running tests..." docker build --build-arg UBUNTU_VERSION=${UBUNTU_VERSION} --tag vanetza/docker-ci:${UBUNTU_VERSION} ${SCRIPT_DIR} -docker run --rm -it -v${ROOT_DIR}:/home/build-user/workspace:ro vanetza/docker-ci:${UBUNTU_VERSION} +docker run --rm -it -v${ROOT_DIR}:/home/build-user/workspace vanetza/docker-ci:${UBUNTU_VERSION} diff --git a/vanetza/asn1/.gitignore b/vanetza/asn1/.gitignore index 61d5ce38e..690b3c244 100644 --- a/vanetza/asn1/.gitignore +++ b/vanetza/asn1/.gitignore @@ -1,2 +1,4 @@ ITS_ASN1.r*.tar.gz ITS_ASN1-releases.r*.tar.gz +its/ +cpm.hpp \ No newline at end of file diff --git a/vanetza/asn1/CMakeLists.txt b/vanetza/asn1/CMakeLists.txt index 1ca4b912f..ddaa7a291 100644 --- a/vanetza/asn1/CMakeLists.txt +++ b/vanetza/asn1/CMakeLists.txt @@ -1,8 +1,10 @@ set(_its_asn1_source_file "asn1c_its_sources.txt") +set(_its2_asn1_source_file "asn1c_its2_sources.txt") set(_sec_asn1_source_file "asn1c_security_sources.txt") set(_support_asn1_source_file "asn1c_support_sources.txt") -set(_its_asn1_dir "${CMAKE_CURRENT_SOURCE_DIR}/its") +set(_its_asn1_dir "${CMAKE_CURRENT_SOURCE_DIR}/its1") +set(_its2_asn1_dir "${CMAKE_CURRENT_SOURCE_DIR}/its2") set(_sec_asn1_dir "${CMAKE_CURRENT_SOURCE_DIR}/security") set(_support_asn1_dir "${CMAKE_CURRENT_SOURCE_DIR}/support") @@ -44,6 +46,19 @@ if(VANETZA_ASN1_WITH_ASN1C) set(_its_asn1_files ${_iso_asn1_files} ${_its_asn1_files} ${_its_asn1_files_depending_on_iso}) endif() + set(_its2_asn1_files + ${PROJECT_SOURCE_DIR}/asn1/TS102894-2v221-CDD.asn + ${PROJECT_SOURCE_DIR}/asn1/TS103900v211-CAM.asn + ${PROJECT_SOURCE_DIR}/asn1/TS103831v211-DENM.asn + ${PROJECT_SOURCE_DIR}/asn1/TS103324v211-CPM.asn + ${PROJECT_SOURCE_DIR}/asn1/TS103324v211-CPM-OriginatingStationContainers.asn + ${PROJECT_SOURCE_DIR}/asn1/TS103324v211-CPM-PerceivedObjectContainer.asn + ${PROJECT_SOURCE_DIR}/asn1/TS103324v211-CPM-PerceptionRegionContainer.asn + ${PROJECT_SOURCE_DIR}/asn1/TS103324v211-CPM-SensorInformationContainer.asn + ${PROJECT_SOURCE_DIR}/asn1/TS103300-3v221-VAM.asn + ${PROJECT_SOURCE_DIR}/asn1/TS103300-3v221-VAM-MotorcylistSpecialContainer.asn + ) + set(_pki_asn1_files ${PROJECT_SOURCE_DIR}/asn1/TS102941v131-BaseTypes.asn ${PROJECT_SOURCE_DIR}/asn1/TS102941v131-MessagesCa.asn @@ -80,7 +95,19 @@ if(VANETZA_ASN1_WITH_ASN1C) WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) add_custom_command(OUTPUT "${_its_asn1_source_file}" DEPENDS ${_its_asn1_dir} - COMMAND ${CMAKE_COMMAND} -DASN1C_OUTPUT_DIR=its -DASN1C_SOURCE_FILE=${_its_asn1_source_file} + COMMAND ${CMAKE_COMMAND} -DASN1C_OUTPUT_DIR=its1 -DASN1C_SOURCE_FILE=${_its_asn1_source_file} + -P collect_asn1c_sources.cmake + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} VERBATIM) + + add_custom_command(OUTPUT ${_its2_asn1_dir} + DEPENDS ${_its2_asn1_files} + COMMAND ${CMAKE_COMMAND} -E make_directory ${_its2_asn1_dir} + COMMAND ${ASN1C_EXECUTABLE} ${_asn1c_flags} -R -D ${_its2_asn1_dir} ${_its2_asn1_files} test.asn + COMMENT "Generating code from ITS-2 application ASN.1 modules (CDD, CA, DEN, CPM)" VERBATIM + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) + add_custom_command(OUTPUT "${_its2_asn1_source_file}" + DEPENDS ${_its2_asn1_dir} + COMMAND ${CMAKE_COMMAND} -DASN1C_OUTPUT_DIR=its2 -DASN1C_SOURCE_FILE=${_its2_asn1_source_file} -P collect_asn1c_sources.cmake WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} VERBATIM) @@ -101,6 +128,7 @@ if(VANETZA_ASN1_WITH_ASN1C) add_custom_target(generate_asn1c DEPENDS "${_support_asn1_dir}" "${_support_asn1_source_file}" "${_its_asn1_dir}" "${_its_asn1_source_file}" + "${_its2_asn1_dir}" "${_its2_asn1_source_file}" "${_sec_asn1_dir}" "${_sec_asn1_source_file}" VERBATIM) add_custom_command(TARGET generate_asn1c POST_BUILD @@ -113,6 +141,11 @@ if(VANETZA_ASN1_WITH_ASN1C) -P ${CMAKE_CURRENT_SOURCE_DIR}/patch_asn1c_generated.cmake COMMENT "Patching generated ITS application asn1c files" WORKING_DIRECTORY ${_its_asn1_dir} VERBATIM) + add_custom_command(TARGET generate_asn1c POST_BUILD + COMMAND ${CMAKE_COMMAND} -DPROJECT_SOURCE_DIR=${PROJECT_SOURCE_DIR} + -P ${CMAKE_CURRENT_SOURCE_DIR}/patch_asn1c_generated.cmake + COMMENT "Patching generated ITS-2 application asn1c files" + WORKING_DIRECTORY ${_its2_asn1_dir} VERBATIM) add_custom_command(TARGET generate_asn1c POST_BUILD COMMAND ${CMAKE_COMMAND} -DPROJECT_SOURCE_DIR=${PROJECT_SOURCE_DIR} -DASN1C_PREFIX=Vanetza_Security_ -P ${CMAKE_CURRENT_SOURCE_DIR}/patch_asn1c_generated.cmake @@ -141,6 +174,10 @@ if(VANETZA_ASN1_WITH_ASN1C) -DASN1C_OUTPUT_DIR=${_its_asn1_dir} -DASN1C_SOURCE_FILE=${_its_asn1_source_file} -P clean_asn1c.cmake + COMMAND ${CMAKE_COMMAND} + -DASN1C_OUTPUT_DIR=${_its2_asn1_dir} + -DASN1C_SOURCE_FILE=${_its2_asn1_source_file} + -P clean_asn1c.cmake COMMAND ${CMAKE_COMMAND} -DASN1C_OUTPUT_DIR=${_sec_asn1_dir} -DASN1C_SOURCE_FILE=${_sec_asn1_source_file} @@ -158,8 +195,14 @@ function(add_asn1_component NAME) "#error \"generated ${NAME} ASN.1 source files are missing\"") set(_sources ${CMAKE_CURRENT_BINARY_DIR}/asn1_${NAME}_no_sources.c) endif() + + if ("${NAME}" STREQUAL "its2") + add_vanetza_component(asn1_its ${_sources}) + set_target_properties(asn1_its PROPERTIES C_STANDARD 11) + else() add_vanetza_component(asn1_${NAME} ${_sources}) set_target_properties(asn1_${NAME} PROPERTIES C_STANDARD 11) + endif() if ("${NAME}" STREQUAL "support") target_include_directories(asn1_support PUBLIC @@ -168,6 +211,8 @@ function(add_asn1_component NAME) if(UNIX) target_compile_definitions(asn1_support PUBLIC HAVE_NETINET_IN_H) endif() + elseif("${NAME}" STREQUAL "its2") + target_link_libraries(asn1_its PUBLIC asn1_support) else() target_link_libraries(asn1_${NAME} PUBLIC asn1_support) endif() @@ -184,9 +229,25 @@ function(add_asn1_component NAME) endif() endfunction() +# Update asn1/its dir to the selected version +file(REMOVE_RECURSE ${CMAKE_CURRENT_SOURCE_DIR}/its) # Remove asn1/its dir +if(VANETZA_ASN1_WITH_ITS2) + message(STATUS "Using vanetza/its2 directory as vanetza/its") + file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/its2/ DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/its) +else() + message(STATUS "Using vanetza/its1 directory as vanetza/its") + file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/its1/ DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/its) +endif() + +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cpm.hpp.in ${CMAKE_CURRENT_SOURCE_DIR}/cpm.hpp) + add_asn1_component(support) target_sources(asn1_support PRIVATE memory.c) -add_asn1_component(its) +if(VANETZA_ASN1_WITH_ITS2) + add_asn1_component(its2) +else() + add_asn1_component(its) +endif() add_asn1_component(security) add_vanetza_component(asn1 asn1c_wrapper.cpp) diff --git a/vanetza/asn1/asn1c_its2_sources.txt b/vanetza/asn1/asn1c_its2_sources.txt new file mode 100644 index 000000000..19c2be9da --- /dev/null +++ b/vanetza/asn1/asn1c_its2_sources.txt @@ -0,0 +1,396 @@ +# generated file +its2/Acceleration3dWithConfidence.c +its2/AccelerationCartesian.c +its2/AccelerationChange.c +its2/AccelerationChangeIndication.c +its2/AccelerationComponent.c +its2/AccelerationConfidence.c +its2/AccelerationControl.c +its2/AccelerationMagnitude.c +its2/AccelerationMagnitudeValue.c +its2/AccelerationPolarWithZ.c +its2/AccelerationValue.c +its2/AccessTechnologyClass.c +its2/AccidentSubCauseCode.c +its2/ActionID.c +its2/ActionId.c +its2/ActionIdList.c +its2/AdverseWeatherCondition-AdhesionSubCauseCode.c +its2/AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode.c +its2/AdverseWeatherCondition-PrecipitationSubCauseCode.c +its2/AdverseWeatherCondition-VisibilitySubCauseCode.c +its2/AirHumidity.c +its2/AlacarteContainer.c +its2/Altitude.c +its2/AltitudeConfidence.c +its2/AltitudeValue.c +its2/AngleConfidence.c +its2/AngularAccelerationConfidence.c +its2/AngularSpeedConfidence.c +its2/AxlesCount.c +its2/BarometricPressure.c +its2/BasicContainer.c +its2/BasicLaneConfiguration.c +its2/BasicLaneInformation.c +its2/BasicVehicleContainerHighFrequency.c +its2/BasicVehicleContainerLowFrequency.c +its2/BogiesCount.c +its2/CAM.c +its2/CPM-PDU-Descriptions_ManagementContainer.c +its2/CamParameters.c +its2/CamPayload.c +its2/CardinalNumber1B.c +its2/CardinalNumber3b.c +its2/CartesianAngle.c +its2/CartesianAngleValue.c +its2/CartesianAngularAccelerationComponent.c +its2/CartesianAngularAccelerationComponentValue.c +its2/CartesianAngularVelocityComponent.c +its2/CartesianAngularVelocityComponentValue.c +its2/CartesianCoordinate.c +its2/CartesianCoordinateLarge.c +its2/CartesianCoordinateSmall.c +its2/CartesianCoordinateWithConfidence.c +its2/CartesianPosition3d.c +its2/CartesianPosition3dWithConfidence.c +its2/CauseCode.c +its2/CauseCodeChoice.c +its2/CauseCodeType.c +its2/CauseCodeV2.c +its2/CenDsrcTollingZone.c +its2/CenDsrcTollingZoneID.c +its2/CircularShape.c +its2/ClosedLanes.c +its2/ClusterBreakupInfo.c +its2/ClusterBreakupReason.c +its2/ClusterJoinInfo.c +its2/ClusterLeaveInfo.c +its2/ClusterLeaveReason.c +its2/CollectivePerceptionMessage.c +its2/CollisionRiskSubCauseCode.c +its2/ConfidenceLevel.c +its2/ConstraintWrappedCpmContainers.c +its2/CoordinateConfidence.c +its2/CorrelationCellValue.c +its2/CorrelationColumn.c +its2/CountryCode.c +its2/CpmContainerId.c +its2/CpmPayload.c +its2/Curvature.c +its2/CurvatureCalculationMode.c +its2/CurvatureConfidence.c +its2/CurvatureValue.c +its2/DENM-PDU-Description_ManagementContainer.c +its2/DENM.c +its2/DangerousEndOfQueueSubCauseCode.c +its2/DangerousGoodsBasic.c +its2/DangerousGoodsContainer.c +its2/DangerousGoodsExtended.c +its2/DangerousSituationSubCauseCode.c +its2/DeltaAltitude.c +its2/DeltaLatitude.c +its2/DeltaLongitude.c +its2/DeltaReferencePosition.c +its2/DeltaTimeMilliSecondPositive.c +its2/DeltaTimeMilliSecondSigned.c +its2/DeltaTimeQuarterSecond.c +its2/DeltaTimeSecond.c +its2/DeltaTimeTenSeconds.c +its2/DeltaTimeTenthOfSecond.c +its2/DenmPayload.c +its2/DigitalMap.c +its2/Direction.c +its2/DriveDirection.c +its2/DrivingLaneStatus.c +its2/EllipticalShape.c +its2/EmbarkationStatus.c +its2/EmergencyContainer.c +its2/EmergencyPriority.c +its2/EmergencyVehicleApproachingSubCauseCode.c +its2/EnergyStorageType.c +its2/EuVehicleCategoryCode.c +its2/EuVehicleCategoryL.c +its2/EuVehicleCategoryM.c +its2/EuVehicleCategoryN.c +its2/EuVehicleCategoryO.c +its2/EulerAnglesWithConfidence.c +its2/EventHistory.c +its2/EventPoint.c +its2/EventZone.c +its2/Ext1.c +its2/Ext2.c +its2/Ext3.c +its2/ExteriorLights.c +its2/GeneralizedLanePosition.c +its2/GeneralizedLanePositions.c +its2/GenerationDeltaTime.c +its2/GeoPosition.c +its2/HardShoulderStatus.c +its2/HazardousLocation-AnimalOnTheRoadSubCauseCode.c +its2/HazardousLocation-DangerousCurveSubCauseCode.c +its2/HazardousLocation-ObstacleOnTheRoadSubCauseCode.c +its2/HazardousLocation-SurfaceConditionSubCauseCode.c +its2/Heading.c +its2/HeadingChangeIndication.c +its2/HeadingConfidence.c +its2/HeadingValue.c +its2/HeightLonCarr.c +its2/HighFrequencyContainer.c +its2/HumanPresenceOnTheRoadSubCauseCode.c +its2/HumanProblemSubCauseCode.c +its2/Identifier1B.c +its2/Identifier2B.c +its2/ImpactReductionContainer.c +its2/ImpassabilitySubCauseCode.c +its2/InformationQuality.c +its2/InterferenceManagementChannel.c +its2/InterferenceManagementInfo.c +its2/InterferenceManagementInfoPerChannel.c +its2/InterferenceManagementZone.c +its2/InterferenceManagementZoneDefinition.c +its2/InterferenceManagementZoneType.c +its2/InterferenceManagementZones.c +its2/IntersectionReferenceId.c +its2/Iso3833VehicleType.c +its2/IssuerIdentifier.c +its2/ItineraryPath.c +its2/ItsPduHeader.c +its2/ItsPduHeaderVam.c +its2/IviIdentificationNumber.c +its2/IvimReference.c +its2/IvimReferences.c +its2/LanePosition.c +its2/LanePositionAndType.c +its2/LanePositionOptions.c +its2/LanePositionWithLateralDetails.c +its2/LaneType.c +its2/LaneWidth.c +its2/LateralAcceleration.c +its2/LateralAccelerationValue.c +its2/Latitude.c +its2/LightBarSirenInUse.c +its2/LocationContainer.c +its2/Longitude.c +its2/LongitudinalAcceleration.c +its2/LongitudinalAccelerationValue.c +its2/LongitudinalLanePosition.c +its2/LongitudinalLanePositionConfidence.c +its2/LongitudinalLanePositionValue.c +its2/LowFrequencyContainer.c +its2/LowerTriangularPositiveSemidefiniteMatrices.c +its2/LowerTriangularPositiveSemidefiniteMatrix.c +its2/LowerTriangularPositiveSemidefiniteMatrixColumns.c +its2/MapPosition.c +its2/MapReference.c +its2/MapReferences.c +its2/MapemConfiguration.c +its2/MapemConnectionList.c +its2/MapemElementReference.c +its2/MapemLaneList.c +its2/MatrixIncludedComponents.c +its2/MessageId.c +its2/MessageRateHz.c +its2/MessageRateRange.c +its2/MessageSegmentationInfo.c +its2/MetaInformation.c +its2/MitigationForTechnologies.c +its2/MitigationPerTechnologyClass.c +its2/MotorcylistSpecialContainer.c +its2/NumberOfOccupants.c +its2/ObjectClass.c +its2/ObjectClassDescription.c +its2/ObjectClassWithConfidence.c +its2/ObjectDimension.c +its2/ObjectDimensionConfidence.c +its2/ObjectDimensionValue.c +its2/ObjectFace.c +its2/ObjectPerceptionQuality.c +its2/OccupiedLanesWithConfidence.c +its2/OpeningDaysHours.c +its2/OrdinalNumber1B.c +its2/OrdinalNumber3b.c +its2/OriginatingRsuContainer.c +its2/OriginatingVehicleContainer.c +its2/OtherSubClass.c +its2/Path.c +its2/PathDeltaTime.c +its2/PathDeltaTimeChoice.c +its2/PathExtended.c +its2/PathHistory.c +its2/PathId.c +its2/PathPoint.c +its2/PathPointPredicted.c +its2/PathPredicted.c +its2/PathPredicted2.c +its2/PathPredictedList.c +its2/PathReferences.c +its2/PerceivedObject.c +its2/PerceivedObjectContainer.c +its2/PerceivedObjectIds.c +its2/PerceivedObjects.c +its2/PerceptionRegion.c +its2/PerceptionRegionContainer.c +its2/PerformanceClass.c +its2/PhoneNumber.c +its2/PolygonalShape.c +its2/PosCentMass.c +its2/PosConfidenceEllipse.c +its2/PosFrontAx.c +its2/PosLonCarr.c +its2/PosPillar.c +its2/Position1d.c +its2/PositionConfidenceEllipse.c +its2/PositionOfOccupants.c +its2/PositionOfPillars.c +its2/PositioningSolutionType.c +its2/PostCrashSubCauseCode.c +its2/PrecipitationIntensity.c +its2/ProtectedCommunicationZone.c +its2/ProtectedCommunicationZonesRSU.c +its2/ProtectedZoneId.c +its2/ProtectedZoneRadius.c +its2/ProtectedZoneType.c +its2/Provider.c +its2/PtActivation.c +its2/PtActivationData.c +its2/PtActivationType.c +its2/PublicTransportContainer.c +its2/RSUContainerHighFrequency.c +its2/RadialShape.c +its2/RadialShapeDetails.c +its2/RadialShapes.c +its2/RadialShapesList.c +its2/RailwayLevelCrossingSubCauseCode.c +its2/RectangularShape.c +its2/ReferencePosition.c +its2/ReferencePositionWithConfidence.c +its2/RelevanceDistance.c +its2/RelevanceTrafficDirection.c +its2/RequestResponseIndication.c +its2/RescueAndRecoveryWorkInProgressSubCauseCode.c +its2/RescueContainer.c +its2/RestrictedTypes.c +its2/RoadConfigurationSection.c +its2/RoadConfigurationSectionList.c +its2/RoadSectionDefinition.c +its2/RoadSectionId.c +its2/RoadSegmentReferenceId.c +its2/RoadType.c +its2/RoadWorksContainerBasic.c +its2/RoadWorksContainerExtended.c +its2/RoadworksSubCauseCode.c +its2/SafeDistanceIndication.c +its2/SafeDistanceIndicator.c +its2/SafetyCarContainer.c +its2/SemiAxisLength.c +its2/SensorInformation.c +its2/SensorInformationContainer.c +its2/SensorType.c +its2/SensorTypes.c +its2/SequenceNumber.c +its2/SequenceOfCartesianPosition3d.c +its2/SequenceOfIdentifier1B.c +its2/SequenceOfSafeDistanceIndication.c +its2/SequenceOfTrajectoryInterceptionIndication.c +its2/Shape.c +its2/SignalViolationSubCauseCode.c +its2/SituationContainer.c +its2/SlowVehicleSubCauseCode.c +its2/SpecialTransportContainer.c +its2/SpecialTransportType.c +its2/SpecialVehicleContainer.c +its2/Speed.c +its2/SpeedConfidence.c +its2/SpeedLimit.c +its2/SpeedValue.c +its2/StabilityChangeIndication.c +its2/StabilityLossProbability.c +its2/StandardLength12b.c +its2/StandardLength1B.c +its2/StandardLength2B.c +its2/StandardLength3b.c +its2/StandardLength9b.c +its2/StationID.c +its2/StationId.c +its2/StationType.c +its2/StationarySince.c +its2/StationaryVehicleContainer.c +its2/StationaryVehicleSubCauseCode.c +its2/SteeringWheelAngle.c +its2/SteeringWheelAngleConfidence.c +its2/SteeringWheelAngleValue.c +its2/StoredInformationType.c +its2/SubCauseCodeType.c +its2/Temperature.c +its2/Termination.c +its2/TimestampIts.c +its2/Traces.c +its2/TracesExtended.c +its2/TrafficConditionSubCauseCode.c +its2/TrafficDirection.c +its2/TrafficIslandPosition.c +its2/TrafficParticipantType.c +its2/TrafficRule.c +its2/TrailerData.c +its2/TrailerDataSet.c +its2/TrailerPresenceInformation.c +its2/TrajectoryInterceptionConfidence.c +its2/TrajectoryInterceptionIndication.c +its2/TrajectoryInterceptionProbability.c +its2/TransmissionInterval.c +its2/TurningDirection.c +its2/TurningRadius.c +its2/UsageIndication.c +its2/VAM.c +its2/VDS.c +its2/ValidityDuration.c +its2/VamParameters.c +its2/VanetzaTest.c +its2/VarLengthNumber.c +its2/VehicleBreakdownSubCauseCode.c +its2/VehicleHeight.c +its2/VehicleIdentification.c +its2/VehicleLength.c +its2/VehicleLengthConfidenceIndication.c +its2/VehicleLengthV2.c +its2/VehicleLengthValue.c +its2/VehicleMass.c +its2/VehicleRole.c +its2/VehicleWidth.c +its2/Velocity3dWithConfidence.c +its2/VelocityCartesian.c +its2/VelocityComponent.c +its2/VelocityComponentValue.c +its2/VelocityPolarWithZ.c +its2/VerticalAcceleration.c +its2/VerticalAccelerationValue.c +its2/VruAwareness.c +its2/VruClusterInformation.c +its2/VruClusterInformationContainer.c +its2/VruClusterOperationContainer.c +its2/VruClusterProfiles.c +its2/VruDeviceUsage.c +its2/VruEnvironment.c +its2/VruExteriorLights.c +its2/VruHighFrequencyContainer.c +its2/VruLowFrequencyContainer.c +its2/VruMotionPredictionContainer.c +its2/VruMovementControl.c +its2/VruProfileAndSubprofile.c +its2/VruSizeClass.c +its2/VruSpecificExteriorLights.c +its2/VruSubProfileAnimal.c +its2/VruSubProfileBicyclist.c +its2/VruSubProfileMotorcyclist.c +its2/VruSubProfilePedestrian.c +its2/WMInumber.c +its2/Wgs84Angle.c +its2/Wgs84AngleConfidence.c +its2/Wgs84AngleValue.c +its2/WheelBaseVehicle.c +its2/WrappedCpmContainer.c +its2/WrappedCpmContainers.c +its2/WrongWayDrivingSubCauseCode.c +its2/YawRate.c +its2/YawRateConfidence.c +its2/YawRateValue.c diff --git a/vanetza/asn1/asn1c_its_sources.txt b/vanetza/asn1/asn1c_its_sources.txt index e79aa728f..1c5c50049 100644 --- a/vanetza/asn1/asn1c_its_sources.txt +++ b/vanetza/asn1/asn1c_its_sources.txt @@ -1,710 +1,710 @@ # generated file -its/AbsolutePosition.c -its/AbsolutePositionWAltitude.c -its/AbsolutePositions.c -its/AbsolutePositionsWAltitude.c -its/AccelerationConfidence.c -its/AccelerationControl.c -its/AccidentSubCauseCode.c -its/ActionID.c -its/ActualNumberOfPassengers.c -its/AddRq.c -its/AdverseWeatherCondition-AdhesionSubCauseCode.c -its/AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode.c -its/AdverseWeatherCondition-PrecipitationSubCauseCode.c -its/AdverseWeatherCondition-VisibilitySubCauseCode.c -its/AdvisorySpeed.c -its/AdvisorySpeedList.c -its/AdvisorySpeedType.c -its/AlacarteContainer.c -its/AllowedManeuvers.c -its/AlphabetIndicator.c -its/Altitude.c -its/AltitudeConfidence.c -its/AltitudeValue.c -its/Angle.c -its/AngleConfidence.c -its/AnimalSubclass.c -its/AnimalSubclassType.c -its/AntennaOffsetSet.c -its/AnyCatalogue.c -its/ApproachID.c -its/AreaCircular.c -its/AreaEllipse.c -its/AreaPolygon.c -its/AreaRadial.c -its/AreaRectangle.c -its/AttributeIdList.c -its/AttributeList.c -its/Attributes.c -its/AutomatedVehicleContainer.c -its/AutomatedVehicleRule.c -its/AutomatedVehicleRules.c -its/AvcPart.c -its/AviEriDateTime.c -its/AxleWeightLimits.c -its/BankingAngle.c -its/BasicContainer.c -its/BasicVehicleContainerHighFrequency.c -its/BasicVehicleContainerLowFrequency.c -its/BasicVehicleRole.c -its/BatteryStatus.c -its/CAM.c -its/CO2EmissionValue.c -its/CPM.c -its/CS1.c -its/CS2.c -its/CS3.c -its/CS4.c -its/CS5.c -its/CS7.c -its/CS8.c -its/CamParameters.c -its/CartesianAngle.c -its/CartesianAngleValue.c -its/CauseCode.c -its/CauseCodeType.c -its/CenDsrcTollingZone.c -its/CenDsrcTollingZoneID.c -its/ChannelId.c -its/ChannelRq.c -its/ChannelRs.c -its/ClassConfidence.c -its/ClosedLanes.c -its/Code-Units.c -its/CollectivePerceptionMessage.c -its/CollisionRiskSubCauseCode.c -its/ComparisonOperator.c -its/CompleteVehicleCharacteristics.c -its/ComputedLane.c -its/ComputedSegment.c -its/Condition.c -its/ConnectedDenms.c -its/ConnectingLane.c -its/Connection.c -its/ConnectionManeuverAssist-addGrpC.c -its/ConnectionManeuverAssist.c -its/ConnectionTrajectory-addGrpC.c -its/ConnectsToList.c -its/ConstraintTextLines1.c -its/ConstraintTextLines2.c -its/ContractAuthenticator.c -its/ContractSerialNumber.c -its/ContractValidity.c -its/ContractVehicle.c -its/CoopAwareness.c -its/CopValue.c -its/CopyRq.c -its/CountryCode.c -its/CpmManagementContainer.c -its/CpmParameters.c -its/CreditRq.c -its/CreditRs.c -its/Curvature.c -its/CurvatureCalculationMode.c -its/CurvatureConfidence.c -its/CurvatureValue.c -its/DDD-IO-LIST.c -its/DDD-IO.c -its/DDateTime.c -its/DDay.c -its/DENM.c -its/DHour.c -its/DMinute.c -its/DMonth.c -its/DOffset.c -its/DSRCmsgID.c -its/DSecond.c -its/DYear.c -its/DangerousEndOfQueueSubCauseCode.c -its/DangerousGoodsBasic.c -its/DangerousGoodsContainer.c -its/DangerousGoodsExtended.c -its/DangerousSituationSubCauseCode.c -its/DataParameters.c -its/DateAndTime.c -its/DateCompact.c -its/DayOfWeek.c -its/DebitRq.c -its/DebitRs.c -its/DecentralizedEnvironmentalNotificationMessage.c -its/DefinitionAccuracy.c -its/DeltaAltitude.c -its/DeltaAngle.c -its/DeltaLatitude.c -its/DeltaLongitude.c -its/DeltaPosition.c -its/DeltaPositions.c -its/DeltaReferencePosition.c -its/DeltaReferencePositions.c -its/DeltaTime.c -its/Depth.c -its/DescriptiveCharacteristics.c -its/DescriptiveName.c -its/DestinationPlace.c -its/DestinationPlaces.c -its/DestinationRoad.c -its/DestinationRoadType.c -its/DestinationRoads.c -its/DestinationType.c -its/DetectionArea.c -its/DieselEmissionValues.c -its/DigitalMap.c -its/Direction.c -its/Distance.c -its/DistanceConfidence.c -its/DistanceOrDuration.c -its/DistanceValue.c -its/DriveDirection.c -its/DrivenLineOffsetLg.c -its/DrivenLineOffsetSm.c -its/DrivingLaneStatus.c -its/DynamicStatus.c -its/EFC-ContextMark.c -its/EfcDsrcApplication_DriverCharacteristics.c -its/EfcDsrcApplication_TrailerCharacteristics.c -its/Elevation.c -its/ElevationConfidence.c -its/EmbarkationStatus.c -its/EmergencyContainer.c -its/EmergencyPriority.c -its/EmergencyVehicleApproachingSubCauseCode.c -its/EmissionType.c -its/EnabledLaneList.c -its/EnergyStorageType.c -its/Engine.c -its/EngineCharacteristics.c -its/EnvironmentalCharacteristics.c -its/EquipmentOBUId.c -its/EquipmentStatus.c -its/EuVehicleCategoryCode.c -its/EuVehicleCategoryL.c -its/EuVehicleCategoryM.c -its/EuVehicleCategoryN.c -its/EuVehicleCategoryO.c -its/EuroValue.c -its/EventHistory.c -its/EventPoint.c -its/ExceptionalCondition.c -its/ExhaustEmissionValues.c -its/Ext1.c -its/Ext2.c -its/Ext3.c -its/ExteriorLights.c -its/FreeSpaceAddendum.c -its/FreeSpaceAddendumContainer.c -its/FreeSpaceArea.c -its/FreeSpaceConfidence.c -its/FreightContainerData.c -its/FrictionCoefficient.c -its/FrontOverhang.c -its/FuelType.c -its/FullPositionVector.c -its/FutureCharacteristics.c -its/GNSSstatus.c -its/GapBetweenVehicles.c -its/GddAttribute.c -its/GddAttributes.c -its/GddStructure.c -its/GeneralIviContainer.c -its/GenerationDeltaTime.c -its/GenericLane.c -its/GeoGraphicalLimit.c -its/GeographicLocationContainer.c -its/GetInstanceRq.c -its/GetInstanceRs.c -its/GetStampedRq.c -its/GetStampedRs.c -its/GicPart.c -its/GlcPart.c -its/GlcParts.c -its/GoodsType.c -its/HardShoulderStatus.c -its/HazardousLocation-AnimalOnTheRoadSubCauseCode.c -its/HazardousLocation-DangerousCurveSubCauseCode.c -its/HazardousLocation-ObstacleOnTheRoadSubCauseCode.c -its/HazardousLocation-SurfaceConditionSubCauseCode.c -its/Heading.c -its/HeadingConfidence.c -its/HeadingIso.c -its/HeadingIsoConfidenceIso.c -its/HeadingValue.c -its/HeightLonCarr.c -its/HighFrequencyContainer.c -its/HitchPointOffset.c -its/HoursMinutes.c -its/HumanPresenceOnTheRoadSubCauseCode.c -its/HumanProblemSubCauseCode.c -its/ICC-Id.c -its/ISO14823Attribute.c -its/ISO14823Attributes.c -its/ISO14823Code.c -its/ITS-Container_Temperature.c -its/IVIM.c -its/IVI_DriverCharacteristics.c -its/IVI_Temperature.c -its/IVI_TrailerCharacteristics.c -its/Identifier.c -its/ImpactReductionContainer.c -its/InformationQuality.c -its/Int1.c -its/Int2.c -its/Int3.c -its/Int4.c -its/InternationalSign-applicablePeriod.c -its/InternationalSign-applicableVehicleDimensions.c -its/InternationalSign-destinationInformation.c -its/InternationalSign-directionalFlowOfLane.c -its/InternationalSign-distanceBetweenVehicles.c -its/InternationalSign-exemptedApplicablePeriod.c -its/InternationalSign-numberOfLane.c -its/InternationalSign-rateOfIncline.c -its/InternationalSign-section.c -its/InternationalSign-speedLimits.c -its/IntersectionAccessPoint.c -its/IntersectionGeometry.c -its/IntersectionGeometryList.c -its/IntersectionID.c -its/IntersectionReferenceID.c -its/IntersectionState-addGrpC.c -its/IntersectionState.c -its/IntersectionStateList.c -its/IntersectionStatusObject.c -its/Iso3833VehicleType.c -its/IssuerIdentifierIso.c -its/ItineraryPath.c -its/ItsPduHeader.c -its/ItsStationPosition.c -its/ItsStationPositionList.c -its/IviContainer.c -its/IviContainers.c -its/IviIdentificationNumber.c -its/IviIdentificationNumbers.c -its/IviLaneWidth.c -its/IviManagementContainer.c -its/IviPurpose.c -its/IviStatus.c -its/IviStructure.c -its/IviType.c -its/LPN.c -its/LaneAttributes-Barrier.c -its/LaneAttributes-Bike.c -its/LaneAttributes-Crosswalk.c -its/LaneAttributes-Parking.c -its/LaneAttributes-Sidewalk.c -its/LaneAttributes-Striping.c -its/LaneAttributes-TrackedVehicle.c -its/LaneAttributes-Vehicle.c -its/LaneAttributes-addGrpC.c -its/LaneAttributes.c -its/LaneCharacteristics.c -its/LaneConfiguration.c -its/LaneConnectionID.c -its/LaneDataAttribute.c -its/LaneDataAttributeList.c -its/LaneDelimitation.c -its/LaneDirection.c -its/LaneID.c -its/LaneIds.c -its/LaneInformation.c -its/LaneList.c -its/LaneMarkingStatus.c -its/LanePosition.c -its/LanePositions.c -its/LaneSharing.c -its/LaneStatus.c -its/LaneType.c -its/LaneTypeAttributes.c -its/LaneWidth.c -its/LateralAcceleration.c -its/LateralAccelerationValue.c -its/Latitude.c -its/LayerID.c -its/LayerType.c -its/LayoutComponent.c -its/LayoutComponents.c -its/LayoutContainer.c -its/LicPlateNumber.c -its/LightBarSirenInUse.c -its/LoadType.c -its/LocationContainer.c -its/Longitude.c -its/LongitudinalAcceleration.c -its/LongitudinalAccelerationValue.c -its/LongitudinalLanePosition.c -its/LongitudinalLanePositionConfidence.c -its/LongitudinalLanePositionValue.c -its/LowFrequencyContainer.c -its/MAPEM.c -its/ManagementContainer.c -its/ManeuverAssistList.c -its/ManufacturerIdentifier.c -its/MapData-addGrpC.c -its/MapData.c -its/MapLocationContainer.c -its/MapReference.c -its/MarkingColour.c -its/MatchedPosition.c -its/MaterialType.c -its/MaxLenghtOfPlatoon.c -its/MaxNoOfVehicles.c -its/MergeDivergeNodeAngle.c -its/MinuteOfTheYear.c -its/MlcPart.c -its/MlcParts.c -its/MonthDay.c -its/MovementEvent-addGrpC.c -its/MovementEvent.c -its/MovementEventList.c -its/MovementList.c -its/MovementPhaseState.c -its/MovementState.c -its/MsgCount.c -its/Node-LLmD-64b.c -its/Node-XY-20b.c -its/Node-XY-22b.c -its/Node-XY-24b.c -its/Node-XY-26b.c -its/Node-XY-28b.c -its/Node-XY-32b.c -its/Node.c -its/NodeAttributeSet-addGrpC.c -its/NodeAttributeSetXY.c -its/NodeAttributeXY.c -its/NodeAttributeXYList.c -its/NodeLink.c -its/NodeListXY.c -its/NodeOffsetPointXY.c -its/NodeOffsetPointZ.c -its/NodeSetXY.c -its/NodeXY.c -its/NumberOfOccupants.c -its/NumberOfPerceivedObjects.c -its/ObjectAge.c -its/ObjectClass.c -its/ObjectClassDescription.c -its/ObjectConfidence.c -its/ObjectDimension.c -its/ObjectDimensionConfidence.c -its/ObjectDimensionValue.c -its/ObjectDistanceWithConfidence.c -its/ObjectRefPoint.c -its/Offset-B09.c -its/Offset-B10.c -its/Offset-B11.c -its/Offset-B12.c -its/Offset-B13.c -its/Offset-B14.c -its/Offset-B16.c -its/OffsetPoint.c -its/OpeningDaysHours.c -its/OriginatingRSUContainer.c -its/OriginatingVehicleContainer.c -its/OtherSubclass.c -its/OtherSublassType.c -its/OverlayLaneList.c -its/PassengerCapacity.c -its/PathDeltaTime.c -its/PathHistory.c -its/PathPoint.c -its/PayUnit.c -its/PaymentFee.c -its/PaymentMeans.c -its/PaymentMeansBalance.c -its/PaymentMeansUnit.c -its/PaymentSecurityData.c -its/PedestrianBicycleDetect.c -its/PerceivedObject.c -its/PerceivedObjectContainer.c -its/PerceivedObjectContainerSegmentInfo.c -its/PerformanceClass.c -its/PersonSubclass.c -its/PersonSubclassType.c -its/PersonalAccountNumber.c -its/PhoneNumber.c -its/PlatooningRule.c -its/PlatooningRules.c -its/PolyPointList.c -its/PolygonalLine.c -its/PosCentMass.c -its/PosConfidenceEllipse.c -its/PosFrontAx.c -its/PosLonCarr.c -its/PosPillar.c -its/Position3D-addGrpC.c -its/Position3D.c -its/PositionConfidence.c -its/PositionConfidenceSet.c -its/PositionOfOccupants.c -its/PositionOfPillars.c -its/PositionalAccuracy.c -its/PositioningSolutionType.c -its/PostCrashSubCauseCode.c -its/PreemptPriorityList.c -its/PrioritizationResponse.c -its/PrioritizationResponseList.c -its/PrioritizationResponseStatus.c -its/PriorityLevel.c -its/PriorityRequestType.c -its/ProtectedCommunicationZone.c -its/ProtectedCommunicationZonesRSU.c -its/ProtectedZoneID.c -its/ProtectedZoneRadius.c -its/ProtectedZoneType.c -its/Provider.c -its/PtActivation.c -its/PtActivationData.c -its/PtActivationType.c -its/PtvRequestType.c -its/PublicTransportContainer.c -its/PurseBalance.c -its/RSCUnit.c -its/RSCode.c -its/RSUContainerHighFrequency.c -its/RTCM-Revision.c -its/RTCMEM.c -its/RTCMcorrections.c -its/RTCMheader.c -its/RTCMmessage.c -its/RTCMmessageList.c -its/Radius.c -its/Range.c -its/RccPart.c -its/RearOverhang.c -its/ReceiptAuthenticator.c -its/ReceiptContract.c -its/ReceiptData.c -its/ReceiptData1.c -its/ReceiptData2.c -its/ReceiptDistance.c -its/ReceiptFinancialPart.c -its/ReceiptICC-Id.c -its/ReceiptOBUId.c -its/ReceiptServicePart.c -its/ReceiptServiceSerialNumber.c -its/ReceiptText.c -its/RefPointId.c -its/ReferenceDenms.c -its/ReferencePosition.c -its/RegionId.c -its/RegionalExtension.c -its/RegulatorySpeedLimit.c -its/RejectedReason.c -its/RelevanceDistance.c -its/RelevanceTrafficDirection.c -its/RepeatingPeriodDayTypes.c -its/RequestID.c -its/RequestImportanceLevel.c -its/RequestResponseIndication.c -its/RequestSubRole.c -its/RequestorDescription-addGrpC.c -its/RequestorDescription.c -its/RequestorPositionVector.c -its/RequestorType.c -its/RescueAndRecoveryWorkInProgressSubCauseCode.c -its/RescueContainer.c -its/RestrictedTypes.c -its/RestrictionAppliesTo.c -its/RestrictionClassAssignment.c -its/RestrictionClassID.c -its/RestrictionClassList.c -its/RestrictionUserType-addGrpC.c -its/RestrictionUserType.c -its/RestrictionUserTypeList.c -its/ResultFin.c -its/ResultOp.c -its/RoadConfigurationContainer.c -its/RoadLaneSetList.c -its/RoadRegulatorID.c -its/RoadSegment.c -its/RoadSegmentID.c -its/RoadSegmentList.c -its/RoadSegmentReferenceID.c -its/RoadSignCodes.c -its/RoadSurfaceContainer.c -its/RoadSurfaceDynamicCharacteristics.c -its/RoadSurfaceStaticCharacteristics.c -its/RoadType.c -its/RoadWorksContainerBasic.c -its/RoadWorksContainerExtended.c -its/RoadwayCrownAngle.c -its/RoadworksSubCauseCode.c -its/RscPart.c -its/SPAT.c -its/SPATEM.c -its/SREM.c -its/SSEM.c -its/SaeAutomationLevel.c -its/SaeAutomationLevels.c -its/SafetyCarContainer.c -its/Scale-B12.c -its/Segment.c -its/SegmentAttributeXY.c -its/SegmentAttributeXYList.c -its/SegmentCount.c -its/SemiAxisLength.c -its/SemiMajorAxisAccuracy.c -its/SemiMajorAxisOrientation.c -its/SemiMinorAxisAccuracy.c -its/SemiRangeLength.c -its/SensorHeight.c -its/SensorIdList.c -its/SensorInformation.c -its/SensorInformationContainer.c -its/SensorType.c -its/SequenceNumber.c -its/ServiceApplicationLimit.c -its/ServiceNumber.c -its/SessionClass.c -its/SessionLocation.c -its/SetInstanceRq.c -its/SetMMIRq.c -its/SetStampedRq.c -its/ShadowingApplies.c -its/SignalControlZone.c -its/SignalGroupID.c -its/SignalHeadLocation.c -its/SignalHeadLocationList.c -its/SignalRequest.c -its/SignalRequestList.c -its/SignalRequestMessage.c -its/SignalRequestPackage.c -its/SignalRequesterInfo.c -its/SignalStatus.c -its/SignalStatusList.c -its/SignalStatusMessage.c -its/SignalStatusPackage-addGrpC.c -its/SignalStatusPackage.c -its/SignalStatusPackageList.c -its/SignalViolationSubCauseCode.c -its/SignedValue.c -its/SituationContainer.c -its/SlowVehicleSubCauseCode.c -its/SoundLevel.c -its/SpecialTransportContainer.c -its/SpecialTransportType.c -its/SpecialVehicleContainer.c -its/Speed.c -its/SpeedAdvice.c -its/SpeedConfidence.c -its/SpeedConfidenceIso.c -its/SpeedExtended.c -its/SpeedLimit.c -its/SpeedLimitList.c -its/SpeedLimitType.c -its/SpeedValue.c -its/SpeedValueExtended.c -its/SpeedandHeadingIsoandThrottleConfidence.c -its/StartTime.c -its/StationDataContainer.c -its/StationID.c -its/StationType.c -its/StationTypeIso.c -its/StationarySince.c -its/StationaryVehicleContainer.c -its/StationaryVehicleSubCauseCode.c -its/SteeringWheelAngle.c -its/SteeringWheelAngleConfidence.c -its/SteeringWheelAngleValue.c -its/StopTime.c -its/SubCauseCodeType.c -its/SubRq.c -its/TaxCode.c -its/TcPart.c -its/TemporaryID.c -its/Termination.c -its/Text.c -its/TextContainer.c -its/TextLines.c -its/ThrottleConfidence.c -its/TimeChangeDetails.c -its/TimeConfidence.c -its/TimeIntervalConfidence.c -its/TimeMark.c -its/TimeOfMeasurement.c -its/TimeReference.c -its/TimestampIts.c -its/Traces.c -its/TractorAxles.c -its/TractorCharacteristics.c -its/TrafficConditionSubCauseCode.c -its/TrafficRule.c -its/TrailerAxles.c -its/TrailerCharacteristicsFixValuesList.c -its/TrailerCharacteristicsList.c -its/TrailerCharacteristicsRangesList.c -its/TrailerData.c -its/TrailerDataContainer.c -its/TrailerDetails.c -its/TrailerLicencePlateNumber.c -its/TrainCharacteristics.c -its/TransitVehicleOccupancy.c -its/TransitVehicleStatus.c -its/TransmissionAndSpeed.c -its/TransmissionInterval.c -its/TransmissionState.c -its/TreatmentType.c -its/TurningRadius.c -its/UnitType.c -its/VDS.c -its/ValidityDuration.c -its/ValidityOfContract.c -its/ValidityPeriods.c -its/VanetzaTest.c -its/VarLengthNumber.c -its/VcClass.c -its/VcCode.c -its/VcOption.c -its/VehicleAuthenticator.c -its/VehicleAxles.c -its/VehicleBreakdownSubCauseCode.c -its/VehicleCharacteristicsFixValues.c -its/VehicleCharacteristicsFixValuesList.c -its/VehicleCharacteristicsList.c -its/VehicleCharacteristicsRanges.c -its/VehicleCharacteristicsRangesList.c -its/VehicleClass.c -its/VehicleCurrentMaxTrainWeight.c -its/VehicleDimensions.c -its/VehicleHeight.c -its/VehicleID.c -its/VehicleIdentification.c -its/VehicleIdentificationNumber.c -its/VehicleLength.c -its/VehicleLengthConfidenceIndication.c -its/VehicleLengthValue.c -its/VehicleLicencePlateNumber.c -its/VehicleMass.c -its/VehicleRole.c -its/VehicleSensor.c -its/VehicleSensorProperties.c -its/VehicleSensorPropertyList.c -its/VehicleSpecificCharacteristics.c -its/VehicleSubclass.c -its/VehicleSubclassType.c -its/VehicleTotalDistance.c -its/VehicleType.c -its/VehicleWeightLaden.c -its/VehicleWeightLimits.c -its/VehicleWidth.c -its/Velocity.c -its/VerticalAcceleration.c -its/VerticalAccelerationValue.c -its/WGS84Angle.c -its/WGS84AngleValue.c -its/WMInumber.c -its/WaitOnStopline.c -its/WearLevel.c -its/Weight.c -its/WheelBaseVehicle.c -its/WrongWayDrivingSubCauseCode.c -its/XSensorOffset.c -its/YSensorOffset.c -its/YawRate.c -its/YawRateConfidence.c -its/YawRateValue.c -its/ZSensorOffset.c -its/Zid.c -its/Zone.c -its/ZoneIds.c -its/ZoneLength.c +its1/AbsolutePosition.c +its1/AbsolutePositionWAltitude.c +its1/AbsolutePositions.c +its1/AbsolutePositionsWAltitude.c +its1/AccelerationConfidence.c +its1/AccelerationControl.c +its1/AccidentSubCauseCode.c +its1/ActionID.c +its1/ActualNumberOfPassengers.c +its1/AddRq.c +its1/AdverseWeatherCondition-AdhesionSubCauseCode.c +its1/AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode.c +its1/AdverseWeatherCondition-PrecipitationSubCauseCode.c +its1/AdverseWeatherCondition-VisibilitySubCauseCode.c +its1/AdvisorySpeed.c +its1/AdvisorySpeedList.c +its1/AdvisorySpeedType.c +its1/AlacarteContainer.c +its1/AllowedManeuvers.c +its1/AlphabetIndicator.c +its1/Altitude.c +its1/AltitudeConfidence.c +its1/AltitudeValue.c +its1/Angle.c +its1/AngleConfidence.c +its1/AnimalSubclass.c +its1/AnimalSubclassType.c +its1/AntennaOffsetSet.c +its1/AnyCatalogue.c +its1/ApproachID.c +its1/AreaCircular.c +its1/AreaEllipse.c +its1/AreaPolygon.c +its1/AreaRadial.c +its1/AreaRectangle.c +its1/AttributeIdList.c +its1/AttributeList.c +its1/Attributes.c +its1/AutomatedVehicleContainer.c +its1/AutomatedVehicleRule.c +its1/AutomatedVehicleRules.c +its1/AvcPart.c +its1/AviEriDateTime.c +its1/AxleWeightLimits.c +its1/BankingAngle.c +its1/BasicContainer.c +its1/BasicVehicleContainerHighFrequency.c +its1/BasicVehicleContainerLowFrequency.c +its1/BasicVehicleRole.c +its1/BatteryStatus.c +its1/CAM.c +its1/CO2EmissionValue.c +its1/CPM.c +its1/CS1.c +its1/CS2.c +its1/CS3.c +its1/CS4.c +its1/CS5.c +its1/CS7.c +its1/CS8.c +its1/CamParameters.c +its1/CartesianAngle.c +its1/CartesianAngleValue.c +its1/CauseCode.c +its1/CauseCodeType.c +its1/CenDsrcTollingZone.c +its1/CenDsrcTollingZoneID.c +its1/ChannelId.c +its1/ChannelRq.c +its1/ChannelRs.c +its1/ClassConfidence.c +its1/ClosedLanes.c +its1/Code-Units.c +its1/CollectivePerceptionMessage.c +its1/CollisionRiskSubCauseCode.c +its1/ComparisonOperator.c +its1/CompleteVehicleCharacteristics.c +its1/ComputedLane.c +its1/ComputedSegment.c +its1/Condition.c +its1/ConnectedDenms.c +its1/ConnectingLane.c +its1/Connection.c +its1/ConnectionManeuverAssist-addGrpC.c +its1/ConnectionManeuverAssist.c +its1/ConnectionTrajectory-addGrpC.c +its1/ConnectsToList.c +its1/ConstraintTextLines1.c +its1/ConstraintTextLines2.c +its1/ContractAuthenticator.c +its1/ContractSerialNumber.c +its1/ContractValidity.c +its1/ContractVehicle.c +its1/CoopAwareness.c +its1/CopValue.c +its1/CopyRq.c +its1/CountryCode.c +its1/CpmManagementContainer.c +its1/CpmParameters.c +its1/CreditRq.c +its1/CreditRs.c +its1/Curvature.c +its1/CurvatureCalculationMode.c +its1/CurvatureConfidence.c +its1/CurvatureValue.c +its1/DDD-IO-LIST.c +its1/DDD-IO.c +its1/DDateTime.c +its1/DDay.c +its1/DENM.c +its1/DHour.c +its1/DMinute.c +its1/DMonth.c +its1/DOffset.c +its1/DSRCmsgID.c +its1/DSecond.c +its1/DYear.c +its1/DangerousEndOfQueueSubCauseCode.c +its1/DangerousGoodsBasic.c +its1/DangerousGoodsContainer.c +its1/DangerousGoodsExtended.c +its1/DangerousSituationSubCauseCode.c +its1/DataParameters.c +its1/DateAndTime.c +its1/DateCompact.c +its1/DayOfWeek.c +its1/DebitRq.c +its1/DebitRs.c +its1/DecentralizedEnvironmentalNotificationMessage.c +its1/DefinitionAccuracy.c +its1/DeltaAltitude.c +its1/DeltaAngle.c +its1/DeltaLatitude.c +its1/DeltaLongitude.c +its1/DeltaPosition.c +its1/DeltaPositions.c +its1/DeltaReferencePosition.c +its1/DeltaReferencePositions.c +its1/DeltaTime.c +its1/Depth.c +its1/DescriptiveCharacteristics.c +its1/DescriptiveName.c +its1/DestinationPlace.c +its1/DestinationPlaces.c +its1/DestinationRoad.c +its1/DestinationRoadType.c +its1/DestinationRoads.c +its1/DestinationType.c +its1/DetectionArea.c +its1/DieselEmissionValues.c +its1/DigitalMap.c +its1/Direction.c +its1/Distance.c +its1/DistanceConfidence.c +its1/DistanceOrDuration.c +its1/DistanceValue.c +its1/DriveDirection.c +its1/DrivenLineOffsetLg.c +its1/DrivenLineOffsetSm.c +its1/DrivingLaneStatus.c +its1/DynamicStatus.c +its1/EFC-ContextMark.c +its1/EfcDsrcApplication_DriverCharacteristics.c +its1/EfcDsrcApplication_TrailerCharacteristics.c +its1/Elevation.c +its1/ElevationConfidence.c +its1/EmbarkationStatus.c +its1/EmergencyContainer.c +its1/EmergencyPriority.c +its1/EmergencyVehicleApproachingSubCauseCode.c +its1/EmissionType.c +its1/EnabledLaneList.c +its1/EnergyStorageType.c +its1/Engine.c +its1/EngineCharacteristics.c +its1/EnvironmentalCharacteristics.c +its1/EquipmentOBUId.c +its1/EquipmentStatus.c +its1/EuVehicleCategoryCode.c +its1/EuVehicleCategoryL.c +its1/EuVehicleCategoryM.c +its1/EuVehicleCategoryN.c +its1/EuVehicleCategoryO.c +its1/EuroValue.c +its1/EventHistory.c +its1/EventPoint.c +its1/ExceptionalCondition.c +its1/ExhaustEmissionValues.c +its1/Ext1.c +its1/Ext2.c +its1/Ext3.c +its1/ExteriorLights.c +its1/FreeSpaceAddendum.c +its1/FreeSpaceAddendumContainer.c +its1/FreeSpaceArea.c +its1/FreeSpaceConfidence.c +its1/FreightContainerData.c +its1/FrictionCoefficient.c +its1/FrontOverhang.c +its1/FuelType.c +its1/FullPositionVector.c +its1/FutureCharacteristics.c +its1/GNSSstatus.c +its1/GapBetweenVehicles.c +its1/GddAttribute.c +its1/GddAttributes.c +its1/GddStructure.c +its1/GeneralIviContainer.c +its1/GenerationDeltaTime.c +its1/GenericLane.c +its1/GeoGraphicalLimit.c +its1/GeographicLocationContainer.c +its1/GetInstanceRq.c +its1/GetInstanceRs.c +its1/GetStampedRq.c +its1/GetStampedRs.c +its1/GicPart.c +its1/GlcPart.c +its1/GlcParts.c +its1/GoodsType.c +its1/HardShoulderStatus.c +its1/HazardousLocation-AnimalOnTheRoadSubCauseCode.c +its1/HazardousLocation-DangerousCurveSubCauseCode.c +its1/HazardousLocation-ObstacleOnTheRoadSubCauseCode.c +its1/HazardousLocation-SurfaceConditionSubCauseCode.c +its1/Heading.c +its1/HeadingConfidence.c +its1/HeadingIso.c +its1/HeadingIsoConfidenceIso.c +its1/HeadingValue.c +its1/HeightLonCarr.c +its1/HighFrequencyContainer.c +its1/HitchPointOffset.c +its1/HoursMinutes.c +its1/HumanPresenceOnTheRoadSubCauseCode.c +its1/HumanProblemSubCauseCode.c +its1/ICC-Id.c +its1/ISO14823Attribute.c +its1/ISO14823Attributes.c +its1/ISO14823Code.c +its1/ITS-Container_Temperature.c +its1/IVIM.c +its1/IVI_DriverCharacteristics.c +its1/IVI_Temperature.c +its1/IVI_TrailerCharacteristics.c +its1/Identifier.c +its1/ImpactReductionContainer.c +its1/InformationQuality.c +its1/Int1.c +its1/Int2.c +its1/Int3.c +its1/Int4.c +its1/InternationalSign-applicablePeriod.c +its1/InternationalSign-applicableVehicleDimensions.c +its1/InternationalSign-destinationInformation.c +its1/InternationalSign-directionalFlowOfLane.c +its1/InternationalSign-distanceBetweenVehicles.c +its1/InternationalSign-exemptedApplicablePeriod.c +its1/InternationalSign-numberOfLane.c +its1/InternationalSign-rateOfIncline.c +its1/InternationalSign-section.c +its1/InternationalSign-speedLimits.c +its1/IntersectionAccessPoint.c +its1/IntersectionGeometry.c +its1/IntersectionGeometryList.c +its1/IntersectionID.c +its1/IntersectionReferenceID.c +its1/IntersectionState-addGrpC.c +its1/IntersectionState.c +its1/IntersectionStateList.c +its1/IntersectionStatusObject.c +its1/Iso3833VehicleType.c +its1/IssuerIdentifierIso.c +its1/ItineraryPath.c +its1/ItsPduHeader.c +its1/ItsStationPosition.c +its1/ItsStationPositionList.c +its1/IviContainer.c +its1/IviContainers.c +its1/IviIdentificationNumber.c +its1/IviIdentificationNumbers.c +its1/IviLaneWidth.c +its1/IviManagementContainer.c +its1/IviPurpose.c +its1/IviStatus.c +its1/IviStructure.c +its1/IviType.c +its1/LPN.c +its1/LaneAttributes-Barrier.c +its1/LaneAttributes-Bike.c +its1/LaneAttributes-Crosswalk.c +its1/LaneAttributes-Parking.c +its1/LaneAttributes-Sidewalk.c +its1/LaneAttributes-Striping.c +its1/LaneAttributes-TrackedVehicle.c +its1/LaneAttributes-Vehicle.c +its1/LaneAttributes-addGrpC.c +its1/LaneAttributes.c +its1/LaneCharacteristics.c +its1/LaneConfiguration.c +its1/LaneConnectionID.c +its1/LaneDataAttribute.c +its1/LaneDataAttributeList.c +its1/LaneDelimitation.c +its1/LaneDirection.c +its1/LaneID.c +its1/LaneIds.c +its1/LaneInformation.c +its1/LaneList.c +its1/LaneMarkingStatus.c +its1/LanePosition.c +its1/LanePositions.c +its1/LaneSharing.c +its1/LaneStatus.c +its1/LaneType.c +its1/LaneTypeAttributes.c +its1/LaneWidth.c +its1/LateralAcceleration.c +its1/LateralAccelerationValue.c +its1/Latitude.c +its1/LayerID.c +its1/LayerType.c +its1/LayoutComponent.c +its1/LayoutComponents.c +its1/LayoutContainer.c +its1/LicPlateNumber.c +its1/LightBarSirenInUse.c +its1/LoadType.c +its1/LocationContainer.c +its1/Longitude.c +its1/LongitudinalAcceleration.c +its1/LongitudinalAccelerationValue.c +its1/LongitudinalLanePosition.c +its1/LongitudinalLanePositionConfidence.c +its1/LongitudinalLanePositionValue.c +its1/LowFrequencyContainer.c +its1/MAPEM.c +its1/ManagementContainer.c +its1/ManeuverAssistList.c +its1/ManufacturerIdentifier.c +its1/MapData-addGrpC.c +its1/MapData.c +its1/MapLocationContainer.c +its1/MapReference.c +its1/MarkingColour.c +its1/MatchedPosition.c +its1/MaterialType.c +its1/MaxLenghtOfPlatoon.c +its1/MaxNoOfVehicles.c +its1/MergeDivergeNodeAngle.c +its1/MinuteOfTheYear.c +its1/MlcPart.c +its1/MlcParts.c +its1/MonthDay.c +its1/MovementEvent-addGrpC.c +its1/MovementEvent.c +its1/MovementEventList.c +its1/MovementList.c +its1/MovementPhaseState.c +its1/MovementState.c +its1/MsgCount.c +its1/Node-LLmD-64b.c +its1/Node-XY-20b.c +its1/Node-XY-22b.c +its1/Node-XY-24b.c +its1/Node-XY-26b.c +its1/Node-XY-28b.c +its1/Node-XY-32b.c +its1/Node.c +its1/NodeAttributeSet-addGrpC.c +its1/NodeAttributeSetXY.c +its1/NodeAttributeXY.c +its1/NodeAttributeXYList.c +its1/NodeLink.c +its1/NodeListXY.c +its1/NodeOffsetPointXY.c +its1/NodeOffsetPointZ.c +its1/NodeSetXY.c +its1/NodeXY.c +its1/NumberOfOccupants.c +its1/NumberOfPerceivedObjects.c +its1/ObjectAge.c +its1/ObjectClass.c +its1/ObjectClassDescription.c +its1/ObjectConfidence.c +its1/ObjectDimension.c +its1/ObjectDimensionConfidence.c +its1/ObjectDimensionValue.c +its1/ObjectDistanceWithConfidence.c +its1/ObjectRefPoint.c +its1/Offset-B09.c +its1/Offset-B10.c +its1/Offset-B11.c +its1/Offset-B12.c +its1/Offset-B13.c +its1/Offset-B14.c +its1/Offset-B16.c +its1/OffsetPoint.c +its1/OpeningDaysHours.c +its1/OriginatingRSUContainer.c +its1/OriginatingVehicleContainer.c +its1/OtherSubclass.c +its1/OtherSublassType.c +its1/OverlayLaneList.c +its1/PassengerCapacity.c +its1/PathDeltaTime.c +its1/PathHistory.c +its1/PathPoint.c +its1/PayUnit.c +its1/PaymentFee.c +its1/PaymentMeans.c +its1/PaymentMeansBalance.c +its1/PaymentMeansUnit.c +its1/PaymentSecurityData.c +its1/PedestrianBicycleDetect.c +its1/PerceivedObject.c +its1/PerceivedObjectContainer.c +its1/PerceivedObjectContainerSegmentInfo.c +its1/PerformanceClass.c +its1/PersonSubclass.c +its1/PersonSubclassType.c +its1/PersonalAccountNumber.c +its1/PhoneNumber.c +its1/PlatooningRule.c +its1/PlatooningRules.c +its1/PolyPointList.c +its1/PolygonalLine.c +its1/PosCentMass.c +its1/PosConfidenceEllipse.c +its1/PosFrontAx.c +its1/PosLonCarr.c +its1/PosPillar.c +its1/Position3D-addGrpC.c +its1/Position3D.c +its1/PositionConfidence.c +its1/PositionConfidenceSet.c +its1/PositionOfOccupants.c +its1/PositionOfPillars.c +its1/PositionalAccuracy.c +its1/PositioningSolutionType.c +its1/PostCrashSubCauseCode.c +its1/PreemptPriorityList.c +its1/PrioritizationResponse.c +its1/PrioritizationResponseList.c +its1/PrioritizationResponseStatus.c +its1/PriorityLevel.c +its1/PriorityRequestType.c +its1/ProtectedCommunicationZone.c +its1/ProtectedCommunicationZonesRSU.c +its1/ProtectedZoneID.c +its1/ProtectedZoneRadius.c +its1/ProtectedZoneType.c +its1/Provider.c +its1/PtActivation.c +its1/PtActivationData.c +its1/PtActivationType.c +its1/PtvRequestType.c +its1/PublicTransportContainer.c +its1/PurseBalance.c +its1/RSCUnit.c +its1/RSCode.c +its1/RSUContainerHighFrequency.c +its1/RTCM-Revision.c +its1/RTCMEM.c +its1/RTCMcorrections.c +its1/RTCMheader.c +its1/RTCMmessage.c +its1/RTCMmessageList.c +its1/Radius.c +its1/Range.c +its1/RccPart.c +its1/RearOverhang.c +its1/ReceiptAuthenticator.c +its1/ReceiptContract.c +its1/ReceiptData.c +its1/ReceiptData1.c +its1/ReceiptData2.c +its1/ReceiptDistance.c +its1/ReceiptFinancialPart.c +its1/ReceiptICC-Id.c +its1/ReceiptOBUId.c +its1/ReceiptServicePart.c +its1/ReceiptServiceSerialNumber.c +its1/ReceiptText.c +its1/RefPointId.c +its1/ReferenceDenms.c +its1/ReferencePosition.c +its1/RegionId.c +its1/RegionalExtension.c +its1/RegulatorySpeedLimit.c +its1/RejectedReason.c +its1/RelevanceDistance.c +its1/RelevanceTrafficDirection.c +its1/RepeatingPeriodDayTypes.c +its1/RequestID.c +its1/RequestImportanceLevel.c +its1/RequestResponseIndication.c +its1/RequestSubRole.c +its1/RequestorDescription-addGrpC.c +its1/RequestorDescription.c +its1/RequestorPositionVector.c +its1/RequestorType.c +its1/RescueAndRecoveryWorkInProgressSubCauseCode.c +its1/RescueContainer.c +its1/RestrictedTypes.c +its1/RestrictionAppliesTo.c +its1/RestrictionClassAssignment.c +its1/RestrictionClassID.c +its1/RestrictionClassList.c +its1/RestrictionUserType-addGrpC.c +its1/RestrictionUserType.c +its1/RestrictionUserTypeList.c +its1/ResultFin.c +its1/ResultOp.c +its1/RoadConfigurationContainer.c +its1/RoadLaneSetList.c +its1/RoadRegulatorID.c +its1/RoadSegment.c +its1/RoadSegmentID.c +its1/RoadSegmentList.c +its1/RoadSegmentReferenceID.c +its1/RoadSignCodes.c +its1/RoadSurfaceContainer.c +its1/RoadSurfaceDynamicCharacteristics.c +its1/RoadSurfaceStaticCharacteristics.c +its1/RoadType.c +its1/RoadWorksContainerBasic.c +its1/RoadWorksContainerExtended.c +its1/RoadwayCrownAngle.c +its1/RoadworksSubCauseCode.c +its1/RscPart.c +its1/SPAT.c +its1/SPATEM.c +its1/SREM.c +its1/SSEM.c +its1/SaeAutomationLevel.c +its1/SaeAutomationLevels.c +its1/SafetyCarContainer.c +its1/Scale-B12.c +its1/Segment.c +its1/SegmentAttributeXY.c +its1/SegmentAttributeXYList.c +its1/SegmentCount.c +its1/SemiAxisLength.c +its1/SemiMajorAxisAccuracy.c +its1/SemiMajorAxisOrientation.c +its1/SemiMinorAxisAccuracy.c +its1/SemiRangeLength.c +its1/SensorHeight.c +its1/SensorIdList.c +its1/SensorInformation.c +its1/SensorInformationContainer.c +its1/SensorType.c +its1/SequenceNumber.c +its1/ServiceApplicationLimit.c +its1/ServiceNumber.c +its1/SessionClass.c +its1/SessionLocation.c +its1/SetInstanceRq.c +its1/SetMMIRq.c +its1/SetStampedRq.c +its1/ShadowingApplies.c +its1/SignalControlZone.c +its1/SignalGroupID.c +its1/SignalHeadLocation.c +its1/SignalHeadLocationList.c +its1/SignalRequest.c +its1/SignalRequestList.c +its1/SignalRequestMessage.c +its1/SignalRequestPackage.c +its1/SignalRequesterInfo.c +its1/SignalStatus.c +its1/SignalStatusList.c +its1/SignalStatusMessage.c +its1/SignalStatusPackage-addGrpC.c +its1/SignalStatusPackage.c +its1/SignalStatusPackageList.c +its1/SignalViolationSubCauseCode.c +its1/SignedValue.c +its1/SituationContainer.c +its1/SlowVehicleSubCauseCode.c +its1/SoundLevel.c +its1/SpecialTransportContainer.c +its1/SpecialTransportType.c +its1/SpecialVehicleContainer.c +its1/Speed.c +its1/SpeedAdvice.c +its1/SpeedConfidence.c +its1/SpeedConfidenceIso.c +its1/SpeedExtended.c +its1/SpeedLimit.c +its1/SpeedLimitList.c +its1/SpeedLimitType.c +its1/SpeedValue.c +its1/SpeedValueExtended.c +its1/SpeedandHeadingIsoandThrottleConfidence.c +its1/StartTime.c +its1/StationDataContainer.c +its1/StationID.c +its1/StationType.c +its1/StationTypeIso.c +its1/StationarySince.c +its1/StationaryVehicleContainer.c +its1/StationaryVehicleSubCauseCode.c +its1/SteeringWheelAngle.c +its1/SteeringWheelAngleConfidence.c +its1/SteeringWheelAngleValue.c +its1/StopTime.c +its1/SubCauseCodeType.c +its1/SubRq.c +its1/TaxCode.c +its1/TcPart.c +its1/TemporaryID.c +its1/Termination.c +its1/Text.c +its1/TextContainer.c +its1/TextLines.c +its1/ThrottleConfidence.c +its1/TimeChangeDetails.c +its1/TimeConfidence.c +its1/TimeIntervalConfidence.c +its1/TimeMark.c +its1/TimeOfMeasurement.c +its1/TimeReference.c +its1/TimestampIts.c +its1/Traces.c +its1/TractorAxles.c +its1/TractorCharacteristics.c +its1/TrafficConditionSubCauseCode.c +its1/TrafficRule.c +its1/TrailerAxles.c +its1/TrailerCharacteristicsFixValuesList.c +its1/TrailerCharacteristicsList.c +its1/TrailerCharacteristicsRangesList.c +its1/TrailerData.c +its1/TrailerDataContainer.c +its1/TrailerDetails.c +its1/TrailerLicencePlateNumber.c +its1/TrainCharacteristics.c +its1/TransitVehicleOccupancy.c +its1/TransitVehicleStatus.c +its1/TransmissionAndSpeed.c +its1/TransmissionInterval.c +its1/TransmissionState.c +its1/TreatmentType.c +its1/TurningRadius.c +its1/UnitType.c +its1/VDS.c +its1/ValidityDuration.c +its1/ValidityOfContract.c +its1/ValidityPeriods.c +its1/VanetzaTest.c +its1/VarLengthNumber.c +its1/VcClass.c +its1/VcCode.c +its1/VcOption.c +its1/VehicleAuthenticator.c +its1/VehicleAxles.c +its1/VehicleBreakdownSubCauseCode.c +its1/VehicleCharacteristicsFixValues.c +its1/VehicleCharacteristicsFixValuesList.c +its1/VehicleCharacteristicsList.c +its1/VehicleCharacteristicsRanges.c +its1/VehicleCharacteristicsRangesList.c +its1/VehicleClass.c +its1/VehicleCurrentMaxTrainWeight.c +its1/VehicleDimensions.c +its1/VehicleHeight.c +its1/VehicleID.c +its1/VehicleIdentification.c +its1/VehicleIdentificationNumber.c +its1/VehicleLength.c +its1/VehicleLengthConfidenceIndication.c +its1/VehicleLengthValue.c +its1/VehicleLicencePlateNumber.c +its1/VehicleMass.c +its1/VehicleRole.c +its1/VehicleSensor.c +its1/VehicleSensorProperties.c +its1/VehicleSensorPropertyList.c +its1/VehicleSpecificCharacteristics.c +its1/VehicleSubclass.c +its1/VehicleSubclassType.c +its1/VehicleTotalDistance.c +its1/VehicleType.c +its1/VehicleWeightLaden.c +its1/VehicleWeightLimits.c +its1/VehicleWidth.c +its1/Velocity.c +its1/VerticalAcceleration.c +its1/VerticalAccelerationValue.c +its1/WGS84Angle.c +its1/WGS84AngleValue.c +its1/WMInumber.c +its1/WaitOnStopline.c +its1/WearLevel.c +its1/Weight.c +its1/WheelBaseVehicle.c +its1/WrongWayDrivingSubCauseCode.c +its1/XSensorOffset.c +its1/YSensorOffset.c +its1/YawRate.c +its1/YawRateConfidence.c +its1/YawRateValue.c +its1/ZSensorOffset.c +its1/Zid.c +its1/Zone.c +its1/ZoneIds.c +its1/ZoneLength.c diff --git a/vanetza/asn1/cpm.hpp b/vanetza/asn1/cpm.hpp deleted file mode 100644 index ae0be12c6..000000000 --- a/vanetza/asn1/cpm.hpp +++ /dev/null @@ -1,23 +0,0 @@ -#ifndef CPM_HPP_WEWZK69S -#define CPM_HPP_WEWZK69S - -#include -#include -#include - -namespace vanetza -{ -namespace asn1 -{ - -class Cpm : public asn1c_per_wrapper -{ -public: - Cpm() : asn1c_per_wrapper(asn_DEF_CPM) {} -}; - -} // namespace asn1 -} // namespace vanetza - -#endif /* CPM_HPP_WEWZK69S */ - diff --git a/vanetza/asn1/cpm.hpp.in b/vanetza/asn1/cpm.hpp.in new file mode 100644 index 000000000..9612c9570 --- /dev/null +++ b/vanetza/asn1/cpm.hpp.in @@ -0,0 +1,36 @@ +#ifndef CPM_HPP_WEWZK69S +#define CPM_HPP_WEWZK69S + +#define VANETZA_USE_ITS2 @VANETZA_USE_ITS2@ + +#include +#include +#if VANETZA_USE_ITS2 +#include +#else +#include +#endif + +namespace vanetza +{ +namespace asn1 +{ +#if VANETZA_USE_ITS2 +class Cpm : public asn1c_per_wrapper +#else +class Cpm : public asn1c_per_wrapper +#endif +{ +public: +#if VANETZA_USE_ITS2 + Cpm() : asn1c_per_wrapper(asn_DEF_CollectivePerceptionMessage) {} +#else + Cpm() : asn1c_per_wrapper(asn_DEF_CPM) {} +#endif +}; + +} // namespace asn1 +} // namespace vanetza + +#endif /* CPM_HPP_WEWZK69S */ + diff --git a/vanetza/asn1/its/AccelerationConfidence.c b/vanetza/asn1/its/AccelerationConfidence.c deleted file mode 100644 index 832f83a4a..000000000 --- a/vanetza/asn1/its/AccelerationConfidence.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "AccelerationConfidence.h" - -int -AccelerationConfidence_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 <= 102L)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_AccelerationConfidence_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..102) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_AccelerationConfidence_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 102 } /* (0..102) */, - { 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_AccelerationConfidence_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_AccelerationConfidence = { - "AccelerationConfidence", - "AccelerationConfidence", - &asn_OP_NativeInteger, - asn_DEF_AccelerationConfidence_tags_1, - sizeof(asn_DEF_AccelerationConfidence_tags_1) - /sizeof(asn_DEF_AccelerationConfidence_tags_1[0]), /* 1 */ - asn_DEF_AccelerationConfidence_tags_1, /* Same as above */ - sizeof(asn_DEF_AccelerationConfidence_tags_1) - /sizeof(asn_DEF_AccelerationConfidence_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_AccelerationConfidence_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_AccelerationConfidence_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - AccelerationConfidence_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/AccelerationControl.c b/vanetza/asn1/its/AccelerationControl.c deleted file mode 100644 index fa0c52a18..000000000 --- a/vanetza/asn1/its/AccelerationControl.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "AccelerationControl.h" - -int -AccelerationControl_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 == 7UL)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_AccelerationControl_constr_1 CC_NOTUSED = { - { 0, 0 }, - 7 /* (SIZE(7..7)) */}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_AccelerationControl_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 7, 7 } /* (SIZE(7..7)) */, - 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_AccelerationControl_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_AccelerationControl = { - "AccelerationControl", - "AccelerationControl", - &asn_OP_BIT_STRING, - asn_DEF_AccelerationControl_tags_1, - sizeof(asn_DEF_AccelerationControl_tags_1) - /sizeof(asn_DEF_AccelerationControl_tags_1[0]), /* 1 */ - asn_DEF_AccelerationControl_tags_1, /* Same as above */ - sizeof(asn_DEF_AccelerationControl_tags_1) - /sizeof(asn_DEF_AccelerationControl_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_AccelerationControl_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_AccelerationControl_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - AccelerationControl_constraint - }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_BIT_STRING_specs /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/AccidentSubCauseCode.c b/vanetza/asn1/its/AccidentSubCauseCode.c deleted file mode 100644 index 9d2fa692c..000000000 --- a/vanetza/asn1/its/AccidentSubCauseCode.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "AccidentSubCauseCode.h" - -int -AccidentSubCauseCode_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_AccidentSubCauseCode_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_type_AccidentSubCauseCode_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_AccidentSubCauseCode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_AccidentSubCauseCode = { - "AccidentSubCauseCode", - "AccidentSubCauseCode", - &asn_OP_NativeInteger, - asn_DEF_AccidentSubCauseCode_tags_1, - sizeof(asn_DEF_AccidentSubCauseCode_tags_1) - /sizeof(asn_DEF_AccidentSubCauseCode_tags_1[0]), /* 1 */ - asn_DEF_AccidentSubCauseCode_tags_1, /* Same as above */ - sizeof(asn_DEF_AccidentSubCauseCode_tags_1) - /sizeof(asn_DEF_AccidentSubCauseCode_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_AccidentSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_AccidentSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - AccidentSubCauseCode_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/ActionID.c b/vanetza/asn1/its/ActionID.c deleted file mode 100644 index a6c876e65..000000000 --- a/vanetza/asn1/its/ActionID.c +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "ActionID.h" - -asn_TYPE_member_t asn_MBR_ActionID_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ActionID, originatingStationID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_StationID, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "originatingStationID" - }, - { ATF_NOFLAGS, 0, offsetof(struct ActionID, sequenceNumber), - (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 */ - "sequenceNumber" - }, -}; -static const ber_tlv_tag_t asn_DEF_ActionID_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ActionID_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* originatingStationID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* sequenceNumber */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ActionID_specs_1 = { - sizeof(struct ActionID), - offsetof(struct ActionID, _asn_ctx), - asn_MAP_ActionID_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_ActionID = { - "ActionID", - "ActionID", - &asn_OP_SEQUENCE, - asn_DEF_ActionID_tags_1, - sizeof(asn_DEF_ActionID_tags_1) - /sizeof(asn_DEF_ActionID_tags_1[0]), /* 1 */ - asn_DEF_ActionID_tags_1, /* Same as above */ - sizeof(asn_DEF_ActionID_tags_1) - /sizeof(asn_DEF_ActionID_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_ActionID_1, - 2, /* Elements count */ - &asn_SPC_ActionID_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/AdverseWeatherCondition-AdhesionSubCauseCode.c b/vanetza/asn1/its/AdverseWeatherCondition-AdhesionSubCauseCode.c deleted file mode 100644 index 5de37d291..000000000 --- a/vanetza/asn1/its/AdverseWeatherCondition-AdhesionSubCauseCode.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "AdverseWeatherCondition-AdhesionSubCauseCode.h" - -int -AdverseWeatherCondition_AdhesionSubCauseCode_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_AdverseWeatherCondition_AdhesionSubCauseCode_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_type_AdverseWeatherCondition_AdhesionSubCauseCode_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_AdverseWeatherCondition_AdhesionSubCauseCode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_AdverseWeatherCondition_AdhesionSubCauseCode = { - "AdverseWeatherCondition-AdhesionSubCauseCode", - "AdverseWeatherCondition-AdhesionSubCauseCode", - &asn_OP_NativeInteger, - asn_DEF_AdverseWeatherCondition_AdhesionSubCauseCode_tags_1, - sizeof(asn_DEF_AdverseWeatherCondition_AdhesionSubCauseCode_tags_1) - /sizeof(asn_DEF_AdverseWeatherCondition_AdhesionSubCauseCode_tags_1[0]), /* 1 */ - asn_DEF_AdverseWeatherCondition_AdhesionSubCauseCode_tags_1, /* Same as above */ - sizeof(asn_DEF_AdverseWeatherCondition_AdhesionSubCauseCode_tags_1) - /sizeof(asn_DEF_AdverseWeatherCondition_AdhesionSubCauseCode_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_AdverseWeatherCondition_AdhesionSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_AdverseWeatherCondition_AdhesionSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - AdverseWeatherCondition_AdhesionSubCauseCode_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode.c b/vanetza/asn1/its/AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode.c deleted file mode 100644 index ded8a2cd6..000000000 --- a/vanetza/asn1/its/AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode.h" - -int -AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_type_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_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_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode = { - "AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode", - "AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode", - &asn_OP_NativeInteger, - asn_DEF_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_tags_1, - sizeof(asn_DEF_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_tags_1) - /sizeof(asn_DEF_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_tags_1[0]), /* 1 */ - asn_DEF_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_tags_1, /* Same as above */ - sizeof(asn_DEF_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_tags_1) - /sizeof(asn_DEF_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/AdverseWeatherCondition-PrecipitationSubCauseCode.c b/vanetza/asn1/its/AdverseWeatherCondition-PrecipitationSubCauseCode.c deleted file mode 100644 index 3b65de9bb..000000000 --- a/vanetza/asn1/its/AdverseWeatherCondition-PrecipitationSubCauseCode.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "AdverseWeatherCondition-PrecipitationSubCauseCode.h" - -int -AdverseWeatherCondition_PrecipitationSubCauseCode_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_AdverseWeatherCondition_PrecipitationSubCauseCode_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_type_AdverseWeatherCondition_PrecipitationSubCauseCode_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_AdverseWeatherCondition_PrecipitationSubCauseCode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_AdverseWeatherCondition_PrecipitationSubCauseCode = { - "AdverseWeatherCondition-PrecipitationSubCauseCode", - "AdverseWeatherCondition-PrecipitationSubCauseCode", - &asn_OP_NativeInteger, - asn_DEF_AdverseWeatherCondition_PrecipitationSubCauseCode_tags_1, - sizeof(asn_DEF_AdverseWeatherCondition_PrecipitationSubCauseCode_tags_1) - /sizeof(asn_DEF_AdverseWeatherCondition_PrecipitationSubCauseCode_tags_1[0]), /* 1 */ - asn_DEF_AdverseWeatherCondition_PrecipitationSubCauseCode_tags_1, /* Same as above */ - sizeof(asn_DEF_AdverseWeatherCondition_PrecipitationSubCauseCode_tags_1) - /sizeof(asn_DEF_AdverseWeatherCondition_PrecipitationSubCauseCode_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_AdverseWeatherCondition_PrecipitationSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_AdverseWeatherCondition_PrecipitationSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - AdverseWeatherCondition_PrecipitationSubCauseCode_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/AdverseWeatherCondition-VisibilitySubCauseCode.c b/vanetza/asn1/its/AdverseWeatherCondition-VisibilitySubCauseCode.c deleted file mode 100644 index 001aa9831..000000000 --- a/vanetza/asn1/its/AdverseWeatherCondition-VisibilitySubCauseCode.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "AdverseWeatherCondition-VisibilitySubCauseCode.h" - -int -AdverseWeatherCondition_VisibilitySubCauseCode_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_AdverseWeatherCondition_VisibilitySubCauseCode_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_type_AdverseWeatherCondition_VisibilitySubCauseCode_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_AdverseWeatherCondition_VisibilitySubCauseCode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_AdverseWeatherCondition_VisibilitySubCauseCode = { - "AdverseWeatherCondition-VisibilitySubCauseCode", - "AdverseWeatherCondition-VisibilitySubCauseCode", - &asn_OP_NativeInteger, - asn_DEF_AdverseWeatherCondition_VisibilitySubCauseCode_tags_1, - sizeof(asn_DEF_AdverseWeatherCondition_VisibilitySubCauseCode_tags_1) - /sizeof(asn_DEF_AdverseWeatherCondition_VisibilitySubCauseCode_tags_1[0]), /* 1 */ - asn_DEF_AdverseWeatherCondition_VisibilitySubCauseCode_tags_1, /* Same as above */ - sizeof(asn_DEF_AdverseWeatherCondition_VisibilitySubCauseCode_tags_1) - /sizeof(asn_DEF_AdverseWeatherCondition_VisibilitySubCauseCode_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_AdverseWeatherCondition_VisibilitySubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_AdverseWeatherCondition_VisibilitySubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - AdverseWeatherCondition_VisibilitySubCauseCode_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/AlacarteContainer.c b/vanetza/asn1/its/AlacarteContainer.c deleted file mode 100644 index 175145882..000000000 --- a/vanetza/asn1/its/AlacarteContainer.c +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "DENM-PDU-Descriptions" - * found in "asn1/EN302637-3v131-DENM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "AlacarteContainer.h" - -asn_TYPE_member_t asn_MBR_AlacarteContainer_1[] = { - { ATF_POINTER, 6, offsetof(struct AlacarteContainer, lanePosition), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LanePosition, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "lanePosition" - }, - { ATF_POINTER, 5, offsetof(struct AlacarteContainer, impactReduction), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ImpactReductionContainer, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "impactReduction" - }, - { ATF_POINTER, 4, offsetof(struct AlacarteContainer, externalTemperature), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ITS_Container_Temperature, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "externalTemperature" - }, - { ATF_POINTER, 3, offsetof(struct AlacarteContainer, roadWorks), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RoadWorksContainerExtended, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "roadWorks" - }, - { ATF_POINTER, 2, offsetof(struct AlacarteContainer, positioningSolution), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PositioningSolutionType, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "positioningSolution" - }, - { ATF_POINTER, 1, offsetof(struct AlacarteContainer, stationaryVehicle), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_StationaryVehicleContainer, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "stationaryVehicle" - }, -}; -static const int asn_MAP_AlacarteContainer_oms_1[] = { 0, 1, 2, 3, 4, 5 }; -static const ber_tlv_tag_t asn_DEF_AlacarteContainer_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_AlacarteContainer_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* lanePosition */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* impactReduction */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* externalTemperature */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* roadWorks */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* positioningSolution */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* stationaryVehicle */ -}; -asn_SEQUENCE_specifics_t asn_SPC_AlacarteContainer_specs_1 = { - sizeof(struct AlacarteContainer), - offsetof(struct AlacarteContainer, _asn_ctx), - asn_MAP_AlacarteContainer_tag2el_1, - 6, /* Count of tags in the map */ - asn_MAP_AlacarteContainer_oms_1, /* Optional members */ - 6, 0, /* Root/Additions */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_AlacarteContainer = { - "AlacarteContainer", - "AlacarteContainer", - &asn_OP_SEQUENCE, - asn_DEF_AlacarteContainer_tags_1, - sizeof(asn_DEF_AlacarteContainer_tags_1) - /sizeof(asn_DEF_AlacarteContainer_tags_1[0]), /* 1 */ - asn_DEF_AlacarteContainer_tags_1, /* Same as above */ - sizeof(asn_DEF_AlacarteContainer_tags_1) - /sizeof(asn_DEF_AlacarteContainer_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_AlacarteContainer_1, - 6, /* Elements count */ - &asn_SPC_AlacarteContainer_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/Altitude.c b/vanetza/asn1/its/Altitude.c deleted file mode 100644 index c851d491b..000000000 --- a/vanetza/asn1/its/Altitude.c +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "Altitude.h" - -asn_TYPE_member_t asn_MBR_Altitude_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Altitude, altitudeValue), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AltitudeValue, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "altitudeValue" - }, - { ATF_NOFLAGS, 0, offsetof(struct Altitude, altitudeConfidence), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AltitudeConfidence, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "altitudeConfidence" - }, -}; -static const ber_tlv_tag_t asn_DEF_Altitude_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Altitude_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* altitudeValue */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* altitudeConfidence */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Altitude_specs_1 = { - sizeof(struct Altitude), - offsetof(struct Altitude, _asn_ctx), - asn_MAP_Altitude_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_Altitude = { - "Altitude", - "Altitude", - &asn_OP_SEQUENCE, - asn_DEF_Altitude_tags_1, - sizeof(asn_DEF_Altitude_tags_1) - /sizeof(asn_DEF_Altitude_tags_1[0]), /* 1 */ - asn_DEF_Altitude_tags_1, /* Same as above */ - sizeof(asn_DEF_Altitude_tags_1) - /sizeof(asn_DEF_Altitude_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_Altitude_1, - 2, /* Elements count */ - &asn_SPC_Altitude_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/AltitudeConfidence.c b/vanetza/asn1/its/AltitudeConfidence.c deleted file mode 100644 index 526e85125..000000000 --- a/vanetza/asn1/its/AltitudeConfidence.c +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "AltitudeConfidence.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_AltitudeConfidence_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_AltitudeConfidence_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_AltitudeConfidence_value2enum_1[] = { - { 0, 10, "alt-000-01" }, - { 1, 10, "alt-000-02" }, - { 2, 10, "alt-000-05" }, - { 3, 10, "alt-000-10" }, - { 4, 10, "alt-000-20" }, - { 5, 10, "alt-000-50" }, - { 6, 10, "alt-001-00" }, - { 7, 10, "alt-002-00" }, - { 8, 10, "alt-005-00" }, - { 9, 10, "alt-010-00" }, - { 10, 10, "alt-020-00" }, - { 11, 10, "alt-050-00" }, - { 12, 10, "alt-100-00" }, - { 13, 10, "alt-200-00" }, - { 14, 10, "outOfRange" }, - { 15, 11, "unavailable" } -}; -static const unsigned int asn_MAP_AltitudeConfidence_enum2value_1[] = { - 0, /* alt-000-01(0) */ - 1, /* alt-000-02(1) */ - 2, /* alt-000-05(2) */ - 3, /* alt-000-10(3) */ - 4, /* alt-000-20(4) */ - 5, /* alt-000-50(5) */ - 6, /* alt-001-00(6) */ - 7, /* alt-002-00(7) */ - 8, /* alt-005-00(8) */ - 9, /* alt-010-00(9) */ - 10, /* alt-020-00(10) */ - 11, /* alt-050-00(11) */ - 12, /* alt-100-00(12) */ - 13, /* alt-200-00(13) */ - 14, /* outOfRange(14) */ - 15 /* unavailable(15) */ -}; -const asn_INTEGER_specifics_t asn_SPC_AltitudeConfidence_specs_1 = { - asn_MAP_AltitudeConfidence_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_AltitudeConfidence_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_AltitudeConfidence_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_AltitudeConfidence = { - "AltitudeConfidence", - "AltitudeConfidence", - &asn_OP_NativeEnumerated, - asn_DEF_AltitudeConfidence_tags_1, - sizeof(asn_DEF_AltitudeConfidence_tags_1) - /sizeof(asn_DEF_AltitudeConfidence_tags_1[0]), /* 1 */ - asn_DEF_AltitudeConfidence_tags_1, /* Same as above */ - sizeof(asn_DEF_AltitudeConfidence_tags_1) - /sizeof(asn_DEF_AltitudeConfidence_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_AltitudeConfidence_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_AltitudeConfidence_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - NativeEnumerated_constraint - }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_AltitudeConfidence_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/AltitudeValue.c b/vanetza/asn1/its/AltitudeValue.c deleted file mode 100644 index 921c9c386..000000000 --- a/vanetza/asn1/its/AltitudeValue.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "AltitudeValue.h" - -int -AltitudeValue_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 >= -100000L && value <= 800001L)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_AltitudeValue_constr_1 CC_NOTUSED = { - { 4, 0 } /* (-100000..800001) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_AltitudeValue_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 20, -1, -100000, 800001 } /* (-100000..800001) */, - { 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_AltitudeValue_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_AltitudeValue = { - "AltitudeValue", - "AltitudeValue", - &asn_OP_NativeInteger, - asn_DEF_AltitudeValue_tags_1, - sizeof(asn_DEF_AltitudeValue_tags_1) - /sizeof(asn_DEF_AltitudeValue_tags_1[0]), /* 1 */ - asn_DEF_AltitudeValue_tags_1, /* Same as above */ - sizeof(asn_DEF_AltitudeValue_tags_1) - /sizeof(asn_DEF_AltitudeValue_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_AltitudeValue_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_AltitudeValue_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - AltitudeValue_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/AngleConfidence.c b/vanetza/asn1/its/AngleConfidence.c deleted file mode 100644 index 17893523f..000000000 --- a/vanetza/asn1/its/AngleConfidence.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CPM-PDU-Descriptions" - * found in "asn1/TR103562v211-CPM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "AngleConfidence.h" - -int -AngleConfidence_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 <= 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_AngleConfidence_constr_1 CC_NOTUSED = { - { 1, 1 } /* (1..127) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_AngleConfidence_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 1, 127 } /* (1..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_AngleConfidence_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_AngleConfidence = { - "AngleConfidence", - "AngleConfidence", - &asn_OP_NativeInteger, - asn_DEF_AngleConfidence_tags_1, - sizeof(asn_DEF_AngleConfidence_tags_1) - /sizeof(asn_DEF_AngleConfidence_tags_1[0]), /* 1 */ - asn_DEF_AngleConfidence_tags_1, /* Same as above */ - sizeof(asn_DEF_AngleConfidence_tags_1) - /sizeof(asn_DEF_AngleConfidence_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_AngleConfidence_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_AngleConfidence_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - AngleConfidence_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/BasicContainer.c b/vanetza/asn1/its/BasicContainer.c deleted file mode 100644 index ef8a1ef07..000000000 --- a/vanetza/asn1/its/BasicContainer.c +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CAM-PDU-Descriptions" - * found in "asn1/EN302637-2v141-CAM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "BasicContainer.h" - -asn_TYPE_member_t asn_MBR_BasicContainer_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct BasicContainer, stationType), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_StationType, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "stationType" - }, - { ATF_NOFLAGS, 0, offsetof(struct BasicContainer, referencePosition), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ReferencePosition, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "referencePosition" - }, -}; -static const ber_tlv_tag_t asn_DEF_BasicContainer_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_BasicContainer_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* stationType */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* referencePosition */ -}; -asn_SEQUENCE_specifics_t asn_SPC_BasicContainer_specs_1 = { - sizeof(struct BasicContainer), - offsetof(struct BasicContainer, _asn_ctx), - asn_MAP_BasicContainer_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_BasicContainer = { - "BasicContainer", - "BasicContainer", - &asn_OP_SEQUENCE, - asn_DEF_BasicContainer_tags_1, - sizeof(asn_DEF_BasicContainer_tags_1) - /sizeof(asn_DEF_BasicContainer_tags_1[0]), /* 1 */ - asn_DEF_BasicContainer_tags_1, /* Same as above */ - sizeof(asn_DEF_BasicContainer_tags_1) - /sizeof(asn_DEF_BasicContainer_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_BasicContainer_1, - 2, /* Elements count */ - &asn_SPC_BasicContainer_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/BasicVehicleContainerHighFrequency.c b/vanetza/asn1/its/BasicVehicleContainerHighFrequency.c deleted file mode 100644 index 49b0f5478..000000000 --- a/vanetza/asn1/its/BasicVehicleContainerHighFrequency.c +++ /dev/null @@ -1,338 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CAM-PDU-Descriptions" - * found in "asn1/EN302637-2v141-CAM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "BasicVehicleContainerHighFrequency.h" - -asn_TYPE_member_t asn_MBR_BasicVehicleContainerHighFrequency_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerHighFrequency, heading), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Heading, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "heading" - }, - { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerHighFrequency, speed), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Speed, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "speed" - }, - { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerHighFrequency, driveDirection), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_DriveDirection, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "driveDirection" - }, - { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerHighFrequency, vehicleLength), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_VehicleLength, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "vehicleLength" - }, - { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerHighFrequency, vehicleWidth), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_VehicleWidth, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "vehicleWidth" - }, - { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerHighFrequency, longitudinalAcceleration), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LongitudinalAcceleration, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "longitudinalAcceleration" - }, - { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerHighFrequency, curvature), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Curvature, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "curvature" - }, - { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerHighFrequency, curvatureCalculationMode), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CurvatureCalculationMode, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "curvatureCalculationMode" - }, - { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerHighFrequency, yawRate), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_YawRate, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "yawRate" - }, - { ATF_POINTER, 7, offsetof(struct BasicVehicleContainerHighFrequency, accelerationControl), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AccelerationControl, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "accelerationControl" - }, - { ATF_POINTER, 6, offsetof(struct BasicVehicleContainerHighFrequency, lanePosition), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LanePosition, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "lanePosition" - }, - { ATF_POINTER, 5, offsetof(struct BasicVehicleContainerHighFrequency, steeringWheelAngle), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SteeringWheelAngle, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "steeringWheelAngle" - }, - { ATF_POINTER, 4, offsetof(struct BasicVehicleContainerHighFrequency, lateralAcceleration), - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LateralAcceleration, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "lateralAcceleration" - }, - { ATF_POINTER, 3, offsetof(struct BasicVehicleContainerHighFrequency, verticalAcceleration), - (ASN_TAG_CLASS_CONTEXT | (13 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_VerticalAcceleration, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "verticalAcceleration" - }, - { ATF_POINTER, 2, offsetof(struct BasicVehicleContainerHighFrequency, performanceClass), - (ASN_TAG_CLASS_CONTEXT | (14 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PerformanceClass, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "performanceClass" - }, - { ATF_POINTER, 1, offsetof(struct BasicVehicleContainerHighFrequency, cenDsrcTollingZone), - (ASN_TAG_CLASS_CONTEXT | (15 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CenDsrcTollingZone, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "cenDsrcTollingZone" - }, -}; -static const int asn_MAP_BasicVehicleContainerHighFrequency_oms_1[] = { 9, 10, 11, 12, 13, 14, 15 }; -static const ber_tlv_tag_t asn_DEF_BasicVehicleContainerHighFrequency_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_BasicVehicleContainerHighFrequency_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* heading */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* speed */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* driveDirection */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* vehicleLength */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* vehicleWidth */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* longitudinalAcceleration */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* curvature */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* curvatureCalculationMode */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* yawRate */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* accelerationControl */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* lanePosition */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* steeringWheelAngle */ - { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* lateralAcceleration */ - { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* verticalAcceleration */ - { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* performanceClass */ - { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 } /* cenDsrcTollingZone */ -}; -asn_SEQUENCE_specifics_t asn_SPC_BasicVehicleContainerHighFrequency_specs_1 = { - sizeof(struct BasicVehicleContainerHighFrequency), - offsetof(struct BasicVehicleContainerHighFrequency, _asn_ctx), - asn_MAP_BasicVehicleContainerHighFrequency_tag2el_1, - 16, /* Count of tags in the map */ - asn_MAP_BasicVehicleContainerHighFrequency_oms_1, /* Optional members */ - 7, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_BasicVehicleContainerHighFrequency = { - "BasicVehicleContainerHighFrequency", - "BasicVehicleContainerHighFrequency", - &asn_OP_SEQUENCE, - asn_DEF_BasicVehicleContainerHighFrequency_tags_1, - sizeof(asn_DEF_BasicVehicleContainerHighFrequency_tags_1) - /sizeof(asn_DEF_BasicVehicleContainerHighFrequency_tags_1[0]), /* 1 */ - asn_DEF_BasicVehicleContainerHighFrequency_tags_1, /* Same as above */ - sizeof(asn_DEF_BasicVehicleContainerHighFrequency_tags_1) - /sizeof(asn_DEF_BasicVehicleContainerHighFrequency_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_BasicVehicleContainerHighFrequency_1, - 16, /* Elements count */ - &asn_SPC_BasicVehicleContainerHighFrequency_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/BasicVehicleContainerLowFrequency.c b/vanetza/asn1/its/BasicVehicleContainerLowFrequency.c deleted file mode 100644 index 33c393080..000000000 --- a/vanetza/asn1/its/BasicVehicleContainerLowFrequency.c +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CAM-PDU-Descriptions" - * found in "asn1/EN302637-2v141-CAM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "BasicVehicleContainerLowFrequency.h" - -asn_TYPE_member_t asn_MBR_BasicVehicleContainerLowFrequency_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerLowFrequency, vehicleRole), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_VehicleRole, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "vehicleRole" - }, - { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerLowFrequency, exteriorLights), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ExteriorLights, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "exteriorLights" - }, - { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerLowFrequency, pathHistory), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PathHistory, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "pathHistory" - }, -}; -static const ber_tlv_tag_t asn_DEF_BasicVehicleContainerLowFrequency_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_BasicVehicleContainerLowFrequency_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* vehicleRole */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* exteriorLights */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* pathHistory */ -}; -asn_SEQUENCE_specifics_t asn_SPC_BasicVehicleContainerLowFrequency_specs_1 = { - sizeof(struct BasicVehicleContainerLowFrequency), - offsetof(struct BasicVehicleContainerLowFrequency, _asn_ctx), - asn_MAP_BasicVehicleContainerLowFrequency_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_BasicVehicleContainerLowFrequency = { - "BasicVehicleContainerLowFrequency", - "BasicVehicleContainerLowFrequency", - &asn_OP_SEQUENCE, - asn_DEF_BasicVehicleContainerLowFrequency_tags_1, - sizeof(asn_DEF_BasicVehicleContainerLowFrequency_tags_1) - /sizeof(asn_DEF_BasicVehicleContainerLowFrequency_tags_1[0]), /* 1 */ - asn_DEF_BasicVehicleContainerLowFrequency_tags_1, /* Same as above */ - sizeof(asn_DEF_BasicVehicleContainerLowFrequency_tags_1) - /sizeof(asn_DEF_BasicVehicleContainerLowFrequency_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_BasicVehicleContainerLowFrequency_1, - 3, /* Elements count */ - &asn_SPC_BasicVehicleContainerLowFrequency_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/CAM.c b/vanetza/asn1/its/CAM.c deleted file mode 100644 index e40743340..000000000 --- a/vanetza/asn1/its/CAM.c +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CAM-PDU-Descriptions" - * found in "asn1/EN302637-2v141-CAM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "CAM.h" - -static asn_TYPE_member_t asn_MBR_CAM_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct CAM, header), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ItsPduHeader, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "header" - }, - { ATF_NOFLAGS, 0, offsetof(struct CAM, cam), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CoopAwareness, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "cam" - }, -}; -static const ber_tlv_tag_t asn_DEF_CAM_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_CAM_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* header */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* cam */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_CAM_specs_1 = { - sizeof(struct CAM), - offsetof(struct CAM, _asn_ctx), - asn_MAP_CAM_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_CAM = { - "CAM", - "CAM", - &asn_OP_SEQUENCE, - asn_DEF_CAM_tags_1, - sizeof(asn_DEF_CAM_tags_1) - /sizeof(asn_DEF_CAM_tags_1[0]), /* 1 */ - asn_DEF_CAM_tags_1, /* Same as above */ - sizeof(asn_DEF_CAM_tags_1) - /sizeof(asn_DEF_CAM_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_CAM_1, - 2, /* Elements count */ - &asn_SPC_CAM_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/CamParameters.c b/vanetza/asn1/its/CamParameters.c deleted file mode 100644 index 29413a18e..000000000 --- a/vanetza/asn1/its/CamParameters.c +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CAM-PDU-Descriptions" - * found in "asn1/EN302637-2v141-CAM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "CamParameters.h" - -asn_TYPE_member_t asn_MBR_CamParameters_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct CamParameters, basicContainer), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BasicContainer, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "basicContainer" - }, - { ATF_NOFLAGS, 0, offsetof(struct CamParameters, highFrequencyContainer), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_HighFrequencyContainer, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "highFrequencyContainer" - }, - { ATF_POINTER, 2, offsetof(struct CamParameters, lowFrequencyContainer), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_LowFrequencyContainer, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "lowFrequencyContainer" - }, - { ATF_POINTER, 1, offsetof(struct CamParameters, specialVehicleContainer), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_SpecialVehicleContainer, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "specialVehicleContainer" - }, -}; -static const int asn_MAP_CamParameters_oms_1[] = { 2, 3 }; -static const ber_tlv_tag_t asn_DEF_CamParameters_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_CamParameters_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* basicContainer */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* highFrequencyContainer */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* lowFrequencyContainer */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* specialVehicleContainer */ -}; -asn_SEQUENCE_specifics_t asn_SPC_CamParameters_specs_1 = { - sizeof(struct CamParameters), - offsetof(struct CamParameters, _asn_ctx), - asn_MAP_CamParameters_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_CamParameters_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_CamParameters = { - "CamParameters", - "CamParameters", - &asn_OP_SEQUENCE, - asn_DEF_CamParameters_tags_1, - sizeof(asn_DEF_CamParameters_tags_1) - /sizeof(asn_DEF_CamParameters_tags_1[0]), /* 1 */ - asn_DEF_CamParameters_tags_1, /* Same as above */ - sizeof(asn_DEF_CamParameters_tags_1) - /sizeof(asn_DEF_CamParameters_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_CamParameters_1, - 4, /* Elements count */ - &asn_SPC_CamParameters_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/CartesianAngle.c b/vanetza/asn1/its/CartesianAngle.c deleted file mode 100644 index 9e1da0c64..000000000 --- a/vanetza/asn1/its/CartesianAngle.c +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CPM-PDU-Descriptions" - * found in "asn1/TR103562v211-CPM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "CartesianAngle.h" - -asn_TYPE_member_t asn_MBR_CartesianAngle_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct CartesianAngle, value), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CartesianAngleValue, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "value" - }, - { ATF_NOFLAGS, 0, offsetof(struct CartesianAngle, confidence), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AngleConfidence, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "confidence" - }, -}; -static const ber_tlv_tag_t asn_DEF_CartesianAngle_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_CartesianAngle_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* value */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* confidence */ -}; -asn_SEQUENCE_specifics_t asn_SPC_CartesianAngle_specs_1 = { - sizeof(struct CartesianAngle), - offsetof(struct CartesianAngle, _asn_ctx), - asn_MAP_CartesianAngle_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_CartesianAngle = { - "CartesianAngle", - "CartesianAngle", - &asn_OP_SEQUENCE, - asn_DEF_CartesianAngle_tags_1, - sizeof(asn_DEF_CartesianAngle_tags_1) - /sizeof(asn_DEF_CartesianAngle_tags_1[0]), /* 1 */ - asn_DEF_CartesianAngle_tags_1, /* Same as above */ - sizeof(asn_DEF_CartesianAngle_tags_1) - /sizeof(asn_DEF_CartesianAngle_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_CartesianAngle_1, - 2, /* Elements count */ - &asn_SPC_CartesianAngle_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/CartesianAngleValue.c b/vanetza/asn1/its/CartesianAngleValue.c deleted file mode 100644 index 264c9015f..000000000 --- a/vanetza/asn1/its/CartesianAngleValue.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CPM-PDU-Descriptions" - * found in "asn1/TR103562v211-CPM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "CartesianAngleValue.h" - -int -CartesianAngleValue_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 <= 3601L)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_CartesianAngleValue_constr_1 CC_NOTUSED = { - { 2, 1 } /* (0..3601) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_CartesianAngleValue_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 3601 } /* (0..3601) */, - { 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_CartesianAngleValue_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_CartesianAngleValue = { - "CartesianAngleValue", - "CartesianAngleValue", - &asn_OP_NativeInteger, - asn_DEF_CartesianAngleValue_tags_1, - sizeof(asn_DEF_CartesianAngleValue_tags_1) - /sizeof(asn_DEF_CartesianAngleValue_tags_1[0]), /* 1 */ - asn_DEF_CartesianAngleValue_tags_1, /* Same as above */ - sizeof(asn_DEF_CartesianAngleValue_tags_1) - /sizeof(asn_DEF_CartesianAngleValue_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_CartesianAngleValue_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_CartesianAngleValue_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - CartesianAngleValue_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/CauseCode.c b/vanetza/asn1/its/CauseCode.c deleted file mode 100644 index 09a5811d3..000000000 --- a/vanetza/asn1/its/CauseCode.c +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "CauseCode.h" - -asn_TYPE_member_t asn_MBR_CauseCode_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct CauseCode, causeCode), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CauseCodeType, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_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" - }, - { ATF_NOFLAGS, 0, offsetof(struct CauseCode, subCauseCode), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SubCauseCodeType, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "subCauseCode" - }, -}; -static const ber_tlv_tag_t asn_DEF_CauseCode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_CauseCode_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* causeCode */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* subCauseCode */ -}; -asn_SEQUENCE_specifics_t asn_SPC_CauseCode_specs_1 = { - sizeof(struct CauseCode), - offsetof(struct CauseCode, _asn_ctx), - asn_MAP_CauseCode_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_CauseCode = { - "CauseCode", - "CauseCode", - &asn_OP_SEQUENCE, - 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) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_CauseCode_1, - 2, /* Elements count */ - &asn_SPC_CauseCode_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/CauseCodeType.c b/vanetza/asn1/its/CauseCodeType.c deleted file mode 100644 index 8de15d262..000000000 --- a/vanetza/asn1/its/CauseCodeType.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "CauseCodeType.h" - -int -CauseCodeType_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_CauseCodeType_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_CauseCodeType_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_CauseCodeType_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_CauseCodeType = { - "CauseCodeType", - "CauseCodeType", - &asn_OP_NativeInteger, - asn_DEF_CauseCodeType_tags_1, - sizeof(asn_DEF_CauseCodeType_tags_1) - /sizeof(asn_DEF_CauseCodeType_tags_1[0]), /* 1 */ - asn_DEF_CauseCodeType_tags_1, /* Same as above */ - sizeof(asn_DEF_CauseCodeType_tags_1) - /sizeof(asn_DEF_CauseCodeType_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_CauseCodeType_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_CauseCodeType_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - CauseCodeType_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/CenDsrcTollingZone.c b/vanetza/asn1/its/CenDsrcTollingZone.c deleted file mode 100644 index 88b4ed77c..000000000 --- a/vanetza/asn1/its/CenDsrcTollingZone.c +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "CenDsrcTollingZone.h" - -asn_TYPE_member_t asn_MBR_CenDsrcTollingZone_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct CenDsrcTollingZone, protectedZoneLatitude), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Latitude, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "protectedZoneLatitude" - }, - { ATF_NOFLAGS, 0, offsetof(struct CenDsrcTollingZone, protectedZoneLongitude), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Longitude, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "protectedZoneLongitude" - }, - { ATF_POINTER, 1, offsetof(struct CenDsrcTollingZone, cenDsrcTollingZoneID), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CenDsrcTollingZoneID, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "cenDsrcTollingZoneID" - }, -}; -static const int asn_MAP_CenDsrcTollingZone_oms_1[] = { 2 }; -static const ber_tlv_tag_t asn_DEF_CenDsrcTollingZone_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_CenDsrcTollingZone_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* protectedZoneLatitude */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* protectedZoneLongitude */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* cenDsrcTollingZoneID */ -}; -asn_SEQUENCE_specifics_t asn_SPC_CenDsrcTollingZone_specs_1 = { - sizeof(struct CenDsrcTollingZone), - offsetof(struct CenDsrcTollingZone, _asn_ctx), - asn_MAP_CenDsrcTollingZone_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_CenDsrcTollingZone_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_CenDsrcTollingZone = { - "CenDsrcTollingZone", - "CenDsrcTollingZone", - &asn_OP_SEQUENCE, - asn_DEF_CenDsrcTollingZone_tags_1, - sizeof(asn_DEF_CenDsrcTollingZone_tags_1) - /sizeof(asn_DEF_CenDsrcTollingZone_tags_1[0]), /* 1 */ - asn_DEF_CenDsrcTollingZone_tags_1, /* Same as above */ - sizeof(asn_DEF_CenDsrcTollingZone_tags_1) - /sizeof(asn_DEF_CenDsrcTollingZone_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_CenDsrcTollingZone_1, - 3, /* Elements count */ - &asn_SPC_CenDsrcTollingZone_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/CenDsrcTollingZoneID.c b/vanetza/asn1/its/CenDsrcTollingZoneID.c deleted file mode 100644 index f3da3c029..000000000 --- a/vanetza/asn1/its/CenDsrcTollingZoneID.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "CenDsrcTollingZoneID.h" - -int -CenDsrcTollingZoneID_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 <= 134217727L)) { - /* 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 ProtectedZoneID, - * so here we adjust the DEF accordingly. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_CenDsrcTollingZoneID_constr_1 CC_NOTUSED = { - { 4, 1 } /* (0..134217727) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_CenDsrcTollingZoneID_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 27, -1, 0, 134217727 } /* (0..134217727) */, - { 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_CenDsrcTollingZoneID_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_CenDsrcTollingZoneID = { - "CenDsrcTollingZoneID", - "CenDsrcTollingZoneID", - &asn_OP_NativeInteger, - asn_DEF_CenDsrcTollingZoneID_tags_1, - sizeof(asn_DEF_CenDsrcTollingZoneID_tags_1) - /sizeof(asn_DEF_CenDsrcTollingZoneID_tags_1[0]), /* 1 */ - asn_DEF_CenDsrcTollingZoneID_tags_1, /* Same as above */ - sizeof(asn_DEF_CenDsrcTollingZoneID_tags_1) - /sizeof(asn_DEF_CenDsrcTollingZoneID_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_CenDsrcTollingZoneID_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_CenDsrcTollingZoneID_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - CenDsrcTollingZoneID_constraint - }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/ClosedLanes.c b/vanetza/asn1/its/ClosedLanes.c deleted file mode 100644 index 2c772edae..000000000 --- a/vanetza/asn1/its/ClosedLanes.c +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "ClosedLanes.h" - -asn_TYPE_member_t asn_MBR_ClosedLanes_1[] = { - { ATF_POINTER, 3, offsetof(struct ClosedLanes, innerhardShoulderStatus), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_HardShoulderStatus, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "innerhardShoulderStatus" - }, - { ATF_POINTER, 2, offsetof(struct ClosedLanes, outerhardShoulderStatus), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_HardShoulderStatus, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "outerhardShoulderStatus" - }, - { ATF_POINTER, 1, offsetof(struct ClosedLanes, drivingLaneStatus), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_DrivingLaneStatus, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "drivingLaneStatus" - }, -}; -static const int asn_MAP_ClosedLanes_oms_1[] = { 0, 1, 2 }; -static const ber_tlv_tag_t asn_DEF_ClosedLanes_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ClosedLanes_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* innerhardShoulderStatus */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* outerhardShoulderStatus */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* drivingLaneStatus */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ClosedLanes_specs_1 = { - sizeof(struct ClosedLanes), - offsetof(struct ClosedLanes, _asn_ctx), - asn_MAP_ClosedLanes_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_ClosedLanes_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 3, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ClosedLanes = { - "ClosedLanes", - "ClosedLanes", - &asn_OP_SEQUENCE, - asn_DEF_ClosedLanes_tags_1, - sizeof(asn_DEF_ClosedLanes_tags_1) - /sizeof(asn_DEF_ClosedLanes_tags_1[0]), /* 1 */ - asn_DEF_ClosedLanes_tags_1, /* Same as above */ - sizeof(asn_DEF_ClosedLanes_tags_1) - /sizeof(asn_DEF_ClosedLanes_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_ClosedLanes_1, - 3, /* Elements count */ - &asn_SPC_ClosedLanes_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/CollectivePerceptionMessage.c b/vanetza/asn1/its/CollectivePerceptionMessage.c deleted file mode 100644 index 736d83301..000000000 --- a/vanetza/asn1/its/CollectivePerceptionMessage.c +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CPM-PDU-Descriptions" - * found in "asn1/TR103562v211-CPM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "CollectivePerceptionMessage.h" - -asn_TYPE_member_t asn_MBR_CollectivePerceptionMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct CollectivePerceptionMessage, generationDeltaTime), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GenerationDeltaTime, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "generationDeltaTime" - }, - { ATF_NOFLAGS, 0, offsetof(struct CollectivePerceptionMessage, cpmParameters), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CpmParameters, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "cpmParameters" - }, -}; -static const ber_tlv_tag_t asn_DEF_CollectivePerceptionMessage_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_CollectivePerceptionMessage_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* generationDeltaTime */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* cpmParameters */ -}; -asn_SEQUENCE_specifics_t asn_SPC_CollectivePerceptionMessage_specs_1 = { - sizeof(struct CollectivePerceptionMessage), - offsetof(struct CollectivePerceptionMessage, _asn_ctx), - asn_MAP_CollectivePerceptionMessage_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_CollectivePerceptionMessage = { - "CollectivePerceptionMessage", - "CollectivePerceptionMessage", - &asn_OP_SEQUENCE, - asn_DEF_CollectivePerceptionMessage_tags_1, - sizeof(asn_DEF_CollectivePerceptionMessage_tags_1) - /sizeof(asn_DEF_CollectivePerceptionMessage_tags_1[0]), /* 1 */ - asn_DEF_CollectivePerceptionMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_CollectivePerceptionMessage_tags_1) - /sizeof(asn_DEF_CollectivePerceptionMessage_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_CollectivePerceptionMessage_1, - 2, /* Elements count */ - &asn_SPC_CollectivePerceptionMessage_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/CollisionRiskSubCauseCode.c b/vanetza/asn1/its/CollisionRiskSubCauseCode.c deleted file mode 100644 index 7561f9cfe..000000000 --- a/vanetza/asn1/its/CollisionRiskSubCauseCode.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "CollisionRiskSubCauseCode.h" - -int -CollisionRiskSubCauseCode_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_CollisionRiskSubCauseCode_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_type_CollisionRiskSubCauseCode_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_CollisionRiskSubCauseCode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_CollisionRiskSubCauseCode = { - "CollisionRiskSubCauseCode", - "CollisionRiskSubCauseCode", - &asn_OP_NativeInteger, - asn_DEF_CollisionRiskSubCauseCode_tags_1, - sizeof(asn_DEF_CollisionRiskSubCauseCode_tags_1) - /sizeof(asn_DEF_CollisionRiskSubCauseCode_tags_1[0]), /* 1 */ - asn_DEF_CollisionRiskSubCauseCode_tags_1, /* Same as above */ - sizeof(asn_DEF_CollisionRiskSubCauseCode_tags_1) - /sizeof(asn_DEF_CollisionRiskSubCauseCode_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_CollisionRiskSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_CollisionRiskSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - CollisionRiskSubCauseCode_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/CountryCode.c b/vanetza/asn1/its/CountryCode.c deleted file mode 100644 index 0516534d2..000000000 --- a/vanetza/asn1/its/CountryCode.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "AVIAEINumberingAndDataStructures" - * found in "build.asn1/iso/ISO14816.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "CountryCode.h" - -int -CountryCode_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 == 10UL)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_CountryCode_constr_1 CC_NOTUSED = { - { 0, 0 }, - 10 /* (SIZE(10..10)) */}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_CountryCode_constr_1 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 const ber_tlv_tag_t asn_DEF_CountryCode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_CountryCode = { - "CountryCode", - "CountryCode", - &asn_OP_BIT_STRING, - asn_DEF_CountryCode_tags_1, - sizeof(asn_DEF_CountryCode_tags_1) - /sizeof(asn_DEF_CountryCode_tags_1[0]), /* 1 */ - asn_DEF_CountryCode_tags_1, /* Same as above */ - sizeof(asn_DEF_CountryCode_tags_1) - /sizeof(asn_DEF_CountryCode_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_CountryCode_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_CountryCode_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - CountryCode_constraint - }, - 0, 0, /* No members */ - &asn_SPC_BIT_STRING_specs /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/Curvature.c b/vanetza/asn1/its/Curvature.c deleted file mode 100644 index 0e622d571..000000000 --- a/vanetza/asn1/its/Curvature.c +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "Curvature.h" - -asn_TYPE_member_t asn_MBR_Curvature_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Curvature, curvatureValue), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CurvatureValue, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "curvatureValue" - }, - { ATF_NOFLAGS, 0, offsetof(struct Curvature, curvatureConfidence), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CurvatureConfidence, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "curvatureConfidence" - }, -}; -static const ber_tlv_tag_t asn_DEF_Curvature_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Curvature_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* curvatureValue */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* curvatureConfidence */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Curvature_specs_1 = { - sizeof(struct Curvature), - offsetof(struct Curvature, _asn_ctx), - asn_MAP_Curvature_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_Curvature = { - "Curvature", - "Curvature", - &asn_OP_SEQUENCE, - asn_DEF_Curvature_tags_1, - sizeof(asn_DEF_Curvature_tags_1) - /sizeof(asn_DEF_Curvature_tags_1[0]), /* 1 */ - asn_DEF_Curvature_tags_1, /* Same as above */ - sizeof(asn_DEF_Curvature_tags_1) - /sizeof(asn_DEF_Curvature_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_Curvature_1, - 2, /* Elements count */ - &asn_SPC_Curvature_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/CurvatureCalculationMode.c b/vanetza/asn1/its/CurvatureCalculationMode.c deleted file mode 100644 index 05ffff1ac..000000000 --- a/vanetza/asn1/its/CurvatureCalculationMode.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "CurvatureCalculationMode.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_CurvatureCalculationMode_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_CurvatureCalculationMode_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_CurvatureCalculationMode_value2enum_1[] = { - { 0, 11, "yawRateUsed" }, - { 1, 14, "yawRateNotUsed" }, - { 2, 11, "unavailable" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_CurvatureCalculationMode_enum2value_1[] = { - 2, /* unavailable(2) */ - 1, /* yawRateNotUsed(1) */ - 0 /* yawRateUsed(0) */ - /* This list is extensible */ -}; -const asn_INTEGER_specifics_t asn_SPC_CurvatureCalculationMode_specs_1 = { - asn_MAP_CurvatureCalculationMode_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_CurvatureCalculationMode_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_CurvatureCalculationMode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_CurvatureCalculationMode = { - "CurvatureCalculationMode", - "CurvatureCalculationMode", - &asn_OP_NativeEnumerated, - asn_DEF_CurvatureCalculationMode_tags_1, - sizeof(asn_DEF_CurvatureCalculationMode_tags_1) - /sizeof(asn_DEF_CurvatureCalculationMode_tags_1[0]), /* 1 */ - asn_DEF_CurvatureCalculationMode_tags_1, /* Same as above */ - sizeof(asn_DEF_CurvatureCalculationMode_tags_1) - /sizeof(asn_DEF_CurvatureCalculationMode_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_CurvatureCalculationMode_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_CurvatureCalculationMode_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - NativeEnumerated_constraint - }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_CurvatureCalculationMode_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/CurvatureConfidence.c b/vanetza/asn1/its/CurvatureConfidence.c deleted file mode 100644 index 98ffd0e44..000000000 --- a/vanetza/asn1/its/CurvatureConfidence.c +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "CurvatureConfidence.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_CurvatureConfidence_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_CurvatureConfidence_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 asn_INTEGER_enum_map_t asn_MAP_CurvatureConfidence_value2enum_1[] = { - { 0, 19, "onePerMeter-0-00002" }, - { 1, 18, "onePerMeter-0-0001" }, - { 2, 18, "onePerMeter-0-0005" }, - { 3, 17, "onePerMeter-0-002" }, - { 4, 16, "onePerMeter-0-01" }, - { 5, 15, "onePerMeter-0-1" }, - { 6, 10, "outOfRange" }, - { 7, 11, "unavailable" } -}; -static const unsigned int asn_MAP_CurvatureConfidence_enum2value_1[] = { - 0, /* onePerMeter-0-00002(0) */ - 1, /* onePerMeter-0-0001(1) */ - 2, /* onePerMeter-0-0005(2) */ - 3, /* onePerMeter-0-002(3) */ - 4, /* onePerMeter-0-01(4) */ - 5, /* onePerMeter-0-1(5) */ - 6, /* outOfRange(6) */ - 7 /* unavailable(7) */ -}; -const asn_INTEGER_specifics_t asn_SPC_CurvatureConfidence_specs_1 = { - asn_MAP_CurvatureConfidence_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_CurvatureConfidence_enum2value_1, /* 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_CurvatureConfidence_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_CurvatureConfidence = { - "CurvatureConfidence", - "CurvatureConfidence", - &asn_OP_NativeEnumerated, - asn_DEF_CurvatureConfidence_tags_1, - sizeof(asn_DEF_CurvatureConfidence_tags_1) - /sizeof(asn_DEF_CurvatureConfidence_tags_1[0]), /* 1 */ - asn_DEF_CurvatureConfidence_tags_1, /* Same as above */ - sizeof(asn_DEF_CurvatureConfidence_tags_1) - /sizeof(asn_DEF_CurvatureConfidence_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_CurvatureConfidence_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_CurvatureConfidence_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - NativeEnumerated_constraint - }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_CurvatureConfidence_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/CurvatureValue.c b/vanetza/asn1/its/CurvatureValue.c deleted file mode 100644 index fd8e9a348..000000000 --- a/vanetza/asn1/its/CurvatureValue.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "CurvatureValue.h" - -int -CurvatureValue_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 >= -1023L && 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; - } -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_CurvatureValue_constr_1 CC_NOTUSED = { - { 2, 0 } /* (-1023..1023) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_CurvatureValue_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 11, 11, -1023, 1023 } /* (-1023..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 ber_tlv_tag_t asn_DEF_CurvatureValue_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_CurvatureValue = { - "CurvatureValue", - "CurvatureValue", - &asn_OP_NativeInteger, - asn_DEF_CurvatureValue_tags_1, - sizeof(asn_DEF_CurvatureValue_tags_1) - /sizeof(asn_DEF_CurvatureValue_tags_1[0]), /* 1 */ - asn_DEF_CurvatureValue_tags_1, /* Same as above */ - sizeof(asn_DEF_CurvatureValue_tags_1) - /sizeof(asn_DEF_CurvatureValue_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_CurvatureValue_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_CurvatureValue_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - CurvatureValue_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/DENM.c b/vanetza/asn1/its/DENM.c deleted file mode 100644 index d67deb26a..000000000 --- a/vanetza/asn1/its/DENM.c +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "DENM-PDU-Descriptions" - * found in "asn1/EN302637-3v131-DENM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "DENM.h" - -static asn_TYPE_member_t asn_MBR_DENM_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct DENM, header), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ItsPduHeader, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "header" - }, - { ATF_NOFLAGS, 0, offsetof(struct DENM, denm), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_DecentralizedEnvironmentalNotificationMessage, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "denm" - }, -}; -static const ber_tlv_tag_t asn_DEF_DENM_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_DENM_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* header */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* denm */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_DENM_specs_1 = { - sizeof(struct DENM), - offsetof(struct DENM, _asn_ctx), - asn_MAP_DENM_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_DENM = { - "DENM", - "DENM", - &asn_OP_SEQUENCE, - asn_DEF_DENM_tags_1, - sizeof(asn_DEF_DENM_tags_1) - /sizeof(asn_DEF_DENM_tags_1[0]), /* 1 */ - asn_DEF_DENM_tags_1, /* Same as above */ - sizeof(asn_DEF_DENM_tags_1) - /sizeof(asn_DEF_DENM_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_DENM_1, - 2, /* Elements count */ - &asn_SPC_DENM_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/DangerousEndOfQueueSubCauseCode.c b/vanetza/asn1/its/DangerousEndOfQueueSubCauseCode.c deleted file mode 100644 index 6f99da05b..000000000 --- a/vanetza/asn1/its/DangerousEndOfQueueSubCauseCode.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "DangerousEndOfQueueSubCauseCode.h" - -int -DangerousEndOfQueueSubCauseCode_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_DangerousEndOfQueueSubCauseCode_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_type_DangerousEndOfQueueSubCauseCode_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_DangerousEndOfQueueSubCauseCode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_DangerousEndOfQueueSubCauseCode = { - "DangerousEndOfQueueSubCauseCode", - "DangerousEndOfQueueSubCauseCode", - &asn_OP_NativeInteger, - asn_DEF_DangerousEndOfQueueSubCauseCode_tags_1, - sizeof(asn_DEF_DangerousEndOfQueueSubCauseCode_tags_1) - /sizeof(asn_DEF_DangerousEndOfQueueSubCauseCode_tags_1[0]), /* 1 */ - asn_DEF_DangerousEndOfQueueSubCauseCode_tags_1, /* Same as above */ - sizeof(asn_DEF_DangerousEndOfQueueSubCauseCode_tags_1) - /sizeof(asn_DEF_DangerousEndOfQueueSubCauseCode_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_DangerousEndOfQueueSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_DangerousEndOfQueueSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - DangerousEndOfQueueSubCauseCode_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/DangerousGoodsBasic.c b/vanetza/asn1/its/DangerousGoodsBasic.c deleted file mode 100644 index ea641d806..000000000 --- a/vanetza/asn1/its/DangerousGoodsBasic.c +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "DangerousGoodsBasic.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_DangerousGoodsBasic_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_DangerousGoodsBasic_constr_1 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) */ -static const asn_INTEGER_enum_map_t asn_MAP_DangerousGoodsBasic_value2enum_1[] = { - { 0, 11, "explosives1" }, - { 1, 11, "explosives2" }, - { 2, 11, "explosives3" }, - { 3, 11, "explosives4" }, - { 4, 11, "explosives5" }, - { 5, 11, "explosives6" }, - { 6, 14, "flammableGases" }, - { 7, 17, "nonFlammableGases" }, - { 8, 10, "toxicGases" }, - { 9, 16, "flammableLiquids" }, - { 10, 15, "flammableSolids" }, - { 11, 39, "substancesLiableToSpontaneousCombustion" }, - { 12, 52, "substancesEmittingFlammableGasesUponContactWithWater" }, - { 13, 19, "oxidizingSubstances" }, - { 14, 16, "organicPeroxides" }, - { 15, 15, "toxicSubstances" }, - { 16, 20, "infectiousSubstances" }, - { 17, 19, "radioactiveMaterial" }, - { 18, 19, "corrosiveSubstances" }, - { 19, 32, "miscellaneousDangerousSubstances" } -}; -static const unsigned int asn_MAP_DangerousGoodsBasic_enum2value_1[] = { - 18, /* corrosiveSubstances(18) */ - 0, /* explosives1(0) */ - 1, /* explosives2(1) */ - 2, /* explosives3(2) */ - 3, /* explosives4(3) */ - 4, /* explosives5(4) */ - 5, /* explosives6(5) */ - 6, /* flammableGases(6) */ - 9, /* flammableLiquids(9) */ - 10, /* flammableSolids(10) */ - 16, /* infectiousSubstances(16) */ - 19, /* miscellaneousDangerousSubstances(19) */ - 7, /* nonFlammableGases(7) */ - 14, /* organicPeroxides(14) */ - 13, /* oxidizingSubstances(13) */ - 17, /* radioactiveMaterial(17) */ - 12, /* substancesEmittingFlammableGasesUponContactWithWater(12) */ - 11, /* substancesLiableToSpontaneousCombustion(11) */ - 8, /* toxicGases(8) */ - 15 /* toxicSubstances(15) */ -}; -const asn_INTEGER_specifics_t asn_SPC_DangerousGoodsBasic_specs_1 = { - asn_MAP_DangerousGoodsBasic_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_DangerousGoodsBasic_enum2value_1, /* N => "tag"; sorted by N */ - 20, /* Number of elements in the maps */ - 0, /* Enumeration is not extensible */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_DangerousGoodsBasic_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_DangerousGoodsBasic = { - "DangerousGoodsBasic", - "DangerousGoodsBasic", - &asn_OP_NativeEnumerated, - asn_DEF_DangerousGoodsBasic_tags_1, - sizeof(asn_DEF_DangerousGoodsBasic_tags_1) - /sizeof(asn_DEF_DangerousGoodsBasic_tags_1[0]), /* 1 */ - asn_DEF_DangerousGoodsBasic_tags_1, /* Same as above */ - sizeof(asn_DEF_DangerousGoodsBasic_tags_1) - /sizeof(asn_DEF_DangerousGoodsBasic_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_DangerousGoodsBasic_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_DangerousGoodsBasic_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - NativeEnumerated_constraint - }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_DangerousGoodsBasic_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/DangerousGoodsContainer.c b/vanetza/asn1/its/DangerousGoodsContainer.c deleted file mode 100644 index b8d832cc0..000000000 --- a/vanetza/asn1/its/DangerousGoodsContainer.c +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CAM-PDU-Descriptions" - * found in "asn1/EN302637-2v141-CAM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "DangerousGoodsContainer.h" - -asn_TYPE_member_t asn_MBR_DangerousGoodsContainer_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct DangerousGoodsContainer, dangerousGoodsBasic), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_DangerousGoodsBasic, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "dangerousGoodsBasic" - }, -}; -static const ber_tlv_tag_t asn_DEF_DangerousGoodsContainer_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_DangerousGoodsContainer_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* dangerousGoodsBasic */ -}; -asn_SEQUENCE_specifics_t asn_SPC_DangerousGoodsContainer_specs_1 = { - sizeof(struct DangerousGoodsContainer), - offsetof(struct DangerousGoodsContainer, _asn_ctx), - asn_MAP_DangerousGoodsContainer_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_DangerousGoodsContainer = { - "DangerousGoodsContainer", - "DangerousGoodsContainer", - &asn_OP_SEQUENCE, - asn_DEF_DangerousGoodsContainer_tags_1, - sizeof(asn_DEF_DangerousGoodsContainer_tags_1) - /sizeof(asn_DEF_DangerousGoodsContainer_tags_1[0]), /* 1 */ - asn_DEF_DangerousGoodsContainer_tags_1, /* Same as above */ - sizeof(asn_DEF_DangerousGoodsContainer_tags_1) - /sizeof(asn_DEF_DangerousGoodsContainer_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_DangerousGoodsContainer_1, - 1, /* Elements count */ - &asn_SPC_DangerousGoodsContainer_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/DangerousGoodsExtended.c b/vanetza/asn1/its/DangerousGoodsExtended.c deleted file mode 100644 index 740bf8373..000000000 --- a/vanetza/asn1/its/DangerousGoodsExtended.c +++ /dev/null @@ -1,327 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "DangerousGoodsExtended.h" - -static int check_permitted_alphabet_7(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_unNumber_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0L && value <= 9999L)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static int -memb_emergencyActionCode_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_7(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_companyName_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const UTF8String_t *st = (const UTF8String_t *)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 = UTF8String_length(st); - if((ssize_t)size < 0) { - ASN__CTFAIL(app_key, td, sptr, - "%s: UTF-8: broken encoding (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if((size >= 1UL && 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_memb_unNumber_constr_3 CC_NOTUSED = { - { 2, 1 } /* (0..9999) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_memb_unNumber_constr_3 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, 0, 9999 } /* (0..9999) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_memb_emergencyActionCode_constr_7 CC_NOTUSED = { - { 0, 0 }, - -1 /* (SIZE(1..24)) */}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_memb_emergencyActionCode_constr_7 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_memb_companyName_constr_9 CC_NOTUSED = { - { 0, 0 }, - -1 /* (SIZE(0..MAX)) */}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_memb_companyName_constr_9 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 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) */ -asn_TYPE_member_t asn_MBR_DangerousGoodsExtended_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct DangerousGoodsExtended, dangerousGoodsType), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_DangerousGoodsBasic, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "dangerousGoodsType" - }, - { ATF_NOFLAGS, 0, offsetof(struct DangerousGoodsExtended, unNumber), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_memb_unNumber_constr_3, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_memb_unNumber_constr_3, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - memb_unNumber_constraint_1 - }, - 0, 0, /* No default value */ - "unNumber" - }, - { ATF_NOFLAGS, 0, offsetof(struct DangerousGoodsExtended, elevatedTemperature), - (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 */ - "elevatedTemperature" - }, - { ATF_NOFLAGS, 0, offsetof(struct DangerousGoodsExtended, tunnelsRestricted), - (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 */ - "tunnelsRestricted" - }, - { ATF_NOFLAGS, 0, offsetof(struct DangerousGoodsExtended, limitedQuantity), - (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 */ - "limitedQuantity" - }, - { ATF_POINTER, 3, offsetof(struct DangerousGoodsExtended, emergencyActionCode), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_IA5String, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_memb_emergencyActionCode_constr_7, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_memb_emergencyActionCode_constr_7, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - memb_emergencyActionCode_constraint_1 - }, - 0, 0, /* No default value */ - "emergencyActionCode" - }, - { ATF_POINTER, 2, offsetof(struct DangerousGoodsExtended, phoneNumber), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PhoneNumber, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "phoneNumber" - }, - { ATF_POINTER, 1, offsetof(struct DangerousGoodsExtended, companyName), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UTF8String, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_memb_companyName_constr_9, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_memb_companyName_constr_9, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - memb_companyName_constraint_1 - }, - 0, 0, /* No default value */ - "companyName" - }, -}; -static const int asn_MAP_DangerousGoodsExtended_oms_1[] = { 5, 6, 7 }; -static const ber_tlv_tag_t asn_DEF_DangerousGoodsExtended_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_DangerousGoodsExtended_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dangerousGoodsType */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* unNumber */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* elevatedTemperature */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* tunnelsRestricted */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* limitedQuantity */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* emergencyActionCode */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* phoneNumber */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* companyName */ -}; -asn_SEQUENCE_specifics_t asn_SPC_DangerousGoodsExtended_specs_1 = { - sizeof(struct DangerousGoodsExtended), - offsetof(struct DangerousGoodsExtended, _asn_ctx), - asn_MAP_DangerousGoodsExtended_tag2el_1, - 8, /* Count of tags in the map */ - asn_MAP_DangerousGoodsExtended_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 8, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_DangerousGoodsExtended = { - "DangerousGoodsExtended", - "DangerousGoodsExtended", - &asn_OP_SEQUENCE, - asn_DEF_DangerousGoodsExtended_tags_1, - sizeof(asn_DEF_DangerousGoodsExtended_tags_1) - /sizeof(asn_DEF_DangerousGoodsExtended_tags_1[0]), /* 1 */ - asn_DEF_DangerousGoodsExtended_tags_1, /* Same as above */ - sizeof(asn_DEF_DangerousGoodsExtended_tags_1) - /sizeof(asn_DEF_DangerousGoodsExtended_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_DangerousGoodsExtended_1, - 8, /* Elements count */ - &asn_SPC_DangerousGoodsExtended_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/DangerousSituationSubCauseCode.c b/vanetza/asn1/its/DangerousSituationSubCauseCode.c deleted file mode 100644 index dc789cf10..000000000 --- a/vanetza/asn1/its/DangerousSituationSubCauseCode.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "DangerousSituationSubCauseCode.h" - -int -DangerousSituationSubCauseCode_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_DangerousSituationSubCauseCode_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_type_DangerousSituationSubCauseCode_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_DangerousSituationSubCauseCode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_DangerousSituationSubCauseCode = { - "DangerousSituationSubCauseCode", - "DangerousSituationSubCauseCode", - &asn_OP_NativeInteger, - asn_DEF_DangerousSituationSubCauseCode_tags_1, - sizeof(asn_DEF_DangerousSituationSubCauseCode_tags_1) - /sizeof(asn_DEF_DangerousSituationSubCauseCode_tags_1[0]), /* 1 */ - asn_DEF_DangerousSituationSubCauseCode_tags_1, /* Same as above */ - sizeof(asn_DEF_DangerousSituationSubCauseCode_tags_1) - /sizeof(asn_DEF_DangerousSituationSubCauseCode_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_DangerousSituationSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_DangerousSituationSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - DangerousSituationSubCauseCode_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/DeltaAltitude.c b/vanetza/asn1/its/DeltaAltitude.c deleted file mode 100644 index 97d1372ed..000000000 --- a/vanetza/asn1/its/DeltaAltitude.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "DeltaAltitude.h" - -int -DeltaAltitude_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 >= -12700L && value <= 12800L)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_DeltaAltitude_constr_1 CC_NOTUSED = { - { 2, 0 } /* (-12700..12800) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_DeltaAltitude_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 15, 15, -12700, 12800 } /* (-12700..12800) */, - { 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_DeltaAltitude_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_DeltaAltitude = { - "DeltaAltitude", - "DeltaAltitude", - &asn_OP_NativeInteger, - asn_DEF_DeltaAltitude_tags_1, - sizeof(asn_DEF_DeltaAltitude_tags_1) - /sizeof(asn_DEF_DeltaAltitude_tags_1[0]), /* 1 */ - asn_DEF_DeltaAltitude_tags_1, /* Same as above */ - sizeof(asn_DEF_DeltaAltitude_tags_1) - /sizeof(asn_DEF_DeltaAltitude_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_DeltaAltitude_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_DeltaAltitude_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - DeltaAltitude_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/DeltaLatitude.c b/vanetza/asn1/its/DeltaLatitude.c deleted file mode 100644 index 5b30a4f23..000000000 --- a/vanetza/asn1/its/DeltaLatitude.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "DeltaLatitude.h" - -int -DeltaLatitude_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 >= -131071L && value <= 131072L)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_DeltaLatitude_constr_1 CC_NOTUSED = { - { 4, 0 } /* (-131071..131072) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_DeltaLatitude_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 18, -1, -131071, 131072 } /* (-131071..131072) */, - { 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_DeltaLatitude_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_DeltaLatitude = { - "DeltaLatitude", - "DeltaLatitude", - &asn_OP_NativeInteger, - asn_DEF_DeltaLatitude_tags_1, - sizeof(asn_DEF_DeltaLatitude_tags_1) - /sizeof(asn_DEF_DeltaLatitude_tags_1[0]), /* 1 */ - asn_DEF_DeltaLatitude_tags_1, /* Same as above */ - sizeof(asn_DEF_DeltaLatitude_tags_1) - /sizeof(asn_DEF_DeltaLatitude_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_DeltaLatitude_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_DeltaLatitude_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - DeltaLatitude_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/DeltaLongitude.c b/vanetza/asn1/its/DeltaLongitude.c deleted file mode 100644 index 1e447b38c..000000000 --- a/vanetza/asn1/its/DeltaLongitude.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "DeltaLongitude.h" - -int -DeltaLongitude_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 >= -131071L && value <= 131072L)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_DeltaLongitude_constr_1 CC_NOTUSED = { - { 4, 0 } /* (-131071..131072) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_DeltaLongitude_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 18, -1, -131071, 131072 } /* (-131071..131072) */, - { 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_DeltaLongitude_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_DeltaLongitude = { - "DeltaLongitude", - "DeltaLongitude", - &asn_OP_NativeInteger, - asn_DEF_DeltaLongitude_tags_1, - sizeof(asn_DEF_DeltaLongitude_tags_1) - /sizeof(asn_DEF_DeltaLongitude_tags_1[0]), /* 1 */ - asn_DEF_DeltaLongitude_tags_1, /* Same as above */ - sizeof(asn_DEF_DeltaLongitude_tags_1) - /sizeof(asn_DEF_DeltaLongitude_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_DeltaLongitude_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_DeltaLongitude_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - DeltaLongitude_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/DeltaReferencePosition.c b/vanetza/asn1/its/DeltaReferencePosition.c deleted file mode 100644 index 42378c963..000000000 --- a/vanetza/asn1/its/DeltaReferencePosition.c +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "DeltaReferencePosition.h" - -asn_TYPE_member_t asn_MBR_DeltaReferencePosition_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct DeltaReferencePosition, deltaLatitude), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_DeltaLatitude, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "deltaLatitude" - }, - { ATF_NOFLAGS, 0, offsetof(struct DeltaReferencePosition, deltaLongitude), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_DeltaLongitude, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "deltaLongitude" - }, - { ATF_NOFLAGS, 0, offsetof(struct DeltaReferencePosition, deltaAltitude), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_DeltaAltitude, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "deltaAltitude" - }, -}; -static const ber_tlv_tag_t asn_DEF_DeltaReferencePosition_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_DeltaReferencePosition_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* deltaLatitude */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* deltaLongitude */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* deltaAltitude */ -}; -asn_SEQUENCE_specifics_t asn_SPC_DeltaReferencePosition_specs_1 = { - sizeof(struct DeltaReferencePosition), - offsetof(struct DeltaReferencePosition, _asn_ctx), - asn_MAP_DeltaReferencePosition_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_DeltaReferencePosition = { - "DeltaReferencePosition", - "DeltaReferencePosition", - &asn_OP_SEQUENCE, - asn_DEF_DeltaReferencePosition_tags_1, - sizeof(asn_DEF_DeltaReferencePosition_tags_1) - /sizeof(asn_DEF_DeltaReferencePosition_tags_1[0]), /* 1 */ - asn_DEF_DeltaReferencePosition_tags_1, /* Same as above */ - sizeof(asn_DEF_DeltaReferencePosition_tags_1) - /sizeof(asn_DEF_DeltaReferencePosition_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_DeltaReferencePosition_1, - 3, /* Elements count */ - &asn_SPC_DeltaReferencePosition_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/DigitalMap.c b/vanetza/asn1/its/DigitalMap.c deleted file mode 100644 index ee67ff741..000000000 --- a/vanetza/asn1/its/DigitalMap.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "DigitalMap.h" - -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_DigitalMap_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1 /* (SIZE(1..256)) */}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_type_DigitalMap_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) */ -static asn_TYPE_member_t asn_MBR_DigitalMap_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_ReferencePosition, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_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_DigitalMap_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_DigitalMap_specs_1 = { - sizeof(struct DigitalMap), - offsetof(struct DigitalMap, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_DigitalMap = { - "DigitalMap", - "DigitalMap", - &asn_OP_SEQUENCE_OF, - asn_DEF_DigitalMap_tags_1, - sizeof(asn_DEF_DigitalMap_tags_1) - /sizeof(asn_DEF_DigitalMap_tags_1[0]), /* 1 */ - asn_DEF_DigitalMap_tags_1, /* Same as above */ - sizeof(asn_DEF_DigitalMap_tags_1) - /sizeof(asn_DEF_DigitalMap_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_DigitalMap_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_DigitalMap_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_OF_constraint - }, - asn_MBR_DigitalMap_1, - 1, /* Single element */ - &asn_SPC_DigitalMap_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/Direction.c b/vanetza/asn1/its/Direction.c deleted file mode 100644 index 7c263a100..000000000 --- a/vanetza/asn1/its/Direction.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "IVI" - * found in "build.asn1/iso/ISO19321.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "Direction.h" - -int -Direction_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 <= 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 NativeInteger, - * so here we adjust the DEF accordingly. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_Direction_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..3) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_Direction_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) */ -static const ber_tlv_tag_t asn_DEF_Direction_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_Direction = { - "Direction", - "Direction", - &asn_OP_NativeInteger, - asn_DEF_Direction_tags_1, - sizeof(asn_DEF_Direction_tags_1) - /sizeof(asn_DEF_Direction_tags_1[0]), /* 1 */ - asn_DEF_Direction_tags_1, /* Same as above */ - sizeof(asn_DEF_Direction_tags_1) - /sizeof(asn_DEF_Direction_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_Direction_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_Direction_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - Direction_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/DriveDirection.c b/vanetza/asn1/its/DriveDirection.c deleted file mode 100644 index 16da6dceb..000000000 --- a/vanetza/asn1/its/DriveDirection.c +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "DriveDirection.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_DriveDirection_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_DriveDirection_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_DriveDirection_value2enum_1[] = { - { 0, 7, "forward" }, - { 1, 8, "backward" }, - { 2, 11, "unavailable" } -}; -static const unsigned int asn_MAP_DriveDirection_enum2value_1[] = { - 1, /* backward(1) */ - 0, /* forward(0) */ - 2 /* unavailable(2) */ -}; -const asn_INTEGER_specifics_t asn_SPC_DriveDirection_specs_1 = { - asn_MAP_DriveDirection_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_DriveDirection_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_DriveDirection_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_DriveDirection = { - "DriveDirection", - "DriveDirection", - &asn_OP_NativeEnumerated, - asn_DEF_DriveDirection_tags_1, - sizeof(asn_DEF_DriveDirection_tags_1) - /sizeof(asn_DEF_DriveDirection_tags_1[0]), /* 1 */ - asn_DEF_DriveDirection_tags_1, /* Same as above */ - sizeof(asn_DEF_DriveDirection_tags_1) - /sizeof(asn_DEF_DriveDirection_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_DriveDirection_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_DriveDirection_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - NativeEnumerated_constraint - }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_DriveDirection_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/DrivingLaneStatus.c b/vanetza/asn1/its/DrivingLaneStatus.c deleted file mode 100644 index 4e310c765..000000000 --- a/vanetza/asn1/its/DrivingLaneStatus.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "DrivingLaneStatus.h" - -int -DrivingLaneStatus_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 <= 13UL)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_DrivingLaneStatus_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1 /* (SIZE(1..13)) */}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_DrivingLaneStatus_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 4, 4, 1, 13 } /* (SIZE(1..13)) */, - 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_DrivingLaneStatus_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_DrivingLaneStatus = { - "DrivingLaneStatus", - "DrivingLaneStatus", - &asn_OP_BIT_STRING, - asn_DEF_DrivingLaneStatus_tags_1, - sizeof(asn_DEF_DrivingLaneStatus_tags_1) - /sizeof(asn_DEF_DrivingLaneStatus_tags_1[0]), /* 1 */ - asn_DEF_DrivingLaneStatus_tags_1, /* Same as above */ - sizeof(asn_DEF_DrivingLaneStatus_tags_1) - /sizeof(asn_DEF_DrivingLaneStatus_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_DrivingLaneStatus_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_DrivingLaneStatus_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - DrivingLaneStatus_constraint - }, - 0, 0, /* No members */ - &asn_SPC_BIT_STRING_specs /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/EXTERNAL.c b/vanetza/asn1/its/EXTERNAL.c deleted file mode 100644 index baec28ac9..000000000 --- a/vanetza/asn1/its/EXTERNAL.c +++ /dev/null @@ -1,228 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ASN1C-UsefulInformationObjectClasses" - * found in "/home/raphael/opt/asn1c/share/asn1c/standard-modules/ASN1C-UsefulInformationObjectClasses.asn1" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "EXTERNAL.h" - -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_encoding_constr_5 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_type_encoding_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) */ -static asn_TYPE_member_t asn_MBR_encoding_5[] = { - { ATF_NOFLAGS, 0, offsetof(struct EXTERNAL__encoding, choice.single_ASN1_type), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_ANY, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "single-ASN1-type" - }, - { ATF_NOFLAGS, 0, offsetof(struct EXTERNAL__encoding, choice.octet_aligned), - (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) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "octet-aligned" - }, - { ATF_NOFLAGS, 0, offsetof(struct EXTERNAL__encoding, choice.arbitrary), - (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) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "arbitrary" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_encoding_tag2el_5[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* single-ASN1-type */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* octet-aligned */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* arbitrary */ -}; -static asn_CHOICE_specifics_t asn_SPC_encoding_specs_5 = { - sizeof(struct EXTERNAL__encoding), - offsetof(struct EXTERNAL__encoding, _asn_ctx), - offsetof(struct EXTERNAL__encoding, present), - sizeof(((struct EXTERNAL__encoding *)0)->present), - asn_MAP_encoding_tag2el_5, - 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_encoding_5 = { - "encoding", - "encoding", - &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) - &asn_OER_type_encoding_constr_5, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_encoding_constr_5, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - CHOICE_constraint - }, - asn_MBR_encoding_5, - 3, /* Elements count */ - &asn_SPC_encoding_specs_5 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_EXTERNAL_1[] = { - { ATF_POINTER, 3, offsetof(struct EXTERNAL, direct_reference), - (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), - 0, - &asn_DEF_OBJECT_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 */ - "direct-reference" - }, - { ATF_POINTER, 2, offsetof(struct EXTERNAL, indirect_reference), - (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) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "indirect-reference" - }, - { ATF_POINTER, 1, offsetof(struct EXTERNAL, data_value_descriptor), - (ASN_TAG_CLASS_UNIVERSAL | (7 << 2)), - 0, - &asn_DEF_ObjectDescriptor, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "data-value-descriptor" - }, - { ATF_NOFLAGS, 0, offsetof(struct EXTERNAL, encoding), - -1 /* Ambiguous tag (CHOICE?) */, - 0, - &asn_DEF_encoding_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 */ - "encoding" - }, -}; -static const int asn_MAP_EXTERNAL_oms_1[] = { 0, 1, 2 }; -static const ber_tlv_tag_t asn_DEF_EXTERNAL_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (8 << 2)), - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_EXTERNAL_tag2el_1[] = { - { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* indirect-reference */ - { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 0, 0, 0 }, /* direct-reference */ - { (ASN_TAG_CLASS_UNIVERSAL | (7 << 2)), 2, 0, 0 }, /* data-value-descriptor */ - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 3, 0, 0 }, /* single-ASN1-type */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 3, 0, 0 }, /* octet-aligned */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 3, 0, 0 } /* arbitrary */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_EXTERNAL_specs_1 = { - sizeof(struct EXTERNAL), - offsetof(struct EXTERNAL, _asn_ctx), - asn_MAP_EXTERNAL_tag2el_1, - 6, /* Count of tags in the map */ - asn_MAP_EXTERNAL_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_EXTERNAL = { - "EXTERNAL", - "EXTERNAL", - &asn_OP_SEQUENCE, - asn_DEF_EXTERNAL_tags_1, - sizeof(asn_DEF_EXTERNAL_tags_1) - /sizeof(asn_DEF_EXTERNAL_tags_1[0]) - 1, /* 1 */ - asn_DEF_EXTERNAL_tags_1, /* Same as above */ - sizeof(asn_DEF_EXTERNAL_tags_1) - /sizeof(asn_DEF_EXTERNAL_tags_1[0]), /* 2 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_EXTERNAL_1, - 4, /* Elements count */ - &asn_SPC_EXTERNAL_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/EXTERNAL.h b/vanetza/asn1/its/EXTERNAL.h deleted file mode 100644 index 6dbea898a..000000000 --- a/vanetza/asn1/its/EXTERNAL.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ASN1C-UsefulInformationObjectClasses" - * found in "/home/raphael/opt/asn1c/share/asn1c/standard-modules/ASN1C-UsefulInformationObjectClasses.asn1" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#ifndef _EXTERNAL_H_ -#define _EXTERNAL_H_ - - -#include "asn_application.h" - -/* Including external dependencies */ -#include "OBJECT_IDENTIFIER.h" -#include "NativeInteger.h" -#include "ObjectDescriptor.h" -#include "ANY.h" -#include "OCTET_STRING.h" -#include "BIT_STRING.h" -#include "constr_CHOICE.h" -#include "constr_SEQUENCE.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum EXTERNAL__encoding_PR { - EXTERNAL__encoding_PR_NOTHING, /* No components present */ - EXTERNAL__encoding_PR_single_ASN1_type, - EXTERNAL__encoding_PR_octet_aligned, - EXTERNAL__encoding_PR_arbitrary -} EXTERNAL__encoding_PR; - -/* EXTERNAL */ -typedef struct EXTERNAL { - OBJECT_IDENTIFIER_t *direct_reference; /* OPTIONAL */ - long *indirect_reference; /* OPTIONAL */ - ObjectDescriptor_t *data_value_descriptor; /* OPTIONAL */ - struct EXTERNAL__encoding { - EXTERNAL__encoding_PR present; - union EXTERNAL__encoding_u { - ANY_t single_ASN1_type; - OCTET_STRING_t octet_aligned; - BIT_STRING_t arbitrary; - } choice; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } encoding; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} EXTERNAL_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_EXTERNAL; - -#ifdef __cplusplus -} -#endif - -#endif /* _EXTERNAL_H_ */ -#include "asn_internal.h" diff --git a/vanetza/asn1/its/EmbarkationStatus.c b/vanetza/asn1/its/EmbarkationStatus.c deleted file mode 100644 index e251b6873..000000000 --- a/vanetza/asn1/its/EmbarkationStatus.c +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "EmbarkationStatus.h" - -/* - * This type is implemented using BOOLEAN, - * so here we adjust the DEF accordingly. - */ -static const ber_tlv_tag_t asn_DEF_EmbarkationStatus_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_EmbarkationStatus = { - "EmbarkationStatus", - "EmbarkationStatus", - &asn_OP_BOOLEAN, - asn_DEF_EmbarkationStatus_tags_1, - sizeof(asn_DEF_EmbarkationStatus_tags_1) - /sizeof(asn_DEF_EmbarkationStatus_tags_1[0]), /* 1 */ - asn_DEF_EmbarkationStatus_tags_1, /* Same as above */ - sizeof(asn_DEF_EmbarkationStatus_tags_1) - /sizeof(asn_DEF_EmbarkationStatus_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - BOOLEAN_constraint - }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/EmergencyContainer.c b/vanetza/asn1/its/EmergencyContainer.c deleted file mode 100644 index 1c4dc75c2..000000000 --- a/vanetza/asn1/its/EmergencyContainer.c +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CAM-PDU-Descriptions" - * found in "asn1/EN302637-2v141-CAM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "EmergencyContainer.h" - -asn_TYPE_member_t asn_MBR_EmergencyContainer_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct EmergencyContainer, lightBarSirenInUse), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LightBarSirenInUse, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "lightBarSirenInUse" - }, - { ATF_POINTER, 2, offsetof(struct EmergencyContainer, incidentIndication), - (ASN_TAG_CLASS_CONTEXT | (1 << 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 */ - "incidentIndication" - }, - { ATF_POINTER, 1, offsetof(struct EmergencyContainer, emergencyPriority), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EmergencyPriority, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "emergencyPriority" - }, -}; -static const int asn_MAP_EmergencyContainer_oms_1[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_EmergencyContainer_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_EmergencyContainer_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* lightBarSirenInUse */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* incidentIndication */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* emergencyPriority */ -}; -asn_SEQUENCE_specifics_t asn_SPC_EmergencyContainer_specs_1 = { - sizeof(struct EmergencyContainer), - offsetof(struct EmergencyContainer, _asn_ctx), - asn_MAP_EmergencyContainer_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_EmergencyContainer_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_EmergencyContainer = { - "EmergencyContainer", - "EmergencyContainer", - &asn_OP_SEQUENCE, - asn_DEF_EmergencyContainer_tags_1, - sizeof(asn_DEF_EmergencyContainer_tags_1) - /sizeof(asn_DEF_EmergencyContainer_tags_1[0]), /* 1 */ - asn_DEF_EmergencyContainer_tags_1, /* Same as above */ - sizeof(asn_DEF_EmergencyContainer_tags_1) - /sizeof(asn_DEF_EmergencyContainer_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_EmergencyContainer_1, - 3, /* Elements count */ - &asn_SPC_EmergencyContainer_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/EmergencyPriority.c b/vanetza/asn1/its/EmergencyPriority.c deleted file mode 100644 index ebe4590c0..000000000 --- a/vanetza/asn1/its/EmergencyPriority.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "EmergencyPriority.h" - -int -EmergencyPriority_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 == 2UL)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_EmergencyPriority_constr_1 CC_NOTUSED = { - { 0, 0 }, - 2 /* (SIZE(2..2)) */}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_EmergencyPriority_constr_1 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 const ber_tlv_tag_t asn_DEF_EmergencyPriority_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_EmergencyPriority = { - "EmergencyPriority", - "EmergencyPriority", - &asn_OP_BIT_STRING, - asn_DEF_EmergencyPriority_tags_1, - sizeof(asn_DEF_EmergencyPriority_tags_1) - /sizeof(asn_DEF_EmergencyPriority_tags_1[0]), /* 1 */ - asn_DEF_EmergencyPriority_tags_1, /* Same as above */ - sizeof(asn_DEF_EmergencyPriority_tags_1) - /sizeof(asn_DEF_EmergencyPriority_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_EmergencyPriority_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_EmergencyPriority_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - EmergencyPriority_constraint - }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_BIT_STRING_specs /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/EmergencyVehicleApproachingSubCauseCode.c b/vanetza/asn1/its/EmergencyVehicleApproachingSubCauseCode.c deleted file mode 100644 index 231d03d36..000000000 --- a/vanetza/asn1/its/EmergencyVehicleApproachingSubCauseCode.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "EmergencyVehicleApproachingSubCauseCode.h" - -int -EmergencyVehicleApproachingSubCauseCode_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_EmergencyVehicleApproachingSubCauseCode_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_type_EmergencyVehicleApproachingSubCauseCode_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_EmergencyVehicleApproachingSubCauseCode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_EmergencyVehicleApproachingSubCauseCode = { - "EmergencyVehicleApproachingSubCauseCode", - "EmergencyVehicleApproachingSubCauseCode", - &asn_OP_NativeInteger, - asn_DEF_EmergencyVehicleApproachingSubCauseCode_tags_1, - sizeof(asn_DEF_EmergencyVehicleApproachingSubCauseCode_tags_1) - /sizeof(asn_DEF_EmergencyVehicleApproachingSubCauseCode_tags_1[0]), /* 1 */ - asn_DEF_EmergencyVehicleApproachingSubCauseCode_tags_1, /* Same as above */ - sizeof(asn_DEF_EmergencyVehicleApproachingSubCauseCode_tags_1) - /sizeof(asn_DEF_EmergencyVehicleApproachingSubCauseCode_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_EmergencyVehicleApproachingSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_EmergencyVehicleApproachingSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - EmergencyVehicleApproachingSubCauseCode_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/EnergyStorageType.c b/vanetza/asn1/its/EnergyStorageType.c deleted file mode 100644 index b725f4d99..000000000 --- a/vanetza/asn1/its/EnergyStorageType.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "EnergyStorageType.h" - -int -EnergyStorageType_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 == 7UL)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_EnergyStorageType_constr_1 CC_NOTUSED = { - { 0, 0 }, - 7 /* (SIZE(7..7)) */}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_EnergyStorageType_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 7, 7 } /* (SIZE(7..7)) */, - 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_EnergyStorageType_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_EnergyStorageType = { - "EnergyStorageType", - "EnergyStorageType", - &asn_OP_BIT_STRING, - asn_DEF_EnergyStorageType_tags_1, - sizeof(asn_DEF_EnergyStorageType_tags_1) - /sizeof(asn_DEF_EnergyStorageType_tags_1[0]), /* 1 */ - asn_DEF_EnergyStorageType_tags_1, /* Same as above */ - sizeof(asn_DEF_EnergyStorageType_tags_1) - /sizeof(asn_DEF_EnergyStorageType_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_EnergyStorageType_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_EnergyStorageType_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - EnergyStorageType_constraint - }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_BIT_STRING_specs /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/EuVehicleCategoryCode.c b/vanetza/asn1/its/EuVehicleCategoryCode.c deleted file mode 100644 index 365f19b20..000000000 --- a/vanetza/asn1/its/EuVehicleCategoryCode.c +++ /dev/null @@ -1,165 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ElectronicRegistrationIdentificationVehicleDataModule" - * found in "build.asn1/iso/ISO24534-3.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "EuVehicleCategoryCode.h" - -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_EuVehicleCategoryCode_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_EuVehicleCategoryCode_constr_1 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_EuVehicleCategoryCode_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct EuVehicleCategoryCode, choice.euVehicleCategoryL), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EuVehicleCategoryL, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "euVehicleCategoryL" - }, - { ATF_NOFLAGS, 0, offsetof(struct EuVehicleCategoryCode, choice.euVehicleCategoryM), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EuVehicleCategoryM, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "euVehicleCategoryM" - }, - { ATF_NOFLAGS, 0, offsetof(struct EuVehicleCategoryCode, choice.euVehicleCategoryN), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EuVehicleCategoryN, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "euVehicleCategoryN" - }, - { ATF_NOFLAGS, 0, offsetof(struct EuVehicleCategoryCode, choice.euVehicleCategoryO), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EuVehicleCategoryO, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "euVehicleCategoryO" - }, - { ATF_NOFLAGS, 0, offsetof(struct EuVehicleCategoryCode, choice.euVehilcleCategoryT), - (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 */ - "euVehilcleCategoryT" - }, - { ATF_NOFLAGS, 0, offsetof(struct EuVehicleCategoryCode, choice.euVehilcleCategoryG), - (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 */ - "euVehilcleCategoryG" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_EuVehicleCategoryCode_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* euVehicleCategoryL */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* euVehicleCategoryM */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* euVehicleCategoryN */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* euVehicleCategoryO */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* euVehilcleCategoryT */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* euVehilcleCategoryG */ -}; -asn_CHOICE_specifics_t asn_SPC_EuVehicleCategoryCode_specs_1 = { - sizeof(struct EuVehicleCategoryCode), - offsetof(struct EuVehicleCategoryCode, _asn_ctx), - offsetof(struct EuVehicleCategoryCode, present), - sizeof(((struct EuVehicleCategoryCode *)0)->present), - asn_MAP_EuVehicleCategoryCode_tag2el_1, - 6, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_EuVehicleCategoryCode = { - "EuVehicleCategoryCode", - "EuVehicleCategoryCode", - &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) - &asn_OER_type_EuVehicleCategoryCode_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_EuVehicleCategoryCode_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - CHOICE_constraint - }, - asn_MBR_EuVehicleCategoryCode_1, - 6, /* Elements count */ - &asn_SPC_EuVehicleCategoryCode_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/EuVehicleCategoryL.c b/vanetza/asn1/its/EuVehicleCategoryL.c deleted file mode 100644 index e792d4059..000000000 --- a/vanetza/asn1/its/EuVehicleCategoryL.c +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ElectronicRegistrationIdentificationVehicleDataModule" - * found in "build.asn1/iso/ISO24534-3.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "EuVehicleCategoryL.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_EuVehicleCategoryL_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_EuVehicleCategoryL_constr_1 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_EuVehicleCategoryL_value2enum_1[] = { - { 0, 2, "l1" }, - { 1, 2, "l2" }, - { 2, 2, "l3" }, - { 3, 2, "l4" }, - { 4, 2, "l5" }, - { 5, 2, "l6" }, - { 6, 2, "l7" } -}; -static const unsigned int asn_MAP_EuVehicleCategoryL_enum2value_1[] = { - 0, /* l1(0) */ - 1, /* l2(1) */ - 2, /* l3(2) */ - 3, /* l4(3) */ - 4, /* l5(4) */ - 5, /* l6(5) */ - 6 /* l7(6) */ -}; -const asn_INTEGER_specifics_t asn_SPC_EuVehicleCategoryL_specs_1 = { - asn_MAP_EuVehicleCategoryL_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_EuVehicleCategoryL_enum2value_1, /* 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_EuVehicleCategoryL_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_EuVehicleCategoryL = { - "EuVehicleCategoryL", - "EuVehicleCategoryL", - &asn_OP_NativeEnumerated, - asn_DEF_EuVehicleCategoryL_tags_1, - sizeof(asn_DEF_EuVehicleCategoryL_tags_1) - /sizeof(asn_DEF_EuVehicleCategoryL_tags_1[0]), /* 1 */ - asn_DEF_EuVehicleCategoryL_tags_1, /* Same as above */ - sizeof(asn_DEF_EuVehicleCategoryL_tags_1) - /sizeof(asn_DEF_EuVehicleCategoryL_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_EuVehicleCategoryL_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_EuVehicleCategoryL_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - NativeEnumerated_constraint - }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_EuVehicleCategoryL_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/EuVehicleCategoryM.c b/vanetza/asn1/its/EuVehicleCategoryM.c deleted file mode 100644 index 14b3cc6e2..000000000 --- a/vanetza/asn1/its/EuVehicleCategoryM.c +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ElectronicRegistrationIdentificationVehicleDataModule" - * found in "build.asn1/iso/ISO24534-3.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "EuVehicleCategoryM.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_EuVehicleCategoryM_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_EuVehicleCategoryM_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_EuVehicleCategoryM_value2enum_1[] = { - { 0, 2, "m1" }, - { 1, 2, "m2" }, - { 2, 2, "m3" } -}; -static const unsigned int asn_MAP_EuVehicleCategoryM_enum2value_1[] = { - 0, /* m1(0) */ - 1, /* m2(1) */ - 2 /* m3(2) */ -}; -const asn_INTEGER_specifics_t asn_SPC_EuVehicleCategoryM_specs_1 = { - asn_MAP_EuVehicleCategoryM_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_EuVehicleCategoryM_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_EuVehicleCategoryM_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_EuVehicleCategoryM = { - "EuVehicleCategoryM", - "EuVehicleCategoryM", - &asn_OP_NativeEnumerated, - asn_DEF_EuVehicleCategoryM_tags_1, - sizeof(asn_DEF_EuVehicleCategoryM_tags_1) - /sizeof(asn_DEF_EuVehicleCategoryM_tags_1[0]), /* 1 */ - asn_DEF_EuVehicleCategoryM_tags_1, /* Same as above */ - sizeof(asn_DEF_EuVehicleCategoryM_tags_1) - /sizeof(asn_DEF_EuVehicleCategoryM_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_EuVehicleCategoryM_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_EuVehicleCategoryM_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - NativeEnumerated_constraint - }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_EuVehicleCategoryM_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/EuVehicleCategoryN.c b/vanetza/asn1/its/EuVehicleCategoryN.c deleted file mode 100644 index 932341ab8..000000000 --- a/vanetza/asn1/its/EuVehicleCategoryN.c +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ElectronicRegistrationIdentificationVehicleDataModule" - * found in "build.asn1/iso/ISO24534-3.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "EuVehicleCategoryN.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_EuVehicleCategoryN_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_EuVehicleCategoryN_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_EuVehicleCategoryN_value2enum_1[] = { - { 0, 2, "n1" }, - { 1, 2, "n2" }, - { 2, 2, "n3" } -}; -static const unsigned int asn_MAP_EuVehicleCategoryN_enum2value_1[] = { - 0, /* n1(0) */ - 1, /* n2(1) */ - 2 /* n3(2) */ -}; -const asn_INTEGER_specifics_t asn_SPC_EuVehicleCategoryN_specs_1 = { - asn_MAP_EuVehicleCategoryN_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_EuVehicleCategoryN_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_EuVehicleCategoryN_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_EuVehicleCategoryN = { - "EuVehicleCategoryN", - "EuVehicleCategoryN", - &asn_OP_NativeEnumerated, - asn_DEF_EuVehicleCategoryN_tags_1, - sizeof(asn_DEF_EuVehicleCategoryN_tags_1) - /sizeof(asn_DEF_EuVehicleCategoryN_tags_1[0]), /* 1 */ - asn_DEF_EuVehicleCategoryN_tags_1, /* Same as above */ - sizeof(asn_DEF_EuVehicleCategoryN_tags_1) - /sizeof(asn_DEF_EuVehicleCategoryN_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_EuVehicleCategoryN_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_EuVehicleCategoryN_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - NativeEnumerated_constraint - }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_EuVehicleCategoryN_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/EuVehicleCategoryO.c b/vanetza/asn1/its/EuVehicleCategoryO.c deleted file mode 100644 index d83653c98..000000000 --- a/vanetza/asn1/its/EuVehicleCategoryO.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ElectronicRegistrationIdentificationVehicleDataModule" - * found in "build.asn1/iso/ISO24534-3.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "EuVehicleCategoryO.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_EuVehicleCategoryO_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_EuVehicleCategoryO_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) */ -static const asn_INTEGER_enum_map_t asn_MAP_EuVehicleCategoryO_value2enum_1[] = { - { 0, 2, "o1" }, - { 1, 2, "o2" }, - { 2, 2, "o3" }, - { 3, 2, "o4" } -}; -static const unsigned int asn_MAP_EuVehicleCategoryO_enum2value_1[] = { - 0, /* o1(0) */ - 1, /* o2(1) */ - 2, /* o3(2) */ - 3 /* o4(3) */ -}; -const asn_INTEGER_specifics_t asn_SPC_EuVehicleCategoryO_specs_1 = { - asn_MAP_EuVehicleCategoryO_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_EuVehicleCategoryO_enum2value_1, /* 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_EuVehicleCategoryO_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_EuVehicleCategoryO = { - "EuVehicleCategoryO", - "EuVehicleCategoryO", - &asn_OP_NativeEnumerated, - asn_DEF_EuVehicleCategoryO_tags_1, - sizeof(asn_DEF_EuVehicleCategoryO_tags_1) - /sizeof(asn_DEF_EuVehicleCategoryO_tags_1[0]), /* 1 */ - asn_DEF_EuVehicleCategoryO_tags_1, /* Same as above */ - sizeof(asn_DEF_EuVehicleCategoryO_tags_1) - /sizeof(asn_DEF_EuVehicleCategoryO_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_EuVehicleCategoryO_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_EuVehicleCategoryO_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - NativeEnumerated_constraint - }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_EuVehicleCategoryO_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/EventHistory.c b/vanetza/asn1/its/EventHistory.c deleted file mode 100644 index 6c25a0471..000000000 --- a/vanetza/asn1/its/EventHistory.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "EventHistory.h" - -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_EventHistory_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1 /* (SIZE(1..23)) */}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_EventHistory_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_EventHistory_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_EventPoint, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_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_EventHistory_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_EventHistory_specs_1 = { - sizeof(struct EventHistory), - offsetof(struct EventHistory, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_EventHistory = { - "EventHistory", - "EventHistory", - &asn_OP_SEQUENCE_OF, - asn_DEF_EventHistory_tags_1, - sizeof(asn_DEF_EventHistory_tags_1) - /sizeof(asn_DEF_EventHistory_tags_1[0]), /* 1 */ - asn_DEF_EventHistory_tags_1, /* Same as above */ - sizeof(asn_DEF_EventHistory_tags_1) - /sizeof(asn_DEF_EventHistory_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_EventHistory_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_EventHistory_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_OF_constraint - }, - asn_MBR_EventHistory_1, - 1, /* Single element */ - &asn_SPC_EventHistory_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/EventPoint.c b/vanetza/asn1/its/EventPoint.c deleted file mode 100644 index b7692c51c..000000000 --- a/vanetza/asn1/its/EventPoint.c +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "EventPoint.h" - -asn_TYPE_member_t asn_MBR_EventPoint_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct EventPoint, eventPosition), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_DeltaReferencePosition, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "eventPosition" - }, - { ATF_POINTER, 1, offsetof(struct EventPoint, eventDeltaTime), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PathDeltaTime, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "eventDeltaTime" - }, - { ATF_NOFLAGS, 0, offsetof(struct EventPoint, informationQuality), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_InformationQuality, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "informationQuality" - }, -}; -static const int asn_MAP_EventPoint_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_EventPoint_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_EventPoint_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* eventPosition */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* eventDeltaTime */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* informationQuality */ -}; -asn_SEQUENCE_specifics_t asn_SPC_EventPoint_specs_1 = { - sizeof(struct EventPoint), - offsetof(struct EventPoint, _asn_ctx), - asn_MAP_EventPoint_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_EventPoint_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_EventPoint = { - "EventPoint", - "EventPoint", - &asn_OP_SEQUENCE, - asn_DEF_EventPoint_tags_1, - sizeof(asn_DEF_EventPoint_tags_1) - /sizeof(asn_DEF_EventPoint_tags_1[0]), /* 1 */ - asn_DEF_EventPoint_tags_1, /* Same as above */ - sizeof(asn_DEF_EventPoint_tags_1) - /sizeof(asn_DEF_EventPoint_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_EventPoint_1, - 3, /* Elements count */ - &asn_SPC_EventPoint_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/Ext1.c b/vanetza/asn1/its/Ext1.c deleted file mode 100644 index adee320c9..000000000 --- a/vanetza/asn1/its/Ext1.c +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CITSapplMgmtIDs" - * found in "build.asn1/iso/ISO17419.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "Ext1.h" - -static int -memb_content_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - 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 <= 16511L)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_memb_content_constr_2 CC_NOTUSED = { - { 2, 1 } /* (128..16511) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_memb_content_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, 128, 16511 } /* (128..16511) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_Ext1_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_Ext1_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_Ext1_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Ext1, choice.content), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_memb_content_constr_2, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_memb_content_constr_2, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - memb_content_constraint_1 - }, - 0, 0, /* No default value */ - "content" - }, - { ATF_NOFLAGS, 0, offsetof(struct Ext1, choice.extension), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_Ext2, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "extension" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_Ext1_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* content */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* extension */ -}; -asn_CHOICE_specifics_t asn_SPC_Ext1_specs_1 = { - sizeof(struct Ext1), - offsetof(struct Ext1, _asn_ctx), - offsetof(struct Ext1, present), - sizeof(((struct Ext1 *)0)->present), - asn_MAP_Ext1_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_Ext1 = { - "Ext1", - "Ext1", - &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) - &asn_OER_type_Ext1_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_Ext1_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - CHOICE_constraint - }, - asn_MBR_Ext1_1, - 2, /* Elements count */ - &asn_SPC_Ext1_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/Ext2.c b/vanetza/asn1/its/Ext2.c deleted file mode 100644 index 4c4f8b1f9..000000000 --- a/vanetza/asn1/its/Ext2.c +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CITSapplMgmtIDs" - * found in "build.asn1/iso/ISO17419.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "Ext2.h" - -static int -memb_content_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 16512L && value <= 2113663L)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_memb_content_constr_2 CC_NOTUSED = { - { 4, 1 } /* (16512..2113663) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_memb_content_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 21, -1, 16512, 2113663 } /* (16512..2113663) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_Ext2_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_Ext2_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_Ext2_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Ext2, choice.content), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_memb_content_constr_2, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_memb_content_constr_2, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - memb_content_constraint_1 - }, - 0, 0, /* No default value */ - "content" - }, - { ATF_NOFLAGS, 0, offsetof(struct Ext2, choice.extension), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Ext3, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "extension" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_Ext2_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* content */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* extension */ -}; -asn_CHOICE_specifics_t asn_SPC_Ext2_specs_1 = { - sizeof(struct Ext2), - offsetof(struct Ext2, _asn_ctx), - offsetof(struct Ext2, present), - sizeof(((struct Ext2 *)0)->present), - asn_MAP_Ext2_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_Ext2 = { - "Ext2", - "Ext2", - &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) - &asn_OER_type_Ext2_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_Ext2_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - CHOICE_constraint - }, - asn_MBR_Ext2_1, - 2, /* Elements count */ - &asn_SPC_Ext2_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/Ext3.c b/vanetza/asn1/its/Ext3.c deleted file mode 100644 index 34dd59fec..000000000 --- a/vanetza/asn1/its/Ext3.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CITSapplMgmtIDs" - * found in "build.asn1/iso/ISO17419.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "Ext3.h" - -int -Ext3_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 >= 2113664L && value <= 270549119L)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_Ext3_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_Ext3_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 28, -1, 2113664, 270549119 } /* (2113664..270549119,...) */, - { 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_Ext3_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_Ext3 = { - "Ext3", - "Ext3", - &asn_OP_NativeInteger, - asn_DEF_Ext3_tags_1, - sizeof(asn_DEF_Ext3_tags_1) - /sizeof(asn_DEF_Ext3_tags_1[0]), /* 1 */ - asn_DEF_Ext3_tags_1, /* Same as above */ - sizeof(asn_DEF_Ext3_tags_1) - /sizeof(asn_DEF_Ext3_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_Ext3_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_Ext3_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - Ext3_constraint - }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/ExteriorLights.c b/vanetza/asn1/its/ExteriorLights.c deleted file mode 100644 index 2c670f2c7..000000000 --- a/vanetza/asn1/its/ExteriorLights.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "ExteriorLights.h" - -int -ExteriorLights_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_ExteriorLights_constr_1 CC_NOTUSED = { - { 0, 0 }, - 8 /* (SIZE(8..8)) */}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_ExteriorLights_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_ExteriorLights_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_ExteriorLights = { - "ExteriorLights", - "ExteriorLights", - &asn_OP_BIT_STRING, - asn_DEF_ExteriorLights_tags_1, - sizeof(asn_DEF_ExteriorLights_tags_1) - /sizeof(asn_DEF_ExteriorLights_tags_1[0]), /* 1 */ - asn_DEF_ExteriorLights_tags_1, /* Same as above */ - sizeof(asn_DEF_ExteriorLights_tags_1) - /sizeof(asn_DEF_ExteriorLights_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_ExteriorLights_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_ExteriorLights_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - ExteriorLights_constraint - }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_BIT_STRING_specs /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/GenerationDeltaTime.c b/vanetza/asn1/its/GenerationDeltaTime.c deleted file mode 100644 index 124cec1ed..000000000 --- a/vanetza/asn1/its/GenerationDeltaTime.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CAM-PDU-Descriptions" - * found in "asn1/EN302637-2v141-CAM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "GenerationDeltaTime.h" - -int -GenerationDeltaTime_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_GenerationDeltaTime_constr_1 CC_NOTUSED = { - { 2, 1 } /* (0..65535) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_GenerationDeltaTime_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_GenerationDeltaTime_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_GenerationDeltaTime = { - "GenerationDeltaTime", - "GenerationDeltaTime", - &asn_OP_NativeInteger, - asn_DEF_GenerationDeltaTime_tags_1, - sizeof(asn_DEF_GenerationDeltaTime_tags_1) - /sizeof(asn_DEF_GenerationDeltaTime_tags_1[0]), /* 1 */ - asn_DEF_GenerationDeltaTime_tags_1, /* Same as above */ - sizeof(asn_DEF_GenerationDeltaTime_tags_1) - /sizeof(asn_DEF_GenerationDeltaTime_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_GenerationDeltaTime_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_GenerationDeltaTime_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - GenerationDeltaTime_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/HardShoulderStatus.c b/vanetza/asn1/its/HardShoulderStatus.c deleted file mode 100644 index 0bd377644..000000000 --- a/vanetza/asn1/its/HardShoulderStatus.c +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "HardShoulderStatus.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_HardShoulderStatus_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_HardShoulderStatus_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_HardShoulderStatus_value2enum_1[] = { - { 0, 20, "availableForStopping" }, - { 1, 6, "closed" }, - { 2, 19, "availableForDriving" } -}; -static const unsigned int asn_MAP_HardShoulderStatus_enum2value_1[] = { - 2, /* availableForDriving(2) */ - 0, /* availableForStopping(0) */ - 1 /* closed(1) */ -}; -const asn_INTEGER_specifics_t asn_SPC_HardShoulderStatus_specs_1 = { - asn_MAP_HardShoulderStatus_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_HardShoulderStatus_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_HardShoulderStatus_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_HardShoulderStatus = { - "HardShoulderStatus", - "HardShoulderStatus", - &asn_OP_NativeEnumerated, - asn_DEF_HardShoulderStatus_tags_1, - sizeof(asn_DEF_HardShoulderStatus_tags_1) - /sizeof(asn_DEF_HardShoulderStatus_tags_1[0]), /* 1 */ - asn_DEF_HardShoulderStatus_tags_1, /* Same as above */ - sizeof(asn_DEF_HardShoulderStatus_tags_1) - /sizeof(asn_DEF_HardShoulderStatus_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_HardShoulderStatus_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_HardShoulderStatus_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - NativeEnumerated_constraint - }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_HardShoulderStatus_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/HazardousLocation-AnimalOnTheRoadSubCauseCode.c b/vanetza/asn1/its/HazardousLocation-AnimalOnTheRoadSubCauseCode.c deleted file mode 100644 index 112c15f3e..000000000 --- a/vanetza/asn1/its/HazardousLocation-AnimalOnTheRoadSubCauseCode.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "HazardousLocation-AnimalOnTheRoadSubCauseCode.h" - -int -HazardousLocation_AnimalOnTheRoadSubCauseCode_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_HazardousLocation_AnimalOnTheRoadSubCauseCode_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_type_HazardousLocation_AnimalOnTheRoadSubCauseCode_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_HazardousLocation_AnimalOnTheRoadSubCauseCode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_HazardousLocation_AnimalOnTheRoadSubCauseCode = { - "HazardousLocation-AnimalOnTheRoadSubCauseCode", - "HazardousLocation-AnimalOnTheRoadSubCauseCode", - &asn_OP_NativeInteger, - asn_DEF_HazardousLocation_AnimalOnTheRoadSubCauseCode_tags_1, - sizeof(asn_DEF_HazardousLocation_AnimalOnTheRoadSubCauseCode_tags_1) - /sizeof(asn_DEF_HazardousLocation_AnimalOnTheRoadSubCauseCode_tags_1[0]), /* 1 */ - asn_DEF_HazardousLocation_AnimalOnTheRoadSubCauseCode_tags_1, /* Same as above */ - sizeof(asn_DEF_HazardousLocation_AnimalOnTheRoadSubCauseCode_tags_1) - /sizeof(asn_DEF_HazardousLocation_AnimalOnTheRoadSubCauseCode_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_HazardousLocation_AnimalOnTheRoadSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_HazardousLocation_AnimalOnTheRoadSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - HazardousLocation_AnimalOnTheRoadSubCauseCode_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/HazardousLocation-DangerousCurveSubCauseCode.c b/vanetza/asn1/its/HazardousLocation-DangerousCurveSubCauseCode.c deleted file mode 100644 index 3b0cb10e9..000000000 --- a/vanetza/asn1/its/HazardousLocation-DangerousCurveSubCauseCode.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "HazardousLocation-DangerousCurveSubCauseCode.h" - -int -HazardousLocation_DangerousCurveSubCauseCode_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_HazardousLocation_DangerousCurveSubCauseCode_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_type_HazardousLocation_DangerousCurveSubCauseCode_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_HazardousLocation_DangerousCurveSubCauseCode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_HazardousLocation_DangerousCurveSubCauseCode = { - "HazardousLocation-DangerousCurveSubCauseCode", - "HazardousLocation-DangerousCurveSubCauseCode", - &asn_OP_NativeInteger, - asn_DEF_HazardousLocation_DangerousCurveSubCauseCode_tags_1, - sizeof(asn_DEF_HazardousLocation_DangerousCurveSubCauseCode_tags_1) - /sizeof(asn_DEF_HazardousLocation_DangerousCurveSubCauseCode_tags_1[0]), /* 1 */ - asn_DEF_HazardousLocation_DangerousCurveSubCauseCode_tags_1, /* Same as above */ - sizeof(asn_DEF_HazardousLocation_DangerousCurveSubCauseCode_tags_1) - /sizeof(asn_DEF_HazardousLocation_DangerousCurveSubCauseCode_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_HazardousLocation_DangerousCurveSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_HazardousLocation_DangerousCurveSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - HazardousLocation_DangerousCurveSubCauseCode_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/HazardousLocation-ObstacleOnTheRoadSubCauseCode.c b/vanetza/asn1/its/HazardousLocation-ObstacleOnTheRoadSubCauseCode.c deleted file mode 100644 index 99232a4b7..000000000 --- a/vanetza/asn1/its/HazardousLocation-ObstacleOnTheRoadSubCauseCode.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "HazardousLocation-ObstacleOnTheRoadSubCauseCode.h" - -int -HazardousLocation_ObstacleOnTheRoadSubCauseCode_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_HazardousLocation_ObstacleOnTheRoadSubCauseCode_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_type_HazardousLocation_ObstacleOnTheRoadSubCauseCode_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_HazardousLocation_ObstacleOnTheRoadSubCauseCode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_HazardousLocation_ObstacleOnTheRoadSubCauseCode = { - "HazardousLocation-ObstacleOnTheRoadSubCauseCode", - "HazardousLocation-ObstacleOnTheRoadSubCauseCode", - &asn_OP_NativeInteger, - asn_DEF_HazardousLocation_ObstacleOnTheRoadSubCauseCode_tags_1, - sizeof(asn_DEF_HazardousLocation_ObstacleOnTheRoadSubCauseCode_tags_1) - /sizeof(asn_DEF_HazardousLocation_ObstacleOnTheRoadSubCauseCode_tags_1[0]), /* 1 */ - asn_DEF_HazardousLocation_ObstacleOnTheRoadSubCauseCode_tags_1, /* Same as above */ - sizeof(asn_DEF_HazardousLocation_ObstacleOnTheRoadSubCauseCode_tags_1) - /sizeof(asn_DEF_HazardousLocation_ObstacleOnTheRoadSubCauseCode_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_HazardousLocation_ObstacleOnTheRoadSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_HazardousLocation_ObstacleOnTheRoadSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - HazardousLocation_ObstacleOnTheRoadSubCauseCode_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/HazardousLocation-SurfaceConditionSubCauseCode.c b/vanetza/asn1/its/HazardousLocation-SurfaceConditionSubCauseCode.c deleted file mode 100644 index 8f9b6ccca..000000000 --- a/vanetza/asn1/its/HazardousLocation-SurfaceConditionSubCauseCode.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "HazardousLocation-SurfaceConditionSubCauseCode.h" - -int -HazardousLocation_SurfaceConditionSubCauseCode_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_HazardousLocation_SurfaceConditionSubCauseCode_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_type_HazardousLocation_SurfaceConditionSubCauseCode_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_HazardousLocation_SurfaceConditionSubCauseCode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_HazardousLocation_SurfaceConditionSubCauseCode = { - "HazardousLocation-SurfaceConditionSubCauseCode", - "HazardousLocation-SurfaceConditionSubCauseCode", - &asn_OP_NativeInteger, - asn_DEF_HazardousLocation_SurfaceConditionSubCauseCode_tags_1, - sizeof(asn_DEF_HazardousLocation_SurfaceConditionSubCauseCode_tags_1) - /sizeof(asn_DEF_HazardousLocation_SurfaceConditionSubCauseCode_tags_1[0]), /* 1 */ - asn_DEF_HazardousLocation_SurfaceConditionSubCauseCode_tags_1, /* Same as above */ - sizeof(asn_DEF_HazardousLocation_SurfaceConditionSubCauseCode_tags_1) - /sizeof(asn_DEF_HazardousLocation_SurfaceConditionSubCauseCode_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_HazardousLocation_SurfaceConditionSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_HazardousLocation_SurfaceConditionSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - HazardousLocation_SurfaceConditionSubCauseCode_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/Heading.c b/vanetza/asn1/its/Heading.c deleted file mode 100644 index ae21b83ce..000000000 --- a/vanetza/asn1/its/Heading.c +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "Heading.h" - -asn_TYPE_member_t asn_MBR_Heading_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Heading, headingValue), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_HeadingValue, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "headingValue" - }, - { ATF_NOFLAGS, 0, offsetof(struct Heading, headingConfidence), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_HeadingConfidence, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "headingConfidence" - }, -}; -static const ber_tlv_tag_t asn_DEF_Heading_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Heading_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* headingValue */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* headingConfidence */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Heading_specs_1 = { - sizeof(struct Heading), - offsetof(struct Heading, _asn_ctx), - asn_MAP_Heading_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_Heading = { - "Heading", - "Heading", - &asn_OP_SEQUENCE, - asn_DEF_Heading_tags_1, - sizeof(asn_DEF_Heading_tags_1) - /sizeof(asn_DEF_Heading_tags_1[0]), /* 1 */ - asn_DEF_Heading_tags_1, /* Same as above */ - sizeof(asn_DEF_Heading_tags_1) - /sizeof(asn_DEF_Heading_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_Heading_1, - 2, /* Elements count */ - &asn_SPC_Heading_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/HeadingConfidence.c b/vanetza/asn1/its/HeadingConfidence.c deleted file mode 100644 index 9bc2ea73c..000000000 --- a/vanetza/asn1/its/HeadingConfidence.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "HeadingConfidence.h" - -int -HeadingConfidence_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 <= 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_HeadingConfidence_constr_1 CC_NOTUSED = { - { 1, 1 } /* (1..127) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_HeadingConfidence_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 1, 127 } /* (1..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_HeadingConfidence_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_HeadingConfidence = { - "HeadingConfidence", - "HeadingConfidence", - &asn_OP_NativeInteger, - asn_DEF_HeadingConfidence_tags_1, - sizeof(asn_DEF_HeadingConfidence_tags_1) - /sizeof(asn_DEF_HeadingConfidence_tags_1[0]), /* 1 */ - asn_DEF_HeadingConfidence_tags_1, /* Same as above */ - sizeof(asn_DEF_HeadingConfidence_tags_1) - /sizeof(asn_DEF_HeadingConfidence_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_HeadingConfidence_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_HeadingConfidence_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - HeadingConfidence_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/HeadingValue.c b/vanetza/asn1/its/HeadingValue.c deleted file mode 100644 index a90124219..000000000 --- a/vanetza/asn1/its/HeadingValue.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "HeadingValue.h" - -int -HeadingValue_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 <= 3601L)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_HeadingValue_constr_1 CC_NOTUSED = { - { 2, 1 } /* (0..3601) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_HeadingValue_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 12, 12, 0, 3601 } /* (0..3601) */, - { 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_HeadingValue_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_HeadingValue = { - "HeadingValue", - "HeadingValue", - &asn_OP_NativeInteger, - asn_DEF_HeadingValue_tags_1, - sizeof(asn_DEF_HeadingValue_tags_1) - /sizeof(asn_DEF_HeadingValue_tags_1[0]), /* 1 */ - asn_DEF_HeadingValue_tags_1, /* Same as above */ - sizeof(asn_DEF_HeadingValue_tags_1) - /sizeof(asn_DEF_HeadingValue_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_HeadingValue_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_HeadingValue_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - HeadingValue_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/HeightLonCarr.c b/vanetza/asn1/its/HeightLonCarr.c deleted file mode 100644 index 447b3235b..000000000 --- a/vanetza/asn1/its/HeightLonCarr.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "HeightLonCarr.h" - -int -HeightLonCarr_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 <= 100L)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_HeightLonCarr_constr_1 CC_NOTUSED = { - { 1, 1 } /* (1..100) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_HeightLonCarr_constr_1 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) */ -static const ber_tlv_tag_t asn_DEF_HeightLonCarr_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_HeightLonCarr = { - "HeightLonCarr", - "HeightLonCarr", - &asn_OP_NativeInteger, - asn_DEF_HeightLonCarr_tags_1, - sizeof(asn_DEF_HeightLonCarr_tags_1) - /sizeof(asn_DEF_HeightLonCarr_tags_1[0]), /* 1 */ - asn_DEF_HeightLonCarr_tags_1, /* Same as above */ - sizeof(asn_DEF_HeightLonCarr_tags_1) - /sizeof(asn_DEF_HeightLonCarr_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_HeightLonCarr_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_HeightLonCarr_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - HeightLonCarr_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/HighFrequencyContainer.c b/vanetza/asn1/its/HighFrequencyContainer.c deleted file mode 100644 index a61c0a628..000000000 --- a/vanetza/asn1/its/HighFrequencyContainer.c +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CAM-PDU-Descriptions" - * found in "asn1/EN302637-2v141-CAM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "HighFrequencyContainer.h" - -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_HighFrequencyContainer_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_HighFrequencyContainer_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_HighFrequencyContainer_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct HighFrequencyContainer, choice.basicVehicleContainerHighFrequency), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BasicVehicleContainerHighFrequency, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "basicVehicleContainerHighFrequency" - }, - { ATF_NOFLAGS, 0, offsetof(struct HighFrequencyContainer, choice.rsuContainerHighFrequency), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RSUContainerHighFrequency, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "rsuContainerHighFrequency" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_HighFrequencyContainer_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* basicVehicleContainerHighFrequency */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* rsuContainerHighFrequency */ -}; -asn_CHOICE_specifics_t asn_SPC_HighFrequencyContainer_specs_1 = { - sizeof(struct HighFrequencyContainer), - offsetof(struct HighFrequencyContainer, _asn_ctx), - offsetof(struct HighFrequencyContainer, present), - sizeof(((struct HighFrequencyContainer *)0)->present), - asn_MAP_HighFrequencyContainer_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, - 2 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_HighFrequencyContainer = { - "HighFrequencyContainer", - "HighFrequencyContainer", - &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) - &asn_OER_type_HighFrequencyContainer_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_HighFrequencyContainer_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - CHOICE_constraint - }, - asn_MBR_HighFrequencyContainer_1, - 2, /* Elements count */ - &asn_SPC_HighFrequencyContainer_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/HumanPresenceOnTheRoadSubCauseCode.c b/vanetza/asn1/its/HumanPresenceOnTheRoadSubCauseCode.c deleted file mode 100644 index d9208008a..000000000 --- a/vanetza/asn1/its/HumanPresenceOnTheRoadSubCauseCode.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "HumanPresenceOnTheRoadSubCauseCode.h" - -int -HumanPresenceOnTheRoadSubCauseCode_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_HumanPresenceOnTheRoadSubCauseCode_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_type_HumanPresenceOnTheRoadSubCauseCode_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_HumanPresenceOnTheRoadSubCauseCode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_HumanPresenceOnTheRoadSubCauseCode = { - "HumanPresenceOnTheRoadSubCauseCode", - "HumanPresenceOnTheRoadSubCauseCode", - &asn_OP_NativeInteger, - asn_DEF_HumanPresenceOnTheRoadSubCauseCode_tags_1, - sizeof(asn_DEF_HumanPresenceOnTheRoadSubCauseCode_tags_1) - /sizeof(asn_DEF_HumanPresenceOnTheRoadSubCauseCode_tags_1[0]), /* 1 */ - asn_DEF_HumanPresenceOnTheRoadSubCauseCode_tags_1, /* Same as above */ - sizeof(asn_DEF_HumanPresenceOnTheRoadSubCauseCode_tags_1) - /sizeof(asn_DEF_HumanPresenceOnTheRoadSubCauseCode_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_HumanPresenceOnTheRoadSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_HumanPresenceOnTheRoadSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - HumanPresenceOnTheRoadSubCauseCode_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/HumanProblemSubCauseCode.c b/vanetza/asn1/its/HumanProblemSubCauseCode.c deleted file mode 100644 index eca20b7d5..000000000 --- a/vanetza/asn1/its/HumanProblemSubCauseCode.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "HumanProblemSubCauseCode.h" - -int -HumanProblemSubCauseCode_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_HumanProblemSubCauseCode_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_type_HumanProblemSubCauseCode_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_HumanProblemSubCauseCode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_HumanProblemSubCauseCode = { - "HumanProblemSubCauseCode", - "HumanProblemSubCauseCode", - &asn_OP_NativeInteger, - asn_DEF_HumanProblemSubCauseCode_tags_1, - sizeof(asn_DEF_HumanProblemSubCauseCode_tags_1) - /sizeof(asn_DEF_HumanProblemSubCauseCode_tags_1[0]), /* 1 */ - asn_DEF_HumanProblemSubCauseCode_tags_1, /* Same as above */ - sizeof(asn_DEF_HumanProblemSubCauseCode_tags_1) - /sizeof(asn_DEF_HumanProblemSubCauseCode_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_HumanProblemSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_HumanProblemSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - HumanProblemSubCauseCode_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/ImpactReductionContainer.c b/vanetza/asn1/its/ImpactReductionContainer.c deleted file mode 100644 index 965648f9d..000000000 --- a/vanetza/asn1/its/ImpactReductionContainer.c +++ /dev/null @@ -1,264 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "DENM-PDU-Descriptions" - * found in "asn1/EN302637-3v131-DENM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "ImpactReductionContainer.h" - -asn_TYPE_member_t asn_MBR_ImpactReductionContainer_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, heightLonCarrLeft), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_HeightLonCarr, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "heightLonCarrLeft" - }, - { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, heightLonCarrRight), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_HeightLonCarr, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "heightLonCarrRight" - }, - { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, posLonCarrLeft), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PosLonCarr, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "posLonCarrLeft" - }, - { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, posLonCarrRight), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PosLonCarr, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "posLonCarrRight" - }, - { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, positionOfPillars), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PositionOfPillars, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "positionOfPillars" - }, - { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, posCentMass), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PosCentMass, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "posCentMass" - }, - { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, wheelBaseVehicle), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_WheelBaseVehicle, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "wheelBaseVehicle" - }, - { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, turningRadius), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TurningRadius, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "turningRadius" - }, - { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, posFrontAx), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PosFrontAx, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "posFrontAx" - }, - { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, positionOfOccupants), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PositionOfOccupants, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "positionOfOccupants" - }, - { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, vehicleMass), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_VehicleMass, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "vehicleMass" - }, - { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, requestResponseIndication), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RequestResponseIndication, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "requestResponseIndication" - }, -}; -static const ber_tlv_tag_t asn_DEF_ImpactReductionContainer_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ImpactReductionContainer_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* heightLonCarrLeft */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* heightLonCarrRight */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* posLonCarrLeft */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* posLonCarrRight */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* positionOfPillars */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* posCentMass */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* wheelBaseVehicle */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* turningRadius */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* posFrontAx */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* positionOfOccupants */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* vehicleMass */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 } /* requestResponseIndication */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ImpactReductionContainer_specs_1 = { - sizeof(struct ImpactReductionContainer), - offsetof(struct ImpactReductionContainer, _asn_ctx), - asn_MAP_ImpactReductionContainer_tag2el_1, - 12, /* Count of tags in the map */ - 0, 0, 0, /* Optional elements (not needed) */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ImpactReductionContainer = { - "ImpactReductionContainer", - "ImpactReductionContainer", - &asn_OP_SEQUENCE, - asn_DEF_ImpactReductionContainer_tags_1, - sizeof(asn_DEF_ImpactReductionContainer_tags_1) - /sizeof(asn_DEF_ImpactReductionContainer_tags_1[0]), /* 1 */ - asn_DEF_ImpactReductionContainer_tags_1, /* Same as above */ - sizeof(asn_DEF_ImpactReductionContainer_tags_1) - /sizeof(asn_DEF_ImpactReductionContainer_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_ImpactReductionContainer_1, - 12, /* Elements count */ - &asn_SPC_ImpactReductionContainer_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/InformationQuality.c b/vanetza/asn1/its/InformationQuality.c deleted file mode 100644 index dd9fa177e..000000000 --- a/vanetza/asn1/its/InformationQuality.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "InformationQuality.h" - -int -InformationQuality_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_InformationQuality_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..7) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_InformationQuality_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_InformationQuality_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_InformationQuality = { - "InformationQuality", - "InformationQuality", - &asn_OP_NativeInteger, - asn_DEF_InformationQuality_tags_1, - sizeof(asn_DEF_InformationQuality_tags_1) - /sizeof(asn_DEF_InformationQuality_tags_1[0]), /* 1 */ - asn_DEF_InformationQuality_tags_1, /* Same as above */ - sizeof(asn_DEF_InformationQuality_tags_1) - /sizeof(asn_DEF_InformationQuality_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_InformationQuality_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_InformationQuality_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - InformationQuality_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/Iso3833VehicleType.c b/vanetza/asn1/its/Iso3833VehicleType.c deleted file mode 100644 index e68ab7c62..000000000 --- a/vanetza/asn1/its/Iso3833VehicleType.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ElectronicRegistrationIdentificationVehicleDataModule" - * found in "build.asn1/iso/ISO24534-3.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "Iso3833VehicleType.h" - -int -Iso3833VehicleType_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_Iso3833VehicleType_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_Iso3833VehicleType_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_Iso3833VehicleType_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_Iso3833VehicleType = { - "Iso3833VehicleType", - "Iso3833VehicleType", - &asn_OP_NativeInteger, - asn_DEF_Iso3833VehicleType_tags_1, - sizeof(asn_DEF_Iso3833VehicleType_tags_1) - /sizeof(asn_DEF_Iso3833VehicleType_tags_1[0]), /* 1 */ - asn_DEF_Iso3833VehicleType_tags_1, /* Same as above */ - sizeof(asn_DEF_Iso3833VehicleType_tags_1) - /sizeof(asn_DEF_Iso3833VehicleType_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_Iso3833VehicleType_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_Iso3833VehicleType_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - Iso3833VehicleType_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/ItineraryPath.c b/vanetza/asn1/its/ItineraryPath.c deleted file mode 100644 index 493adc804..000000000 --- a/vanetza/asn1/its/ItineraryPath.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "ItineraryPath.h" - -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_ItineraryPath_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1 /* (SIZE(1..40)) */}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_ItineraryPath_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 1, 40 } /* (SIZE(1..40)) */, - 0, 0 /* No PER value map */ -}; -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ -asn_TYPE_member_t asn_MBR_ItineraryPath_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_ReferencePosition, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_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_ItineraryPath_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_ItineraryPath_specs_1 = { - sizeof(struct ItineraryPath), - offsetof(struct ItineraryPath, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_ItineraryPath = { - "ItineraryPath", - "ItineraryPath", - &asn_OP_SEQUENCE_OF, - asn_DEF_ItineraryPath_tags_1, - sizeof(asn_DEF_ItineraryPath_tags_1) - /sizeof(asn_DEF_ItineraryPath_tags_1[0]), /* 1 */ - asn_DEF_ItineraryPath_tags_1, /* Same as above */ - sizeof(asn_DEF_ItineraryPath_tags_1) - /sizeof(asn_DEF_ItineraryPath_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_ItineraryPath_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_ItineraryPath_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_OF_constraint - }, - asn_MBR_ItineraryPath_1, - 1, /* Single element */ - &asn_SPC_ItineraryPath_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/ItsPduHeader.c b/vanetza/asn1/its/ItsPduHeader.c deleted file mode 100644 index 480eb51c8..000000000 --- a/vanetza/asn1/its/ItsPduHeader.c +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "ItsPduHeader.h" - -static int -memb_protocolVersion_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(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_messageID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_memb_protocolVersion_constr_2 CC_NOTUSED = { - { 1, 1 } /* (0..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_memb_protocolVersion_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_memb_messageID_constr_3 CC_NOTUSED = { - { 1, 1 } /* (0..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_memb_messageID_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_ItsPduHeader_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ItsPduHeader, protocolVersion), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_memb_protocolVersion_constr_2, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_memb_protocolVersion_constr_2, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - memb_protocolVersion_constraint_1 - }, - 0, 0, /* No default value */ - "protocolVersion" - }, - { ATF_NOFLAGS, 0, offsetof(struct ItsPduHeader, messageID), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_memb_messageID_constr_3, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_memb_messageID_constr_3, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - memb_messageID_constraint_1 - }, - 0, 0, /* No default value */ - "messageID" - }, - { ATF_NOFLAGS, 0, offsetof(struct ItsPduHeader, stationID), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_StationID, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_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" - }, -}; -static const ber_tlv_tag_t asn_DEF_ItsPduHeader_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ItsPduHeader_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* protocolVersion */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* messageID */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* stationID */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ItsPduHeader_specs_1 = { - sizeof(struct ItsPduHeader), - offsetof(struct ItsPduHeader, _asn_ctx), - asn_MAP_ItsPduHeader_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_ItsPduHeader = { - "ItsPduHeader", - "ItsPduHeader", - &asn_OP_SEQUENCE, - asn_DEF_ItsPduHeader_tags_1, - sizeof(asn_DEF_ItsPduHeader_tags_1) - /sizeof(asn_DEF_ItsPduHeader_tags_1[0]), /* 1 */ - asn_DEF_ItsPduHeader_tags_1, /* Same as above */ - sizeof(asn_DEF_ItsPduHeader_tags_1) - /sizeof(asn_DEF_ItsPduHeader_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_ItsPduHeader_1, - 3, /* Elements count */ - &asn_SPC_ItsPduHeader_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/IviIdentificationNumber.c b/vanetza/asn1/its/IviIdentificationNumber.c deleted file mode 100644 index 928b2e356..000000000 --- a/vanetza/asn1/its/IviIdentificationNumber.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "IVI" - * found in "build.asn1/iso/ISO19321.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "IviIdentificationNumber.h" - -int -IviIdentificationNumber_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 <= 32767L)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_IviIdentificationNumber_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_IviIdentificationNumber_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 15, 15, 1, 32767 } /* (1..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 ber_tlv_tag_t asn_DEF_IviIdentificationNumber_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_IviIdentificationNumber = { - "IviIdentificationNumber", - "IviIdentificationNumber", - &asn_OP_NativeInteger, - asn_DEF_IviIdentificationNumber_tags_1, - sizeof(asn_DEF_IviIdentificationNumber_tags_1) - /sizeof(asn_DEF_IviIdentificationNumber_tags_1[0]), /* 1 */ - asn_DEF_IviIdentificationNumber_tags_1, /* Same as above */ - sizeof(asn_DEF_IviIdentificationNumber_tags_1) - /sizeof(asn_DEF_IviIdentificationNumber_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_IviIdentificationNumber_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_IviIdentificationNumber_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - IviIdentificationNumber_constraint - }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/LanePosition.c b/vanetza/asn1/its/LanePosition.c deleted file mode 100644 index 6e52d7dc5..000000000 --- a/vanetza/asn1/its/LanePosition.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "LanePosition.h" - -int -LanePosition_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 <= 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_LanePosition_constr_1 CC_NOTUSED = { - { 1, 0 } /* (-1..14) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_LanePosition_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, -1, 14 } /* (-1..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_LanePosition_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_LanePosition = { - "LanePosition", - "LanePosition", - &asn_OP_NativeInteger, - asn_DEF_LanePosition_tags_1, - sizeof(asn_DEF_LanePosition_tags_1) - /sizeof(asn_DEF_LanePosition_tags_1[0]), /* 1 */ - asn_DEF_LanePosition_tags_1, /* Same as above */ - sizeof(asn_DEF_LanePosition_tags_1) - /sizeof(asn_DEF_LanePosition_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_LanePosition_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_LanePosition_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - LanePosition_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/LaneType.c b/vanetza/asn1/its/LaneType.c deleted file mode 100644 index b7bf32f5a..000000000 --- a/vanetza/asn1/its/LaneType.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "IVI" - * found in "build.asn1/iso/ISO19321.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "LaneType.h" - -int -LaneType_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 <= 31L)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_LaneType_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..31) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_LaneType_constr_1 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 ber_tlv_tag_t asn_DEF_LaneType_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_LaneType = { - "LaneType", - "LaneType", - &asn_OP_NativeInteger, - asn_DEF_LaneType_tags_1, - sizeof(asn_DEF_LaneType_tags_1) - /sizeof(asn_DEF_LaneType_tags_1[0]), /* 1 */ - asn_DEF_LaneType_tags_1, /* Same as above */ - sizeof(asn_DEF_LaneType_tags_1) - /sizeof(asn_DEF_LaneType_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_LaneType_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_LaneType_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - LaneType_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/LaneWidth.c b/vanetza/asn1/its/LaneWidth.c deleted file mode 100644 index 47a27499b..000000000 --- a/vanetza/asn1/its/LaneWidth.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "DSRC" - * found in "build.asn1/iso/ISO19091.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "LaneWidth.h" - -int -LaneWidth_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 <= 32767L)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_LaneWidth_constr_1 CC_NOTUSED = { - { 2, 1 } /* (0..32767) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_LaneWidth_constr_1 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 ber_tlv_tag_t asn_DEF_LaneWidth_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_LaneWidth = { - "LaneWidth", - "LaneWidth", - &asn_OP_NativeInteger, - asn_DEF_LaneWidth_tags_1, - sizeof(asn_DEF_LaneWidth_tags_1) - /sizeof(asn_DEF_LaneWidth_tags_1[0]), /* 1 */ - asn_DEF_LaneWidth_tags_1, /* Same as above */ - sizeof(asn_DEF_LaneWidth_tags_1) - /sizeof(asn_DEF_LaneWidth_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_LaneWidth_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_LaneWidth_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - LaneWidth_constraint - }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/LateralAcceleration.c b/vanetza/asn1/its/LateralAcceleration.c deleted file mode 100644 index d2812c672..000000000 --- a/vanetza/asn1/its/LateralAcceleration.c +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "LateralAcceleration.h" - -asn_TYPE_member_t asn_MBR_LateralAcceleration_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct LateralAcceleration, lateralAccelerationValue), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LateralAccelerationValue, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "lateralAccelerationValue" - }, - { ATF_NOFLAGS, 0, offsetof(struct LateralAcceleration, lateralAccelerationConfidence), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AccelerationConfidence, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "lateralAccelerationConfidence" - }, -}; -static const ber_tlv_tag_t asn_DEF_LateralAcceleration_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_LateralAcceleration_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* lateralAccelerationValue */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* lateralAccelerationConfidence */ -}; -asn_SEQUENCE_specifics_t asn_SPC_LateralAcceleration_specs_1 = { - sizeof(struct LateralAcceleration), - offsetof(struct LateralAcceleration, _asn_ctx), - asn_MAP_LateralAcceleration_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_LateralAcceleration = { - "LateralAcceleration", - "LateralAcceleration", - &asn_OP_SEQUENCE, - asn_DEF_LateralAcceleration_tags_1, - sizeof(asn_DEF_LateralAcceleration_tags_1) - /sizeof(asn_DEF_LateralAcceleration_tags_1[0]), /* 1 */ - asn_DEF_LateralAcceleration_tags_1, /* Same as above */ - sizeof(asn_DEF_LateralAcceleration_tags_1) - /sizeof(asn_DEF_LateralAcceleration_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_LateralAcceleration_1, - 2, /* Elements count */ - &asn_SPC_LateralAcceleration_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/LateralAccelerationValue.c b/vanetza/asn1/its/LateralAccelerationValue.c deleted file mode 100644 index 9909d9263..000000000 --- a/vanetza/asn1/its/LateralAccelerationValue.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "LateralAccelerationValue.h" - -int -LateralAccelerationValue_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 >= -160L && value <= 161L)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_LateralAccelerationValue_constr_1 CC_NOTUSED = { - { 2, 0 } /* (-160..161) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_LateralAccelerationValue_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, -160, 161 } /* (-160..161) */, - { 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_LateralAccelerationValue_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_LateralAccelerationValue = { - "LateralAccelerationValue", - "LateralAccelerationValue", - &asn_OP_NativeInteger, - asn_DEF_LateralAccelerationValue_tags_1, - sizeof(asn_DEF_LateralAccelerationValue_tags_1) - /sizeof(asn_DEF_LateralAccelerationValue_tags_1[0]), /* 1 */ - asn_DEF_LateralAccelerationValue_tags_1, /* Same as above */ - sizeof(asn_DEF_LateralAccelerationValue_tags_1) - /sizeof(asn_DEF_LateralAccelerationValue_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_LateralAccelerationValue_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_LateralAccelerationValue_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - LateralAccelerationValue_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/Latitude.c b/vanetza/asn1/its/Latitude.c deleted file mode 100644 index e4c2fc0b2..000000000 --- a/vanetza/asn1/its/Latitude.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "Latitude.h" - -int -Latitude_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 >= -900000000L && value <= 900000001L)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_Latitude_constr_1 CC_NOTUSED = { - { 4, 0 } /* (-900000000..900000001) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_Latitude_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 31, -1, -900000000, 900000001 } /* (-900000000..900000001) */, - { 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_Latitude_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_Latitude = { - "Latitude", - "Latitude", - &asn_OP_NativeInteger, - asn_DEF_Latitude_tags_1, - sizeof(asn_DEF_Latitude_tags_1) - /sizeof(asn_DEF_Latitude_tags_1[0]), /* 1 */ - asn_DEF_Latitude_tags_1, /* Same as above */ - sizeof(asn_DEF_Latitude_tags_1) - /sizeof(asn_DEF_Latitude_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_Latitude_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_Latitude_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - Latitude_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/LightBarSirenInUse.c b/vanetza/asn1/its/LightBarSirenInUse.c deleted file mode 100644 index 0bd3b03ee..000000000 --- a/vanetza/asn1/its/LightBarSirenInUse.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "LightBarSirenInUse.h" - -int -LightBarSirenInUse_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 == 2UL)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_LightBarSirenInUse_constr_1 CC_NOTUSED = { - { 0, 0 }, - 2 /* (SIZE(2..2)) */}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_LightBarSirenInUse_constr_1 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 const ber_tlv_tag_t asn_DEF_LightBarSirenInUse_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_LightBarSirenInUse = { - "LightBarSirenInUse", - "LightBarSirenInUse", - &asn_OP_BIT_STRING, - asn_DEF_LightBarSirenInUse_tags_1, - sizeof(asn_DEF_LightBarSirenInUse_tags_1) - /sizeof(asn_DEF_LightBarSirenInUse_tags_1[0]), /* 1 */ - asn_DEF_LightBarSirenInUse_tags_1, /* Same as above */ - sizeof(asn_DEF_LightBarSirenInUse_tags_1) - /sizeof(asn_DEF_LightBarSirenInUse_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_LightBarSirenInUse_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_LightBarSirenInUse_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - LightBarSirenInUse_constraint - }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_BIT_STRING_specs /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/LocationContainer.c b/vanetza/asn1/its/LocationContainer.c deleted file mode 100644 index a8fe69dc2..000000000 --- a/vanetza/asn1/its/LocationContainer.c +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "DENM-PDU-Descriptions" - * found in "asn1/EN302637-3v131-DENM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "LocationContainer.h" - -asn_TYPE_member_t asn_MBR_LocationContainer_1[] = { - { ATF_POINTER, 2, offsetof(struct LocationContainer, eventSpeed), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Speed, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "eventSpeed" - }, - { ATF_POINTER, 1, offsetof(struct LocationContainer, eventPositionHeading), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Heading, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "eventPositionHeading" - }, - { ATF_NOFLAGS, 0, offsetof(struct LocationContainer, traces), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Traces, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "traces" - }, - { ATF_POINTER, 1, offsetof(struct LocationContainer, roadType), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RoadType, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "roadType" - }, -}; -static const int asn_MAP_LocationContainer_oms_1[] = { 0, 1, 3 }; -static const ber_tlv_tag_t asn_DEF_LocationContainer_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_LocationContainer_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* eventSpeed */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* eventPositionHeading */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* traces */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* roadType */ -}; -asn_SEQUENCE_specifics_t asn_SPC_LocationContainer_specs_1 = { - sizeof(struct LocationContainer), - offsetof(struct LocationContainer, _asn_ctx), - asn_MAP_LocationContainer_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_LocationContainer_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_LocationContainer = { - "LocationContainer", - "LocationContainer", - &asn_OP_SEQUENCE, - asn_DEF_LocationContainer_tags_1, - sizeof(asn_DEF_LocationContainer_tags_1) - /sizeof(asn_DEF_LocationContainer_tags_1[0]), /* 1 */ - asn_DEF_LocationContainer_tags_1, /* Same as above */ - sizeof(asn_DEF_LocationContainer_tags_1) - /sizeof(asn_DEF_LocationContainer_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_LocationContainer_1, - 4, /* Elements count */ - &asn_SPC_LocationContainer_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/Longitude.c b/vanetza/asn1/its/Longitude.c deleted file mode 100644 index cdbe76a75..000000000 --- a/vanetza/asn1/its/Longitude.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "Longitude.h" - -int -Longitude_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 >= -1800000000L && value <= 1800000001L)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_Longitude_constr_1 CC_NOTUSED = { - { 4, 0 } /* (-1800000000..1800000001) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_Longitude_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 32, -1, -1800000000, 1800000001 } /* (-1800000000..1800000001) */, - { 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_Longitude_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_Longitude = { - "Longitude", - "Longitude", - &asn_OP_NativeInteger, - asn_DEF_Longitude_tags_1, - sizeof(asn_DEF_Longitude_tags_1) - /sizeof(asn_DEF_Longitude_tags_1[0]), /* 1 */ - asn_DEF_Longitude_tags_1, /* Same as above */ - sizeof(asn_DEF_Longitude_tags_1) - /sizeof(asn_DEF_Longitude_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_Longitude_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_Longitude_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - Longitude_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/LongitudinalAcceleration.c b/vanetza/asn1/its/LongitudinalAcceleration.c deleted file mode 100644 index 62c114201..000000000 --- a/vanetza/asn1/its/LongitudinalAcceleration.c +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "LongitudinalAcceleration.h" - -asn_TYPE_member_t asn_MBR_LongitudinalAcceleration_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct LongitudinalAcceleration, longitudinalAccelerationValue), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LongitudinalAccelerationValue, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "longitudinalAccelerationValue" - }, - { ATF_NOFLAGS, 0, offsetof(struct LongitudinalAcceleration, longitudinalAccelerationConfidence), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AccelerationConfidence, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "longitudinalAccelerationConfidence" - }, -}; -static const ber_tlv_tag_t asn_DEF_LongitudinalAcceleration_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_LongitudinalAcceleration_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* longitudinalAccelerationValue */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* longitudinalAccelerationConfidence */ -}; -asn_SEQUENCE_specifics_t asn_SPC_LongitudinalAcceleration_specs_1 = { - sizeof(struct LongitudinalAcceleration), - offsetof(struct LongitudinalAcceleration, _asn_ctx), - asn_MAP_LongitudinalAcceleration_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_LongitudinalAcceleration = { - "LongitudinalAcceleration", - "LongitudinalAcceleration", - &asn_OP_SEQUENCE, - asn_DEF_LongitudinalAcceleration_tags_1, - sizeof(asn_DEF_LongitudinalAcceleration_tags_1) - /sizeof(asn_DEF_LongitudinalAcceleration_tags_1[0]), /* 1 */ - asn_DEF_LongitudinalAcceleration_tags_1, /* Same as above */ - sizeof(asn_DEF_LongitudinalAcceleration_tags_1) - /sizeof(asn_DEF_LongitudinalAcceleration_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_LongitudinalAcceleration_1, - 2, /* Elements count */ - &asn_SPC_LongitudinalAcceleration_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/LongitudinalAccelerationValue.c b/vanetza/asn1/its/LongitudinalAccelerationValue.c deleted file mode 100644 index 568864282..000000000 --- a/vanetza/asn1/its/LongitudinalAccelerationValue.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "LongitudinalAccelerationValue.h" - -int -LongitudinalAccelerationValue_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 >= -160L && value <= 161L)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_LongitudinalAccelerationValue_constr_1 CC_NOTUSED = { - { 2, 0 } /* (-160..161) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_LongitudinalAccelerationValue_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, -160, 161 } /* (-160..161) */, - { 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_LongitudinalAccelerationValue_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_LongitudinalAccelerationValue = { - "LongitudinalAccelerationValue", - "LongitudinalAccelerationValue", - &asn_OP_NativeInteger, - asn_DEF_LongitudinalAccelerationValue_tags_1, - sizeof(asn_DEF_LongitudinalAccelerationValue_tags_1) - /sizeof(asn_DEF_LongitudinalAccelerationValue_tags_1[0]), /* 1 */ - asn_DEF_LongitudinalAccelerationValue_tags_1, /* Same as above */ - sizeof(asn_DEF_LongitudinalAccelerationValue_tags_1) - /sizeof(asn_DEF_LongitudinalAccelerationValue_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_LongitudinalAccelerationValue_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_LongitudinalAccelerationValue_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - LongitudinalAccelerationValue_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/LongitudinalLanePosition.c b/vanetza/asn1/its/LongitudinalLanePosition.c deleted file mode 100644 index 2cdc3a28e..000000000 --- a/vanetza/asn1/its/LongitudinalLanePosition.c +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CPM-PDU-Descriptions" - * found in "asn1/TR103562v211-CPM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "LongitudinalLanePosition.h" - -asn_TYPE_member_t asn_MBR_LongitudinalLanePosition_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct LongitudinalLanePosition, longitudinalLanePositionValue), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LongitudinalLanePositionValue, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "longitudinalLanePositionValue" - }, - { ATF_NOFLAGS, 0, offsetof(struct LongitudinalLanePosition, longitudinalLanePositionConfidence), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LongitudinalLanePositionConfidence, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "longitudinalLanePositionConfidence" - }, -}; -static const ber_tlv_tag_t asn_DEF_LongitudinalLanePosition_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_LongitudinalLanePosition_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* longitudinalLanePositionValue */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* longitudinalLanePositionConfidence */ -}; -asn_SEQUENCE_specifics_t asn_SPC_LongitudinalLanePosition_specs_1 = { - sizeof(struct LongitudinalLanePosition), - offsetof(struct LongitudinalLanePosition, _asn_ctx), - asn_MAP_LongitudinalLanePosition_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_LongitudinalLanePosition = { - "LongitudinalLanePosition", - "LongitudinalLanePosition", - &asn_OP_SEQUENCE, - asn_DEF_LongitudinalLanePosition_tags_1, - sizeof(asn_DEF_LongitudinalLanePosition_tags_1) - /sizeof(asn_DEF_LongitudinalLanePosition_tags_1[0]), /* 1 */ - asn_DEF_LongitudinalLanePosition_tags_1, /* Same as above */ - sizeof(asn_DEF_LongitudinalLanePosition_tags_1) - /sizeof(asn_DEF_LongitudinalLanePosition_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_LongitudinalLanePosition_1, - 2, /* Elements count */ - &asn_SPC_LongitudinalLanePosition_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/LongitudinalLanePositionConfidence.c b/vanetza/asn1/its/LongitudinalLanePositionConfidence.c deleted file mode 100644 index 1cb4c692a..000000000 --- a/vanetza/asn1/its/LongitudinalLanePositionConfidence.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CPM-PDU-Descriptions" - * found in "asn1/TR103562v211-CPM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "LongitudinalLanePositionConfidence.h" - -int -LongitudinalLanePositionConfidence_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 <= 102L)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_LongitudinalLanePositionConfidence_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..102) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_LongitudinalLanePositionConfidence_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 102 } /* (0..102) */, - { 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_LongitudinalLanePositionConfidence_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_LongitudinalLanePositionConfidence = { - "LongitudinalLanePositionConfidence", - "LongitudinalLanePositionConfidence", - &asn_OP_NativeInteger, - asn_DEF_LongitudinalLanePositionConfidence_tags_1, - sizeof(asn_DEF_LongitudinalLanePositionConfidence_tags_1) - /sizeof(asn_DEF_LongitudinalLanePositionConfidence_tags_1[0]), /* 1 */ - asn_DEF_LongitudinalLanePositionConfidence_tags_1, /* Same as above */ - sizeof(asn_DEF_LongitudinalLanePositionConfidence_tags_1) - /sizeof(asn_DEF_LongitudinalLanePositionConfidence_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_LongitudinalLanePositionConfidence_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_LongitudinalLanePositionConfidence_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - LongitudinalLanePositionConfidence_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/LongitudinalLanePositionValue.c b/vanetza/asn1/its/LongitudinalLanePositionValue.c deleted file mode 100644 index c37ee06e5..000000000 --- a/vanetza/asn1/its/LongitudinalLanePositionValue.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CPM-PDU-Descriptions" - * found in "asn1/TR103562v211-CPM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "LongitudinalLanePositionValue.h" - -int -LongitudinalLanePositionValue_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 <= 32767L)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_LongitudinalLanePositionValue_constr_1 CC_NOTUSED = { - { 2, 1 } /* (0..32767) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_LongitudinalLanePositionValue_constr_1 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 ber_tlv_tag_t asn_DEF_LongitudinalLanePositionValue_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_LongitudinalLanePositionValue = { - "LongitudinalLanePositionValue", - "LongitudinalLanePositionValue", - &asn_OP_NativeInteger, - asn_DEF_LongitudinalLanePositionValue_tags_1, - sizeof(asn_DEF_LongitudinalLanePositionValue_tags_1) - /sizeof(asn_DEF_LongitudinalLanePositionValue_tags_1[0]), /* 1 */ - asn_DEF_LongitudinalLanePositionValue_tags_1, /* Same as above */ - sizeof(asn_DEF_LongitudinalLanePositionValue_tags_1) - /sizeof(asn_DEF_LongitudinalLanePositionValue_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_LongitudinalLanePositionValue_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_LongitudinalLanePositionValue_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - LongitudinalLanePositionValue_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/LowFrequencyContainer.c b/vanetza/asn1/its/LowFrequencyContainer.c deleted file mode 100644 index aac880891..000000000 --- a/vanetza/asn1/its/LowFrequencyContainer.c +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CAM-PDU-Descriptions" - * found in "asn1/EN302637-2v141-CAM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "LowFrequencyContainer.h" - -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_LowFrequencyContainer_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_LowFrequencyContainer_constr_1 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) */ -asn_TYPE_member_t asn_MBR_LowFrequencyContainer_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct LowFrequencyContainer, choice.basicVehicleContainerLowFrequency), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_BasicVehicleContainerLowFrequency, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "basicVehicleContainerLowFrequency" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_LowFrequencyContainer_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* basicVehicleContainerLowFrequency */ -}; -asn_CHOICE_specifics_t asn_SPC_LowFrequencyContainer_specs_1 = { - sizeof(struct LowFrequencyContainer), - offsetof(struct LowFrequencyContainer, _asn_ctx), - offsetof(struct LowFrequencyContainer, present), - sizeof(((struct LowFrequencyContainer *)0)->present), - asn_MAP_LowFrequencyContainer_tag2el_1, - 1, /* Count of tags in the map */ - 0, 0, - 1 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_LowFrequencyContainer = { - "LowFrequencyContainer", - "LowFrequencyContainer", - &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) - &asn_OER_type_LowFrequencyContainer_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_LowFrequencyContainer_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - CHOICE_constraint - }, - asn_MBR_LowFrequencyContainer_1, - 1, /* Elements count */ - &asn_SPC_LowFrequencyContainer_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/MapReference.c b/vanetza/asn1/its/MapReference.c deleted file mode 100644 index 5ebd9917b..000000000 --- a/vanetza/asn1/its/MapReference.c +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "IVI" - * found in "build.asn1/iso/ISO19321.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "MapReference.h" - -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_MapReference_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_MapReference_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_MapReference_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct MapReference, choice.roadsegment), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RoadSegmentReferenceID, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "roadsegment" - }, - { ATF_NOFLAGS, 0, offsetof(struct MapReference, choice.intersection), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_IntersectionReferenceID, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "intersection" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_MapReference_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* roadsegment */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* intersection */ -}; -asn_CHOICE_specifics_t asn_SPC_MapReference_specs_1 = { - sizeof(struct MapReference), - offsetof(struct MapReference, _asn_ctx), - offsetof(struct MapReference, present), - sizeof(((struct MapReference *)0)->present), - asn_MAP_MapReference_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_MapReference = { - "MapReference", - "MapReference", - &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) - &asn_OER_type_MapReference_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_MapReference_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - CHOICE_constraint - }, - asn_MBR_MapReference_1, - 2, /* Elements count */ - &asn_SPC_MapReference_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/NumberOfOccupants.c b/vanetza/asn1/its/NumberOfOccupants.c deleted file mode 100644 index bed24f651..000000000 --- a/vanetza/asn1/its/NumberOfOccupants.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "NumberOfOccupants.h" - -int -NumberOfOccupants_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_NumberOfOccupants_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..127) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_NumberOfOccupants_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_NumberOfOccupants_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_NumberOfOccupants = { - "NumberOfOccupants", - "NumberOfOccupants", - &asn_OP_NativeInteger, - asn_DEF_NumberOfOccupants_tags_1, - sizeof(asn_DEF_NumberOfOccupants_tags_1) - /sizeof(asn_DEF_NumberOfOccupants_tags_1[0]), /* 1 */ - asn_DEF_NumberOfOccupants_tags_1, /* Same as above */ - sizeof(asn_DEF_NumberOfOccupants_tags_1) - /sizeof(asn_DEF_NumberOfOccupants_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_NumberOfOccupants_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_NumberOfOccupants_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - NumberOfOccupants_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/ObjectClass.c b/vanetza/asn1/its/ObjectClass.c deleted file mode 100644 index cecc70772..000000000 --- a/vanetza/asn1/its/ObjectClass.c +++ /dev/null @@ -1,205 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CPM-PDU-Descriptions" - * found in "asn1/TR103562v211-CPM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "ObjectClass.h" - -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_class_constr_3 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_type_class_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) */ -static asn_TYPE_member_t asn_MBR_class_3[] = { - { ATF_NOFLAGS, 0, offsetof(struct ObjectClass__class, choice.vehicle), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_VehicleSubclass, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "vehicle" - }, - { ATF_NOFLAGS, 0, offsetof(struct ObjectClass__class, choice.person), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PersonSubclass, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "person" - }, - { ATF_NOFLAGS, 0, offsetof(struct ObjectClass__class, choice.animal), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AnimalSubclass, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "animal" - }, - { ATF_NOFLAGS, 0, offsetof(struct ObjectClass__class, choice.other), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_OtherSubclass, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "other" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_class_tag2el_3[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* vehicle */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* person */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* animal */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* other */ -}; -static asn_CHOICE_specifics_t asn_SPC_class_specs_3 = { - sizeof(struct ObjectClass__class), - offsetof(struct ObjectClass__class, _asn_ctx), - offsetof(struct ObjectClass__class, present), - sizeof(((struct ObjectClass__class *)0)->present), - asn_MAP_class_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_class_3 = { - "class", - "class", - &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) - &asn_OER_type_class_constr_3, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_class_constr_3, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - CHOICE_constraint - }, - asn_MBR_class_3, - 4, /* Elements count */ - &asn_SPC_class_specs_3 /* Additional specs */ -}; - -asn_TYPE_member_t asn_MBR_ObjectClass_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ObjectClass, confidence), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ClassConfidence, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "confidence" - }, - { ATF_NOFLAGS, 0, offsetof(struct ObjectClass, Class), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_class_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 */ - "class" - }, -}; -static const ber_tlv_tag_t asn_DEF_ObjectClass_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ObjectClass_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* confidence */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* class */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ObjectClass_specs_1 = { - sizeof(struct ObjectClass), - offsetof(struct ObjectClass, _asn_ctx), - asn_MAP_ObjectClass_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_ObjectClass = { - "ObjectClass", - "ObjectClass", - &asn_OP_SEQUENCE, - asn_DEF_ObjectClass_tags_1, - sizeof(asn_DEF_ObjectClass_tags_1) - /sizeof(asn_DEF_ObjectClass_tags_1[0]), /* 1 */ - asn_DEF_ObjectClass_tags_1, /* Same as above */ - sizeof(asn_DEF_ObjectClass_tags_1) - /sizeof(asn_DEF_ObjectClass_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_ObjectClass_1, - 2, /* Elements count */ - &asn_SPC_ObjectClass_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/ObjectClassDescription.c b/vanetza/asn1/its/ObjectClassDescription.c deleted file mode 100644 index a8ebfcf88..000000000 --- a/vanetza/asn1/its/ObjectClassDescription.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CPM-PDU-Descriptions" - * found in "asn1/TR103562v211-CPM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "ObjectClassDescription.h" - -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_ObjectClassDescription_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1 /* (SIZE(1..8)) */}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_ObjectClassDescription_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_ObjectClassDescription_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_ObjectClass, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_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_ObjectClassDescription_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_ObjectClassDescription_specs_1 = { - sizeof(struct ObjectClassDescription), - offsetof(struct ObjectClassDescription, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_ObjectClassDescription = { - "ObjectClassDescription", - "ObjectClassDescription", - &asn_OP_SEQUENCE_OF, - asn_DEF_ObjectClassDescription_tags_1, - sizeof(asn_DEF_ObjectClassDescription_tags_1) - /sizeof(asn_DEF_ObjectClassDescription_tags_1[0]), /* 1 */ - asn_DEF_ObjectClassDescription_tags_1, /* Same as above */ - sizeof(asn_DEF_ObjectClassDescription_tags_1) - /sizeof(asn_DEF_ObjectClassDescription_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_ObjectClassDescription_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_ObjectClassDescription_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_OF_constraint - }, - asn_MBR_ObjectClassDescription_1, - 1, /* Single element */ - &asn_SPC_ObjectClassDescription_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/ObjectDimension.c b/vanetza/asn1/its/ObjectDimension.c deleted file mode 100644 index 44940e1b2..000000000 --- a/vanetza/asn1/its/ObjectDimension.c +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CPM-PDU-Descriptions" - * found in "asn1/TR103562v211-CPM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "ObjectDimension.h" - -asn_TYPE_member_t asn_MBR_ObjectDimension_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ObjectDimension, value), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ObjectDimensionValue, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "value" - }, - { ATF_NOFLAGS, 0, offsetof(struct ObjectDimension, confidence), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ObjectDimensionConfidence, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "confidence" - }, -}; -static const ber_tlv_tag_t asn_DEF_ObjectDimension_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ObjectDimension_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* value */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* confidence */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ObjectDimension_specs_1 = { - sizeof(struct ObjectDimension), - offsetof(struct ObjectDimension, _asn_ctx), - asn_MAP_ObjectDimension_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_ObjectDimension = { - "ObjectDimension", - "ObjectDimension", - &asn_OP_SEQUENCE, - asn_DEF_ObjectDimension_tags_1, - sizeof(asn_DEF_ObjectDimension_tags_1) - /sizeof(asn_DEF_ObjectDimension_tags_1[0]), /* 1 */ - asn_DEF_ObjectDimension_tags_1, /* Same as above */ - sizeof(asn_DEF_ObjectDimension_tags_1) - /sizeof(asn_DEF_ObjectDimension_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_ObjectDimension_1, - 2, /* Elements count */ - &asn_SPC_ObjectDimension_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/ObjectDimensionConfidence.c b/vanetza/asn1/its/ObjectDimensionConfidence.c deleted file mode 100644 index 809160e45..000000000 --- a/vanetza/asn1/its/ObjectDimensionConfidence.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CPM-PDU-Descriptions" - * found in "asn1/TR103562v211-CPM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "ObjectDimensionConfidence.h" - -int -ObjectDimensionConfidence_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 <= 102L)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_ObjectDimensionConfidence_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..102) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_ObjectDimensionConfidence_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 102 } /* (0..102) */, - { 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_ObjectDimensionConfidence_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_ObjectDimensionConfidence = { - "ObjectDimensionConfidence", - "ObjectDimensionConfidence", - &asn_OP_NativeInteger, - asn_DEF_ObjectDimensionConfidence_tags_1, - sizeof(asn_DEF_ObjectDimensionConfidence_tags_1) - /sizeof(asn_DEF_ObjectDimensionConfidence_tags_1[0]), /* 1 */ - asn_DEF_ObjectDimensionConfidence_tags_1, /* Same as above */ - sizeof(asn_DEF_ObjectDimensionConfidence_tags_1) - /sizeof(asn_DEF_ObjectDimensionConfidence_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_ObjectDimensionConfidence_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_ObjectDimensionConfidence_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - ObjectDimensionConfidence_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/ObjectDimensionValue.c b/vanetza/asn1/its/ObjectDimensionValue.c deleted file mode 100644 index 0a918005e..000000000 --- a/vanetza/asn1/its/ObjectDimensionValue.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CPM-PDU-Descriptions" - * found in "asn1/TR103562v211-CPM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "ObjectDimensionValue.h" - -int -ObjectDimensionValue_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 <= 1023L)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_ObjectDimensionValue_constr_1 CC_NOTUSED = { - { 2, 1 } /* (0..1023) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_ObjectDimensionValue_constr_1 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 ber_tlv_tag_t asn_DEF_ObjectDimensionValue_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_ObjectDimensionValue = { - "ObjectDimensionValue", - "ObjectDimensionValue", - &asn_OP_NativeInteger, - asn_DEF_ObjectDimensionValue_tags_1, - sizeof(asn_DEF_ObjectDimensionValue_tags_1) - /sizeof(asn_DEF_ObjectDimensionValue_tags_1[0]), /* 1 */ - asn_DEF_ObjectDimensionValue_tags_1, /* Same as above */ - sizeof(asn_DEF_ObjectDimensionValue_tags_1) - /sizeof(asn_DEF_ObjectDimensionValue_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_ObjectDimensionValue_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_ObjectDimensionValue_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - ObjectDimensionValue_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/OpeningDaysHours.c b/vanetza/asn1/its/OpeningDaysHours.c deleted file mode 100644 index 28b62a7bd..000000000 --- a/vanetza/asn1/its/OpeningDaysHours.c +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "OpeningDaysHours.h" - -/* - * This type is implemented using UTF8String, - * so here we adjust the DEF accordingly. - */ -static const ber_tlv_tag_t asn_DEF_OpeningDaysHours_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_OpeningDaysHours = { - "OpeningDaysHours", - "OpeningDaysHours", - &asn_OP_UTF8String, - asn_DEF_OpeningDaysHours_tags_1, - sizeof(asn_DEF_OpeningDaysHours_tags_1) - /sizeof(asn_DEF_OpeningDaysHours_tags_1[0]), /* 1 */ - asn_DEF_OpeningDaysHours_tags_1, /* Same as above */ - sizeof(asn_DEF_OpeningDaysHours_tags_1) - /sizeof(asn_DEF_OpeningDaysHours_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_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 */ -}; - diff --git a/vanetza/asn1/its/OriginatingVehicleContainer.c b/vanetza/asn1/its/OriginatingVehicleContainer.c deleted file mode 100644 index 99b30a6a3..000000000 --- a/vanetza/asn1/its/OriginatingVehicleContainer.c +++ /dev/null @@ -1,325 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CPM-PDU-Descriptions" - * found in "asn1/TR103562v211-CPM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "OriginatingVehicleContainer.h" - -static int asn_DFL_5_cmp_0(const void *sptr) { - const DriveDirection_t *st = sptr; - - if(!st) { - return -1; /* No value is not a default value */ - } - - /* Test default value 0 */ - return (*st != 0); -} -static int asn_DFL_5_set_0(void **sptr) { - DriveDirection_t *st = *sptr; - - if(!st) { - st = (*sptr = CALLOC(1, sizeof(*st))); - if(!st) return -1; - } - - /* Install default value 0 */ - *st = 0; - return 0; -} -asn_TYPE_member_t asn_MBR_OriginatingVehicleContainer_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct OriginatingVehicleContainer, heading), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Heading, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "heading" - }, - { ATF_NOFLAGS, 0, offsetof(struct OriginatingVehicleContainer, speed), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Speed, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "speed" - }, - { ATF_POINTER, 12, offsetof(struct OriginatingVehicleContainer, vehicleOrientationAngle), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_WGS84Angle, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "vehicleOrientationAngle" - }, - { ATF_NOFLAGS, 11, offsetof(struct OriginatingVehicleContainer, driveDirection), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_DriveDirection, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#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_5_cmp_0, /* Compare DEFAULT 0 */ - &asn_DFL_5_set_0, /* Set DEFAULT 0 */ - "driveDirection" - }, - { ATF_POINTER, 10, offsetof(struct OriginatingVehicleContainer, longitudinalAcceleration), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LongitudinalAcceleration, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "longitudinalAcceleration" - }, - { ATF_POINTER, 9, offsetof(struct OriginatingVehicleContainer, lateralAcceleration), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LateralAcceleration, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "lateralAcceleration" - }, - { ATF_POINTER, 8, offsetof(struct OriginatingVehicleContainer, verticalAcceleration), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_VerticalAcceleration, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "verticalAcceleration" - }, - { ATF_POINTER, 7, offsetof(struct OriginatingVehicleContainer, yawRate), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_YawRate, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "yawRate" - }, - { ATF_POINTER, 6, offsetof(struct OriginatingVehicleContainer, pitchAngle), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CartesianAngle, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "pitchAngle" - }, - { ATF_POINTER, 5, offsetof(struct OriginatingVehicleContainer, rollAngle), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CartesianAngle, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "rollAngle" - }, - { ATF_POINTER, 4, offsetof(struct OriginatingVehicleContainer, vehicleLength), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_VehicleLength, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "vehicleLength" - }, - { ATF_POINTER, 3, offsetof(struct OriginatingVehicleContainer, vehicleWidth), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_VehicleWidth, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "vehicleWidth" - }, - { ATF_POINTER, 2, offsetof(struct OriginatingVehicleContainer, vehicleHeight), - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_VehicleHeight, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "vehicleHeight" - }, - { ATF_POINTER, 1, offsetof(struct OriginatingVehicleContainer, trailerDataContainer), - (ASN_TAG_CLASS_CONTEXT | (13 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TrailerDataContainer, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "trailerDataContainer" - }, -}; -static const int asn_MAP_OriginatingVehicleContainer_oms_1[] = { 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static const ber_tlv_tag_t asn_DEF_OriginatingVehicleContainer_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_OriginatingVehicleContainer_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* heading */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* speed */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* vehicleOrientationAngle */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* driveDirection */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* longitudinalAcceleration */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* lateralAcceleration */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* verticalAcceleration */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* yawRate */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* pitchAngle */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* rollAngle */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* vehicleLength */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* vehicleWidth */ - { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* vehicleHeight */ - { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 } /* trailerDataContainer */ -}; -asn_SEQUENCE_specifics_t asn_SPC_OriginatingVehicleContainer_specs_1 = { - sizeof(struct OriginatingVehicleContainer), - offsetof(struct OriginatingVehicleContainer, _asn_ctx), - asn_MAP_OriginatingVehicleContainer_tag2el_1, - 14, /* Count of tags in the map */ - asn_MAP_OriginatingVehicleContainer_oms_1, /* Optional members */ - 12, 0, /* Root/Additions */ - 14, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_OriginatingVehicleContainer = { - "OriginatingVehicleContainer", - "OriginatingVehicleContainer", - &asn_OP_SEQUENCE, - asn_DEF_OriginatingVehicleContainer_tags_1, - sizeof(asn_DEF_OriginatingVehicleContainer_tags_1) - /sizeof(asn_DEF_OriginatingVehicleContainer_tags_1[0]), /* 1 */ - asn_DEF_OriginatingVehicleContainer_tags_1, /* Same as above */ - sizeof(asn_DEF_OriginatingVehicleContainer_tags_1) - /sizeof(asn_DEF_OriginatingVehicleContainer_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_OriginatingVehicleContainer_1, - 14, /* Elements count */ - &asn_SPC_OriginatingVehicleContainer_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/PathDeltaTime.c b/vanetza/asn1/its/PathDeltaTime.c deleted file mode 100644 index 8530c56d1..000000000 --- a/vanetza/asn1/its/PathDeltaTime.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "PathDeltaTime.h" - -int -PathDeltaTime_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 <= 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_PathDeltaTime_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_PathDeltaTime_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 16, 16, 1, 65535 } /* (1..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_PathDeltaTime_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_PathDeltaTime = { - "PathDeltaTime", - "PathDeltaTime", - &asn_OP_NativeInteger, - asn_DEF_PathDeltaTime_tags_1, - sizeof(asn_DEF_PathDeltaTime_tags_1) - /sizeof(asn_DEF_PathDeltaTime_tags_1[0]), /* 1 */ - asn_DEF_PathDeltaTime_tags_1, /* Same as above */ - sizeof(asn_DEF_PathDeltaTime_tags_1) - /sizeof(asn_DEF_PathDeltaTime_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_PathDeltaTime_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_PathDeltaTime_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - PathDeltaTime_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/PathHistory.c b/vanetza/asn1/its/PathHistory.c deleted file mode 100644 index dc059d900..000000000 --- a/vanetza/asn1/its/PathHistory.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "PathHistory.h" - -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_PathHistory_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1 /* (SIZE(0..40)) */}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_PathHistory_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 6, 6, 0, 40 } /* (SIZE(0..40)) */, - 0, 0 /* No PER value map */ -}; -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ -asn_TYPE_member_t asn_MBR_PathHistory_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_PathPoint, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_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_PathHistory_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_PathHistory_specs_1 = { - sizeof(struct PathHistory), - offsetof(struct PathHistory, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_PathHistory = { - "PathHistory", - "PathHistory", - &asn_OP_SEQUENCE_OF, - asn_DEF_PathHistory_tags_1, - sizeof(asn_DEF_PathHistory_tags_1) - /sizeof(asn_DEF_PathHistory_tags_1[0]), /* 1 */ - asn_DEF_PathHistory_tags_1, /* Same as above */ - sizeof(asn_DEF_PathHistory_tags_1) - /sizeof(asn_DEF_PathHistory_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_PathHistory_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_PathHistory_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_OF_constraint - }, - asn_MBR_PathHistory_1, - 1, /* Single element */ - &asn_SPC_PathHistory_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/PathPoint.c b/vanetza/asn1/its/PathPoint.c deleted file mode 100644 index 01647498b..000000000 --- a/vanetza/asn1/its/PathPoint.c +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "PathPoint.h" - -asn_TYPE_member_t asn_MBR_PathPoint_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PathPoint, pathPosition), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_DeltaReferencePosition, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "pathPosition" - }, - { ATF_POINTER, 1, offsetof(struct PathPoint, pathDeltaTime), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PathDeltaTime, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "pathDeltaTime" - }, -}; -static const int asn_MAP_PathPoint_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_PathPoint_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_PathPoint_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pathPosition */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* pathDeltaTime */ -}; -asn_SEQUENCE_specifics_t asn_SPC_PathPoint_specs_1 = { - sizeof(struct PathPoint), - offsetof(struct PathPoint, _asn_ctx), - asn_MAP_PathPoint_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_PathPoint_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_PathPoint = { - "PathPoint", - "PathPoint", - &asn_OP_SEQUENCE, - asn_DEF_PathPoint_tags_1, - sizeof(asn_DEF_PathPoint_tags_1) - /sizeof(asn_DEF_PathPoint_tags_1[0]), /* 1 */ - asn_DEF_PathPoint_tags_1, /* Same as above */ - sizeof(asn_DEF_PathPoint_tags_1) - /sizeof(asn_DEF_PathPoint_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_PathPoint_1, - 2, /* Elements count */ - &asn_SPC_PathPoint_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/PerceivedObject.c b/vanetza/asn1/its/PerceivedObject.c deleted file mode 100644 index c94607d9f..000000000 --- a/vanetza/asn1/its/PerceivedObject.c +++ /dev/null @@ -1,492 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CPM-PDU-Descriptions" - * found in "asn1/TR103562v211-CPM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "PerceivedObject.h" - -static int asn_DFL_6_cmp_0(const void *sptr) { - const ObjectConfidence_t *st = sptr; - - if(!st) { - return -1; /* No value is not a default value */ - } - - /* Test default value 0 */ - return (*st != 0); -} -static int asn_DFL_6_set_0(void **sptr) { - ObjectConfidence_t *st = *sptr; - - if(!st) { - st = (*sptr = CALLOC(1, sizeof(*st))); - if(!st) return -1; - } - - /* Install default value 0 */ - *st = 0; - return 0; -} -static int asn_DFL_20_cmp_0(const void *sptr) { - const ObjectRefPoint_t *st = sptr; - - if(!st) { - return -1; /* No value is not a default value */ - } - - /* Test default value 0 */ - return (*st != 0); -} -static int asn_DFL_20_set_0(void **sptr) { - ObjectRefPoint_t *st = *sptr; - - if(!st) { - st = (*sptr = CALLOC(1, sizeof(*st))); - if(!st) return -1; - } - - /* Install default value 0 */ - *st = 0; - return 0; -} -asn_TYPE_member_t asn_MBR_PerceivedObject_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PerceivedObject, objectID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_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 */ - "objectID" - }, - { ATF_POINTER, 1, offsetof(struct PerceivedObject, sensorIDList), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SensorIdList, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "sensorIDList" - }, - { ATF_NOFLAGS, 0, offsetof(struct PerceivedObject, timeOfMeasurement), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TimeOfMeasurement, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "timeOfMeasurement" - }, - { ATF_POINTER, 2, offsetof(struct PerceivedObject, objectAge), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ObjectAge, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "objectAge" - }, - { ATF_NOFLAGS, 1, offsetof(struct PerceivedObject, objectConfidence), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ObjectConfidence, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#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_6_cmp_0, /* Compare DEFAULT 0 */ - &asn_DFL_6_set_0, /* Set DEFAULT 0 */ - "objectConfidence" - }, - { ATF_NOFLAGS, 0, offsetof(struct PerceivedObject, xDistance), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ObjectDistanceWithConfidence, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "xDistance" - }, - { ATF_NOFLAGS, 0, offsetof(struct PerceivedObject, yDistance), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ObjectDistanceWithConfidence, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "yDistance" - }, - { ATF_POINTER, 1, offsetof(struct PerceivedObject, zDistance), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ObjectDistanceWithConfidence, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "zDistance" - }, - { ATF_NOFLAGS, 0, offsetof(struct PerceivedObject, xSpeed), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SpeedExtended, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "xSpeed" - }, - { ATF_NOFLAGS, 0, offsetof(struct PerceivedObject, ySpeed), - (ASN_TAG_CLASS_CONTEXT | (9 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SpeedExtended, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "ySpeed" - }, - { ATF_POINTER, 12, offsetof(struct PerceivedObject, zSpeed), - (ASN_TAG_CLASS_CONTEXT | (10 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SpeedExtended, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "zSpeed" - }, - { ATF_POINTER, 11, offsetof(struct PerceivedObject, xAcceleration), - (ASN_TAG_CLASS_CONTEXT | (11 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LongitudinalAcceleration, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "xAcceleration" - }, - { ATF_POINTER, 10, offsetof(struct PerceivedObject, yAcceleration), - (ASN_TAG_CLASS_CONTEXT | (12 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LateralAcceleration, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "yAcceleration" - }, - { ATF_POINTER, 9, offsetof(struct PerceivedObject, zAcceleration), - (ASN_TAG_CLASS_CONTEXT | (13 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_VerticalAcceleration, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "zAcceleration" - }, - { ATF_POINTER, 8, offsetof(struct PerceivedObject, yawAngle), - (ASN_TAG_CLASS_CONTEXT | (14 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CartesianAngle, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "yawAngle" - }, - { ATF_POINTER, 7, offsetof(struct PerceivedObject, planarObjectDimension1), - (ASN_TAG_CLASS_CONTEXT | (15 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ObjectDimension, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "planarObjectDimension1" - }, - { ATF_POINTER, 6, offsetof(struct PerceivedObject, planarObjectDimension2), - (ASN_TAG_CLASS_CONTEXT | (16 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ObjectDimension, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "planarObjectDimension2" - }, - { ATF_POINTER, 5, offsetof(struct PerceivedObject, verticalObjectDimension), - (ASN_TAG_CLASS_CONTEXT | (17 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ObjectDimension, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "verticalObjectDimension" - }, - { ATF_NOFLAGS, 4, offsetof(struct PerceivedObject, objectRefPoint), - (ASN_TAG_CLASS_CONTEXT | (18 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ObjectRefPoint, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#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_20_cmp_0, /* Compare DEFAULT 0 */ - &asn_DFL_20_set_0, /* Set DEFAULT 0 */ - "objectRefPoint" - }, - { ATF_POINTER, 3, offsetof(struct PerceivedObject, dynamicStatus), - (ASN_TAG_CLASS_CONTEXT | (19 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_DynamicStatus, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "dynamicStatus" - }, - { ATF_POINTER, 2, offsetof(struct PerceivedObject, classification), - (ASN_TAG_CLASS_CONTEXT | (20 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ObjectClassDescription, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "classification" - }, - { ATF_POINTER, 1, offsetof(struct PerceivedObject, matchedPosition), - (ASN_TAG_CLASS_CONTEXT | (21 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_MatchedPosition, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "matchedPosition" - }, -}; -static const int asn_MAP_PerceivedObject_oms_1[] = { 1, 3, 4, 7, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 }; -static const ber_tlv_tag_t asn_DEF_PerceivedObject_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_PerceivedObject_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* objectID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sensorIDList */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* timeOfMeasurement */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* objectAge */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* objectConfidence */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* xDistance */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* yDistance */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* zDistance */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* xSpeed */ - { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* ySpeed */ - { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* zSpeed */ - { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* xAcceleration */ - { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* yAcceleration */ - { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* zAcceleration */ - { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* yawAngle */ - { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 }, /* planarObjectDimension1 */ - { (ASN_TAG_CLASS_CONTEXT | (16 << 2)), 16, 0, 0 }, /* planarObjectDimension2 */ - { (ASN_TAG_CLASS_CONTEXT | (17 << 2)), 17, 0, 0 }, /* verticalObjectDimension */ - { (ASN_TAG_CLASS_CONTEXT | (18 << 2)), 18, 0, 0 }, /* objectRefPoint */ - { (ASN_TAG_CLASS_CONTEXT | (19 << 2)), 19, 0, 0 }, /* dynamicStatus */ - { (ASN_TAG_CLASS_CONTEXT | (20 << 2)), 20, 0, 0 }, /* classification */ - { (ASN_TAG_CLASS_CONTEXT | (21 << 2)), 21, 0, 0 } /* matchedPosition */ -}; -asn_SEQUENCE_specifics_t asn_SPC_PerceivedObject_specs_1 = { - sizeof(struct PerceivedObject), - offsetof(struct PerceivedObject, _asn_ctx), - asn_MAP_PerceivedObject_tag2el_1, - 22, /* Count of tags in the map */ - asn_MAP_PerceivedObject_oms_1, /* Optional members */ - 16, 0, /* Root/Additions */ - 22, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_PerceivedObject = { - "PerceivedObject", - "PerceivedObject", - &asn_OP_SEQUENCE, - asn_DEF_PerceivedObject_tags_1, - sizeof(asn_DEF_PerceivedObject_tags_1) - /sizeof(asn_DEF_PerceivedObject_tags_1[0]), /* 1 */ - asn_DEF_PerceivedObject_tags_1, /* Same as above */ - sizeof(asn_DEF_PerceivedObject_tags_1) - /sizeof(asn_DEF_PerceivedObject_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_PerceivedObject_1, - 22, /* Elements count */ - &asn_SPC_PerceivedObject_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/PerceivedObjectContainer.c b/vanetza/asn1/its/PerceivedObjectContainer.c deleted file mode 100644 index 64ebd38eb..000000000 --- a/vanetza/asn1/its/PerceivedObjectContainer.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CPM-PDU-Descriptions" - * found in "asn1/TR103562v211-CPM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "PerceivedObjectContainer.h" - -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_PerceivedObjectContainer_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1 /* (SIZE(0..MAX)) */}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_PerceivedObjectContainer_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED | APC_EXTENSIBLE, 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_PerceivedObjectContainer_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_PerceivedObject, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_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_PerceivedObjectContainer_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_PerceivedObjectContainer_specs_1 = { - sizeof(struct PerceivedObjectContainer), - offsetof(struct PerceivedObjectContainer, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_PerceivedObjectContainer = { - "PerceivedObjectContainer", - "PerceivedObjectContainer", - &asn_OP_SEQUENCE_OF, - asn_DEF_PerceivedObjectContainer_tags_1, - sizeof(asn_DEF_PerceivedObjectContainer_tags_1) - /sizeof(asn_DEF_PerceivedObjectContainer_tags_1[0]), /* 1 */ - asn_DEF_PerceivedObjectContainer_tags_1, /* Same as above */ - sizeof(asn_DEF_PerceivedObjectContainer_tags_1) - /sizeof(asn_DEF_PerceivedObjectContainer_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_PerceivedObjectContainer_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_PerceivedObjectContainer_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_OF_constraint - }, - asn_MBR_PerceivedObjectContainer_1, - 1, /* Single element */ - &asn_SPC_PerceivedObjectContainer_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/PerformanceClass.c b/vanetza/asn1/its/PerformanceClass.c deleted file mode 100644 index 9a8749ef9..000000000 --- a/vanetza/asn1/its/PerformanceClass.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "PerformanceClass.h" - -int -PerformanceClass_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_PerformanceClass_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..7) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_PerformanceClass_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_PerformanceClass_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_PerformanceClass = { - "PerformanceClass", - "PerformanceClass", - &asn_OP_NativeInteger, - asn_DEF_PerformanceClass_tags_1, - sizeof(asn_DEF_PerformanceClass_tags_1) - /sizeof(asn_DEF_PerformanceClass_tags_1[0]), /* 1 */ - asn_DEF_PerformanceClass_tags_1, /* Same as above */ - sizeof(asn_DEF_PerformanceClass_tags_1) - /sizeof(asn_DEF_PerformanceClass_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_PerformanceClass_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_PerformanceClass_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - PerformanceClass_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/PhoneNumber.c b/vanetza/asn1/its/PhoneNumber.c deleted file mode 100644 index 1edeb85f2..000000000 --- a/vanetza/asn1/its/PhoneNumber.c +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "PhoneNumber.h" - -static const int permitted_alphabet_table_1[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, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* . */ - 2, 3, 4, 5, 6, 7, 8, 9,10,11, 0, 0, 0, 0, 0, 0, /* 0123456789 */ -}; -static const int permitted_alphabet_code2value_1[11] = { -32,48,49,50,51,52,53,54,55,56,57,}; - - -static int check_permitted_alphabet_1(const void *sptr) { - const int *table = permitted_alphabet_table_1; - /* The underlying type is NumericString */ - const NumericString_t *st = (const NumericString_t *)sptr; - const uint8_t *ch = st->buf; - const uint8_t *end = ch + st->size; - - for(; ch < end; ch++) { - uint8_t cv = *ch; - if(!table[cv]) return -1; - } - return 0; -} - -int -PhoneNumber_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; - 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 <= 16UL) - && !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; - } -} - -static int asn_PER_MAP_PhoneNumber_1_v2c(unsigned int value) { - if(value >= sizeof(permitted_alphabet_table_1)/sizeof(permitted_alphabet_table_1[0])) - return -1; - return permitted_alphabet_table_1[value] - 1; -} -static int asn_PER_MAP_PhoneNumber_1_c2v(unsigned int code) { - if(code >= sizeof(permitted_alphabet_code2value_1)/sizeof(permitted_alphabet_code2value_1[0])) - return -1; - return permitted_alphabet_code2value_1[code]; -} -/* - * This type is implemented using NumericString, - * so here we adjust the DEF accordingly. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_PhoneNumber_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1 /* (SIZE(1..16)) */}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_PhoneNumber_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 4, 4, 32, 57 } /* (32..57) */, - { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, - asn_PER_MAP_PhoneNumber_1_v2c, /* Value to PER code map */ - asn_PER_MAP_PhoneNumber_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_PhoneNumber_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (18 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_PhoneNumber = { - "PhoneNumber", - "PhoneNumber", - &asn_OP_NumericString, - asn_DEF_PhoneNumber_tags_1, - sizeof(asn_DEF_PhoneNumber_tags_1) - /sizeof(asn_DEF_PhoneNumber_tags_1[0]), /* 1 */ - asn_DEF_PhoneNumber_tags_1, /* Same as above */ - sizeof(asn_DEF_PhoneNumber_tags_1) - /sizeof(asn_DEF_PhoneNumber_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_PhoneNumber_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_PhoneNumber_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - PhoneNumber_constraint - }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/PosCentMass.c b/vanetza/asn1/its/PosCentMass.c deleted file mode 100644 index ce3a8317f..000000000 --- a/vanetza/asn1/its/PosCentMass.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "PosCentMass.h" - -int -PosCentMass_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 <= 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_PosCentMass_constr_1 CC_NOTUSED = { - { 1, 1 } /* (1..63) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_PosCentMass_constr_1 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 ber_tlv_tag_t asn_DEF_PosCentMass_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_PosCentMass = { - "PosCentMass", - "PosCentMass", - &asn_OP_NativeInteger, - asn_DEF_PosCentMass_tags_1, - sizeof(asn_DEF_PosCentMass_tags_1) - /sizeof(asn_DEF_PosCentMass_tags_1[0]), /* 1 */ - asn_DEF_PosCentMass_tags_1, /* Same as above */ - sizeof(asn_DEF_PosCentMass_tags_1) - /sizeof(asn_DEF_PosCentMass_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_PosCentMass_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_PosCentMass_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - PosCentMass_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/PosConfidenceEllipse.c b/vanetza/asn1/its/PosConfidenceEllipse.c deleted file mode 100644 index ae8e0dabf..000000000 --- a/vanetza/asn1/its/PosConfidenceEllipse.c +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "PosConfidenceEllipse.h" - -asn_TYPE_member_t asn_MBR_PosConfidenceEllipse_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PosConfidenceEllipse, semiMajorConfidence), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SemiAxisLength, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "semiMajorConfidence" - }, - { ATF_NOFLAGS, 0, offsetof(struct PosConfidenceEllipse, semiMinorConfidence), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SemiAxisLength, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "semiMinorConfidence" - }, - { ATF_NOFLAGS, 0, offsetof(struct PosConfidenceEllipse, semiMajorOrientation), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_HeadingValue, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "semiMajorOrientation" - }, -}; -static const ber_tlv_tag_t asn_DEF_PosConfidenceEllipse_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_PosConfidenceEllipse_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* semiMajorConfidence */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* semiMinorConfidence */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* semiMajorOrientation */ -}; -asn_SEQUENCE_specifics_t asn_SPC_PosConfidenceEllipse_specs_1 = { - sizeof(struct PosConfidenceEllipse), - offsetof(struct PosConfidenceEllipse, _asn_ctx), - asn_MAP_PosConfidenceEllipse_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_PosConfidenceEllipse = { - "PosConfidenceEllipse", - "PosConfidenceEllipse", - &asn_OP_SEQUENCE, - asn_DEF_PosConfidenceEllipse_tags_1, - sizeof(asn_DEF_PosConfidenceEllipse_tags_1) - /sizeof(asn_DEF_PosConfidenceEllipse_tags_1[0]), /* 1 */ - asn_DEF_PosConfidenceEllipse_tags_1, /* Same as above */ - sizeof(asn_DEF_PosConfidenceEllipse_tags_1) - /sizeof(asn_DEF_PosConfidenceEllipse_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_PosConfidenceEllipse_1, - 3, /* Elements count */ - &asn_SPC_PosConfidenceEllipse_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/PosFrontAx.c b/vanetza/asn1/its/PosFrontAx.c deleted file mode 100644 index 5668fb983..000000000 --- a/vanetza/asn1/its/PosFrontAx.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "PosFrontAx.h" - -int -PosFrontAx_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 <= 20L)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_PosFrontAx_constr_1 CC_NOTUSED = { - { 1, 1 } /* (1..20) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_PosFrontAx_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, 1, 20 } /* (1..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 ber_tlv_tag_t asn_DEF_PosFrontAx_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_PosFrontAx = { - "PosFrontAx", - "PosFrontAx", - &asn_OP_NativeInteger, - asn_DEF_PosFrontAx_tags_1, - sizeof(asn_DEF_PosFrontAx_tags_1) - /sizeof(asn_DEF_PosFrontAx_tags_1[0]), /* 1 */ - asn_DEF_PosFrontAx_tags_1, /* Same as above */ - sizeof(asn_DEF_PosFrontAx_tags_1) - /sizeof(asn_DEF_PosFrontAx_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_PosFrontAx_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_PosFrontAx_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - PosFrontAx_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/PosLonCarr.c b/vanetza/asn1/its/PosLonCarr.c deleted file mode 100644 index 677b7c49f..000000000 --- a/vanetza/asn1/its/PosLonCarr.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "PosLonCarr.h" - -int -PosLonCarr_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 <= 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_PosLonCarr_constr_1 CC_NOTUSED = { - { 1, 1 } /* (1..127) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_PosLonCarr_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 1, 127 } /* (1..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_PosLonCarr_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_PosLonCarr = { - "PosLonCarr", - "PosLonCarr", - &asn_OP_NativeInteger, - asn_DEF_PosLonCarr_tags_1, - sizeof(asn_DEF_PosLonCarr_tags_1) - /sizeof(asn_DEF_PosLonCarr_tags_1[0]), /* 1 */ - asn_DEF_PosLonCarr_tags_1, /* Same as above */ - sizeof(asn_DEF_PosLonCarr_tags_1) - /sizeof(asn_DEF_PosLonCarr_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_PosLonCarr_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_PosLonCarr_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - PosLonCarr_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/PosPillar.c b/vanetza/asn1/its/PosPillar.c deleted file mode 100644 index bd2091642..000000000 --- a/vanetza/asn1/its/PosPillar.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "PosPillar.h" - -int -PosPillar_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 <= 30L)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_PosPillar_constr_1 CC_NOTUSED = { - { 1, 1 } /* (1..30) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_PosPillar_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 5, 5, 1, 30 } /* (1..30) */, - { 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_PosPillar_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_PosPillar = { - "PosPillar", - "PosPillar", - &asn_OP_NativeInteger, - asn_DEF_PosPillar_tags_1, - sizeof(asn_DEF_PosPillar_tags_1) - /sizeof(asn_DEF_PosPillar_tags_1[0]), /* 1 */ - asn_DEF_PosPillar_tags_1, /* Same as above */ - sizeof(asn_DEF_PosPillar_tags_1) - /sizeof(asn_DEF_PosPillar_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_PosPillar_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_PosPillar_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - PosPillar_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/PositionOfOccupants.c b/vanetza/asn1/its/PositionOfOccupants.c deleted file mode 100644 index 6b0bca5ac..000000000 --- a/vanetza/asn1/its/PositionOfOccupants.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "PositionOfOccupants.h" - -int -PositionOfOccupants_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 == 20UL)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_PositionOfOccupants_constr_1 CC_NOTUSED = { - { 0, 0 }, - 20 /* (SIZE(20..20)) */}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_PositionOfOccupants_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 20, 20 } /* (SIZE(20..20)) */, - 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_PositionOfOccupants_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_PositionOfOccupants = { - "PositionOfOccupants", - "PositionOfOccupants", - &asn_OP_BIT_STRING, - asn_DEF_PositionOfOccupants_tags_1, - sizeof(asn_DEF_PositionOfOccupants_tags_1) - /sizeof(asn_DEF_PositionOfOccupants_tags_1[0]), /* 1 */ - asn_DEF_PositionOfOccupants_tags_1, /* Same as above */ - sizeof(asn_DEF_PositionOfOccupants_tags_1) - /sizeof(asn_DEF_PositionOfOccupants_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_PositionOfOccupants_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_PositionOfOccupants_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - PositionOfOccupants_constraint - }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_BIT_STRING_specs /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/PositionOfPillars.c b/vanetza/asn1/its/PositionOfPillars.c deleted file mode 100644 index 69137fa69..000000000 --- a/vanetza/asn1/its/PositionOfPillars.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "PositionOfPillars.h" - -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_PositionOfPillars_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1 /* (SIZE(0..MAX)) */}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_PositionOfPillars_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED | APC_EXTENSIBLE, 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_PositionOfPillars_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_PosPillar, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_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_PositionOfPillars_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_PositionOfPillars_specs_1 = { - sizeof(struct PositionOfPillars), - offsetof(struct PositionOfPillars, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_PositionOfPillars = { - "PositionOfPillars", - "PositionOfPillars", - &asn_OP_SEQUENCE_OF, - asn_DEF_PositionOfPillars_tags_1, - sizeof(asn_DEF_PositionOfPillars_tags_1) - /sizeof(asn_DEF_PositionOfPillars_tags_1[0]), /* 1 */ - asn_DEF_PositionOfPillars_tags_1, /* Same as above */ - sizeof(asn_DEF_PositionOfPillars_tags_1) - /sizeof(asn_DEF_PositionOfPillars_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_PositionOfPillars_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_PositionOfPillars_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_OF_constraint - }, - asn_MBR_PositionOfPillars_1, - 1, /* Single element */ - &asn_SPC_PositionOfPillars_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/PositioningSolutionType.c b/vanetza/asn1/its/PositioningSolutionType.c deleted file mode 100644 index 28f4461b7..000000000 --- a/vanetza/asn1/its/PositioningSolutionType.c +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "PositioningSolutionType.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_PositioningSolutionType_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_PositioningSolutionType_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) */ -static const asn_INTEGER_enum_map_t asn_MAP_PositioningSolutionType_value2enum_1[] = { - { 0, 21, "noPositioningSolution" }, - { 1, 5, "sGNSS" }, - { 2, 5, "dGNSS" }, - { 3, 11, "sGNSSplusDR" }, - { 4, 11, "dGNSSplusDR" }, - { 5, 2, "dR" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_PositioningSolutionType_enum2value_1[] = { - 2, /* dGNSS(2) */ - 4, /* dGNSSplusDR(4) */ - 5, /* dR(5) */ - 0, /* noPositioningSolution(0) */ - 1, /* sGNSS(1) */ - 3 /* sGNSSplusDR(3) */ - /* This list is extensible */ -}; -const asn_INTEGER_specifics_t asn_SPC_PositioningSolutionType_specs_1 = { - asn_MAP_PositioningSolutionType_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_PositioningSolutionType_enum2value_1, /* 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_PositioningSolutionType_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_PositioningSolutionType = { - "PositioningSolutionType", - "PositioningSolutionType", - &asn_OP_NativeEnumerated, - asn_DEF_PositioningSolutionType_tags_1, - sizeof(asn_DEF_PositioningSolutionType_tags_1) - /sizeof(asn_DEF_PositioningSolutionType_tags_1[0]), /* 1 */ - asn_DEF_PositioningSolutionType_tags_1, /* Same as above */ - sizeof(asn_DEF_PositioningSolutionType_tags_1) - /sizeof(asn_DEF_PositioningSolutionType_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_PositioningSolutionType_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_PositioningSolutionType_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - NativeEnumerated_constraint - }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_PositioningSolutionType_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/PostCrashSubCauseCode.c b/vanetza/asn1/its/PostCrashSubCauseCode.c deleted file mode 100644 index bc207a060..000000000 --- a/vanetza/asn1/its/PostCrashSubCauseCode.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "PostCrashSubCauseCode.h" - -int -PostCrashSubCauseCode_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_PostCrashSubCauseCode_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_type_PostCrashSubCauseCode_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_PostCrashSubCauseCode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_PostCrashSubCauseCode = { - "PostCrashSubCauseCode", - "PostCrashSubCauseCode", - &asn_OP_NativeInteger, - asn_DEF_PostCrashSubCauseCode_tags_1, - sizeof(asn_DEF_PostCrashSubCauseCode_tags_1) - /sizeof(asn_DEF_PostCrashSubCauseCode_tags_1[0]), /* 1 */ - asn_DEF_PostCrashSubCauseCode_tags_1, /* Same as above */ - sizeof(asn_DEF_PostCrashSubCauseCode_tags_1) - /sizeof(asn_DEF_PostCrashSubCauseCode_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_PostCrashSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_PostCrashSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - PostCrashSubCauseCode_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/ProtectedCommunicationZone.c b/vanetza/asn1/its/ProtectedCommunicationZone.c deleted file mode 100644 index c3605c970..000000000 --- a/vanetza/asn1/its/ProtectedCommunicationZone.c +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "ProtectedCommunicationZone.h" - -asn_TYPE_member_t asn_MBR_ProtectedCommunicationZone_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ProtectedCommunicationZone, protectedZoneType), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ProtectedZoneType, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "protectedZoneType" - }, - { ATF_POINTER, 1, offsetof(struct ProtectedCommunicationZone, expiryTime), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TimestampIts, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "expiryTime" - }, - { ATF_NOFLAGS, 0, offsetof(struct ProtectedCommunicationZone, protectedZoneLatitude), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Latitude, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "protectedZoneLatitude" - }, - { ATF_NOFLAGS, 0, offsetof(struct ProtectedCommunicationZone, protectedZoneLongitude), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Longitude, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "protectedZoneLongitude" - }, - { ATF_POINTER, 2, offsetof(struct ProtectedCommunicationZone, protectedZoneRadius), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ProtectedZoneRadius, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "protectedZoneRadius" - }, - { ATF_POINTER, 1, offsetof(struct ProtectedCommunicationZone, protectedZoneID), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ProtectedZoneID, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "protectedZoneID" - }, -}; -static const int asn_MAP_ProtectedCommunicationZone_oms_1[] = { 1, 4, 5 }; -static const ber_tlv_tag_t asn_DEF_ProtectedCommunicationZone_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ProtectedCommunicationZone_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* protectedZoneType */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* expiryTime */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* protectedZoneLatitude */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* protectedZoneLongitude */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* protectedZoneRadius */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* protectedZoneID */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ProtectedCommunicationZone_specs_1 = { - sizeof(struct ProtectedCommunicationZone), - offsetof(struct ProtectedCommunicationZone, _asn_ctx), - asn_MAP_ProtectedCommunicationZone_tag2el_1, - 6, /* Count of tags in the map */ - asn_MAP_ProtectedCommunicationZone_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_ProtectedCommunicationZone = { - "ProtectedCommunicationZone", - "ProtectedCommunicationZone", - &asn_OP_SEQUENCE, - asn_DEF_ProtectedCommunicationZone_tags_1, - sizeof(asn_DEF_ProtectedCommunicationZone_tags_1) - /sizeof(asn_DEF_ProtectedCommunicationZone_tags_1[0]), /* 1 */ - asn_DEF_ProtectedCommunicationZone_tags_1, /* Same as above */ - sizeof(asn_DEF_ProtectedCommunicationZone_tags_1) - /sizeof(asn_DEF_ProtectedCommunicationZone_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_ProtectedCommunicationZone_1, - 6, /* Elements count */ - &asn_SPC_ProtectedCommunicationZone_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/ProtectedCommunicationZonesRSU.c b/vanetza/asn1/its/ProtectedCommunicationZonesRSU.c deleted file mode 100644 index 4886db7ea..000000000 --- a/vanetza/asn1/its/ProtectedCommunicationZonesRSU.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "ProtectedCommunicationZonesRSU.h" - -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_ProtectedCommunicationZonesRSU_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1 /* (SIZE(1..16)) */}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_ProtectedCommunicationZonesRSU_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_ProtectedCommunicationZonesRSU_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_ProtectedCommunicationZone, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_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_ProtectedCommunicationZonesRSU_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_ProtectedCommunicationZonesRSU_specs_1 = { - sizeof(struct ProtectedCommunicationZonesRSU), - offsetof(struct ProtectedCommunicationZonesRSU, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_ProtectedCommunicationZonesRSU = { - "ProtectedCommunicationZonesRSU", - "ProtectedCommunicationZonesRSU", - &asn_OP_SEQUENCE_OF, - asn_DEF_ProtectedCommunicationZonesRSU_tags_1, - sizeof(asn_DEF_ProtectedCommunicationZonesRSU_tags_1) - /sizeof(asn_DEF_ProtectedCommunicationZonesRSU_tags_1[0]), /* 1 */ - asn_DEF_ProtectedCommunicationZonesRSU_tags_1, /* Same as above */ - sizeof(asn_DEF_ProtectedCommunicationZonesRSU_tags_1) - /sizeof(asn_DEF_ProtectedCommunicationZonesRSU_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_ProtectedCommunicationZonesRSU_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_ProtectedCommunicationZonesRSU_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_OF_constraint - }, - asn_MBR_ProtectedCommunicationZonesRSU_1, - 1, /* Single element */ - &asn_SPC_ProtectedCommunicationZonesRSU_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/ProtectedZoneRadius.c b/vanetza/asn1/its/ProtectedZoneRadius.c deleted file mode 100644 index 881fc564c..000000000 --- a/vanetza/asn1/its/ProtectedZoneRadius.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "ProtectedZoneRadius.h" - -int -ProtectedZoneRadius_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 <= 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_ProtectedZoneRadius_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_ProtectedZoneRadius_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 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) */ -static const ber_tlv_tag_t asn_DEF_ProtectedZoneRadius_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_ProtectedZoneRadius = { - "ProtectedZoneRadius", - "ProtectedZoneRadius", - &asn_OP_NativeInteger, - asn_DEF_ProtectedZoneRadius_tags_1, - sizeof(asn_DEF_ProtectedZoneRadius_tags_1) - /sizeof(asn_DEF_ProtectedZoneRadius_tags_1[0]), /* 1 */ - asn_DEF_ProtectedZoneRadius_tags_1, /* Same as above */ - sizeof(asn_DEF_ProtectedZoneRadius_tags_1) - /sizeof(asn_DEF_ProtectedZoneRadius_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_ProtectedZoneRadius_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_ProtectedZoneRadius_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - ProtectedZoneRadius_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/ProtectedZoneType.c b/vanetza/asn1/its/ProtectedZoneType.c deleted file mode 100644 index 89af1b164..000000000 --- a/vanetza/asn1/its/ProtectedZoneType.c +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "ProtectedZoneType.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_ProtectedZoneType_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_ProtectedZoneType_constr_1 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_ProtectedZoneType_value2enum_1[] = { - { 0, 23, "permanentCenDsrcTolling" }, - { 1, 23, "temporaryCenDsrcTolling" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_ProtectedZoneType_enum2value_1[] = { - 0, /* permanentCenDsrcTolling(0) */ - 1 /* temporaryCenDsrcTolling(1) */ - /* This list is extensible */ -}; -const asn_INTEGER_specifics_t asn_SPC_ProtectedZoneType_specs_1 = { - asn_MAP_ProtectedZoneType_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_ProtectedZoneType_enum2value_1, /* 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_ProtectedZoneType_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_ProtectedZoneType = { - "ProtectedZoneType", - "ProtectedZoneType", - &asn_OP_NativeEnumerated, - asn_DEF_ProtectedZoneType_tags_1, - sizeof(asn_DEF_ProtectedZoneType_tags_1) - /sizeof(asn_DEF_ProtectedZoneType_tags_1[0]), /* 1 */ - asn_DEF_ProtectedZoneType_tags_1, /* Same as above */ - sizeof(asn_DEF_ProtectedZoneType_tags_1) - /sizeof(asn_DEF_ProtectedZoneType_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_ProtectedZoneType_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_ProtectedZoneType_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - NativeEnumerated_constraint - }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_ProtectedZoneType_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/Provider.c b/vanetza/asn1/its/Provider.c deleted file mode 100644 index ea66e502c..000000000 --- a/vanetza/asn1/its/Provider.c +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "EfcDsrcApplication" - * found in "build.asn1/iso/ISO14906-0-6.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "Provider.h" - -asn_TYPE_member_t asn_MBR_Provider_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Provider, countryCode), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CountryCode, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "countryCode" - }, - { ATF_NOFLAGS, 0, offsetof(struct Provider, providerIdentifier), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_IssuerIdentifierIso, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "providerIdentifier" - }, -}; -static const ber_tlv_tag_t asn_DEF_Provider_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Provider_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* countryCode */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* providerIdentifier */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Provider_specs_1 = { - sizeof(struct Provider), - offsetof(struct Provider, _asn_ctx), - asn_MAP_Provider_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_Provider = { - "Provider", - "Provider", - &asn_OP_SEQUENCE, - asn_DEF_Provider_tags_1, - sizeof(asn_DEF_Provider_tags_1) - /sizeof(asn_DEF_Provider_tags_1[0]), /* 1 */ - asn_DEF_Provider_tags_1, /* Same as above */ - sizeof(asn_DEF_Provider_tags_1) - /sizeof(asn_DEF_Provider_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_Provider_1, - 2, /* Elements count */ - &asn_SPC_Provider_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/PtActivation.c b/vanetza/asn1/its/PtActivation.c deleted file mode 100644 index 5748b7230..000000000 --- a/vanetza/asn1/its/PtActivation.c +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "PtActivation.h" - -asn_TYPE_member_t asn_MBR_PtActivation_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PtActivation, ptActivationType), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PtActivationType, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "ptActivationType" - }, - { ATF_NOFLAGS, 0, offsetof(struct PtActivation, ptActivationData), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PtActivationData, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "ptActivationData" - }, -}; -static const ber_tlv_tag_t asn_DEF_PtActivation_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_PtActivation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ptActivationType */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ptActivationData */ -}; -asn_SEQUENCE_specifics_t asn_SPC_PtActivation_specs_1 = { - sizeof(struct PtActivation), - offsetof(struct PtActivation, _asn_ctx), - asn_MAP_PtActivation_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_PtActivation = { - "PtActivation", - "PtActivation", - &asn_OP_SEQUENCE, - asn_DEF_PtActivation_tags_1, - sizeof(asn_DEF_PtActivation_tags_1) - /sizeof(asn_DEF_PtActivation_tags_1[0]), /* 1 */ - asn_DEF_PtActivation_tags_1, /* Same as above */ - sizeof(asn_DEF_PtActivation_tags_1) - /sizeof(asn_DEF_PtActivation_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_PtActivation_1, - 2, /* Elements count */ - &asn_SPC_PtActivation_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/PtActivationData.c b/vanetza/asn1/its/PtActivationData.c deleted file mode 100644 index 2465a21de..000000000 --- a/vanetza/asn1/its/PtActivationData.c +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "PtActivationData.h" - -int -PtActivationData_constraint(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 <= 20UL)) { - /* 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 OCTET_STRING, - * so here we adjust the DEF accordingly. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_PtActivationData_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1 /* (SIZE(1..20)) */}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_PtActivationData_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 5, 5, 1, 20 } /* (SIZE(1..20)) */, - 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_PtActivationData_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_PtActivationData = { - "PtActivationData", - "PtActivationData", - &asn_OP_OCTET_STRING, - asn_DEF_PtActivationData_tags_1, - sizeof(asn_DEF_PtActivationData_tags_1) - /sizeof(asn_DEF_PtActivationData_tags_1[0]), /* 1 */ - asn_DEF_PtActivationData_tags_1, /* Same as above */ - sizeof(asn_DEF_PtActivationData_tags_1) - /sizeof(asn_DEF_PtActivationData_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_PtActivationData_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_PtActivationData_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - PtActivationData_constraint - }, - 0, 0, /* No members */ - &asn_SPC_OCTET_STRING_specs /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/PtActivationType.c b/vanetza/asn1/its/PtActivationType.c deleted file mode 100644 index 62d3a5f34..000000000 --- a/vanetza/asn1/its/PtActivationType.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "PtActivationType.h" - -int -PtActivationType_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_PtActivationType_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_PtActivationType_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_PtActivationType_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_PtActivationType = { - "PtActivationType", - "PtActivationType", - &asn_OP_NativeInteger, - asn_DEF_PtActivationType_tags_1, - sizeof(asn_DEF_PtActivationType_tags_1) - /sizeof(asn_DEF_PtActivationType_tags_1[0]), /* 1 */ - asn_DEF_PtActivationType_tags_1, /* Same as above */ - sizeof(asn_DEF_PtActivationType_tags_1) - /sizeof(asn_DEF_PtActivationType_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_PtActivationType_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_PtActivationType_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - PtActivationType_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/PublicTransportContainer.c b/vanetza/asn1/its/PublicTransportContainer.c deleted file mode 100644 index ae02b26ae..000000000 --- a/vanetza/asn1/its/PublicTransportContainer.c +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CAM-PDU-Descriptions" - * found in "asn1/EN302637-2v141-CAM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "PublicTransportContainer.h" - -asn_TYPE_member_t asn_MBR_PublicTransportContainer_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PublicTransportContainer, embarkationStatus), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EmbarkationStatus, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "embarkationStatus" - }, - { ATF_POINTER, 1, offsetof(struct PublicTransportContainer, ptActivation), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PtActivation, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "ptActivation" - }, -}; -static const int asn_MAP_PublicTransportContainer_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_PublicTransportContainer_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_PublicTransportContainer_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* embarkationStatus */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ptActivation */ -}; -asn_SEQUENCE_specifics_t asn_SPC_PublicTransportContainer_specs_1 = { - sizeof(struct PublicTransportContainer), - offsetof(struct PublicTransportContainer, _asn_ctx), - asn_MAP_PublicTransportContainer_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_PublicTransportContainer_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_PublicTransportContainer = { - "PublicTransportContainer", - "PublicTransportContainer", - &asn_OP_SEQUENCE, - asn_DEF_PublicTransportContainer_tags_1, - sizeof(asn_DEF_PublicTransportContainer_tags_1) - /sizeof(asn_DEF_PublicTransportContainer_tags_1[0]), /* 1 */ - asn_DEF_PublicTransportContainer_tags_1, /* Same as above */ - sizeof(asn_DEF_PublicTransportContainer_tags_1) - /sizeof(asn_DEF_PublicTransportContainer_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_PublicTransportContainer_1, - 2, /* Elements count */ - &asn_SPC_PublicTransportContainer_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/RSUContainerHighFrequency.c b/vanetza/asn1/its/RSUContainerHighFrequency.c deleted file mode 100644 index 814e9d44b..000000000 --- a/vanetza/asn1/its/RSUContainerHighFrequency.c +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CAM-PDU-Descriptions" - * found in "asn1/EN302637-2v141-CAM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "RSUContainerHighFrequency.h" - -asn_TYPE_member_t asn_MBR_RSUContainerHighFrequency_1[] = { - { ATF_POINTER, 1, offsetof(struct RSUContainerHighFrequency, protectedCommunicationZonesRSU), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ProtectedCommunicationZonesRSU, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "protectedCommunicationZonesRSU" - }, -}; -static const int asn_MAP_RSUContainerHighFrequency_oms_1[] = { 0 }; -static const ber_tlv_tag_t asn_DEF_RSUContainerHighFrequency_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_RSUContainerHighFrequency_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* protectedCommunicationZonesRSU */ -}; -asn_SEQUENCE_specifics_t asn_SPC_RSUContainerHighFrequency_specs_1 = { - sizeof(struct RSUContainerHighFrequency), - offsetof(struct RSUContainerHighFrequency, _asn_ctx), - asn_MAP_RSUContainerHighFrequency_tag2el_1, - 1, /* Count of tags in the map */ - asn_MAP_RSUContainerHighFrequency_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_RSUContainerHighFrequency = { - "RSUContainerHighFrequency", - "RSUContainerHighFrequency", - &asn_OP_SEQUENCE, - asn_DEF_RSUContainerHighFrequency_tags_1, - sizeof(asn_DEF_RSUContainerHighFrequency_tags_1) - /sizeof(asn_DEF_RSUContainerHighFrequency_tags_1[0]), /* 1 */ - asn_DEF_RSUContainerHighFrequency_tags_1, /* Same as above */ - sizeof(asn_DEF_RSUContainerHighFrequency_tags_1) - /sizeof(asn_DEF_RSUContainerHighFrequency_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_RSUContainerHighFrequency_1, - 1, /* Elements count */ - &asn_SPC_RSUContainerHighFrequency_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/ReferencePosition.c b/vanetza/asn1/its/ReferencePosition.c deleted file mode 100644 index 53d87bbf7..000000000 --- a/vanetza/asn1/its/ReferencePosition.c +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "ReferencePosition.h" - -asn_TYPE_member_t asn_MBR_ReferencePosition_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ReferencePosition, latitude), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Latitude, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "latitude" - }, - { ATF_NOFLAGS, 0, offsetof(struct ReferencePosition, longitude), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Longitude, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "longitude" - }, - { ATF_NOFLAGS, 0, offsetof(struct ReferencePosition, positionConfidenceEllipse), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PosConfidenceEllipse, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "positionConfidenceEllipse" - }, - { ATF_NOFLAGS, 0, offsetof(struct ReferencePosition, altitude), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Altitude, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "altitude" - }, -}; -static const ber_tlv_tag_t asn_DEF_ReferencePosition_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_ReferencePosition_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* latitude */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* longitude */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* positionConfidenceEllipse */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* altitude */ -}; -asn_SEQUENCE_specifics_t asn_SPC_ReferencePosition_specs_1 = { - sizeof(struct ReferencePosition), - offsetof(struct ReferencePosition, _asn_ctx), - asn_MAP_ReferencePosition_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_ReferencePosition = { - "ReferencePosition", - "ReferencePosition", - &asn_OP_SEQUENCE, - asn_DEF_ReferencePosition_tags_1, - sizeof(asn_DEF_ReferencePosition_tags_1) - /sizeof(asn_DEF_ReferencePosition_tags_1[0]), /* 1 */ - asn_DEF_ReferencePosition_tags_1, /* Same as above */ - sizeof(asn_DEF_ReferencePosition_tags_1) - /sizeof(asn_DEF_ReferencePosition_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_ReferencePosition_1, - 4, /* Elements count */ - &asn_SPC_ReferencePosition_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/RelevanceDistance.c b/vanetza/asn1/its/RelevanceDistance.c deleted file mode 100644 index 0c6e4d967..000000000 --- a/vanetza/asn1/its/RelevanceDistance.c +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "RelevanceDistance.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_RelevanceDistance_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_RelevanceDistance_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 asn_INTEGER_enum_map_t asn_MAP_RelevanceDistance_value2enum_1[] = { - { 0, 11, "lessThan50m" }, - { 1, 12, "lessThan100m" }, - { 2, 12, "lessThan200m" }, - { 3, 12, "lessThan500m" }, - { 4, 13, "lessThan1000m" }, - { 5, 11, "lessThan5km" }, - { 6, 12, "lessThan10km" }, - { 7, 8, "over10km" } -}; -static const unsigned int asn_MAP_RelevanceDistance_enum2value_1[] = { - 4, /* lessThan1000m(4) */ - 1, /* lessThan100m(1) */ - 6, /* lessThan10km(6) */ - 2, /* lessThan200m(2) */ - 3, /* lessThan500m(3) */ - 0, /* lessThan50m(0) */ - 5, /* lessThan5km(5) */ - 7 /* over10km(7) */ -}; -const asn_INTEGER_specifics_t asn_SPC_RelevanceDistance_specs_1 = { - asn_MAP_RelevanceDistance_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_RelevanceDistance_enum2value_1, /* 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_RelevanceDistance_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_RelevanceDistance = { - "RelevanceDistance", - "RelevanceDistance", - &asn_OP_NativeEnumerated, - asn_DEF_RelevanceDistance_tags_1, - sizeof(asn_DEF_RelevanceDistance_tags_1) - /sizeof(asn_DEF_RelevanceDistance_tags_1[0]), /* 1 */ - asn_DEF_RelevanceDistance_tags_1, /* Same as above */ - sizeof(asn_DEF_RelevanceDistance_tags_1) - /sizeof(asn_DEF_RelevanceDistance_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_RelevanceDistance_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_RelevanceDistance_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - NativeEnumerated_constraint - }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_RelevanceDistance_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/RelevanceTrafficDirection.c b/vanetza/asn1/its/RelevanceTrafficDirection.c deleted file mode 100644 index ff247f06e..000000000 --- a/vanetza/asn1/its/RelevanceTrafficDirection.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "RelevanceTrafficDirection.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_RelevanceTrafficDirection_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_RelevanceTrafficDirection_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) */ -static const asn_INTEGER_enum_map_t asn_MAP_RelevanceTrafficDirection_value2enum_1[] = { - { 0, 20, "allTrafficDirections" }, - { 1, 15, "upstreamTraffic" }, - { 2, 17, "downstreamTraffic" }, - { 3, 15, "oppositeTraffic" } -}; -static const unsigned int asn_MAP_RelevanceTrafficDirection_enum2value_1[] = { - 0, /* allTrafficDirections(0) */ - 2, /* downstreamTraffic(2) */ - 3, /* oppositeTraffic(3) */ - 1 /* upstreamTraffic(1) */ -}; -const asn_INTEGER_specifics_t asn_SPC_RelevanceTrafficDirection_specs_1 = { - asn_MAP_RelevanceTrafficDirection_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_RelevanceTrafficDirection_enum2value_1, /* 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_RelevanceTrafficDirection_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_RelevanceTrafficDirection = { - "RelevanceTrafficDirection", - "RelevanceTrafficDirection", - &asn_OP_NativeEnumerated, - asn_DEF_RelevanceTrafficDirection_tags_1, - sizeof(asn_DEF_RelevanceTrafficDirection_tags_1) - /sizeof(asn_DEF_RelevanceTrafficDirection_tags_1[0]), /* 1 */ - asn_DEF_RelevanceTrafficDirection_tags_1, /* Same as above */ - sizeof(asn_DEF_RelevanceTrafficDirection_tags_1) - /sizeof(asn_DEF_RelevanceTrafficDirection_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_RelevanceTrafficDirection_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_RelevanceTrafficDirection_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - NativeEnumerated_constraint - }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_RelevanceTrafficDirection_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/RequestResponseIndication.c b/vanetza/asn1/its/RequestResponseIndication.c deleted file mode 100644 index e5eb895a3..000000000 --- a/vanetza/asn1/its/RequestResponseIndication.c +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "RequestResponseIndication.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_RequestResponseIndication_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_RequestResponseIndication_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_RequestResponseIndication_value2enum_1[] = { - { 0, 7, "request" }, - { 1, 8, "response" } -}; -static const unsigned int asn_MAP_RequestResponseIndication_enum2value_1[] = { - 0, /* request(0) */ - 1 /* response(1) */ -}; -const asn_INTEGER_specifics_t asn_SPC_RequestResponseIndication_specs_1 = { - asn_MAP_RequestResponseIndication_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_RequestResponseIndication_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_RequestResponseIndication_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_RequestResponseIndication = { - "RequestResponseIndication", - "RequestResponseIndication", - &asn_OP_NativeEnumerated, - asn_DEF_RequestResponseIndication_tags_1, - sizeof(asn_DEF_RequestResponseIndication_tags_1) - /sizeof(asn_DEF_RequestResponseIndication_tags_1[0]), /* 1 */ - asn_DEF_RequestResponseIndication_tags_1, /* Same as above */ - sizeof(asn_DEF_RequestResponseIndication_tags_1) - /sizeof(asn_DEF_RequestResponseIndication_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_RequestResponseIndication_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_RequestResponseIndication_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - NativeEnumerated_constraint - }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_RequestResponseIndication_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/RescueAndRecoveryWorkInProgressSubCauseCode.c b/vanetza/asn1/its/RescueAndRecoveryWorkInProgressSubCauseCode.c deleted file mode 100644 index 763fba449..000000000 --- a/vanetza/asn1/its/RescueAndRecoveryWorkInProgressSubCauseCode.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "RescueAndRecoveryWorkInProgressSubCauseCode.h" - -int -RescueAndRecoveryWorkInProgressSubCauseCode_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_RescueAndRecoveryWorkInProgressSubCauseCode_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_type_RescueAndRecoveryWorkInProgressSubCauseCode_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_RescueAndRecoveryWorkInProgressSubCauseCode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_RescueAndRecoveryWorkInProgressSubCauseCode = { - "RescueAndRecoveryWorkInProgressSubCauseCode", - "RescueAndRecoveryWorkInProgressSubCauseCode", - &asn_OP_NativeInteger, - asn_DEF_RescueAndRecoveryWorkInProgressSubCauseCode_tags_1, - sizeof(asn_DEF_RescueAndRecoveryWorkInProgressSubCauseCode_tags_1) - /sizeof(asn_DEF_RescueAndRecoveryWorkInProgressSubCauseCode_tags_1[0]), /* 1 */ - asn_DEF_RescueAndRecoveryWorkInProgressSubCauseCode_tags_1, /* Same as above */ - sizeof(asn_DEF_RescueAndRecoveryWorkInProgressSubCauseCode_tags_1) - /sizeof(asn_DEF_RescueAndRecoveryWorkInProgressSubCauseCode_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_RescueAndRecoveryWorkInProgressSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_RescueAndRecoveryWorkInProgressSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - RescueAndRecoveryWorkInProgressSubCauseCode_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/RescueContainer.c b/vanetza/asn1/its/RescueContainer.c deleted file mode 100644 index 931c9f58b..000000000 --- a/vanetza/asn1/its/RescueContainer.c +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CAM-PDU-Descriptions" - * found in "asn1/EN302637-2v141-CAM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "RescueContainer.h" - -asn_TYPE_member_t asn_MBR_RescueContainer_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct RescueContainer, lightBarSirenInUse), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LightBarSirenInUse, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "lightBarSirenInUse" - }, -}; -static const ber_tlv_tag_t asn_DEF_RescueContainer_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_RescueContainer_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* lightBarSirenInUse */ -}; -asn_SEQUENCE_specifics_t asn_SPC_RescueContainer_specs_1 = { - sizeof(struct RescueContainer), - offsetof(struct RescueContainer, _asn_ctx), - asn_MAP_RescueContainer_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_RescueContainer = { - "RescueContainer", - "RescueContainer", - &asn_OP_SEQUENCE, - asn_DEF_RescueContainer_tags_1, - sizeof(asn_DEF_RescueContainer_tags_1) - /sizeof(asn_DEF_RescueContainer_tags_1[0]), /* 1 */ - asn_DEF_RescueContainer_tags_1, /* Same as above */ - sizeof(asn_DEF_RescueContainer_tags_1) - /sizeof(asn_DEF_RescueContainer_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_RescueContainer_1, - 1, /* Elements count */ - &asn_SPC_RescueContainer_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/RestrictedTypes.c b/vanetza/asn1/its/RestrictedTypes.c deleted file mode 100644 index 2800a9825..000000000 --- a/vanetza/asn1/its/RestrictedTypes.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "RestrictedTypes.h" - -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_RestrictedTypes_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1 /* (SIZE(0..MAX)) */}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_RestrictedTypes_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED | APC_EXTENSIBLE, 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_RestrictedTypes_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_StationType, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_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_RestrictedTypes_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_RestrictedTypes_specs_1 = { - sizeof(struct RestrictedTypes), - offsetof(struct RestrictedTypes, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_RestrictedTypes = { - "RestrictedTypes", - "RestrictedTypes", - &asn_OP_SEQUENCE_OF, - asn_DEF_RestrictedTypes_tags_1, - sizeof(asn_DEF_RestrictedTypes_tags_1) - /sizeof(asn_DEF_RestrictedTypes_tags_1[0]), /* 1 */ - asn_DEF_RestrictedTypes_tags_1, /* Same as above */ - sizeof(asn_DEF_RestrictedTypes_tags_1) - /sizeof(asn_DEF_RestrictedTypes_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_RestrictedTypes_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_RestrictedTypes_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_OF_constraint - }, - asn_MBR_RestrictedTypes_1, - 1, /* Single element */ - &asn_SPC_RestrictedTypes_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/RoadType.c b/vanetza/asn1/its/RoadType.c deleted file mode 100644 index 60ac95f5e..000000000 --- a/vanetza/asn1/its/RoadType.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "RoadType.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_RoadType_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_RoadType_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) */ -static const asn_INTEGER_enum_map_t asn_MAP_RoadType_value2enum_1[] = { - { 0, 43, "urban-NoStructuralSeparationToOppositeLanes" }, - { 1, 45, "urban-WithStructuralSeparationToOppositeLanes" }, - { 2, 46, "nonUrban-NoStructuralSeparationToOppositeLanes" }, - { 3, 48, "nonUrban-WithStructuralSeparationToOppositeLanes" } -}; -static const unsigned int asn_MAP_RoadType_enum2value_1[] = { - 2, /* nonUrban-NoStructuralSeparationToOppositeLanes(2) */ - 3, /* nonUrban-WithStructuralSeparationToOppositeLanes(3) */ - 0, /* urban-NoStructuralSeparationToOppositeLanes(0) */ - 1 /* urban-WithStructuralSeparationToOppositeLanes(1) */ -}; -const asn_INTEGER_specifics_t asn_SPC_RoadType_specs_1 = { - asn_MAP_RoadType_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_RoadType_enum2value_1, /* 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_RoadType_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_RoadType = { - "RoadType", - "RoadType", - &asn_OP_NativeEnumerated, - asn_DEF_RoadType_tags_1, - sizeof(asn_DEF_RoadType_tags_1) - /sizeof(asn_DEF_RoadType_tags_1[0]), /* 1 */ - asn_DEF_RoadType_tags_1, /* Same as above */ - sizeof(asn_DEF_RoadType_tags_1) - /sizeof(asn_DEF_RoadType_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_RoadType_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_RoadType_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - NativeEnumerated_constraint - }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_RoadType_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/RoadWorksContainerBasic.c b/vanetza/asn1/its/RoadWorksContainerBasic.c deleted file mode 100644 index c77d1b287..000000000 --- a/vanetza/asn1/its/RoadWorksContainerBasic.c +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CAM-PDU-Descriptions" - * found in "asn1/EN302637-2v141-CAM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "RoadWorksContainerBasic.h" - -asn_TYPE_member_t asn_MBR_RoadWorksContainerBasic_1[] = { - { ATF_POINTER, 1, offsetof(struct RoadWorksContainerBasic, roadworksSubCauseCode), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RoadworksSubCauseCode, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "roadworksSubCauseCode" - }, - { ATF_NOFLAGS, 0, offsetof(struct RoadWorksContainerBasic, lightBarSirenInUse), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LightBarSirenInUse, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "lightBarSirenInUse" - }, - { ATF_POINTER, 1, offsetof(struct RoadWorksContainerBasic, closedLanes), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ClosedLanes, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "closedLanes" - }, -}; -static const int asn_MAP_RoadWorksContainerBasic_oms_1[] = { 0, 2 }; -static const ber_tlv_tag_t asn_DEF_RoadWorksContainerBasic_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_RoadWorksContainerBasic_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* roadworksSubCauseCode */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* lightBarSirenInUse */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* closedLanes */ -}; -asn_SEQUENCE_specifics_t asn_SPC_RoadWorksContainerBasic_specs_1 = { - sizeof(struct RoadWorksContainerBasic), - offsetof(struct RoadWorksContainerBasic, _asn_ctx), - asn_MAP_RoadWorksContainerBasic_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_RoadWorksContainerBasic_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_RoadWorksContainerBasic = { - "RoadWorksContainerBasic", - "RoadWorksContainerBasic", - &asn_OP_SEQUENCE, - asn_DEF_RoadWorksContainerBasic_tags_1, - sizeof(asn_DEF_RoadWorksContainerBasic_tags_1) - /sizeof(asn_DEF_RoadWorksContainerBasic_tags_1[0]), /* 1 */ - asn_DEF_RoadWorksContainerBasic_tags_1, /* Same as above */ - sizeof(asn_DEF_RoadWorksContainerBasic_tags_1) - /sizeof(asn_DEF_RoadWorksContainerBasic_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_RoadWorksContainerBasic_1, - 3, /* Elements count */ - &asn_SPC_RoadWorksContainerBasic_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/RoadWorksContainerExtended.c b/vanetza/asn1/its/RoadWorksContainerExtended.c deleted file mode 100644 index 8277fd2b9..000000000 --- a/vanetza/asn1/its/RoadWorksContainerExtended.c +++ /dev/null @@ -1,212 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "DENM-PDU-Descriptions" - * found in "asn1/EN302637-3v131-DENM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "RoadWorksContainerExtended.h" - -asn_TYPE_member_t asn_MBR_RoadWorksContainerExtended_1[] = { - { ATF_POINTER, 9, offsetof(struct RoadWorksContainerExtended, lightBarSirenInUse), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LightBarSirenInUse, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "lightBarSirenInUse" - }, - { ATF_POINTER, 8, offsetof(struct RoadWorksContainerExtended, closedLanes), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ClosedLanes, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "closedLanes" - }, - { ATF_POINTER, 7, offsetof(struct RoadWorksContainerExtended, restriction), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RestrictedTypes, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "restriction" - }, - { ATF_POINTER, 6, offsetof(struct RoadWorksContainerExtended, speedLimit), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SpeedLimit, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "speedLimit" - }, - { ATF_POINTER, 5, offsetof(struct RoadWorksContainerExtended, incidentIndication), - (ASN_TAG_CLASS_CONTEXT | (4 << 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 */ - "incidentIndication" - }, - { ATF_POINTER, 4, offsetof(struct RoadWorksContainerExtended, recommendedPath), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ItineraryPath, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "recommendedPath" - }, - { ATF_POINTER, 3, offsetof(struct RoadWorksContainerExtended, startingPointSpeedLimit), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_DeltaReferencePosition, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "startingPointSpeedLimit" - }, - { ATF_POINTER, 2, offsetof(struct RoadWorksContainerExtended, trafficFlowRule), - (ASN_TAG_CLASS_CONTEXT | (7 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TrafficRule, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "trafficFlowRule" - }, - { ATF_POINTER, 1, offsetof(struct RoadWorksContainerExtended, referenceDenms), - (ASN_TAG_CLASS_CONTEXT | (8 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ReferenceDenms, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "referenceDenms" - }, -}; -static const int asn_MAP_RoadWorksContainerExtended_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8 }; -static const ber_tlv_tag_t asn_DEF_RoadWorksContainerExtended_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_RoadWorksContainerExtended_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* lightBarSirenInUse */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* closedLanes */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* restriction */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* speedLimit */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* incidentIndication */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* recommendedPath */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* startingPointSpeedLimit */ - { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* trafficFlowRule */ - { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* referenceDenms */ -}; -asn_SEQUENCE_specifics_t asn_SPC_RoadWorksContainerExtended_specs_1 = { - sizeof(struct RoadWorksContainerExtended), - offsetof(struct RoadWorksContainerExtended, _asn_ctx), - asn_MAP_RoadWorksContainerExtended_tag2el_1, - 9, /* Count of tags in the map */ - asn_MAP_RoadWorksContainerExtended_oms_1, /* Optional members */ - 9, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_RoadWorksContainerExtended = { - "RoadWorksContainerExtended", - "RoadWorksContainerExtended", - &asn_OP_SEQUENCE, - asn_DEF_RoadWorksContainerExtended_tags_1, - sizeof(asn_DEF_RoadWorksContainerExtended_tags_1) - /sizeof(asn_DEF_RoadWorksContainerExtended_tags_1[0]), /* 1 */ - asn_DEF_RoadWorksContainerExtended_tags_1, /* Same as above */ - sizeof(asn_DEF_RoadWorksContainerExtended_tags_1) - /sizeof(asn_DEF_RoadWorksContainerExtended_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_RoadWorksContainerExtended_1, - 9, /* Elements count */ - &asn_SPC_RoadWorksContainerExtended_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/RoadworksSubCauseCode.c b/vanetza/asn1/its/RoadworksSubCauseCode.c deleted file mode 100644 index 9504e09fe..000000000 --- a/vanetza/asn1/its/RoadworksSubCauseCode.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "RoadworksSubCauseCode.h" - -int -RoadworksSubCauseCode_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_RoadworksSubCauseCode_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_RoadworksSubCauseCode_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_RoadworksSubCauseCode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_RoadworksSubCauseCode = { - "RoadworksSubCauseCode", - "RoadworksSubCauseCode", - &asn_OP_NativeInteger, - asn_DEF_RoadworksSubCauseCode_tags_1, - sizeof(asn_DEF_RoadworksSubCauseCode_tags_1) - /sizeof(asn_DEF_RoadworksSubCauseCode_tags_1[0]), /* 1 */ - asn_DEF_RoadworksSubCauseCode_tags_1, /* Same as above */ - sizeof(asn_DEF_RoadworksSubCauseCode_tags_1) - /sizeof(asn_DEF_RoadworksSubCauseCode_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_RoadworksSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_RoadworksSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - RoadworksSubCauseCode_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/SafetyCarContainer.c b/vanetza/asn1/its/SafetyCarContainer.c deleted file mode 100644 index ea1a4d598..000000000 --- a/vanetza/asn1/its/SafetyCarContainer.c +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CAM-PDU-Descriptions" - * found in "asn1/EN302637-2v141-CAM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "SafetyCarContainer.h" - -asn_TYPE_member_t asn_MBR_SafetyCarContainer_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SafetyCarContainer, lightBarSirenInUse), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LightBarSirenInUse, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "lightBarSirenInUse" - }, - { ATF_POINTER, 3, offsetof(struct SafetyCarContainer, incidentIndication), - (ASN_TAG_CLASS_CONTEXT | (1 << 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 */ - "incidentIndication" - }, - { ATF_POINTER, 2, offsetof(struct SafetyCarContainer, trafficRule), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TrafficRule, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "trafficRule" - }, - { ATF_POINTER, 1, offsetof(struct SafetyCarContainer, speedLimit), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SpeedLimit, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "speedLimit" - }, -}; -static const int asn_MAP_SafetyCarContainer_oms_1[] = { 1, 2, 3 }; -static const ber_tlv_tag_t asn_DEF_SafetyCarContainer_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SafetyCarContainer_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* lightBarSirenInUse */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* incidentIndication */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* trafficRule */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* speedLimit */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SafetyCarContainer_specs_1 = { - sizeof(struct SafetyCarContainer), - offsetof(struct SafetyCarContainer, _asn_ctx), - asn_MAP_SafetyCarContainer_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_SafetyCarContainer_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SafetyCarContainer = { - "SafetyCarContainer", - "SafetyCarContainer", - &asn_OP_SEQUENCE, - asn_DEF_SafetyCarContainer_tags_1, - sizeof(asn_DEF_SafetyCarContainer_tags_1) - /sizeof(asn_DEF_SafetyCarContainer_tags_1[0]), /* 1 */ - asn_DEF_SafetyCarContainer_tags_1, /* Same as above */ - sizeof(asn_DEF_SafetyCarContainer_tags_1) - /sizeof(asn_DEF_SafetyCarContainer_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_SafetyCarContainer_1, - 4, /* Elements count */ - &asn_SPC_SafetyCarContainer_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/SemiAxisLength.c b/vanetza/asn1/its/SemiAxisLength.c deleted file mode 100644 index 71a37584e..000000000 --- a/vanetza/asn1/its/SemiAxisLength.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "SemiAxisLength.h" - -int -SemiAxisLength_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 <= 4095L)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_SemiAxisLength_constr_1 CC_NOTUSED = { - { 2, 1 } /* (0..4095) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_SemiAxisLength_constr_1 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 ber_tlv_tag_t asn_DEF_SemiAxisLength_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_SemiAxisLength = { - "SemiAxisLength", - "SemiAxisLength", - &asn_OP_NativeInteger, - asn_DEF_SemiAxisLength_tags_1, - sizeof(asn_DEF_SemiAxisLength_tags_1) - /sizeof(asn_DEF_SemiAxisLength_tags_1[0]), /* 1 */ - asn_DEF_SemiAxisLength_tags_1, /* Same as above */ - sizeof(asn_DEF_SemiAxisLength_tags_1) - /sizeof(asn_DEF_SemiAxisLength_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_SemiAxisLength_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_SemiAxisLength_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SemiAxisLength_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/SensorInformation.c b/vanetza/asn1/its/SensorInformation.c deleted file mode 100644 index 69a1415ad..000000000 --- a/vanetza/asn1/its/SensorInformation.c +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CPM-PDU-Descriptions" - * found in "asn1/TR103562v211-CPM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "SensorInformation.h" - -asn_TYPE_member_t asn_MBR_SensorInformation_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SensorInformation, sensorID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_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 */ - "sensorID" - }, - { ATF_NOFLAGS, 0, offsetof(struct SensorInformation, type), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SensorType, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_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" - }, - { ATF_NOFLAGS, 0, offsetof(struct SensorInformation, detectionArea), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_DetectionArea, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "detectionArea" - }, - { ATF_POINTER, 1, offsetof(struct SensorInformation, freeSpaceConfidence), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_FreeSpaceConfidence, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "freeSpaceConfidence" - }, -}; -static const int asn_MAP_SensorInformation_oms_1[] = { 3 }; -static const ber_tlv_tag_t asn_DEF_SensorInformation_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SensorInformation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sensorID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* type */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* detectionArea */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* freeSpaceConfidence */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SensorInformation_specs_1 = { - sizeof(struct SensorInformation), - offsetof(struct SensorInformation, _asn_ctx), - asn_MAP_SensorInformation_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_SensorInformation_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SensorInformation = { - "SensorInformation", - "SensorInformation", - &asn_OP_SEQUENCE, - asn_DEF_SensorInformation_tags_1, - sizeof(asn_DEF_SensorInformation_tags_1) - /sizeof(asn_DEF_SensorInformation_tags_1[0]), /* 1 */ - asn_DEF_SensorInformation_tags_1, /* Same as above */ - sizeof(asn_DEF_SensorInformation_tags_1) - /sizeof(asn_DEF_SensorInformation_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_SensorInformation_1, - 4, /* Elements count */ - &asn_SPC_SensorInformation_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/SensorInformationContainer.c b/vanetza/asn1/its/SensorInformationContainer.c deleted file mode 100644 index acf48b4f6..000000000 --- a/vanetza/asn1/its/SensorInformationContainer.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CPM-PDU-Descriptions" - * found in "asn1/TR103562v211-CPM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "SensorInformationContainer.h" - -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_SensorInformationContainer_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1 /* (SIZE(0..MAX)) */}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_SensorInformationContainer_constr_1 CC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED | APC_EXTENSIBLE, 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_SensorInformationContainer_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_SensorInformation, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_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_SensorInformationContainer_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_SensorInformationContainer_specs_1 = { - sizeof(struct SensorInformationContainer), - offsetof(struct SensorInformationContainer, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_SensorInformationContainer = { - "SensorInformationContainer", - "SensorInformationContainer", - &asn_OP_SEQUENCE_OF, - asn_DEF_SensorInformationContainer_tags_1, - sizeof(asn_DEF_SensorInformationContainer_tags_1) - /sizeof(asn_DEF_SensorInformationContainer_tags_1[0]), /* 1 */ - asn_DEF_SensorInformationContainer_tags_1, /* Same as above */ - sizeof(asn_DEF_SensorInformationContainer_tags_1) - /sizeof(asn_DEF_SensorInformationContainer_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_SensorInformationContainer_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_SensorInformationContainer_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_OF_constraint - }, - asn_MBR_SensorInformationContainer_1, - 1, /* Single element */ - &asn_SPC_SensorInformationContainer_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/SensorType.c b/vanetza/asn1/its/SensorType.c deleted file mode 100644 index 7b8bd3471..000000000 --- a/vanetza/asn1/its/SensorType.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CPM-PDU-Descriptions" - * found in "asn1/TR103562v211-CPM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "SensorType.h" - -int -SensorType_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 <= 15L)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_SensorType_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..15) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_SensorType_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 ber_tlv_tag_t asn_DEF_SensorType_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_SensorType = { - "SensorType", - "SensorType", - &asn_OP_NativeInteger, - asn_DEF_SensorType_tags_1, - sizeof(asn_DEF_SensorType_tags_1) - /sizeof(asn_DEF_SensorType_tags_1[0]), /* 1 */ - asn_DEF_SensorType_tags_1, /* Same as above */ - sizeof(asn_DEF_SensorType_tags_1) - /sizeof(asn_DEF_SensorType_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_SensorType_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_SensorType_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SensorType_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/SequenceNumber.c b/vanetza/asn1/its/SequenceNumber.c deleted file mode 100644 index 2183bd9d6..000000000 --- a/vanetza/asn1/its/SequenceNumber.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#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 <= 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_SequenceNumber_constr_1 CC_NOTUSED = { - { 2, 1 } /* (0..65535) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#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, 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_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) - &asn_OER_type_SequenceNumber_constr_1, -#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/vanetza/asn1/its/SignalViolationSubCauseCode.c b/vanetza/asn1/its/SignalViolationSubCauseCode.c deleted file mode 100644 index 1019eee9f..000000000 --- a/vanetza/asn1/its/SignalViolationSubCauseCode.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "SignalViolationSubCauseCode.h" - -int -SignalViolationSubCauseCode_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_SignalViolationSubCauseCode_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_type_SignalViolationSubCauseCode_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_SignalViolationSubCauseCode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_SignalViolationSubCauseCode = { - "SignalViolationSubCauseCode", - "SignalViolationSubCauseCode", - &asn_OP_NativeInteger, - asn_DEF_SignalViolationSubCauseCode_tags_1, - sizeof(asn_DEF_SignalViolationSubCauseCode_tags_1) - /sizeof(asn_DEF_SignalViolationSubCauseCode_tags_1[0]), /* 1 */ - asn_DEF_SignalViolationSubCauseCode_tags_1, /* Same as above */ - sizeof(asn_DEF_SignalViolationSubCauseCode_tags_1) - /sizeof(asn_DEF_SignalViolationSubCauseCode_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_SignalViolationSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_SignalViolationSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SignalViolationSubCauseCode_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/SituationContainer.c b/vanetza/asn1/its/SituationContainer.c deleted file mode 100644 index 57910d367..000000000 --- a/vanetza/asn1/its/SituationContainer.c +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "DENM-PDU-Descriptions" - * found in "asn1/EN302637-3v131-DENM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "SituationContainer.h" - -asn_TYPE_member_t asn_MBR_SituationContainer_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SituationContainer, informationQuality), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_InformationQuality, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "informationQuality" - }, - { ATF_NOFLAGS, 0, offsetof(struct SituationContainer, eventType), - (ASN_TAG_CLASS_CONTEXT | (1 << 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 */ - "eventType" - }, - { ATF_POINTER, 2, offsetof(struct SituationContainer, linkedCause), - (ASN_TAG_CLASS_CONTEXT | (2 << 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 */ - "linkedCause" - }, - { ATF_POINTER, 1, offsetof(struct SituationContainer, eventHistory), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EventHistory, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "eventHistory" - }, -}; -static const int asn_MAP_SituationContainer_oms_1[] = { 2, 3 }; -static const ber_tlv_tag_t asn_DEF_SituationContainer_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SituationContainer_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* informationQuality */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* eventType */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* linkedCause */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* eventHistory */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SituationContainer_specs_1 = { - sizeof(struct SituationContainer), - offsetof(struct SituationContainer, _asn_ctx), - asn_MAP_SituationContainer_tag2el_1, - 4, /* Count of tags in the map */ - asn_MAP_SituationContainer_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 4, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_SituationContainer = { - "SituationContainer", - "SituationContainer", - &asn_OP_SEQUENCE, - asn_DEF_SituationContainer_tags_1, - sizeof(asn_DEF_SituationContainer_tags_1) - /sizeof(asn_DEF_SituationContainer_tags_1[0]), /* 1 */ - asn_DEF_SituationContainer_tags_1, /* Same as above */ - sizeof(asn_DEF_SituationContainer_tags_1) - /sizeof(asn_DEF_SituationContainer_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_SituationContainer_1, - 4, /* Elements count */ - &asn_SPC_SituationContainer_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/SlowVehicleSubCauseCode.c b/vanetza/asn1/its/SlowVehicleSubCauseCode.c deleted file mode 100644 index 3f2f152fd..000000000 --- a/vanetza/asn1/its/SlowVehicleSubCauseCode.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "SlowVehicleSubCauseCode.h" - -int -SlowVehicleSubCauseCode_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_SlowVehicleSubCauseCode_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_type_SlowVehicleSubCauseCode_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_SlowVehicleSubCauseCode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_SlowVehicleSubCauseCode = { - "SlowVehicleSubCauseCode", - "SlowVehicleSubCauseCode", - &asn_OP_NativeInteger, - asn_DEF_SlowVehicleSubCauseCode_tags_1, - sizeof(asn_DEF_SlowVehicleSubCauseCode_tags_1) - /sizeof(asn_DEF_SlowVehicleSubCauseCode_tags_1[0]), /* 1 */ - asn_DEF_SlowVehicleSubCauseCode_tags_1, /* Same as above */ - sizeof(asn_DEF_SlowVehicleSubCauseCode_tags_1) - /sizeof(asn_DEF_SlowVehicleSubCauseCode_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_SlowVehicleSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_SlowVehicleSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SlowVehicleSubCauseCode_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/SpecialTransportContainer.c b/vanetza/asn1/its/SpecialTransportContainer.c deleted file mode 100644 index 3c5538618..000000000 --- a/vanetza/asn1/its/SpecialTransportContainer.c +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CAM-PDU-Descriptions" - * found in "asn1/EN302637-2v141-CAM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "SpecialTransportContainer.h" - -asn_TYPE_member_t asn_MBR_SpecialTransportContainer_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SpecialTransportContainer, specialTransportType), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SpecialTransportType, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "specialTransportType" - }, - { ATF_NOFLAGS, 0, offsetof(struct SpecialTransportContainer, lightBarSirenInUse), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_LightBarSirenInUse, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "lightBarSirenInUse" - }, -}; -static const ber_tlv_tag_t asn_DEF_SpecialTransportContainer_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SpecialTransportContainer_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* specialTransportType */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* lightBarSirenInUse */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SpecialTransportContainer_specs_1 = { - sizeof(struct SpecialTransportContainer), - offsetof(struct SpecialTransportContainer, _asn_ctx), - asn_MAP_SpecialTransportContainer_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_SpecialTransportContainer = { - "SpecialTransportContainer", - "SpecialTransportContainer", - &asn_OP_SEQUENCE, - asn_DEF_SpecialTransportContainer_tags_1, - sizeof(asn_DEF_SpecialTransportContainer_tags_1) - /sizeof(asn_DEF_SpecialTransportContainer_tags_1[0]), /* 1 */ - asn_DEF_SpecialTransportContainer_tags_1, /* Same as above */ - sizeof(asn_DEF_SpecialTransportContainer_tags_1) - /sizeof(asn_DEF_SpecialTransportContainer_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_SpecialTransportContainer_1, - 2, /* Elements count */ - &asn_SPC_SpecialTransportContainer_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/SpecialTransportType.c b/vanetza/asn1/its/SpecialTransportType.c deleted file mode 100644 index e2e6885c1..000000000 --- a/vanetza/asn1/its/SpecialTransportType.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "SpecialTransportType.h" - -int -SpecialTransportType_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 == 4UL)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_SpecialTransportType_constr_1 CC_NOTUSED = { - { 0, 0 }, - 4 /* (SIZE(4..4)) */}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_SpecialTransportType_constr_1 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) */ -static const ber_tlv_tag_t asn_DEF_SpecialTransportType_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_SpecialTransportType = { - "SpecialTransportType", - "SpecialTransportType", - &asn_OP_BIT_STRING, - asn_DEF_SpecialTransportType_tags_1, - sizeof(asn_DEF_SpecialTransportType_tags_1) - /sizeof(asn_DEF_SpecialTransportType_tags_1[0]), /* 1 */ - asn_DEF_SpecialTransportType_tags_1, /* Same as above */ - sizeof(asn_DEF_SpecialTransportType_tags_1) - /sizeof(asn_DEF_SpecialTransportType_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_SpecialTransportType_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_SpecialTransportType_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SpecialTransportType_constraint - }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_BIT_STRING_specs /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/SpecialVehicleContainer.c b/vanetza/asn1/its/SpecialVehicleContainer.c deleted file mode 100644 index 22242a34b..000000000 --- a/vanetza/asn1/its/SpecialVehicleContainer.c +++ /dev/null @@ -1,183 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CAM-PDU-Descriptions" - * found in "asn1/EN302637-2v141-CAM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "SpecialVehicleContainer.h" - -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_SpecialVehicleContainer_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_SpecialVehicleContainer_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_SpecialVehicleContainer_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SpecialVehicleContainer, choice.publicTransportContainer), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PublicTransportContainer, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "publicTransportContainer" - }, - { ATF_NOFLAGS, 0, offsetof(struct SpecialVehicleContainer, choice.specialTransportContainer), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SpecialTransportContainer, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "specialTransportContainer" - }, - { ATF_NOFLAGS, 0, offsetof(struct SpecialVehicleContainer, choice.dangerousGoodsContainer), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_DangerousGoodsContainer, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "dangerousGoodsContainer" - }, - { ATF_NOFLAGS, 0, offsetof(struct SpecialVehicleContainer, choice.roadWorksContainerBasic), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RoadWorksContainerBasic, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "roadWorksContainerBasic" - }, - { ATF_NOFLAGS, 0, offsetof(struct SpecialVehicleContainer, choice.rescueContainer), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RescueContainer, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "rescueContainer" - }, - { ATF_NOFLAGS, 0, offsetof(struct SpecialVehicleContainer, choice.emergencyContainer), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EmergencyContainer, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "emergencyContainer" - }, - { ATF_NOFLAGS, 0, offsetof(struct SpecialVehicleContainer, choice.safetyCarContainer), - (ASN_TAG_CLASS_CONTEXT | (6 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SafetyCarContainer, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "safetyCarContainer" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_SpecialVehicleContainer_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* publicTransportContainer */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* specialTransportContainer */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* dangerousGoodsContainer */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* roadWorksContainerBasic */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* rescueContainer */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* emergencyContainer */ - { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* safetyCarContainer */ -}; -asn_CHOICE_specifics_t asn_SPC_SpecialVehicleContainer_specs_1 = { - sizeof(struct SpecialVehicleContainer), - offsetof(struct SpecialVehicleContainer, _asn_ctx), - offsetof(struct SpecialVehicleContainer, present), - sizeof(((struct SpecialVehicleContainer *)0)->present), - asn_MAP_SpecialVehicleContainer_tag2el_1, - 7, /* Count of tags in the map */ - 0, 0, - 7 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_SpecialVehicleContainer = { - "SpecialVehicleContainer", - "SpecialVehicleContainer", - &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) - &asn_OER_type_SpecialVehicleContainer_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_SpecialVehicleContainer_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - CHOICE_constraint - }, - asn_MBR_SpecialVehicleContainer_1, - 7, /* Elements count */ - &asn_SPC_SpecialVehicleContainer_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/Speed.c b/vanetza/asn1/its/Speed.c deleted file mode 100644 index 4f5a1bf53..000000000 --- a/vanetza/asn1/its/Speed.c +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "Speed.h" - -asn_TYPE_member_t asn_MBR_Speed_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Speed, speedValue), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SpeedValue, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "speedValue" - }, - { ATF_NOFLAGS, 0, offsetof(struct Speed, speedConfidence), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SpeedConfidence, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "speedConfidence" - }, -}; -static const ber_tlv_tag_t asn_DEF_Speed_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Speed_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* speedValue */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* speedConfidence */ -}; -asn_SEQUENCE_specifics_t asn_SPC_Speed_specs_1 = { - sizeof(struct Speed), - offsetof(struct Speed, _asn_ctx), - asn_MAP_Speed_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_Speed = { - "Speed", - "Speed", - &asn_OP_SEQUENCE, - asn_DEF_Speed_tags_1, - sizeof(asn_DEF_Speed_tags_1) - /sizeof(asn_DEF_Speed_tags_1[0]), /* 1 */ - asn_DEF_Speed_tags_1, /* Same as above */ - sizeof(asn_DEF_Speed_tags_1) - /sizeof(asn_DEF_Speed_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_Speed_1, - 2, /* Elements count */ - &asn_SPC_Speed_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/SpeedConfidence.c b/vanetza/asn1/its/SpeedConfidence.c deleted file mode 100644 index 31563d7c3..000000000 --- a/vanetza/asn1/its/SpeedConfidence.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "SpeedConfidence.h" - -int -SpeedConfidence_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 <= 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_SpeedConfidence_constr_1 CC_NOTUSED = { - { 1, 1 } /* (1..127) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_SpeedConfidence_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 1, 127 } /* (1..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_SpeedConfidence_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_SpeedConfidence = { - "SpeedConfidence", - "SpeedConfidence", - &asn_OP_NativeInteger, - asn_DEF_SpeedConfidence_tags_1, - sizeof(asn_DEF_SpeedConfidence_tags_1) - /sizeof(asn_DEF_SpeedConfidence_tags_1[0]), /* 1 */ - asn_DEF_SpeedConfidence_tags_1, /* Same as above */ - sizeof(asn_DEF_SpeedConfidence_tags_1) - /sizeof(asn_DEF_SpeedConfidence_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_SpeedConfidence_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_SpeedConfidence_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SpeedConfidence_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/SpeedLimit.c b/vanetza/asn1/its/SpeedLimit.c deleted file mode 100644 index 2d93d9f73..000000000 --- a/vanetza/asn1/its/SpeedLimit.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "SpeedLimit.h" - -int -SpeedLimit_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 <= 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_SpeedLimit_constr_1 CC_NOTUSED = { - { 1, 1 } /* (1..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_SpeedLimit_constr_1 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) */ -static const ber_tlv_tag_t asn_DEF_SpeedLimit_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_SpeedLimit = { - "SpeedLimit", - "SpeedLimit", - &asn_OP_NativeInteger, - asn_DEF_SpeedLimit_tags_1, - sizeof(asn_DEF_SpeedLimit_tags_1) - /sizeof(asn_DEF_SpeedLimit_tags_1[0]), /* 1 */ - asn_DEF_SpeedLimit_tags_1, /* Same as above */ - sizeof(asn_DEF_SpeedLimit_tags_1) - /sizeof(asn_DEF_SpeedLimit_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_SpeedLimit_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_SpeedLimit_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SpeedLimit_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/SpeedValue.c b/vanetza/asn1/its/SpeedValue.c deleted file mode 100644 index be16e559d..000000000 --- a/vanetza/asn1/its/SpeedValue.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "SpeedValue.h" - -int -SpeedValue_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_SpeedValue_constr_1 CC_NOTUSED = { - { 2, 1 } /* (0..16383) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_SpeedValue_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_SpeedValue_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_SpeedValue = { - "SpeedValue", - "SpeedValue", - &asn_OP_NativeInteger, - asn_DEF_SpeedValue_tags_1, - sizeof(asn_DEF_SpeedValue_tags_1) - /sizeof(asn_DEF_SpeedValue_tags_1[0]), /* 1 */ - asn_DEF_SpeedValue_tags_1, /* Same as above */ - sizeof(asn_DEF_SpeedValue_tags_1) - /sizeof(asn_DEF_SpeedValue_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_SpeedValue_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_SpeedValue_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SpeedValue_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/StationID.c b/vanetza/asn1/its/StationID.c deleted file mode 100644 index 871e72f20..000000000 --- a/vanetza/asn1/its/StationID.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "StationID.h" - -int -StationID_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. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_StationID_constr_1 CC_NOTUSED = { - { 4, 1 } /* (0..4294967295) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_StationID_constr_1 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) */ -const asn_INTEGER_specifics_t asn_SPC_StationID_specs_1 = { - 0, 0, 0, 0, 0, - 0, /* Native long size */ - 1 /* Unsigned representation */ -}; -static const ber_tlv_tag_t asn_DEF_StationID_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_StationID = { - "StationID", - "StationID", - &asn_OP_NativeInteger, - asn_DEF_StationID_tags_1, - sizeof(asn_DEF_StationID_tags_1) - /sizeof(asn_DEF_StationID_tags_1[0]), /* 1 */ - asn_DEF_StationID_tags_1, /* Same as above */ - sizeof(asn_DEF_StationID_tags_1) - /sizeof(asn_DEF_StationID_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_StationID_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_StationID_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - StationID_constraint - }, - 0, 0, /* No members */ - &asn_SPC_StationID_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/StationType.c b/vanetza/asn1/its/StationType.c deleted file mode 100644 index 8e1a00a58..000000000 --- a/vanetza/asn1/its/StationType.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "StationType.h" - -int -StationType_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_StationType_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_StationType_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_StationType_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_StationType = { - "StationType", - "StationType", - &asn_OP_NativeInteger, - asn_DEF_StationType_tags_1, - sizeof(asn_DEF_StationType_tags_1) - /sizeof(asn_DEF_StationType_tags_1[0]), /* 1 */ - asn_DEF_StationType_tags_1, /* Same as above */ - sizeof(asn_DEF_StationType_tags_1) - /sizeof(asn_DEF_StationType_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_StationType_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_StationType_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - StationType_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/StationarySince.c b/vanetza/asn1/its/StationarySince.c deleted file mode 100644 index 7b757589e..000000000 --- a/vanetza/asn1/its/StationarySince.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "StationarySince.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_StationarySince_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_StationarySince_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) */ -static const asn_INTEGER_enum_map_t asn_MAP_StationarySince_value2enum_1[] = { - { 0, 15, "lessThan1Minute" }, - { 1, 16, "lessThan2Minutes" }, - { 2, 17, "lessThan15Minutes" }, - { 3, 23, "equalOrGreater15Minutes" } -}; -static const unsigned int asn_MAP_StationarySince_enum2value_1[] = { - 3, /* equalOrGreater15Minutes(3) */ - 2, /* lessThan15Minutes(2) */ - 0, /* lessThan1Minute(0) */ - 1 /* lessThan2Minutes(1) */ -}; -const asn_INTEGER_specifics_t asn_SPC_StationarySince_specs_1 = { - asn_MAP_StationarySince_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_StationarySince_enum2value_1, /* 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_StationarySince_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_StationarySince = { - "StationarySince", - "StationarySince", - &asn_OP_NativeEnumerated, - asn_DEF_StationarySince_tags_1, - sizeof(asn_DEF_StationarySince_tags_1) - /sizeof(asn_DEF_StationarySince_tags_1[0]), /* 1 */ - asn_DEF_StationarySince_tags_1, /* Same as above */ - sizeof(asn_DEF_StationarySince_tags_1) - /sizeof(asn_DEF_StationarySince_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_StationarySince_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_StationarySince_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - NativeEnumerated_constraint - }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_StationarySince_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/StationaryVehicleContainer.c b/vanetza/asn1/its/StationaryVehicleContainer.c deleted file mode 100644 index 1eb95eee1..000000000 --- a/vanetza/asn1/its/StationaryVehicleContainer.c +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "DENM-PDU-Descriptions" - * found in "asn1/EN302637-3v131-DENM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "StationaryVehicleContainer.h" - -asn_TYPE_member_t asn_MBR_StationaryVehicleContainer_1[] = { - { ATF_POINTER, 6, offsetof(struct StationaryVehicleContainer, stationarySince), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_StationarySince, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "stationarySince" - }, - { ATF_POINTER, 5, offsetof(struct StationaryVehicleContainer, stationaryCause), - (ASN_TAG_CLASS_CONTEXT | (1 << 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 */ - "stationaryCause" - }, - { ATF_POINTER, 4, offsetof(struct StationaryVehicleContainer, carryingDangerousGoods), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_DangerousGoodsExtended, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "carryingDangerousGoods" - }, - { ATF_POINTER, 3, offsetof(struct StationaryVehicleContainer, numberOfOccupants), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NumberOfOccupants, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "numberOfOccupants" - }, - { ATF_POINTER, 2, offsetof(struct StationaryVehicleContainer, vehicleIdentification), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_VehicleIdentification, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "vehicleIdentification" - }, - { ATF_POINTER, 1, offsetof(struct StationaryVehicleContainer, energyStorageType), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_EnergyStorageType, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "energyStorageType" - }, -}; -static const int asn_MAP_StationaryVehicleContainer_oms_1[] = { 0, 1, 2, 3, 4, 5 }; -static const ber_tlv_tag_t asn_DEF_StationaryVehicleContainer_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_StationaryVehicleContainer_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* stationarySince */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* stationaryCause */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* carryingDangerousGoods */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* numberOfOccupants */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* vehicleIdentification */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* energyStorageType */ -}; -asn_SEQUENCE_specifics_t asn_SPC_StationaryVehicleContainer_specs_1 = { - sizeof(struct StationaryVehicleContainer), - offsetof(struct StationaryVehicleContainer, _asn_ctx), - asn_MAP_StationaryVehicleContainer_tag2el_1, - 6, /* Count of tags in the map */ - asn_MAP_StationaryVehicleContainer_oms_1, /* Optional members */ - 6, 0, /* Root/Additions */ - -1, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_StationaryVehicleContainer = { - "StationaryVehicleContainer", - "StationaryVehicleContainer", - &asn_OP_SEQUENCE, - asn_DEF_StationaryVehicleContainer_tags_1, - sizeof(asn_DEF_StationaryVehicleContainer_tags_1) - /sizeof(asn_DEF_StationaryVehicleContainer_tags_1[0]), /* 1 */ - asn_DEF_StationaryVehicleContainer_tags_1, /* Same as above */ - sizeof(asn_DEF_StationaryVehicleContainer_tags_1) - /sizeof(asn_DEF_StationaryVehicleContainer_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_StationaryVehicleContainer_1, - 6, /* Elements count */ - &asn_SPC_StationaryVehicleContainer_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/StationaryVehicleSubCauseCode.c b/vanetza/asn1/its/StationaryVehicleSubCauseCode.c deleted file mode 100644 index 1baea2614..000000000 --- a/vanetza/asn1/its/StationaryVehicleSubCauseCode.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "StationaryVehicleSubCauseCode.h" - -int -StationaryVehicleSubCauseCode_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_StationaryVehicleSubCauseCode_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_type_StationaryVehicleSubCauseCode_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_StationaryVehicleSubCauseCode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_StationaryVehicleSubCauseCode = { - "StationaryVehicleSubCauseCode", - "StationaryVehicleSubCauseCode", - &asn_OP_NativeInteger, - asn_DEF_StationaryVehicleSubCauseCode_tags_1, - sizeof(asn_DEF_StationaryVehicleSubCauseCode_tags_1) - /sizeof(asn_DEF_StationaryVehicleSubCauseCode_tags_1[0]), /* 1 */ - asn_DEF_StationaryVehicleSubCauseCode_tags_1, /* Same as above */ - sizeof(asn_DEF_StationaryVehicleSubCauseCode_tags_1) - /sizeof(asn_DEF_StationaryVehicleSubCauseCode_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_StationaryVehicleSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_StationaryVehicleSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - StationaryVehicleSubCauseCode_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/SteeringWheelAngle.c b/vanetza/asn1/its/SteeringWheelAngle.c deleted file mode 100644 index 1ee027349..000000000 --- a/vanetza/asn1/its/SteeringWheelAngle.c +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "SteeringWheelAngle.h" - -asn_TYPE_member_t asn_MBR_SteeringWheelAngle_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SteeringWheelAngle, steeringWheelAngleValue), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SteeringWheelAngleValue, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "steeringWheelAngleValue" - }, - { ATF_NOFLAGS, 0, offsetof(struct SteeringWheelAngle, steeringWheelAngleConfidence), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SteeringWheelAngleConfidence, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "steeringWheelAngleConfidence" - }, -}; -static const ber_tlv_tag_t asn_DEF_SteeringWheelAngle_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_SteeringWheelAngle_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* steeringWheelAngleValue */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* steeringWheelAngleConfidence */ -}; -asn_SEQUENCE_specifics_t asn_SPC_SteeringWheelAngle_specs_1 = { - sizeof(struct SteeringWheelAngle), - offsetof(struct SteeringWheelAngle, _asn_ctx), - asn_MAP_SteeringWheelAngle_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_SteeringWheelAngle = { - "SteeringWheelAngle", - "SteeringWheelAngle", - &asn_OP_SEQUENCE, - asn_DEF_SteeringWheelAngle_tags_1, - sizeof(asn_DEF_SteeringWheelAngle_tags_1) - /sizeof(asn_DEF_SteeringWheelAngle_tags_1[0]), /* 1 */ - asn_DEF_SteeringWheelAngle_tags_1, /* Same as above */ - sizeof(asn_DEF_SteeringWheelAngle_tags_1) - /sizeof(asn_DEF_SteeringWheelAngle_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_SteeringWheelAngle_1, - 2, /* Elements count */ - &asn_SPC_SteeringWheelAngle_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/SteeringWheelAngleConfidence.c b/vanetza/asn1/its/SteeringWheelAngleConfidence.c deleted file mode 100644 index c57c8486c..000000000 --- a/vanetza/asn1/its/SteeringWheelAngleConfidence.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "SteeringWheelAngleConfidence.h" - -int -SteeringWheelAngleConfidence_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 <= 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_SteeringWheelAngleConfidence_constr_1 CC_NOTUSED = { - { 1, 1 } /* (1..127) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_SteeringWheelAngleConfidence_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 1, 127 } /* (1..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_SteeringWheelAngleConfidence_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_SteeringWheelAngleConfidence = { - "SteeringWheelAngleConfidence", - "SteeringWheelAngleConfidence", - &asn_OP_NativeInteger, - asn_DEF_SteeringWheelAngleConfidence_tags_1, - sizeof(asn_DEF_SteeringWheelAngleConfidence_tags_1) - /sizeof(asn_DEF_SteeringWheelAngleConfidence_tags_1[0]), /* 1 */ - asn_DEF_SteeringWheelAngleConfidence_tags_1, /* Same as above */ - sizeof(asn_DEF_SteeringWheelAngleConfidence_tags_1) - /sizeof(asn_DEF_SteeringWheelAngleConfidence_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_SteeringWheelAngleConfidence_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_SteeringWheelAngleConfidence_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SteeringWheelAngleConfidence_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/SteeringWheelAngleValue.c b/vanetza/asn1/its/SteeringWheelAngleValue.c deleted file mode 100644 index f7523d5a6..000000000 --- a/vanetza/asn1/its/SteeringWheelAngleValue.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "SteeringWheelAngleValue.h" - -int -SteeringWheelAngleValue_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 >= -511L && 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; - } -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_SteeringWheelAngleValue_constr_1 CC_NOTUSED = { - { 2, 0 } /* (-511..512) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_SteeringWheelAngleValue_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 10, 10, -511, 512 } /* (-511..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 ber_tlv_tag_t asn_DEF_SteeringWheelAngleValue_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_SteeringWheelAngleValue = { - "SteeringWheelAngleValue", - "SteeringWheelAngleValue", - &asn_OP_NativeInteger, - asn_DEF_SteeringWheelAngleValue_tags_1, - sizeof(asn_DEF_SteeringWheelAngleValue_tags_1) - /sizeof(asn_DEF_SteeringWheelAngleValue_tags_1[0]), /* 1 */ - asn_DEF_SteeringWheelAngleValue_tags_1, /* Same as above */ - sizeof(asn_DEF_SteeringWheelAngleValue_tags_1) - /sizeof(asn_DEF_SteeringWheelAngleValue_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_SteeringWheelAngleValue_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_SteeringWheelAngleValue_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SteeringWheelAngleValue_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/SubCauseCodeType.c b/vanetza/asn1/its/SubCauseCodeType.c deleted file mode 100644 index d80bc6f98..000000000 --- a/vanetza/asn1/its/SubCauseCodeType.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "SubCauseCodeType.h" - -int -SubCauseCodeType_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_SubCauseCodeType_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_SubCauseCodeType_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_SubCauseCodeType_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_SubCauseCodeType = { - "SubCauseCodeType", - "SubCauseCodeType", - &asn_OP_NativeInteger, - asn_DEF_SubCauseCodeType_tags_1, - sizeof(asn_DEF_SubCauseCodeType_tags_1) - /sizeof(asn_DEF_SubCauseCodeType_tags_1[0]), /* 1 */ - asn_DEF_SubCauseCodeType_tags_1, /* Same as above */ - sizeof(asn_DEF_SubCauseCodeType_tags_1) - /sizeof(asn_DEF_SubCauseCodeType_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_SubCauseCodeType_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_SubCauseCodeType_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SubCauseCodeType_constraint - }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/Termination.c b/vanetza/asn1/its/Termination.c deleted file mode 100644 index 52b052518..000000000 --- a/vanetza/asn1/its/Termination.c +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "DENM-PDU-Descriptions" - * found in "asn1/EN302637-3v131-DENM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "Termination.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_Termination_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_Termination_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_Termination_value2enum_1[] = { - { 0, 14, "isCancellation" }, - { 1, 10, "isNegation" } -}; -static const unsigned int asn_MAP_Termination_enum2value_1[] = { - 0, /* isCancellation(0) */ - 1 /* isNegation(1) */ -}; -const asn_INTEGER_specifics_t asn_SPC_Termination_specs_1 = { - asn_MAP_Termination_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_Termination_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_Termination_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_Termination = { - "Termination", - "Termination", - &asn_OP_NativeEnumerated, - asn_DEF_Termination_tags_1, - sizeof(asn_DEF_Termination_tags_1) - /sizeof(asn_DEF_Termination_tags_1[0]), /* 1 */ - asn_DEF_Termination_tags_1, /* Same as above */ - sizeof(asn_DEF_Termination_tags_1) - /sizeof(asn_DEF_Termination_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_Termination_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_Termination_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - NativeEnumerated_constraint - }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_Termination_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/TimestampIts.c b/vanetza/asn1/its/TimestampIts.c deleted file mode 100644 index 280bcb644..000000000 --- a/vanetza/asn1/its/TimestampIts.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "TimestampIts.h" - -int -TimestampIts_constraint(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 <= 4398046511103L)) { - /* 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 INTEGER, - * so here we adjust the DEF accordingly. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_TimestampIts_constr_1 CC_NOTUSED = { - { 8, 1 } /* (0..4398046511103) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_TimestampIts_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 42, -1, 0, 4398046511103 } /* (0..4398046511103) */, - { 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_TimestampIts_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_TimestampIts = { - "TimestampIts", - "TimestampIts", - &asn_OP_INTEGER, - asn_DEF_TimestampIts_tags_1, - sizeof(asn_DEF_TimestampIts_tags_1) - /sizeof(asn_DEF_TimestampIts_tags_1[0]), /* 1 */ - asn_DEF_TimestampIts_tags_1, /* Same as above */ - sizeof(asn_DEF_TimestampIts_tags_1) - /sizeof(asn_DEF_TimestampIts_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_TimestampIts_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_TimestampIts_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - TimestampIts_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/Traces.c b/vanetza/asn1/its/Traces.c deleted file mode 100644 index d9255b60d..000000000 --- a/vanetza/asn1/its/Traces.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "Traces.h" - -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_Traces_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1 /* (SIZE(1..7)) */}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_Traces_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_Traces_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_PathHistory, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_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_Traces_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -asn_SET_OF_specifics_t asn_SPC_Traces_specs_1 = { - sizeof(struct Traces), - offsetof(struct Traces, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_Traces = { - "Traces", - "Traces", - &asn_OP_SEQUENCE_OF, - asn_DEF_Traces_tags_1, - sizeof(asn_DEF_Traces_tags_1) - /sizeof(asn_DEF_Traces_tags_1[0]), /* 1 */ - asn_DEF_Traces_tags_1, /* Same as above */ - sizeof(asn_DEF_Traces_tags_1) - /sizeof(asn_DEF_Traces_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_Traces_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_Traces_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_OF_constraint - }, - asn_MBR_Traces_1, - 1, /* Single element */ - &asn_SPC_Traces_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/TrafficConditionSubCauseCode.c b/vanetza/asn1/its/TrafficConditionSubCauseCode.c deleted file mode 100644 index c7bdc88b1..000000000 --- a/vanetza/asn1/its/TrafficConditionSubCauseCode.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "TrafficConditionSubCauseCode.h" - -int -TrafficConditionSubCauseCode_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_TrafficConditionSubCauseCode_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_type_TrafficConditionSubCauseCode_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_TrafficConditionSubCauseCode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_TrafficConditionSubCauseCode = { - "TrafficConditionSubCauseCode", - "TrafficConditionSubCauseCode", - &asn_OP_NativeInteger, - asn_DEF_TrafficConditionSubCauseCode_tags_1, - sizeof(asn_DEF_TrafficConditionSubCauseCode_tags_1) - /sizeof(asn_DEF_TrafficConditionSubCauseCode_tags_1[0]), /* 1 */ - asn_DEF_TrafficConditionSubCauseCode_tags_1, /* Same as above */ - sizeof(asn_DEF_TrafficConditionSubCauseCode_tags_1) - /sizeof(asn_DEF_TrafficConditionSubCauseCode_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_TrafficConditionSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_TrafficConditionSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - TrafficConditionSubCauseCode_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/TrafficRule.c b/vanetza/asn1/its/TrafficRule.c deleted file mode 100644 index dfdae3fff..000000000 --- a/vanetza/asn1/its/TrafficRule.c +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "TrafficRule.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_TrafficRule_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_TrafficRule_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_TrafficRule_value2enum_1[] = { - { 0, 9, "noPassing" }, - { 1, 18, "noPassingForTrucks" }, - { 2, 11, "passToRight" }, - { 3, 10, "passToLeft" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_TrafficRule_enum2value_1[] = { - 0, /* noPassing(0) */ - 1, /* noPassingForTrucks(1) */ - 3, /* passToLeft(3) */ - 2 /* passToRight(2) */ - /* This list is extensible */ -}; -const asn_INTEGER_specifics_t asn_SPC_TrafficRule_specs_1 = { - asn_MAP_TrafficRule_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_TrafficRule_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_TrafficRule_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_TrafficRule = { - "TrafficRule", - "TrafficRule", - &asn_OP_NativeEnumerated, - asn_DEF_TrafficRule_tags_1, - sizeof(asn_DEF_TrafficRule_tags_1) - /sizeof(asn_DEF_TrafficRule_tags_1[0]), /* 1 */ - asn_DEF_TrafficRule_tags_1, /* Same as above */ - sizeof(asn_DEF_TrafficRule_tags_1) - /sizeof(asn_DEF_TrafficRule_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_TrafficRule_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_TrafficRule_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - NativeEnumerated_constraint - }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_TrafficRule_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/TrailerData.c b/vanetza/asn1/its/TrailerData.c deleted file mode 100644 index 7809854bc..000000000 --- a/vanetza/asn1/its/TrailerData.c +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CPM-PDU-Descriptions" - * found in "asn1/TR103562v211-CPM.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "TrailerData.h" - -asn_TYPE_member_t asn_MBR_TrailerData_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct TrailerData, refPointId), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RefPointId, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "refPointId" - }, - { ATF_NOFLAGS, 0, offsetof(struct TrailerData, hitchPointOffset), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_HitchPointOffset, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "hitchPointOffset" - }, - { ATF_NOFLAGS, 0, offsetof(struct TrailerData, frontOverhang), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_FrontOverhang, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "frontOverhang" - }, - { ATF_NOFLAGS, 0, offsetof(struct TrailerData, rearOverhang), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RearOverhang, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "rearOverhang" - }, - { ATF_POINTER, 2, offsetof(struct TrailerData, trailerWidth), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_VehicleWidth, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "trailerWidth" - }, - { ATF_POINTER, 1, offsetof(struct TrailerData, hitchAngle), - (ASN_TAG_CLASS_CONTEXT | (5 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CartesianAngle, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "hitchAngle" - }, -}; -static const int asn_MAP_TrailerData_oms_1[] = { 4, 5 }; -static const ber_tlv_tag_t asn_DEF_TrailerData_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_TrailerData_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refPointId */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* hitchPointOffset */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* frontOverhang */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* rearOverhang */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* trailerWidth */ - { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* hitchAngle */ -}; -asn_SEQUENCE_specifics_t asn_SPC_TrailerData_specs_1 = { - sizeof(struct TrailerData), - offsetof(struct TrailerData, _asn_ctx), - asn_MAP_TrailerData_tag2el_1, - 6, /* Count of tags in the map */ - asn_MAP_TrailerData_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 6, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_TrailerData = { - "TrailerData", - "TrailerData", - &asn_OP_SEQUENCE, - asn_DEF_TrailerData_tags_1, - sizeof(asn_DEF_TrailerData_tags_1) - /sizeof(asn_DEF_TrailerData_tags_1[0]), /* 1 */ - asn_DEF_TrailerData_tags_1, /* Same as above */ - sizeof(asn_DEF_TrailerData_tags_1) - /sizeof(asn_DEF_TrailerData_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_TrailerData_1, - 6, /* Elements count */ - &asn_SPC_TrailerData_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/TransmissionInterval.c b/vanetza/asn1/its/TransmissionInterval.c deleted file mode 100644 index d53a308d5..000000000 --- a/vanetza/asn1/its/TransmissionInterval.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "TransmissionInterval.h" - -int -TransmissionInterval_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 <= 10000L)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_TransmissionInterval_constr_1 CC_NOTUSED = { - { 2, 1 } /* (1..10000) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_TransmissionInterval_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 14, 14, 1, 10000 } /* (1..10000) */, - { 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_TransmissionInterval_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_TransmissionInterval = { - "TransmissionInterval", - "TransmissionInterval", - &asn_OP_NativeInteger, - asn_DEF_TransmissionInterval_tags_1, - sizeof(asn_DEF_TransmissionInterval_tags_1) - /sizeof(asn_DEF_TransmissionInterval_tags_1[0]), /* 1 */ - asn_DEF_TransmissionInterval_tags_1, /* Same as above */ - sizeof(asn_DEF_TransmissionInterval_tags_1) - /sizeof(asn_DEF_TransmissionInterval_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_TransmissionInterval_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_TransmissionInterval_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - TransmissionInterval_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/TurningRadius.c b/vanetza/asn1/its/TurningRadius.c deleted file mode 100644 index 89957658b..000000000 --- a/vanetza/asn1/its/TurningRadius.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "TurningRadius.h" - -int -TurningRadius_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 <= 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_TurningRadius_constr_1 CC_NOTUSED = { - { 1, 1 } /* (1..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_TurningRadius_constr_1 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) */ -static const ber_tlv_tag_t asn_DEF_TurningRadius_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_TurningRadius = { - "TurningRadius", - "TurningRadius", - &asn_OP_NativeInteger, - asn_DEF_TurningRadius_tags_1, - sizeof(asn_DEF_TurningRadius_tags_1) - /sizeof(asn_DEF_TurningRadius_tags_1[0]), /* 1 */ - asn_DEF_TurningRadius_tags_1, /* Same as above */ - sizeof(asn_DEF_TurningRadius_tags_1) - /sizeof(asn_DEF_TurningRadius_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_TurningRadius_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_TurningRadius_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - TurningRadius_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/VDS.c b/vanetza/asn1/its/VDS.c deleted file mode 100644 index 5e5d85184..000000000 --- a/vanetza/asn1/its/VDS.c +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "VDS.h" - -static int check_permitted_alphabet_1(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; -} - -int -VDS_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; - 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) - && !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 IA5String, - * so here we adjust the DEF accordingly. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_VDS_constr_1 CC_NOTUSED = { - { 0, 0 }, - 6 /* (SIZE(6..6)) */}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_VDS_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_CONSTRAINED, 0, 0, 6, 6 } /* (SIZE(6..6)) */, - 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_VDS_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_VDS = { - "VDS", - "VDS", - &asn_OP_IA5String, - asn_DEF_VDS_tags_1, - sizeof(asn_DEF_VDS_tags_1) - /sizeof(asn_DEF_VDS_tags_1[0]), /* 1 */ - asn_DEF_VDS_tags_1, /* Same as above */ - sizeof(asn_DEF_VDS_tags_1) - /sizeof(asn_DEF_VDS_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_VDS_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_VDS_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - VDS_constraint - }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/ValidityDuration.c b/vanetza/asn1/its/ValidityDuration.c deleted file mode 100644 index 0530b88a5..000000000 --- a/vanetza/asn1/its/ValidityDuration.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "ValidityDuration.h" - -int -ValidityDuration_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 <= 86400L)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_ValidityDuration_constr_1 CC_NOTUSED = { - { 4, 1 } /* (0..86400) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_ValidityDuration_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 17, -1, 0, 86400 } /* (0..86400) */, - { 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_ValidityDuration_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_ValidityDuration = { - "ValidityDuration", - "ValidityDuration", - &asn_OP_NativeInteger, - asn_DEF_ValidityDuration_tags_1, - sizeof(asn_DEF_ValidityDuration_tags_1) - /sizeof(asn_DEF_ValidityDuration_tags_1[0]), /* 1 */ - asn_DEF_ValidityDuration_tags_1, /* Same as above */ - sizeof(asn_DEF_ValidityDuration_tags_1) - /sizeof(asn_DEF_ValidityDuration_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_ValidityDuration_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_ValidityDuration_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - ValidityDuration_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/VanetzaTest.c b/vanetza/asn1/its/VanetzaTest.c deleted file mode 100644 index dbfbde7f0..000000000 --- a/vanetza/asn1/its/VanetzaTest.c +++ /dev/null @@ -1,121 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "Test-Descriptions" - * found in "test.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "VanetzaTest.h" - -static int -memb_field_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0L && value <= 321L)) { - /* Constraint check succeeded */ - return 0; - } else { - ASN__CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_memb_field_constr_2 CC_NOTUSED = { - { 2, 1 } /* (0..321) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_memb_field_constr_2 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, 0, 321 } /* (0..321) */, - { 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_VanetzaTest_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct VanetzaTest, field), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_memb_field_constr_2, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_memb_field_constr_2, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - memb_field_constraint_1 - }, - 0, 0, /* No default value */ - "field" - }, - { ATF_NOFLAGS, 0, offsetof(struct VanetzaTest, string), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NumericString, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "string" - }, -}; -static const ber_tlv_tag_t asn_DEF_VanetzaTest_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_VanetzaTest_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* field */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* string */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_VanetzaTest_specs_1 = { - sizeof(struct VanetzaTest), - offsetof(struct VanetzaTest, _asn_ctx), - asn_MAP_VanetzaTest_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_VanetzaTest = { - "VanetzaTest", - "VanetzaTest", - &asn_OP_SEQUENCE, - asn_DEF_VanetzaTest_tags_1, - sizeof(asn_DEF_VanetzaTest_tags_1) - /sizeof(asn_DEF_VanetzaTest_tags_1[0]), /* 1 */ - asn_DEF_VanetzaTest_tags_1, /* Same as above */ - sizeof(asn_DEF_VanetzaTest_tags_1) - /sizeof(asn_DEF_VanetzaTest_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_VanetzaTest_1, - 2, /* Elements count */ - &asn_SPC_VanetzaTest_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/VarLengthNumber.c b/vanetza/asn1/its/VarLengthNumber.c deleted file mode 100644 index bbee59807..000000000 --- a/vanetza/asn1/its/VarLengthNumber.c +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "CITSapplMgmtIDs" - * found in "build.asn1/iso/ISO17419.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "VarLengthNumber.h" - -static int -memb_content_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - ASN__CTFAIL(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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_memb_content_constr_2 CC_NOTUSED = { - { 1, 1 } /* (0..127) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_memb_content_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_VarLengthNumber_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_VarLengthNumber_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_VarLengthNumber_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct VarLengthNumber, choice.content), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_memb_content_constr_2, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_memb_content_constr_2, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - memb_content_constraint_1 - }, - 0, 0, /* No default value */ - "content" - }, - { ATF_NOFLAGS, 0, offsetof(struct VarLengthNumber, choice.extension), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_Ext1, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "extension" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_VarLengthNumber_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* content */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* extension */ -}; -asn_CHOICE_specifics_t asn_SPC_VarLengthNumber_specs_1 = { - sizeof(struct VarLengthNumber), - offsetof(struct VarLengthNumber, _asn_ctx), - offsetof(struct VarLengthNumber, present), - sizeof(((struct VarLengthNumber *)0)->present), - asn_MAP_VarLengthNumber_tag2el_1, - 2, /* Count of tags in the map */ - 0, 0, - -1 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_VarLengthNumber = { - "VarLengthNumber", - "VarLengthNumber", - &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) - &asn_OER_type_VarLengthNumber_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_VarLengthNumber_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - CHOICE_constraint - }, - asn_MBR_VarLengthNumber_1, - 2, /* Elements count */ - &asn_SPC_VarLengthNumber_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/VehicleBreakdownSubCauseCode.c b/vanetza/asn1/its/VehicleBreakdownSubCauseCode.c deleted file mode 100644 index bff236abc..000000000 --- a/vanetza/asn1/its/VehicleBreakdownSubCauseCode.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "VehicleBreakdownSubCauseCode.h" - -int -VehicleBreakdownSubCauseCode_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_VehicleBreakdownSubCauseCode_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_type_VehicleBreakdownSubCauseCode_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_VehicleBreakdownSubCauseCode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_VehicleBreakdownSubCauseCode = { - "VehicleBreakdownSubCauseCode", - "VehicleBreakdownSubCauseCode", - &asn_OP_NativeInteger, - asn_DEF_VehicleBreakdownSubCauseCode_tags_1, - sizeof(asn_DEF_VehicleBreakdownSubCauseCode_tags_1) - /sizeof(asn_DEF_VehicleBreakdownSubCauseCode_tags_1[0]), /* 1 */ - asn_DEF_VehicleBreakdownSubCauseCode_tags_1, /* Same as above */ - sizeof(asn_DEF_VehicleBreakdownSubCauseCode_tags_1) - /sizeof(asn_DEF_VehicleBreakdownSubCauseCode_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_VehicleBreakdownSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_VehicleBreakdownSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - VehicleBreakdownSubCauseCode_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/VehicleHeight.c b/vanetza/asn1/its/VehicleHeight.c deleted file mode 100644 index b4a5f6a95..000000000 --- a/vanetza/asn1/its/VehicleHeight.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "DSRC" - * found in "build.asn1/iso/ISO19091.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "VehicleHeight.h" - -int -VehicleHeight_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_VehicleHeight_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..127) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_VehicleHeight_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_VehicleHeight_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_VehicleHeight = { - "VehicleHeight", - "VehicleHeight", - &asn_OP_NativeInteger, - asn_DEF_VehicleHeight_tags_1, - sizeof(asn_DEF_VehicleHeight_tags_1) - /sizeof(asn_DEF_VehicleHeight_tags_1[0]), /* 1 */ - asn_DEF_VehicleHeight_tags_1, /* Same as above */ - sizeof(asn_DEF_VehicleHeight_tags_1) - /sizeof(asn_DEF_VehicleHeight_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_VehicleHeight_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_VehicleHeight_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - VehicleHeight_constraint - }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/VehicleIdentification.c b/vanetza/asn1/its/VehicleIdentification.c deleted file mode 100644 index 5df53f513..000000000 --- a/vanetza/asn1/its/VehicleIdentification.c +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "VehicleIdentification.h" - -asn_TYPE_member_t asn_MBR_VehicleIdentification_1[] = { - { ATF_POINTER, 2, offsetof(struct VehicleIdentification, wMInumber), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_WMInumber, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "wMInumber" - }, - { ATF_POINTER, 1, offsetof(struct VehicleIdentification, vDS), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_VDS, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "vDS" - }, -}; -static const int asn_MAP_VehicleIdentification_oms_1[] = { 0, 1 }; -static const ber_tlv_tag_t asn_DEF_VehicleIdentification_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_VehicleIdentification_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* wMInumber */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* vDS */ -}; -asn_SEQUENCE_specifics_t asn_SPC_VehicleIdentification_specs_1 = { - sizeof(struct VehicleIdentification), - offsetof(struct VehicleIdentification, _asn_ctx), - asn_MAP_VehicleIdentification_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_VehicleIdentification_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 2, /* First extension addition */ -}; -asn_TYPE_descriptor_t asn_DEF_VehicleIdentification = { - "VehicleIdentification", - "VehicleIdentification", - &asn_OP_SEQUENCE, - asn_DEF_VehicleIdentification_tags_1, - sizeof(asn_DEF_VehicleIdentification_tags_1) - /sizeof(asn_DEF_VehicleIdentification_tags_1[0]), /* 1 */ - asn_DEF_VehicleIdentification_tags_1, /* Same as above */ - sizeof(asn_DEF_VehicleIdentification_tags_1) - /sizeof(asn_DEF_VehicleIdentification_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_VehicleIdentification_1, - 2, /* Elements count */ - &asn_SPC_VehicleIdentification_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/VehicleLength.c b/vanetza/asn1/its/VehicleLength.c deleted file mode 100644 index ef84e3ec0..000000000 --- a/vanetza/asn1/its/VehicleLength.c +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "VehicleLength.h" - -asn_TYPE_member_t asn_MBR_VehicleLength_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct VehicleLength, vehicleLengthValue), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_VehicleLengthValue, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "vehicleLengthValue" - }, - { ATF_NOFLAGS, 0, offsetof(struct VehicleLength, vehicleLengthConfidenceIndication), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_VehicleLengthConfidenceIndication, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "vehicleLengthConfidenceIndication" - }, -}; -static const ber_tlv_tag_t asn_DEF_VehicleLength_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_VehicleLength_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* vehicleLengthValue */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* vehicleLengthConfidenceIndication */ -}; -asn_SEQUENCE_specifics_t asn_SPC_VehicleLength_specs_1 = { - sizeof(struct VehicleLength), - offsetof(struct VehicleLength, _asn_ctx), - asn_MAP_VehicleLength_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_VehicleLength = { - "VehicleLength", - "VehicleLength", - &asn_OP_SEQUENCE, - asn_DEF_VehicleLength_tags_1, - sizeof(asn_DEF_VehicleLength_tags_1) - /sizeof(asn_DEF_VehicleLength_tags_1[0]), /* 1 */ - asn_DEF_VehicleLength_tags_1, /* Same as above */ - sizeof(asn_DEF_VehicleLength_tags_1) - /sizeof(asn_DEF_VehicleLength_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_VehicleLength_1, - 2, /* Elements count */ - &asn_SPC_VehicleLength_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/VehicleLengthConfidenceIndication.c b/vanetza/asn1/its/VehicleLengthConfidenceIndication.c deleted file mode 100644 index a1b0a0a97..000000000 --- a/vanetza/asn1/its/VehicleLengthConfidenceIndication.c +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "VehicleLengthConfidenceIndication.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_VehicleLengthConfidenceIndication_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_VehicleLengthConfidenceIndication_constr_1 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_VehicleLengthConfidenceIndication_value2enum_1[] = { - { 0, 16, "noTrailerPresent" }, - { 1, 29, "trailerPresentWithKnownLength" }, - { 2, 31, "trailerPresentWithUnknownLength" }, - { 3, 24, "trailerPresenceIsUnknown" }, - { 4, 11, "unavailable" } -}; -static const unsigned int asn_MAP_VehicleLengthConfidenceIndication_enum2value_1[] = { - 0, /* noTrailerPresent(0) */ - 3, /* trailerPresenceIsUnknown(3) */ - 1, /* trailerPresentWithKnownLength(1) */ - 2, /* trailerPresentWithUnknownLength(2) */ - 4 /* unavailable(4) */ -}; -const asn_INTEGER_specifics_t asn_SPC_VehicleLengthConfidenceIndication_specs_1 = { - asn_MAP_VehicleLengthConfidenceIndication_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_VehicleLengthConfidenceIndication_enum2value_1, /* 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_VehicleLengthConfidenceIndication_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_VehicleLengthConfidenceIndication = { - "VehicleLengthConfidenceIndication", - "VehicleLengthConfidenceIndication", - &asn_OP_NativeEnumerated, - asn_DEF_VehicleLengthConfidenceIndication_tags_1, - sizeof(asn_DEF_VehicleLengthConfidenceIndication_tags_1) - /sizeof(asn_DEF_VehicleLengthConfidenceIndication_tags_1[0]), /* 1 */ - asn_DEF_VehicleLengthConfidenceIndication_tags_1, /* Same as above */ - sizeof(asn_DEF_VehicleLengthConfidenceIndication_tags_1) - /sizeof(asn_DEF_VehicleLengthConfidenceIndication_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_VehicleLengthConfidenceIndication_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_VehicleLengthConfidenceIndication_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - NativeEnumerated_constraint - }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_VehicleLengthConfidenceIndication_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/VehicleLengthValue.c b/vanetza/asn1/its/VehicleLengthValue.c deleted file mode 100644 index 838c6489d..000000000 --- a/vanetza/asn1/its/VehicleLengthValue.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "VehicleLengthValue.h" - -int -VehicleLengthValue_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 <= 1023L)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_VehicleLengthValue_constr_1 CC_NOTUSED = { - { 2, 1 } /* (1..1023) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_VehicleLengthValue_constr_1 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) */ -static const ber_tlv_tag_t asn_DEF_VehicleLengthValue_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_VehicleLengthValue = { - "VehicleLengthValue", - "VehicleLengthValue", - &asn_OP_NativeInteger, - asn_DEF_VehicleLengthValue_tags_1, - sizeof(asn_DEF_VehicleLengthValue_tags_1) - /sizeof(asn_DEF_VehicleLengthValue_tags_1[0]), /* 1 */ - asn_DEF_VehicleLengthValue_tags_1, /* Same as above */ - sizeof(asn_DEF_VehicleLengthValue_tags_1) - /sizeof(asn_DEF_VehicleLengthValue_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_VehicleLengthValue_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_VehicleLengthValue_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - VehicleLengthValue_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/VehicleMass.c b/vanetza/asn1/its/VehicleMass.c deleted file mode 100644 index aefdefce8..000000000 --- a/vanetza/asn1/its/VehicleMass.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "VehicleMass.h" - -int -VehicleMass_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_VehicleMass_constr_1 CC_NOTUSED = { - { 2, 1 } /* (1..1024) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_VehicleMass_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_VehicleMass_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_VehicleMass = { - "VehicleMass", - "VehicleMass", - &asn_OP_NativeInteger, - asn_DEF_VehicleMass_tags_1, - sizeof(asn_DEF_VehicleMass_tags_1) - /sizeof(asn_DEF_VehicleMass_tags_1[0]), /* 1 */ - asn_DEF_VehicleMass_tags_1, /* Same as above */ - sizeof(asn_DEF_VehicleMass_tags_1) - /sizeof(asn_DEF_VehicleMass_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_VehicleMass_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_VehicleMass_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - VehicleMass_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/VehicleRole.c b/vanetza/asn1/its/VehicleRole.c deleted file mode 100644 index 0020daf41..000000000 --- a/vanetza/asn1/its/VehicleRole.c +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "VehicleRole.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_VehicleRole_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_VehicleRole_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_VehicleRole_value2enum_1[] = { - { 0, 7, "default" }, - { 1, 15, "publicTransport" }, - { 2, 16, "specialTransport" }, - { 3, 14, "dangerousGoods" }, - { 4, 8, "roadWork" }, - { 5, 6, "rescue" }, - { 6, 9, "emergency" }, - { 7, 9, "safetyCar" }, - { 8, 11, "agriculture" }, - { 9, 10, "commercial" }, - { 10, 8, "military" }, - { 11, 12, "roadOperator" }, - { 12, 4, "taxi" }, - { 13, 9, "reserved1" }, - { 14, 9, "reserved2" }, - { 15, 9, "reserved3" } -}; -static const unsigned int asn_MAP_VehicleRole_enum2value_1[] = { - 8, /* agriculture(8) */ - 9, /* commercial(9) */ - 3, /* dangerousGoods(3) */ - 0, /* default(0) */ - 6, /* emergency(6) */ - 10, /* military(10) */ - 1, /* publicTransport(1) */ - 5, /* rescue(5) */ - 13, /* reserved1(13) */ - 14, /* reserved2(14) */ - 15, /* reserved3(15) */ - 11, /* roadOperator(11) */ - 4, /* roadWork(4) */ - 7, /* safetyCar(7) */ - 2, /* specialTransport(2) */ - 12 /* taxi(12) */ -}; -const asn_INTEGER_specifics_t asn_SPC_VehicleRole_specs_1 = { - asn_MAP_VehicleRole_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_VehicleRole_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_VehicleRole_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_VehicleRole = { - "VehicleRole", - "VehicleRole", - &asn_OP_NativeEnumerated, - asn_DEF_VehicleRole_tags_1, - sizeof(asn_DEF_VehicleRole_tags_1) - /sizeof(asn_DEF_VehicleRole_tags_1[0]), /* 1 */ - asn_DEF_VehicleRole_tags_1, /* Same as above */ - sizeof(asn_DEF_VehicleRole_tags_1) - /sizeof(asn_DEF_VehicleRole_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_VehicleRole_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_VehicleRole_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - NativeEnumerated_constraint - }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_VehicleRole_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/VehicleWidth.c b/vanetza/asn1/its/VehicleWidth.c deleted file mode 100644 index 45a51d543..000000000 --- a/vanetza/asn1/its/VehicleWidth.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "VehicleWidth.h" - -int -VehicleWidth_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 <= 62L)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_VehicleWidth_constr_1 CC_NOTUSED = { - { 1, 1 } /* (1..62) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_VehicleWidth_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 6, 6, 1, 62 } /* (1..62) */, - { 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_VehicleWidth_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_VehicleWidth = { - "VehicleWidth", - "VehicleWidth", - &asn_OP_NativeInteger, - asn_DEF_VehicleWidth_tags_1, - sizeof(asn_DEF_VehicleWidth_tags_1) - /sizeof(asn_DEF_VehicleWidth_tags_1[0]), /* 1 */ - asn_DEF_VehicleWidth_tags_1, /* Same as above */ - sizeof(asn_DEF_VehicleWidth_tags_1) - /sizeof(asn_DEF_VehicleWidth_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_VehicleWidth_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_VehicleWidth_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - VehicleWidth_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/VerticalAcceleration.c b/vanetza/asn1/its/VerticalAcceleration.c deleted file mode 100644 index a05989aee..000000000 --- a/vanetza/asn1/its/VerticalAcceleration.c +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "VerticalAcceleration.h" - -asn_TYPE_member_t asn_MBR_VerticalAcceleration_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct VerticalAcceleration, verticalAccelerationValue), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_VerticalAccelerationValue, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "verticalAccelerationValue" - }, - { ATF_NOFLAGS, 0, offsetof(struct VerticalAcceleration, verticalAccelerationConfidence), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AccelerationConfidence, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "verticalAccelerationConfidence" - }, -}; -static const ber_tlv_tag_t asn_DEF_VerticalAcceleration_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_VerticalAcceleration_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* verticalAccelerationValue */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* verticalAccelerationConfidence */ -}; -asn_SEQUENCE_specifics_t asn_SPC_VerticalAcceleration_specs_1 = { - sizeof(struct VerticalAcceleration), - offsetof(struct VerticalAcceleration, _asn_ctx), - asn_MAP_VerticalAcceleration_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_VerticalAcceleration = { - "VerticalAcceleration", - "VerticalAcceleration", - &asn_OP_SEQUENCE, - asn_DEF_VerticalAcceleration_tags_1, - sizeof(asn_DEF_VerticalAcceleration_tags_1) - /sizeof(asn_DEF_VerticalAcceleration_tags_1[0]), /* 1 */ - asn_DEF_VerticalAcceleration_tags_1, /* Same as above */ - sizeof(asn_DEF_VerticalAcceleration_tags_1) - /sizeof(asn_DEF_VerticalAcceleration_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_VerticalAcceleration_1, - 2, /* Elements count */ - &asn_SPC_VerticalAcceleration_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/VerticalAccelerationValue.c b/vanetza/asn1/its/VerticalAccelerationValue.c deleted file mode 100644 index 96ac7248d..000000000 --- a/vanetza/asn1/its/VerticalAccelerationValue.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "VerticalAccelerationValue.h" - -int -VerticalAccelerationValue_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 >= -160L && value <= 161L)) { - /* 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_VerticalAccelerationValue_constr_1 CC_NOTUSED = { - { 2, 0 } /* (-160..161) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_VerticalAccelerationValue_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 9, 9, -160, 161 } /* (-160..161) */, - { 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_VerticalAccelerationValue_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_VerticalAccelerationValue = { - "VerticalAccelerationValue", - "VerticalAccelerationValue", - &asn_OP_NativeInteger, - asn_DEF_VerticalAccelerationValue_tags_1, - sizeof(asn_DEF_VerticalAccelerationValue_tags_1) - /sizeof(asn_DEF_VerticalAccelerationValue_tags_1[0]), /* 1 */ - asn_DEF_VerticalAccelerationValue_tags_1, /* Same as above */ - sizeof(asn_DEF_VerticalAccelerationValue_tags_1) - /sizeof(asn_DEF_VerticalAccelerationValue_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_VerticalAccelerationValue_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_VerticalAccelerationValue_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - VerticalAccelerationValue_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/WMInumber.c b/vanetza/asn1/its/WMInumber.c deleted file mode 100644 index bb581b1b8..000000000 --- a/vanetza/asn1/its/WMInumber.c +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "WMInumber.h" - -static int check_permitted_alphabet_1(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; -} - -int -WMInumber_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; - 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 <= 3UL) - && !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 IA5String, - * so here we adjust the DEF accordingly. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_WMInumber_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1 /* (SIZE(1..3)) */}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_WMInumber_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, - { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, - 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_WMInumber_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_WMInumber = { - "WMInumber", - "WMInumber", - &asn_OP_IA5String, - asn_DEF_WMInumber_tags_1, - sizeof(asn_DEF_WMInumber_tags_1) - /sizeof(asn_DEF_WMInumber_tags_1[0]), /* 1 */ - asn_DEF_WMInumber_tags_1, /* Same as above */ - sizeof(asn_DEF_WMInumber_tags_1) - /sizeof(asn_DEF_WMInumber_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_WMInumber_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_WMInumber_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - WMInumber_constraint - }, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/WheelBaseVehicle.c b/vanetza/asn1/its/WheelBaseVehicle.c deleted file mode 100644 index b0c815354..000000000 --- a/vanetza/asn1/its/WheelBaseVehicle.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "WheelBaseVehicle.h" - -int -WheelBaseVehicle_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 <= 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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_WheelBaseVehicle_constr_1 CC_NOTUSED = { - { 1, 1 } /* (1..127) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_WheelBaseVehicle_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 7, 7, 1, 127 } /* (1..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_WheelBaseVehicle_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_WheelBaseVehicle = { - "WheelBaseVehicle", - "WheelBaseVehicle", - &asn_OP_NativeInteger, - asn_DEF_WheelBaseVehicle_tags_1, - sizeof(asn_DEF_WheelBaseVehicle_tags_1) - /sizeof(asn_DEF_WheelBaseVehicle_tags_1[0]), /* 1 */ - asn_DEF_WheelBaseVehicle_tags_1, /* Same as above */ - sizeof(asn_DEF_WheelBaseVehicle_tags_1) - /sizeof(asn_DEF_WheelBaseVehicle_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_WheelBaseVehicle_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_WheelBaseVehicle_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - WheelBaseVehicle_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/WrongWayDrivingSubCauseCode.c b/vanetza/asn1/its/WrongWayDrivingSubCauseCode.c deleted file mode 100644 index 5221b74fa..000000000 --- a/vanetza/asn1/its/WrongWayDrivingSubCauseCode.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "WrongWayDrivingSubCauseCode.h" - -int -WrongWayDrivingSubCauseCode_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_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_WrongWayDrivingSubCauseCode_constr_1 CC_NOTUSED = { - { 1, 1 } /* (0..255) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -static asn_per_constraints_t asn_PER_type_WrongWayDrivingSubCauseCode_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_WrongWayDrivingSubCauseCode_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_WrongWayDrivingSubCauseCode = { - "WrongWayDrivingSubCauseCode", - "WrongWayDrivingSubCauseCode", - &asn_OP_NativeInteger, - asn_DEF_WrongWayDrivingSubCauseCode_tags_1, - sizeof(asn_DEF_WrongWayDrivingSubCauseCode_tags_1) - /sizeof(asn_DEF_WrongWayDrivingSubCauseCode_tags_1[0]), /* 1 */ - asn_DEF_WrongWayDrivingSubCauseCode_tags_1, /* Same as above */ - sizeof(asn_DEF_WrongWayDrivingSubCauseCode_tags_1) - /sizeof(asn_DEF_WrongWayDrivingSubCauseCode_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_WrongWayDrivingSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_WrongWayDrivingSubCauseCode_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - WrongWayDrivingSubCauseCode_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/YawRate.c b/vanetza/asn1/its/YawRate.c deleted file mode 100644 index 3c0af73f0..000000000 --- a/vanetza/asn1/its/YawRate.c +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "YawRate.h" - -asn_TYPE_member_t asn_MBR_YawRate_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct YawRate, yawRateValue), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_YawRateValue, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "yawRateValue" - }, - { ATF_NOFLAGS, 0, offsetof(struct YawRate, yawRateConfidence), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_YawRateConfidence, - 0, - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - 0 - }, - 0, 0, /* No default value */ - "yawRateConfidence" - }, -}; -static const ber_tlv_tag_t asn_DEF_YawRate_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_YawRate_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* yawRateValue */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* yawRateConfidence */ -}; -asn_SEQUENCE_specifics_t asn_SPC_YawRate_specs_1 = { - sizeof(struct YawRate), - offsetof(struct YawRate, _asn_ctx), - asn_MAP_YawRate_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_YawRate = { - "YawRate", - "YawRate", - &asn_OP_SEQUENCE, - asn_DEF_YawRate_tags_1, - sizeof(asn_DEF_YawRate_tags_1) - /sizeof(asn_DEF_YawRate_tags_1[0]), /* 1 */ - asn_DEF_YawRate_tags_1, /* Same as above */ - sizeof(asn_DEF_YawRate_tags_1) - /sizeof(asn_DEF_YawRate_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - 0, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - SEQUENCE_constraint - }, - asn_MBR_YawRate_1, - 2, /* Elements count */ - &asn_SPC_YawRate_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/YawRateConfidence.c b/vanetza/asn1/its/YawRateConfidence.c deleted file mode 100644 index fa556c42e..000000000 --- a/vanetza/asn1/its/YawRateConfidence.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "YawRateConfidence.h" - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_YawRateConfidence_constr_1 CC_NOTUSED = { - { 0, 0 }, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_YawRateConfidence_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_YawRateConfidence_value2enum_1[] = { - { 0, 13, "degSec-000-01" }, - { 1, 13, "degSec-000-05" }, - { 2, 13, "degSec-000-10" }, - { 3, 13, "degSec-001-00" }, - { 4, 13, "degSec-005-00" }, - { 5, 13, "degSec-010-00" }, - { 6, 13, "degSec-100-00" }, - { 7, 10, "outOfRange" }, - { 8, 11, "unavailable" } -}; -static const unsigned int asn_MAP_YawRateConfidence_enum2value_1[] = { - 0, /* degSec-000-01(0) */ - 1, /* degSec-000-05(1) */ - 2, /* degSec-000-10(2) */ - 3, /* degSec-001-00(3) */ - 4, /* degSec-005-00(4) */ - 5, /* degSec-010-00(5) */ - 6, /* degSec-100-00(6) */ - 7, /* outOfRange(7) */ - 8 /* unavailable(8) */ -}; -const asn_INTEGER_specifics_t asn_SPC_YawRateConfidence_specs_1 = { - asn_MAP_YawRateConfidence_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_YawRateConfidence_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_YawRateConfidence_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_YawRateConfidence = { - "YawRateConfidence", - "YawRateConfidence", - &asn_OP_NativeEnumerated, - asn_DEF_YawRateConfidence_tags_1, - sizeof(asn_DEF_YawRateConfidence_tags_1) - /sizeof(asn_DEF_YawRateConfidence_tags_1[0]), /* 1 */ - asn_DEF_YawRateConfidence_tags_1, /* Same as above */ - sizeof(asn_DEF_YawRateConfidence_tags_1) - /sizeof(asn_DEF_YawRateConfidence_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_YawRateConfidence_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_YawRateConfidence_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - NativeEnumerated_constraint - }, - 0, 0, /* Defined elsewhere */ - &asn_SPC_YawRateConfidence_specs_1 /* Additional specs */ -}; - diff --git a/vanetza/asn1/its/YawRateValue.c b/vanetza/asn1/its/YawRateValue.c deleted file mode 100644 index c2a07c67e..000000000 --- a/vanetza/asn1/its/YawRateValue.c +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) - * From ASN.1 module "ITS-Container" - * found in "asn1/TS102894-2v131-CDD.asn" - * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` - */ - -#include "YawRateValue.h" - -int -YawRateValue_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 >= -32766L && 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; - } -} - -/* - * This type is implemented using NativeInteger, - * so here we adjust the DEF accordingly. - */ -#if !defined(ASN_DISABLE_OER_SUPPORT) -static asn_oer_constraints_t asn_OER_type_YawRateValue_constr_1 CC_NOTUSED = { - { 2, 0 } /* (-32766..32767) */, - -1}; -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) -asn_per_constraints_t asn_PER_type_YawRateValue_constr_1 CC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, -32766, 32767 } /* (-32766..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 ber_tlv_tag_t asn_DEF_YawRateValue_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_YawRateValue = { - "YawRateValue", - "YawRateValue", - &asn_OP_NativeInteger, - asn_DEF_YawRateValue_tags_1, - sizeof(asn_DEF_YawRateValue_tags_1) - /sizeof(asn_DEF_YawRateValue_tags_1[0]), /* 1 */ - asn_DEF_YawRateValue_tags_1, /* Same as above */ - sizeof(asn_DEF_YawRateValue_tags_1) - /sizeof(asn_DEF_YawRateValue_tags_1[0]), /* 1 */ - { -#if !defined(ASN_DISABLE_OER_SUPPORT) - &asn_OER_type_YawRateValue_constr_1, -#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ -#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) - &asn_PER_type_YawRateValue_constr_1, -#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ - YawRateValue_constraint - }, - 0, 0, /* Defined elsewhere */ - 0 /* No specifics */ -}; - diff --git a/vanetza/asn1/its/AbsolutePosition.c b/vanetza/asn1/its1/AbsolutePosition.c similarity index 90% rename from vanetza/asn1/its/AbsolutePosition.c rename to vanetza/asn1/its1/AbsolutePosition.c index a5cba9672..59305d90b 100644 --- a/vanetza/asn1/its/AbsolutePosition.c +++ b/vanetza/asn1/its1/AbsolutePosition.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_AbsolutePosition_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_AbsolutePosition_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_AbsolutePosition = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_AbsolutePosition_1, diff --git a/vanetza/asn1/its/AbsolutePosition.h b/vanetza/asn1/its1/AbsolutePosition.h similarity index 100% rename from vanetza/asn1/its/AbsolutePosition.h rename to vanetza/asn1/its1/AbsolutePosition.h diff --git a/vanetza/asn1/its/AbsolutePositionWAltitude.c b/vanetza/asn1/its1/AbsolutePositionWAltitude.c similarity index 90% rename from vanetza/asn1/its/AbsolutePositionWAltitude.c rename to vanetza/asn1/its1/AbsolutePositionWAltitude.c index 7fd651611..408dab6ba 100644 --- a/vanetza/asn1/its/AbsolutePositionWAltitude.c +++ b/vanetza/asn1/its1/AbsolutePositionWAltitude.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_AbsolutePositionWAltitude_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_AbsolutePositionWAltitude_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_AbsolutePositionWAltitude_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -93,6 +102,9 @@ asn_TYPE_descriptor_t asn_DEF_AbsolutePositionWAltitude = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_AbsolutePositionWAltitude_1, diff --git a/vanetza/asn1/its/AbsolutePositionWAltitude.h b/vanetza/asn1/its1/AbsolutePositionWAltitude.h similarity index 100% rename from vanetza/asn1/its/AbsolutePositionWAltitude.h rename to vanetza/asn1/its1/AbsolutePositionWAltitude.h diff --git a/vanetza/asn1/its/AbsolutePositions.c b/vanetza/asn1/its1/AbsolutePositions.c similarity index 93% rename from vanetza/asn1/its/AbsolutePositions.c rename to vanetza/asn1/its1/AbsolutePositions.c index 30db685f4..36c3f48d4 100644 --- a/vanetza/asn1/its/AbsolutePositions.c +++ b/vanetza/asn1/its1/AbsolutePositions.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_AbsolutePositions_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_AbsolutePositions = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_AbsolutePositions_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_AbsolutePositions_1, diff --git a/vanetza/asn1/its/AbsolutePositions.h b/vanetza/asn1/its1/AbsolutePositions.h similarity index 100% rename from vanetza/asn1/its/AbsolutePositions.h rename to vanetza/asn1/its1/AbsolutePositions.h diff --git a/vanetza/asn1/its/AbsolutePositionsWAltitude.c b/vanetza/asn1/its1/AbsolutePositionsWAltitude.c similarity index 93% rename from vanetza/asn1/its/AbsolutePositionsWAltitude.c rename to vanetza/asn1/its1/AbsolutePositionsWAltitude.c index 7a72a1b6d..34a8fcc8d 100644 --- a/vanetza/asn1/its/AbsolutePositionsWAltitude.c +++ b/vanetza/asn1/its1/AbsolutePositionsWAltitude.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_AbsolutePositionsWAltitude_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_AbsolutePositionsWAltitude = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_AbsolutePositionsWAltitude_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_AbsolutePositionsWAltitude_1, diff --git a/vanetza/asn1/its/AbsolutePositionsWAltitude.h b/vanetza/asn1/its1/AbsolutePositionsWAltitude.h similarity index 100% rename from vanetza/asn1/its/AbsolutePositionsWAltitude.h rename to vanetza/asn1/its1/AbsolutePositionsWAltitude.h diff --git a/vanetza/asn1/its1/AccelerationConfidence.c b/vanetza/asn1/its1/AccelerationConfidence.c new file mode 100644 index 000000000..ec877a427 --- /dev/null +++ b/vanetza/asn1/its1/AccelerationConfidence.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AccelerationConfidence.h" + +int +AccelerationConfidence_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 <= 102L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_AccelerationConfidence_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..102) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_AccelerationConfidence_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 102 } /* (0..102) */, + { 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_AccelerationConfidence_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_AccelerationConfidence = { + "AccelerationConfidence", + "AccelerationConfidence", + &asn_OP_NativeInteger, + asn_DEF_AccelerationConfidence_tags_1, + sizeof(asn_DEF_AccelerationConfidence_tags_1) + /sizeof(asn_DEF_AccelerationConfidence_tags_1[0]), /* 1 */ + asn_DEF_AccelerationConfidence_tags_1, /* Same as above */ + sizeof(asn_DEF_AccelerationConfidence_tags_1) + /sizeof(asn_DEF_AccelerationConfidence_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_AccelerationConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AccelerationConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + AccelerationConfidence_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/AccelerationConfidence.h b/vanetza/asn1/its1/AccelerationConfidence.h similarity index 100% rename from vanetza/asn1/its/AccelerationConfidence.h rename to vanetza/asn1/its1/AccelerationConfidence.h diff --git a/vanetza/asn1/its1/AccelerationControl.c b/vanetza/asn1/its1/AccelerationControl.c new file mode 100644 index 000000000..274c79853 --- /dev/null +++ b/vanetza/asn1/its1/AccelerationControl.c @@ -0,0 +1,89 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AccelerationControl.h" + +int +AccelerationControl_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 == 7UL)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_AccelerationControl_constr_1 CC_NOTUSED = { + { 0, 0 }, + 7 /* (SIZE(7..7)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_AccelerationControl_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 7, 7 } /* (SIZE(7..7)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_AccelerationControl_constr_1 CC_NOTUSED = { + 7}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_AccelerationControl_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_AccelerationControl = { + "AccelerationControl", + "AccelerationControl", + &asn_OP_BIT_STRING, + asn_DEF_AccelerationControl_tags_1, + sizeof(asn_DEF_AccelerationControl_tags_1) + /sizeof(asn_DEF_AccelerationControl_tags_1[0]), /* 1 */ + asn_DEF_AccelerationControl_tags_1, /* Same as above */ + sizeof(asn_DEF_AccelerationControl_tags_1) + /sizeof(asn_DEF_AccelerationControl_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_AccelerationControl_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AccelerationControl_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_AccelerationControl_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + AccelerationControl_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/AccelerationControl.h b/vanetza/asn1/its1/AccelerationControl.h similarity index 100% rename from vanetza/asn1/its/AccelerationControl.h rename to vanetza/asn1/its1/AccelerationControl.h diff --git a/vanetza/asn1/its1/AccidentSubCauseCode.c b/vanetza/asn1/its1/AccidentSubCauseCode.c new file mode 100644 index 000000000..f18679838 --- /dev/null +++ b/vanetza/asn1/its1/AccidentSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AccidentSubCauseCode.h" + +int +AccidentSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_AccidentSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_AccidentSubCauseCode_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_AccidentSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_AccidentSubCauseCode = { + "AccidentSubCauseCode", + "AccidentSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_AccidentSubCauseCode_tags_1, + sizeof(asn_DEF_AccidentSubCauseCode_tags_1) + /sizeof(asn_DEF_AccidentSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_AccidentSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_AccidentSubCauseCode_tags_1) + /sizeof(asn_DEF_AccidentSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_AccidentSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AccidentSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + AccidentSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/AccidentSubCauseCode.h b/vanetza/asn1/its1/AccidentSubCauseCode.h similarity index 100% rename from vanetza/asn1/its/AccidentSubCauseCode.h rename to vanetza/asn1/its1/AccidentSubCauseCode.h diff --git a/vanetza/asn1/its1/ActionID.c b/vanetza/asn1/its1/ActionID.c new file mode 100644 index 000000000..7c886ef15 --- /dev/null +++ b/vanetza/asn1/its1/ActionID.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ActionID.h" + +asn_TYPE_member_t asn_MBR_ActionID_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ActionID, originatingStationID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StationID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "originatingStationID" + }, + { ATF_NOFLAGS, 0, offsetof(struct ActionID, sequenceNumber), + (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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sequenceNumber" + }, +}; +static const ber_tlv_tag_t asn_DEF_ActionID_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ActionID_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* originatingStationID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* sequenceNumber */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ActionID_specs_1 = { + sizeof(struct ActionID), + offsetof(struct ActionID, _asn_ctx), + asn_MAP_ActionID_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_ActionID = { + "ActionID", + "ActionID", + &asn_OP_SEQUENCE, + asn_DEF_ActionID_tags_1, + sizeof(asn_DEF_ActionID_tags_1) + /sizeof(asn_DEF_ActionID_tags_1[0]), /* 1 */ + asn_DEF_ActionID_tags_1, /* Same as above */ + sizeof(asn_DEF_ActionID_tags_1) + /sizeof(asn_DEF_ActionID_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ActionID_1, + 2, /* Elements count */ + &asn_SPC_ActionID_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/ActionID.h b/vanetza/asn1/its1/ActionID.h similarity index 100% rename from vanetza/asn1/its/ActionID.h rename to vanetza/asn1/its1/ActionID.h diff --git a/vanetza/asn1/its/ActualNumberOfPassengers.c b/vanetza/asn1/its1/ActualNumberOfPassengers.c similarity index 96% rename from vanetza/asn1/its/ActualNumberOfPassengers.c rename to vanetza/asn1/its1/ActualNumberOfPassengers.c index 2092d3621..a5dc2095d 100644 --- a/vanetza/asn1/its/ActualNumberOfPassengers.c +++ b/vanetza/asn1/its1/ActualNumberOfPassengers.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_ActualNumberOfPassengers = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ActualNumberOfPassengers_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ ActualNumberOfPassengers_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/ActualNumberOfPassengers.h b/vanetza/asn1/its1/ActualNumberOfPassengers.h similarity index 100% rename from vanetza/asn1/its/ActualNumberOfPassengers.h rename to vanetza/asn1/its1/ActualNumberOfPassengers.h diff --git a/vanetza/asn1/its/AddRq.c b/vanetza/asn1/its1/AddRq.c similarity index 93% rename from vanetza/asn1/its/AddRq.c rename to vanetza/asn1/its1/AddRq.c index 8e47862fe..cf6aa4d2f 100644 --- a/vanetza/asn1/its/AddRq.c +++ b/vanetza/asn1/its1/AddRq.c @@ -57,6 +57,9 @@ static asn_TYPE_member_t asn_MBR_AddRq_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_attributeId_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_attributeId_constraint_1 }, 0, 0, /* No default value */ @@ -74,6 +77,9 @@ static asn_TYPE_member_t asn_MBR_AddRq_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -112,6 +118,9 @@ asn_TYPE_descriptor_t asn_DEF_AddRq = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_AddRq_1, diff --git a/vanetza/asn1/its/AddRq.h b/vanetza/asn1/its1/AddRq.h similarity index 100% rename from vanetza/asn1/its/AddRq.h rename to vanetza/asn1/its1/AddRq.h diff --git a/vanetza/asn1/its1/AdverseWeatherCondition-AdhesionSubCauseCode.c b/vanetza/asn1/its1/AdverseWeatherCondition-AdhesionSubCauseCode.c new file mode 100644 index 000000000..a501228c4 --- /dev/null +++ b/vanetza/asn1/its1/AdverseWeatherCondition-AdhesionSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AdverseWeatherCondition-AdhesionSubCauseCode.h" + +int +AdverseWeatherCondition_AdhesionSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_AdverseWeatherCondition_AdhesionSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_AdverseWeatherCondition_AdhesionSubCauseCode_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_AdverseWeatherCondition_AdhesionSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_AdverseWeatherCondition_AdhesionSubCauseCode = { + "AdverseWeatherCondition-AdhesionSubCauseCode", + "AdverseWeatherCondition-AdhesionSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_AdverseWeatherCondition_AdhesionSubCauseCode_tags_1, + sizeof(asn_DEF_AdverseWeatherCondition_AdhesionSubCauseCode_tags_1) + /sizeof(asn_DEF_AdverseWeatherCondition_AdhesionSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_AdverseWeatherCondition_AdhesionSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_AdverseWeatherCondition_AdhesionSubCauseCode_tags_1) + /sizeof(asn_DEF_AdverseWeatherCondition_AdhesionSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_AdverseWeatherCondition_AdhesionSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AdverseWeatherCondition_AdhesionSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + AdverseWeatherCondition_AdhesionSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/AdverseWeatherCondition-AdhesionSubCauseCode.h b/vanetza/asn1/its1/AdverseWeatherCondition-AdhesionSubCauseCode.h similarity index 100% rename from vanetza/asn1/its/AdverseWeatherCondition-AdhesionSubCauseCode.h rename to vanetza/asn1/its1/AdverseWeatherCondition-AdhesionSubCauseCode.h diff --git a/vanetza/asn1/its1/AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode.c b/vanetza/asn1/its1/AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode.c new file mode 100644 index 000000000..678372f77 --- /dev/null +++ b/vanetza/asn1/its1/AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode.h" + +int +AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_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_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode = { + "AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode", + "AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_tags_1, + sizeof(asn_DEF_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_tags_1) + /sizeof(asn_DEF_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_tags_1) + /sizeof(asn_DEF_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode.h b/vanetza/asn1/its1/AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode.h similarity index 100% rename from vanetza/asn1/its/AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode.h rename to vanetza/asn1/its1/AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode.h diff --git a/vanetza/asn1/its1/AdverseWeatherCondition-PrecipitationSubCauseCode.c b/vanetza/asn1/its1/AdverseWeatherCondition-PrecipitationSubCauseCode.c new file mode 100644 index 000000000..05b0cd4db --- /dev/null +++ b/vanetza/asn1/its1/AdverseWeatherCondition-PrecipitationSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AdverseWeatherCondition-PrecipitationSubCauseCode.h" + +int +AdverseWeatherCondition_PrecipitationSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_AdverseWeatherCondition_PrecipitationSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_AdverseWeatherCondition_PrecipitationSubCauseCode_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_AdverseWeatherCondition_PrecipitationSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_AdverseWeatherCondition_PrecipitationSubCauseCode = { + "AdverseWeatherCondition-PrecipitationSubCauseCode", + "AdverseWeatherCondition-PrecipitationSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_AdverseWeatherCondition_PrecipitationSubCauseCode_tags_1, + sizeof(asn_DEF_AdverseWeatherCondition_PrecipitationSubCauseCode_tags_1) + /sizeof(asn_DEF_AdverseWeatherCondition_PrecipitationSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_AdverseWeatherCondition_PrecipitationSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_AdverseWeatherCondition_PrecipitationSubCauseCode_tags_1) + /sizeof(asn_DEF_AdverseWeatherCondition_PrecipitationSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_AdverseWeatherCondition_PrecipitationSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AdverseWeatherCondition_PrecipitationSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + AdverseWeatherCondition_PrecipitationSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/AdverseWeatherCondition-PrecipitationSubCauseCode.h b/vanetza/asn1/its1/AdverseWeatherCondition-PrecipitationSubCauseCode.h similarity index 100% rename from vanetza/asn1/its/AdverseWeatherCondition-PrecipitationSubCauseCode.h rename to vanetza/asn1/its1/AdverseWeatherCondition-PrecipitationSubCauseCode.h diff --git a/vanetza/asn1/its1/AdverseWeatherCondition-VisibilitySubCauseCode.c b/vanetza/asn1/its1/AdverseWeatherCondition-VisibilitySubCauseCode.c new file mode 100644 index 000000000..ba5410e54 --- /dev/null +++ b/vanetza/asn1/its1/AdverseWeatherCondition-VisibilitySubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AdverseWeatherCondition-VisibilitySubCauseCode.h" + +int +AdverseWeatherCondition_VisibilitySubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_AdverseWeatherCondition_VisibilitySubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_AdverseWeatherCondition_VisibilitySubCauseCode_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_AdverseWeatherCondition_VisibilitySubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_AdverseWeatherCondition_VisibilitySubCauseCode = { + "AdverseWeatherCondition-VisibilitySubCauseCode", + "AdverseWeatherCondition-VisibilitySubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_AdverseWeatherCondition_VisibilitySubCauseCode_tags_1, + sizeof(asn_DEF_AdverseWeatherCondition_VisibilitySubCauseCode_tags_1) + /sizeof(asn_DEF_AdverseWeatherCondition_VisibilitySubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_AdverseWeatherCondition_VisibilitySubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_AdverseWeatherCondition_VisibilitySubCauseCode_tags_1) + /sizeof(asn_DEF_AdverseWeatherCondition_VisibilitySubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_AdverseWeatherCondition_VisibilitySubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AdverseWeatherCondition_VisibilitySubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + AdverseWeatherCondition_VisibilitySubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/AdverseWeatherCondition-VisibilitySubCauseCode.h b/vanetza/asn1/its1/AdverseWeatherCondition-VisibilitySubCauseCode.h similarity index 100% rename from vanetza/asn1/its/AdverseWeatherCondition-VisibilitySubCauseCode.h rename to vanetza/asn1/its1/AdverseWeatherCondition-VisibilitySubCauseCode.h diff --git a/vanetza/asn1/its/AdvisorySpeed.c b/vanetza/asn1/its1/AdvisorySpeed.c similarity index 91% rename from vanetza/asn1/its/AdvisorySpeed.c rename to vanetza/asn1/its1/AdvisorySpeed.c index d8e75f954..b881f37fe 100644 --- a/vanetza/asn1/its/AdvisorySpeed.c +++ b/vanetza/asn1/its1/AdvisorySpeed.c @@ -70,6 +70,9 @@ static asn_TYPE_member_t asn_MBR_regional_7[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -103,6 +106,9 @@ asn_TYPE_descriptor_t asn_DEF_regional_7 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_regional_constr_7, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_regional_7, @@ -123,6 +129,9 @@ asn_TYPE_member_t asn_MBR_AdvisorySpeed_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -140,6 +149,9 @@ asn_TYPE_member_t asn_MBR_AdvisorySpeed_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -157,6 +169,9 @@ asn_TYPE_member_t asn_MBR_AdvisorySpeed_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -174,6 +189,9 @@ asn_TYPE_member_t asn_MBR_AdvisorySpeed_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -191,6 +209,9 @@ asn_TYPE_member_t asn_MBR_AdvisorySpeed_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -208,6 +229,9 @@ asn_TYPE_member_t asn_MBR_AdvisorySpeed_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regional_constr_7, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regional_constraint_1 }, 0, 0, /* No default value */ @@ -252,6 +276,9 @@ asn_TYPE_descriptor_t asn_DEF_AdvisorySpeed = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_AdvisorySpeed_1, diff --git a/vanetza/asn1/its/AdvisorySpeed.h b/vanetza/asn1/its1/AdvisorySpeed.h similarity index 100% rename from vanetza/asn1/its/AdvisorySpeed.h rename to vanetza/asn1/its1/AdvisorySpeed.h diff --git a/vanetza/asn1/its/AdvisorySpeedList.c b/vanetza/asn1/its1/AdvisorySpeedList.c similarity index 93% rename from vanetza/asn1/its/AdvisorySpeedList.c rename to vanetza/asn1/its1/AdvisorySpeedList.c index c052c9bd3..ec803c99c 100644 --- a/vanetza/asn1/its/AdvisorySpeedList.c +++ b/vanetza/asn1/its1/AdvisorySpeedList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_AdvisorySpeedList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_AdvisorySpeedList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_AdvisorySpeedList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_AdvisorySpeedList_1, diff --git a/vanetza/asn1/its/AdvisorySpeedList.h b/vanetza/asn1/its1/AdvisorySpeedList.h similarity index 100% rename from vanetza/asn1/its/AdvisorySpeedList.h rename to vanetza/asn1/its1/AdvisorySpeedList.h diff --git a/vanetza/asn1/its/AdvisorySpeedType.c b/vanetza/asn1/its1/AdvisorySpeedType.c similarity index 96% rename from vanetza/asn1/its/AdvisorySpeedType.c rename to vanetza/asn1/its1/AdvisorySpeedType.c index 78aae3903..b60e51ae8 100644 --- a/vanetza/asn1/its/AdvisorySpeedType.c +++ b/vanetza/asn1/its1/AdvisorySpeedType.c @@ -66,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_AdvisorySpeedType = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_AdvisorySpeedType_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/AdvisorySpeedType.h b/vanetza/asn1/its1/AdvisorySpeedType.h similarity index 100% rename from vanetza/asn1/its/AdvisorySpeedType.h rename to vanetza/asn1/its1/AdvisorySpeedType.h diff --git a/vanetza/asn1/its1/AlacarteContainer.c b/vanetza/asn1/its1/AlacarteContainer.c new file mode 100644 index 000000000..f6996c768 --- /dev/null +++ b/vanetza/asn1/its1/AlacarteContainer.c @@ -0,0 +1,179 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "DENM-PDU-Descriptions" + * found in "asn1/EN302637-3v131-DENM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AlacarteContainer.h" + +asn_TYPE_member_t asn_MBR_AlacarteContainer_1[] = { + { ATF_POINTER, 6, offsetof(struct AlacarteContainer, lanePosition), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LanePosition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lanePosition" + }, + { ATF_POINTER, 5, offsetof(struct AlacarteContainer, impactReduction), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ImpactReductionContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "impactReduction" + }, + { ATF_POINTER, 4, offsetof(struct AlacarteContainer, externalTemperature), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ITS_Container_Temperature, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "externalTemperature" + }, + { ATF_POINTER, 3, offsetof(struct AlacarteContainer, roadWorks), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RoadWorksContainerExtended, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "roadWorks" + }, + { ATF_POINTER, 2, offsetof(struct AlacarteContainer, positioningSolution), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PositioningSolutionType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "positioningSolution" + }, + { ATF_POINTER, 1, offsetof(struct AlacarteContainer, stationaryVehicle), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StationaryVehicleContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "stationaryVehicle" + }, +}; +static const int asn_MAP_AlacarteContainer_oms_1[] = { 0, 1, 2, 3, 4, 5 }; +static const ber_tlv_tag_t asn_DEF_AlacarteContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_AlacarteContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* lanePosition */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* impactReduction */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* externalTemperature */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* roadWorks */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* positioningSolution */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* stationaryVehicle */ +}; +asn_SEQUENCE_specifics_t asn_SPC_AlacarteContainer_specs_1 = { + sizeof(struct AlacarteContainer), + offsetof(struct AlacarteContainer, _asn_ctx), + asn_MAP_AlacarteContainer_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_AlacarteContainer_oms_1, /* Optional members */ + 6, 0, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_AlacarteContainer = { + "AlacarteContainer", + "AlacarteContainer", + &asn_OP_SEQUENCE, + asn_DEF_AlacarteContainer_tags_1, + sizeof(asn_DEF_AlacarteContainer_tags_1) + /sizeof(asn_DEF_AlacarteContainer_tags_1[0]), /* 1 */ + asn_DEF_AlacarteContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_AlacarteContainer_tags_1) + /sizeof(asn_DEF_AlacarteContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_AlacarteContainer_1, + 6, /* Elements count */ + &asn_SPC_AlacarteContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/AlacarteContainer.h b/vanetza/asn1/its1/AlacarteContainer.h similarity index 100% rename from vanetza/asn1/its/AlacarteContainer.h rename to vanetza/asn1/its1/AlacarteContainer.h diff --git a/vanetza/asn1/its/AllowedManeuvers.c b/vanetza/asn1/its1/AllowedManeuvers.c similarity index 89% rename from vanetza/asn1/its/AllowedManeuvers.c rename to vanetza/asn1/its1/AllowedManeuvers.c index 72feef860..2b3a65860 100644 --- a/vanetza/asn1/its/AllowedManeuvers.c +++ b/vanetza/asn1/its1/AllowedManeuvers.c @@ -54,6 +54,10 @@ asn_per_constraints_t asn_PER_type_AllowedManeuvers_constr_1 CC_NOTUSED = { 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_AllowedManeuvers_constr_1 CC_NOTUSED = { + 12}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_AllowedManeuvers_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) }; @@ -74,6 +78,9 @@ asn_TYPE_descriptor_t asn_DEF_AllowedManeuvers = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_AllowedManeuvers_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_AllowedManeuvers_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ AllowedManeuvers_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/AllowedManeuvers.h b/vanetza/asn1/its1/AllowedManeuvers.h similarity index 100% rename from vanetza/asn1/its/AllowedManeuvers.h rename to vanetza/asn1/its1/AllowedManeuvers.h diff --git a/vanetza/asn1/its/AlphabetIndicator.c b/vanetza/asn1/its1/AlphabetIndicator.c similarity index 96% rename from vanetza/asn1/its/AlphabetIndicator.c rename to vanetza/asn1/its1/AlphabetIndicator.c index 6950a8e3b..ba3ef33a1 100644 --- a/vanetza/asn1/its/AlphabetIndicator.c +++ b/vanetza/asn1/its1/AlphabetIndicator.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_AlphabetIndicator = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_AlphabetIndicator_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ AlphabetIndicator_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/AlphabetIndicator.h b/vanetza/asn1/its1/AlphabetIndicator.h similarity index 100% rename from vanetza/asn1/its/AlphabetIndicator.h rename to vanetza/asn1/its1/AlphabetIndicator.h diff --git a/vanetza/asn1/its1/Altitude.c b/vanetza/asn1/its1/Altitude.c new file mode 100644 index 000000000..4386c5c75 --- /dev/null +++ b/vanetza/asn1/its1/Altitude.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Altitude.h" + +asn_TYPE_member_t asn_MBR_Altitude_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Altitude, altitudeValue), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AltitudeValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "altitudeValue" + }, + { ATF_NOFLAGS, 0, offsetof(struct Altitude, altitudeConfidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AltitudeConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "altitudeConfidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_Altitude_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Altitude_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* altitudeValue */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* altitudeConfidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Altitude_specs_1 = { + sizeof(struct Altitude), + offsetof(struct Altitude, _asn_ctx), + asn_MAP_Altitude_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_Altitude = { + "Altitude", + "Altitude", + &asn_OP_SEQUENCE, + asn_DEF_Altitude_tags_1, + sizeof(asn_DEF_Altitude_tags_1) + /sizeof(asn_DEF_Altitude_tags_1[0]), /* 1 */ + asn_DEF_Altitude_tags_1, /* Same as above */ + sizeof(asn_DEF_Altitude_tags_1) + /sizeof(asn_DEF_Altitude_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Altitude_1, + 2, /* Elements count */ + &asn_SPC_Altitude_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/Altitude.h b/vanetza/asn1/its1/Altitude.h similarity index 100% rename from vanetza/asn1/its/Altitude.h rename to vanetza/asn1/its1/Altitude.h diff --git a/vanetza/asn1/its1/AltitudeConfidence.c b/vanetza/asn1/its1/AltitudeConfidence.c new file mode 100644 index 000000000..8b842dfef --- /dev/null +++ b/vanetza/asn1/its1/AltitudeConfidence.c @@ -0,0 +1,99 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AltitudeConfidence.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_AltitudeConfidence_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_AltitudeConfidence_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_AltitudeConfidence_value2enum_1[] = { + { 0, 10, "alt-000-01" }, + { 1, 10, "alt-000-02" }, + { 2, 10, "alt-000-05" }, + { 3, 10, "alt-000-10" }, + { 4, 10, "alt-000-20" }, + { 5, 10, "alt-000-50" }, + { 6, 10, "alt-001-00" }, + { 7, 10, "alt-002-00" }, + { 8, 10, "alt-005-00" }, + { 9, 10, "alt-010-00" }, + { 10, 10, "alt-020-00" }, + { 11, 10, "alt-050-00" }, + { 12, 10, "alt-100-00" }, + { 13, 10, "alt-200-00" }, + { 14, 10, "outOfRange" }, + { 15, 11, "unavailable" } +}; +static const unsigned int asn_MAP_AltitudeConfidence_enum2value_1[] = { + 0, /* alt-000-01(0) */ + 1, /* alt-000-02(1) */ + 2, /* alt-000-05(2) */ + 3, /* alt-000-10(3) */ + 4, /* alt-000-20(4) */ + 5, /* alt-000-50(5) */ + 6, /* alt-001-00(6) */ + 7, /* alt-002-00(7) */ + 8, /* alt-005-00(8) */ + 9, /* alt-010-00(9) */ + 10, /* alt-020-00(10) */ + 11, /* alt-050-00(11) */ + 12, /* alt-100-00(12) */ + 13, /* alt-200-00(13) */ + 14, /* outOfRange(14) */ + 15 /* unavailable(15) */ +}; +const asn_INTEGER_specifics_t asn_SPC_AltitudeConfidence_specs_1 = { + asn_MAP_AltitudeConfidence_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_AltitudeConfidence_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_AltitudeConfidence_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_AltitudeConfidence = { + "AltitudeConfidence", + "AltitudeConfidence", + &asn_OP_NativeEnumerated, + asn_DEF_AltitudeConfidence_tags_1, + sizeof(asn_DEF_AltitudeConfidence_tags_1) + /sizeof(asn_DEF_AltitudeConfidence_tags_1[0]), /* 1 */ + asn_DEF_AltitudeConfidence_tags_1, /* Same as above */ + sizeof(asn_DEF_AltitudeConfidence_tags_1) + /sizeof(asn_DEF_AltitudeConfidence_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_AltitudeConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AltitudeConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_AltitudeConfidence_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/AltitudeConfidence.h b/vanetza/asn1/its1/AltitudeConfidence.h similarity index 100% rename from vanetza/asn1/its/AltitudeConfidence.h rename to vanetza/asn1/its1/AltitudeConfidence.h diff --git a/vanetza/asn1/its1/AltitudeValue.c b/vanetza/asn1/its1/AltitudeValue.c new file mode 100644 index 000000000..c614245ac --- /dev/null +++ b/vanetza/asn1/its1/AltitudeValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AltitudeValue.h" + +int +AltitudeValue_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 >= -100000L && value <= 800001L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_AltitudeValue_constr_1 CC_NOTUSED = { + { 4, 0 } /* (-100000..800001) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_AltitudeValue_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 20, -1, -100000, 800001 } /* (-100000..800001) */, + { 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_AltitudeValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_AltitudeValue = { + "AltitudeValue", + "AltitudeValue", + &asn_OP_NativeInteger, + asn_DEF_AltitudeValue_tags_1, + sizeof(asn_DEF_AltitudeValue_tags_1) + /sizeof(asn_DEF_AltitudeValue_tags_1[0]), /* 1 */ + asn_DEF_AltitudeValue_tags_1, /* Same as above */ + sizeof(asn_DEF_AltitudeValue_tags_1) + /sizeof(asn_DEF_AltitudeValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_AltitudeValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AltitudeValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + AltitudeValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/AltitudeValue.h b/vanetza/asn1/its1/AltitudeValue.h similarity index 100% rename from vanetza/asn1/its/AltitudeValue.h rename to vanetza/asn1/its1/AltitudeValue.h diff --git a/vanetza/asn1/its/Angle.c b/vanetza/asn1/its1/Angle.c similarity index 96% rename from vanetza/asn1/its/Angle.c rename to vanetza/asn1/its1/Angle.c index 5fb5299a5..0eec976d8 100644 --- a/vanetza/asn1/its/Angle.c +++ b/vanetza/asn1/its1/Angle.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Angle = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Angle_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Angle_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/Angle.h b/vanetza/asn1/its1/Angle.h similarity index 100% rename from vanetza/asn1/its/Angle.h rename to vanetza/asn1/its1/Angle.h diff --git a/vanetza/asn1/its1/AngleConfidence.c b/vanetza/asn1/its1/AngleConfidence.c new file mode 100644 index 000000000..aad0a7ccc --- /dev/null +++ b/vanetza/asn1/its1/AngleConfidence.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TR103562v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AngleConfidence.h" + +int +AngleConfidence_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 <= 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_AngleConfidence_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..127) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_AngleConfidence_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 1, 127 } /* (1..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_AngleConfidence_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_AngleConfidence = { + "AngleConfidence", + "AngleConfidence", + &asn_OP_NativeInteger, + asn_DEF_AngleConfidence_tags_1, + sizeof(asn_DEF_AngleConfidence_tags_1) + /sizeof(asn_DEF_AngleConfidence_tags_1[0]), /* 1 */ + asn_DEF_AngleConfidence_tags_1, /* Same as above */ + sizeof(asn_DEF_AngleConfidence_tags_1) + /sizeof(asn_DEF_AngleConfidence_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_AngleConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AngleConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + AngleConfidence_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/AngleConfidence.h b/vanetza/asn1/its1/AngleConfidence.h similarity index 100% rename from vanetza/asn1/its/AngleConfidence.h rename to vanetza/asn1/its1/AngleConfidence.h diff --git a/vanetza/asn1/its/AnimalSubclass.c b/vanetza/asn1/its1/AnimalSubclass.c similarity index 93% rename from vanetza/asn1/its/AnimalSubclass.c rename to vanetza/asn1/its1/AnimalSubclass.c index cd42dd052..f2b55a844 100644 --- a/vanetza/asn1/its/AnimalSubclass.c +++ b/vanetza/asn1/its1/AnimalSubclass.c @@ -64,6 +64,9 @@ asn_TYPE_member_t asn_MBR_AnimalSubclass_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, &asn_DFL_2_cmp_0, /* Compare DEFAULT 0 */ @@ -82,6 +85,9 @@ asn_TYPE_member_t asn_MBR_AnimalSubclass_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, &asn_DFL_3_cmp_0, /* Compare DEFAULT 0 */ @@ -123,6 +129,9 @@ asn_TYPE_descriptor_t asn_DEF_AnimalSubclass = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_AnimalSubclass_1, diff --git a/vanetza/asn1/its/AnimalSubclass.h b/vanetza/asn1/its1/AnimalSubclass.h similarity index 100% rename from vanetza/asn1/its/AnimalSubclass.h rename to vanetza/asn1/its1/AnimalSubclass.h diff --git a/vanetza/asn1/its/AnimalSubclassType.c b/vanetza/asn1/its1/AnimalSubclassType.c similarity index 96% rename from vanetza/asn1/its/AnimalSubclassType.c rename to vanetza/asn1/its1/AnimalSubclassType.c index 2805bffa7..5985c8574 100644 --- a/vanetza/asn1/its/AnimalSubclassType.c +++ b/vanetza/asn1/its1/AnimalSubclassType.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_AnimalSubclassType = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_AnimalSubclassType_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ AnimalSubclassType_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/AnimalSubclassType.h b/vanetza/asn1/its1/AnimalSubclassType.h similarity index 100% rename from vanetza/asn1/its/AnimalSubclassType.h rename to vanetza/asn1/its1/AnimalSubclassType.h diff --git a/vanetza/asn1/its/AntennaOffsetSet.c b/vanetza/asn1/its1/AntennaOffsetSet.c similarity index 89% rename from vanetza/asn1/its/AntennaOffsetSet.c rename to vanetza/asn1/its1/AntennaOffsetSet.c index 8975942b5..f66f35042 100644 --- a/vanetza/asn1/its/AntennaOffsetSet.c +++ b/vanetza/asn1/its1/AntennaOffsetSet.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_AntennaOffsetSet_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_AntennaOffsetSet_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_AntennaOffsetSet_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -93,6 +102,9 @@ asn_TYPE_descriptor_t asn_DEF_AntennaOffsetSet = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_AntennaOffsetSet_1, diff --git a/vanetza/asn1/its/AntennaOffsetSet.h b/vanetza/asn1/its1/AntennaOffsetSet.h similarity index 100% rename from vanetza/asn1/its/AntennaOffsetSet.h rename to vanetza/asn1/its1/AntennaOffsetSet.h diff --git a/vanetza/asn1/its/AnyCatalogue.c b/vanetza/asn1/its1/AnyCatalogue.c similarity index 92% rename from vanetza/asn1/its/AnyCatalogue.c rename to vanetza/asn1/its1/AnyCatalogue.c index 903198814..70b4a0f44 100644 --- a/vanetza/asn1/its/AnyCatalogue.c +++ b/vanetza/asn1/its1/AnyCatalogue.c @@ -131,6 +131,9 @@ asn_TYPE_member_t asn_MBR_AnyCatalogue_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -148,6 +151,9 @@ asn_TYPE_member_t asn_MBR_AnyCatalogue_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_version_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_version_constraint_1 }, 0, 0, /* No default value */ @@ -165,6 +171,9 @@ asn_TYPE_member_t asn_MBR_AnyCatalogue_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_pictogramCode_constr_4, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_pictogramCode_constraint_1 }, 0, 0, /* No default value */ @@ -182,6 +191,9 @@ asn_TYPE_member_t asn_MBR_AnyCatalogue_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_value_constr_5, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_value_constraint_1 }, 0, 0, /* No default value */ @@ -199,6 +211,9 @@ asn_TYPE_member_t asn_MBR_AnyCatalogue_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -216,6 +231,9 @@ asn_TYPE_member_t asn_MBR_AnyCatalogue_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -260,6 +278,9 @@ asn_TYPE_descriptor_t asn_DEF_AnyCatalogue = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_AnyCatalogue_1, diff --git a/vanetza/asn1/its/AnyCatalogue.h b/vanetza/asn1/its1/AnyCatalogue.h similarity index 100% rename from vanetza/asn1/its/AnyCatalogue.h rename to vanetza/asn1/its1/AnyCatalogue.h diff --git a/vanetza/asn1/its/ApproachID.c b/vanetza/asn1/its1/ApproachID.c similarity index 96% rename from vanetza/asn1/its/ApproachID.c rename to vanetza/asn1/its1/ApproachID.c index 9f050cf29..847c0ae04 100644 --- a/vanetza/asn1/its/ApproachID.c +++ b/vanetza/asn1/its1/ApproachID.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_ApproachID = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ApproachID_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ ApproachID_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/ApproachID.h b/vanetza/asn1/its1/ApproachID.h similarity index 100% rename from vanetza/asn1/its/ApproachID.h rename to vanetza/asn1/its1/ApproachID.h diff --git a/vanetza/asn1/its/AreaCircular.c b/vanetza/asn1/its1/AreaCircular.c similarity index 90% rename from vanetza/asn1/its/AreaCircular.c rename to vanetza/asn1/its1/AreaCircular.c index 0a50431b8..6d89cba3c 100644 --- a/vanetza/asn1/its/AreaCircular.c +++ b/vanetza/asn1/its1/AreaCircular.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_AreaCircular_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_AreaCircular_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -77,6 +83,9 @@ asn_TYPE_descriptor_t asn_DEF_AreaCircular = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_AreaCircular_1, diff --git a/vanetza/asn1/its/AreaCircular.h b/vanetza/asn1/its1/AreaCircular.h similarity index 100% rename from vanetza/asn1/its/AreaCircular.h rename to vanetza/asn1/its1/AreaCircular.h diff --git a/vanetza/asn1/its/AreaEllipse.c b/vanetza/asn1/its1/AreaEllipse.c similarity index 89% rename from vanetza/asn1/its/AreaEllipse.c rename to vanetza/asn1/its1/AreaEllipse.c index 1671139ed..2a93af4db 100644 --- a/vanetza/asn1/its/AreaEllipse.c +++ b/vanetza/asn1/its1/AreaEllipse.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_AreaEllipse_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_AreaEllipse_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_AreaEllipse_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -71,6 +80,9 @@ asn_TYPE_member_t asn_MBR_AreaEllipse_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -88,6 +100,9 @@ asn_TYPE_member_t asn_MBR_AreaEllipse_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -131,6 +146,9 @@ asn_TYPE_descriptor_t asn_DEF_AreaEllipse = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_AreaEllipse_1, diff --git a/vanetza/asn1/its/AreaEllipse.h b/vanetza/asn1/its1/AreaEllipse.h similarity index 100% rename from vanetza/asn1/its/AreaEllipse.h rename to vanetza/asn1/its1/AreaEllipse.h diff --git a/vanetza/asn1/its/AreaPolygon.c b/vanetza/asn1/its1/AreaPolygon.c similarity index 91% rename from vanetza/asn1/its/AreaPolygon.c rename to vanetza/asn1/its1/AreaPolygon.c index c9dfe63e6..ffdb6a296 100644 --- a/vanetza/asn1/its/AreaPolygon.c +++ b/vanetza/asn1/its1/AreaPolygon.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_AreaPolygon_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -57,6 +60,9 @@ asn_TYPE_descriptor_t asn_DEF_AreaPolygon = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_AreaPolygon_1, diff --git a/vanetza/asn1/its/AreaPolygon.h b/vanetza/asn1/its1/AreaPolygon.h similarity index 100% rename from vanetza/asn1/its/AreaPolygon.h rename to vanetza/asn1/its1/AreaPolygon.h diff --git a/vanetza/asn1/its/AreaRadial.c b/vanetza/asn1/its1/AreaRadial.c similarity index 88% rename from vanetza/asn1/its/AreaRadial.c rename to vanetza/asn1/its1/AreaRadial.c index 9462e1916..87687a024 100644 --- a/vanetza/asn1/its/AreaRadial.c +++ b/vanetza/asn1/its1/AreaRadial.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_AreaRadial_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_AreaRadial_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_AreaRadial_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -71,6 +80,9 @@ asn_TYPE_member_t asn_MBR_AreaRadial_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -88,6 +100,9 @@ asn_TYPE_member_t asn_MBR_AreaRadial_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -105,6 +120,9 @@ asn_TYPE_member_t asn_MBR_AreaRadial_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -122,6 +140,9 @@ asn_TYPE_member_t asn_MBR_AreaRadial_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -167,6 +188,9 @@ asn_TYPE_descriptor_t asn_DEF_AreaRadial = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_AreaRadial_1, diff --git a/vanetza/asn1/its/AreaRadial.h b/vanetza/asn1/its1/AreaRadial.h similarity index 100% rename from vanetza/asn1/its/AreaRadial.h rename to vanetza/asn1/its1/AreaRadial.h diff --git a/vanetza/asn1/its/AreaRectangle.c b/vanetza/asn1/its1/AreaRectangle.c similarity index 89% rename from vanetza/asn1/its/AreaRectangle.c rename to vanetza/asn1/its1/AreaRectangle.c index 92fa00371..5e796f543 100644 --- a/vanetza/asn1/its/AreaRectangle.c +++ b/vanetza/asn1/its1/AreaRectangle.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_AreaRectangle_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_AreaRectangle_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_AreaRectangle_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -71,6 +80,9 @@ asn_TYPE_member_t asn_MBR_AreaRectangle_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -88,6 +100,9 @@ asn_TYPE_member_t asn_MBR_AreaRectangle_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -131,6 +146,9 @@ asn_TYPE_descriptor_t asn_DEF_AreaRectangle = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_AreaRectangle_1, diff --git a/vanetza/asn1/its/AreaRectangle.h b/vanetza/asn1/its1/AreaRectangle.h similarity index 100% rename from vanetza/asn1/its/AreaRectangle.h rename to vanetza/asn1/its1/AreaRectangle.h diff --git a/vanetza/asn1/its/AttributeIdList.c b/vanetza/asn1/its1/AttributeIdList.c similarity index 95% rename from vanetza/asn1/its/AttributeIdList.c rename to vanetza/asn1/its1/AttributeIdList.c index 27718801d..0c934025d 100644 --- a/vanetza/asn1/its/AttributeIdList.c +++ b/vanetza/asn1/its1/AttributeIdList.c @@ -69,6 +69,9 @@ asn_TYPE_member_t asn_MBR_AttributeIdList_1[] = { #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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_NativeInteger_constraint_1 }, 0, 0, /* No default value */ @@ -100,6 +103,9 @@ asn_TYPE_descriptor_t asn_DEF_AttributeIdList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_AttributeIdList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_AttributeIdList_1, diff --git a/vanetza/asn1/its/AttributeIdList.h b/vanetza/asn1/its1/AttributeIdList.h similarity index 100% rename from vanetza/asn1/its/AttributeIdList.h rename to vanetza/asn1/its1/AttributeIdList.h diff --git a/vanetza/asn1/its/AttributeList.c b/vanetza/asn1/its1/AttributeList.c similarity index 100% rename from vanetza/asn1/its/AttributeList.c rename to vanetza/asn1/its1/AttributeList.c diff --git a/vanetza/asn1/its/AttributeList.h b/vanetza/asn1/its1/AttributeList.h similarity index 100% rename from vanetza/asn1/its/AttributeList.h rename to vanetza/asn1/its1/AttributeList.h diff --git a/vanetza/asn1/its/Attributes.c b/vanetza/asn1/its1/Attributes.c similarity index 100% rename from vanetza/asn1/its/Attributes.c rename to vanetza/asn1/its1/Attributes.c diff --git a/vanetza/asn1/its/Attributes.h b/vanetza/asn1/its1/Attributes.h similarity index 100% rename from vanetza/asn1/its/Attributes.h rename to vanetza/asn1/its1/Attributes.h diff --git a/vanetza/asn1/its/AutomatedVehicleContainer.c b/vanetza/asn1/its1/AutomatedVehicleContainer.c similarity index 93% rename from vanetza/asn1/its/AutomatedVehicleContainer.c rename to vanetza/asn1/its1/AutomatedVehicleContainer.c index 25eef0c0f..82d375e6e 100644 --- a/vanetza/asn1/its/AutomatedVehicleContainer.c +++ b/vanetza/asn1/its1/AutomatedVehicleContainer.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_AutomatedVehicleContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_AutomatedVehicleContainer = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_AutomatedVehicleContainer_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_AutomatedVehicleContainer_1, diff --git a/vanetza/asn1/its/AutomatedVehicleContainer.h b/vanetza/asn1/its1/AutomatedVehicleContainer.h similarity index 100% rename from vanetza/asn1/its/AutomatedVehicleContainer.h rename to vanetza/asn1/its1/AutomatedVehicleContainer.h diff --git a/vanetza/asn1/its/AutomatedVehicleRule.c b/vanetza/asn1/its1/AutomatedVehicleRule.c similarity index 88% rename from vanetza/asn1/its/AutomatedVehicleRule.c rename to vanetza/asn1/its1/AutomatedVehicleRule.c index 01136ba2d..cf8763b09 100644 --- a/vanetza/asn1/its/AutomatedVehicleRule.c +++ b/vanetza/asn1/its1/AutomatedVehicleRule.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_AutomatedVehicleRule_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_AutomatedVehicleRule_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_AutomatedVehicleRule_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -71,6 +80,9 @@ asn_TYPE_member_t asn_MBR_AutomatedVehicleRule_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -88,6 +100,9 @@ asn_TYPE_member_t asn_MBR_AutomatedVehicleRule_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -105,6 +120,9 @@ asn_TYPE_member_t asn_MBR_AutomatedVehicleRule_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -122,6 +140,9 @@ asn_TYPE_member_t asn_MBR_AutomatedVehicleRule_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -139,6 +160,9 @@ asn_TYPE_member_t asn_MBR_AutomatedVehicleRule_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -156,6 +180,9 @@ asn_TYPE_member_t asn_MBR_AutomatedVehicleRule_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -203,6 +230,9 @@ asn_TYPE_descriptor_t asn_DEF_AutomatedVehicleRule = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_AutomatedVehicleRule_1, diff --git a/vanetza/asn1/its/AutomatedVehicleRule.h b/vanetza/asn1/its1/AutomatedVehicleRule.h similarity index 100% rename from vanetza/asn1/its/AutomatedVehicleRule.h rename to vanetza/asn1/its1/AutomatedVehicleRule.h diff --git a/vanetza/asn1/its/AutomatedVehicleRules.c b/vanetza/asn1/its1/AutomatedVehicleRules.c similarity index 93% rename from vanetza/asn1/its/AutomatedVehicleRules.c rename to vanetza/asn1/its1/AutomatedVehicleRules.c index 6ca683b7c..22ee543fc 100644 --- a/vanetza/asn1/its/AutomatedVehicleRules.c +++ b/vanetza/asn1/its1/AutomatedVehicleRules.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_AutomatedVehicleRules_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_AutomatedVehicleRules = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_AutomatedVehicleRules_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_AutomatedVehicleRules_1, diff --git a/vanetza/asn1/its/AutomatedVehicleRules.h b/vanetza/asn1/its1/AutomatedVehicleRules.h similarity index 100% rename from vanetza/asn1/its/AutomatedVehicleRules.h rename to vanetza/asn1/its1/AutomatedVehicleRules.h diff --git a/vanetza/asn1/its/AvcPart.c b/vanetza/asn1/its1/AvcPart.c similarity index 89% rename from vanetza/asn1/its/AvcPart.c rename to vanetza/asn1/its1/AvcPart.c index 4ab1e178e..93d4d91a6 100644 --- a/vanetza/asn1/its/AvcPart.c +++ b/vanetza/asn1/its1/AvcPart.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_AvcPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_AvcPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -66,6 +72,9 @@ asn_TYPE_member_t asn_MBR_AvcPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -83,6 +92,9 @@ asn_TYPE_member_t asn_MBR_AvcPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -100,6 +112,9 @@ asn_TYPE_member_t asn_MBR_AvcPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -117,6 +132,9 @@ asn_TYPE_member_t asn_MBR_AvcPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -134,6 +152,9 @@ asn_TYPE_member_t asn_MBR_AvcPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -179,6 +200,9 @@ asn_TYPE_descriptor_t asn_DEF_AvcPart = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_AvcPart_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_AvcPart_1, diff --git a/vanetza/asn1/its/AvcPart.h b/vanetza/asn1/its1/AvcPart.h similarity index 100% rename from vanetza/asn1/its/AvcPart.h rename to vanetza/asn1/its1/AvcPart.h diff --git a/vanetza/asn1/its/AviEriDateTime.c b/vanetza/asn1/its1/AviEriDateTime.c similarity index 96% rename from vanetza/asn1/its/AviEriDateTime.c rename to vanetza/asn1/its1/AviEriDateTime.c index 789cf380d..0e9af3bf5 100644 --- a/vanetza/asn1/its/AviEriDateTime.c +++ b/vanetza/asn1/its1/AviEriDateTime.c @@ -69,6 +69,9 @@ asn_TYPE_descriptor_t asn_DEF_AviEriDateTime = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_AviEriDateTime_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ AviEriDateTime_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/AviEriDateTime.h b/vanetza/asn1/its1/AviEriDateTime.h similarity index 100% rename from vanetza/asn1/its/AviEriDateTime.h rename to vanetza/asn1/its1/AviEriDateTime.h diff --git a/vanetza/asn1/its/AxleWeightLimits.c b/vanetza/asn1/its1/AxleWeightLimits.c similarity index 89% rename from vanetza/asn1/its/AxleWeightLimits.c rename to vanetza/asn1/its1/AxleWeightLimits.c index 313fefe92..83ec0bfac 100644 --- a/vanetza/asn1/its/AxleWeightLimits.c +++ b/vanetza/asn1/its1/AxleWeightLimits.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_AxleWeightLimits_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_AxleWeightLimits_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_AxleWeightLimits_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -71,6 +80,9 @@ asn_TYPE_member_t asn_MBR_AxleWeightLimits_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -88,6 +100,9 @@ asn_TYPE_member_t asn_MBR_AxleWeightLimits_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -129,6 +144,9 @@ asn_TYPE_descriptor_t asn_DEF_AxleWeightLimits = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_AxleWeightLimits_1, diff --git a/vanetza/asn1/its/AxleWeightLimits.h b/vanetza/asn1/its1/AxleWeightLimits.h similarity index 100% rename from vanetza/asn1/its/AxleWeightLimits.h rename to vanetza/asn1/its1/AxleWeightLimits.h diff --git a/vanetza/asn1/its/BankingAngle.c b/vanetza/asn1/its1/BankingAngle.c similarity index 96% rename from vanetza/asn1/its/BankingAngle.c rename to vanetza/asn1/its1/BankingAngle.c index a2e19aa58..02c6aa4cf 100644 --- a/vanetza/asn1/its/BankingAngle.c +++ b/vanetza/asn1/its1/BankingAngle.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_BankingAngle = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_BankingAngle_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ BankingAngle_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/BankingAngle.h b/vanetza/asn1/its1/BankingAngle.h similarity index 100% rename from vanetza/asn1/its/BankingAngle.h rename to vanetza/asn1/its1/BankingAngle.h diff --git a/vanetza/asn1/its1/BasicContainer.c b/vanetza/asn1/its1/BasicContainer.c new file mode 100644 index 000000000..e1d6a1ea2 --- /dev/null +++ b/vanetza/asn1/its1/BasicContainer.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/EN302637-2v141-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "BasicContainer.h" + +asn_TYPE_member_t asn_MBR_BasicContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BasicContainer, stationType), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StationType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "stationType" + }, + { ATF_NOFLAGS, 0, offsetof(struct BasicContainer, referencePosition), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ReferencePosition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "referencePosition" + }, +}; +static const ber_tlv_tag_t asn_DEF_BasicContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BasicContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* stationType */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* referencePosition */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BasicContainer_specs_1 = { + sizeof(struct BasicContainer), + offsetof(struct BasicContainer, _asn_ctx), + asn_MAP_BasicContainer_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_BasicContainer = { + "BasicContainer", + "BasicContainer", + &asn_OP_SEQUENCE, + asn_DEF_BasicContainer_tags_1, + sizeof(asn_DEF_BasicContainer_tags_1) + /sizeof(asn_DEF_BasicContainer_tags_1[0]), /* 1 */ + asn_DEF_BasicContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_BasicContainer_tags_1) + /sizeof(asn_DEF_BasicContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BasicContainer_1, + 2, /* Elements count */ + &asn_SPC_BasicContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/BasicContainer.h b/vanetza/asn1/its1/BasicContainer.h similarity index 100% rename from vanetza/asn1/its/BasicContainer.h rename to vanetza/asn1/its1/BasicContainer.h diff --git a/vanetza/asn1/its1/BasicVehicleContainerHighFrequency.c b/vanetza/asn1/its1/BasicVehicleContainerHighFrequency.c new file mode 100644 index 000000000..72d3aa3ce --- /dev/null +++ b/vanetza/asn1/its1/BasicVehicleContainerHighFrequency.c @@ -0,0 +1,389 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/EN302637-2v141-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "BasicVehicleContainerHighFrequency.h" + +asn_TYPE_member_t asn_MBR_BasicVehicleContainerHighFrequency_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerHighFrequency, heading), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Heading, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "heading" + }, + { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerHighFrequency, speed), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Speed, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "speed" + }, + { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerHighFrequency, driveDirection), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DriveDirection, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "driveDirection" + }, + { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerHighFrequency, vehicleLength), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VehicleLength, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vehicleLength" + }, + { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerHighFrequency, vehicleWidth), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VehicleWidth, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vehicleWidth" + }, + { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerHighFrequency, longitudinalAcceleration), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LongitudinalAcceleration, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "longitudinalAcceleration" + }, + { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerHighFrequency, curvature), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Curvature, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "curvature" + }, + { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerHighFrequency, curvatureCalculationMode), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CurvatureCalculationMode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "curvatureCalculationMode" + }, + { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerHighFrequency, yawRate), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_YawRate, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "yawRate" + }, + { ATF_POINTER, 7, offsetof(struct BasicVehicleContainerHighFrequency, accelerationControl), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AccelerationControl, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "accelerationControl" + }, + { ATF_POINTER, 6, offsetof(struct BasicVehicleContainerHighFrequency, lanePosition), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LanePosition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lanePosition" + }, + { ATF_POINTER, 5, offsetof(struct BasicVehicleContainerHighFrequency, steeringWheelAngle), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SteeringWheelAngle, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "steeringWheelAngle" + }, + { ATF_POINTER, 4, offsetof(struct BasicVehicleContainerHighFrequency, lateralAcceleration), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LateralAcceleration, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lateralAcceleration" + }, + { ATF_POINTER, 3, offsetof(struct BasicVehicleContainerHighFrequency, verticalAcceleration), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VerticalAcceleration, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "verticalAcceleration" + }, + { ATF_POINTER, 2, offsetof(struct BasicVehicleContainerHighFrequency, performanceClass), + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PerformanceClass, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "performanceClass" + }, + { ATF_POINTER, 1, offsetof(struct BasicVehicleContainerHighFrequency, cenDsrcTollingZone), + (ASN_TAG_CLASS_CONTEXT | (15 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CenDsrcTollingZone, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cenDsrcTollingZone" + }, +}; +static const int asn_MAP_BasicVehicleContainerHighFrequency_oms_1[] = { 9, 10, 11, 12, 13, 14, 15 }; +static const ber_tlv_tag_t asn_DEF_BasicVehicleContainerHighFrequency_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BasicVehicleContainerHighFrequency_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* heading */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* speed */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* driveDirection */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* vehicleLength */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* vehicleWidth */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* longitudinalAcceleration */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* curvature */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* curvatureCalculationMode */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* yawRate */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* accelerationControl */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* lanePosition */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* steeringWheelAngle */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* lateralAcceleration */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* verticalAcceleration */ + { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* performanceClass */ + { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 } /* cenDsrcTollingZone */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BasicVehicleContainerHighFrequency_specs_1 = { + sizeof(struct BasicVehicleContainerHighFrequency), + offsetof(struct BasicVehicleContainerHighFrequency, _asn_ctx), + asn_MAP_BasicVehicleContainerHighFrequency_tag2el_1, + 16, /* Count of tags in the map */ + asn_MAP_BasicVehicleContainerHighFrequency_oms_1, /* Optional members */ + 7, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BasicVehicleContainerHighFrequency = { + "BasicVehicleContainerHighFrequency", + "BasicVehicleContainerHighFrequency", + &asn_OP_SEQUENCE, + asn_DEF_BasicVehicleContainerHighFrequency_tags_1, + sizeof(asn_DEF_BasicVehicleContainerHighFrequency_tags_1) + /sizeof(asn_DEF_BasicVehicleContainerHighFrequency_tags_1[0]), /* 1 */ + asn_DEF_BasicVehicleContainerHighFrequency_tags_1, /* Same as above */ + sizeof(asn_DEF_BasicVehicleContainerHighFrequency_tags_1) + /sizeof(asn_DEF_BasicVehicleContainerHighFrequency_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BasicVehicleContainerHighFrequency_1, + 16, /* Elements count */ + &asn_SPC_BasicVehicleContainerHighFrequency_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/BasicVehicleContainerHighFrequency.h b/vanetza/asn1/its1/BasicVehicleContainerHighFrequency.h similarity index 100% rename from vanetza/asn1/its/BasicVehicleContainerHighFrequency.h rename to vanetza/asn1/its1/BasicVehicleContainerHighFrequency.h diff --git a/vanetza/asn1/its1/BasicVehicleContainerLowFrequency.c b/vanetza/asn1/its1/BasicVehicleContainerLowFrequency.c new file mode 100644 index 000000000..1fecbfc51 --- /dev/null +++ b/vanetza/asn1/its1/BasicVehicleContainerLowFrequency.c @@ -0,0 +1,114 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/EN302637-2v141-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "BasicVehicleContainerLowFrequency.h" + +asn_TYPE_member_t asn_MBR_BasicVehicleContainerLowFrequency_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerLowFrequency, vehicleRole), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VehicleRole, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vehicleRole" + }, + { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerLowFrequency, exteriorLights), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ExteriorLights, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "exteriorLights" + }, + { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerLowFrequency, pathHistory), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PathHistory, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "pathHistory" + }, +}; +static const ber_tlv_tag_t asn_DEF_BasicVehicleContainerLowFrequency_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BasicVehicleContainerLowFrequency_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* vehicleRole */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* exteriorLights */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* pathHistory */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BasicVehicleContainerLowFrequency_specs_1 = { + sizeof(struct BasicVehicleContainerLowFrequency), + offsetof(struct BasicVehicleContainerLowFrequency, _asn_ctx), + asn_MAP_BasicVehicleContainerLowFrequency_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_BasicVehicleContainerLowFrequency = { + "BasicVehicleContainerLowFrequency", + "BasicVehicleContainerLowFrequency", + &asn_OP_SEQUENCE, + asn_DEF_BasicVehicleContainerLowFrequency_tags_1, + sizeof(asn_DEF_BasicVehicleContainerLowFrequency_tags_1) + /sizeof(asn_DEF_BasicVehicleContainerLowFrequency_tags_1[0]), /* 1 */ + asn_DEF_BasicVehicleContainerLowFrequency_tags_1, /* Same as above */ + sizeof(asn_DEF_BasicVehicleContainerLowFrequency_tags_1) + /sizeof(asn_DEF_BasicVehicleContainerLowFrequency_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BasicVehicleContainerLowFrequency_1, + 3, /* Elements count */ + &asn_SPC_BasicVehicleContainerLowFrequency_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/BasicVehicleContainerLowFrequency.h b/vanetza/asn1/its1/BasicVehicleContainerLowFrequency.h similarity index 100% rename from vanetza/asn1/its/BasicVehicleContainerLowFrequency.h rename to vanetza/asn1/its1/BasicVehicleContainerLowFrequency.h diff --git a/vanetza/asn1/its/BasicVehicleRole.c b/vanetza/asn1/its1/BasicVehicleRole.c similarity index 97% rename from vanetza/asn1/its/BasicVehicleRole.c rename to vanetza/asn1/its1/BasicVehicleRole.c index db708d630..609fcc5e3 100644 --- a/vanetza/asn1/its/BasicVehicleRole.c +++ b/vanetza/asn1/its1/BasicVehicleRole.c @@ -104,6 +104,9 @@ asn_TYPE_descriptor_t asn_DEF_BasicVehicleRole = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_BasicVehicleRole_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/BasicVehicleRole.h b/vanetza/asn1/its1/BasicVehicleRole.h similarity index 100% rename from vanetza/asn1/its/BasicVehicleRole.h rename to vanetza/asn1/its1/BasicVehicleRole.h diff --git a/vanetza/asn1/its/BatteryStatus.c b/vanetza/asn1/its1/BatteryStatus.c similarity index 96% rename from vanetza/asn1/its/BatteryStatus.c rename to vanetza/asn1/its1/BatteryStatus.c index f30acdd41..1f6b975d2 100644 --- a/vanetza/asn1/its/BatteryStatus.c +++ b/vanetza/asn1/its1/BatteryStatus.c @@ -66,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_BatteryStatus = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_BatteryStatus_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/BatteryStatus.h b/vanetza/asn1/its1/BatteryStatus.h similarity index 100% rename from vanetza/asn1/its/BatteryStatus.h rename to vanetza/asn1/its1/BatteryStatus.h diff --git a/vanetza/asn1/its1/CAM.c b/vanetza/asn1/its1/CAM.c new file mode 100644 index 000000000..f715884aa --- /dev/null +++ b/vanetza/asn1/its1/CAM.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/EN302637-2v141-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CAM.h" + +static asn_TYPE_member_t asn_MBR_CAM_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CAM, header), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ItsPduHeader, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "header" + }, + { ATF_NOFLAGS, 0, offsetof(struct CAM, cam), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CoopAwareness, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cam" + }, +}; +static const ber_tlv_tag_t asn_DEF_CAM_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CAM_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* header */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* cam */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_CAM_specs_1 = { + sizeof(struct CAM), + offsetof(struct CAM, _asn_ctx), + asn_MAP_CAM_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_CAM = { + "CAM", + "CAM", + &asn_OP_SEQUENCE, + asn_DEF_CAM_tags_1, + sizeof(asn_DEF_CAM_tags_1) + /sizeof(asn_DEF_CAM_tags_1[0]), /* 1 */ + asn_DEF_CAM_tags_1, /* Same as above */ + sizeof(asn_DEF_CAM_tags_1) + /sizeof(asn_DEF_CAM_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CAM_1, + 2, /* Elements count */ + &asn_SPC_CAM_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/CAM.h b/vanetza/asn1/its1/CAM.h similarity index 100% rename from vanetza/asn1/its/CAM.h rename to vanetza/asn1/its1/CAM.h diff --git a/vanetza/asn1/its/CO2EmissionValue.c b/vanetza/asn1/its1/CO2EmissionValue.c similarity index 96% rename from vanetza/asn1/its/CO2EmissionValue.c rename to vanetza/asn1/its1/CO2EmissionValue.c index ab1868417..528ca7a2a 100644 --- a/vanetza/asn1/its/CO2EmissionValue.c +++ b/vanetza/asn1/its1/CO2EmissionValue.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_CO2EmissionValue = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_CO2EmissionValue_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CO2EmissionValue_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/CO2EmissionValue.h b/vanetza/asn1/its1/CO2EmissionValue.h similarity index 100% rename from vanetza/asn1/its/CO2EmissionValue.h rename to vanetza/asn1/its1/CO2EmissionValue.h diff --git a/vanetza/asn1/its/CPM.c b/vanetza/asn1/its1/CPM.c similarity index 89% rename from vanetza/asn1/its/CPM.c rename to vanetza/asn1/its1/CPM.c index 9c319e295..87c65e902 100644 --- a/vanetza/asn1/its/CPM.c +++ b/vanetza/asn1/its1/CPM.c @@ -20,6 +20,9 @@ static asn_TYPE_member_t asn_MBR_CPM_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ static asn_TYPE_member_t asn_MBR_CPM_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_CPM = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_CPM_1, diff --git a/vanetza/asn1/its/CPM.h b/vanetza/asn1/its1/CPM.h similarity index 100% rename from vanetza/asn1/its/CPM.h rename to vanetza/asn1/its1/CPM.h diff --git a/vanetza/asn1/its/CS1.c b/vanetza/asn1/its1/CS1.c similarity index 89% rename from vanetza/asn1/its/CS1.c rename to vanetza/asn1/its1/CS1.c index d12dac6b6..9bda72e07 100644 --- a/vanetza/asn1/its/CS1.c +++ b/vanetza/asn1/its1/CS1.c @@ -20,6 +20,9 @@ static asn_TYPE_member_t asn_MBR_CS1_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ static asn_TYPE_member_t asn_MBR_CS1_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ static asn_TYPE_member_t asn_MBR_CS1_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -93,6 +102,9 @@ asn_TYPE_descriptor_t asn_DEF_CS1 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_CS1_1, diff --git a/vanetza/asn1/its/CS1.h b/vanetza/asn1/its1/CS1.h similarity index 100% rename from vanetza/asn1/its/CS1.h rename to vanetza/asn1/its1/CS1.h diff --git a/vanetza/asn1/its/CS2.c b/vanetza/asn1/its1/CS2.c similarity index 90% rename from vanetza/asn1/its/CS2.c rename to vanetza/asn1/its1/CS2.c index 74ca5cc4b..1f6707f90 100644 --- a/vanetza/asn1/its/CS2.c +++ b/vanetza/asn1/its1/CS2.c @@ -20,6 +20,9 @@ static asn_TYPE_member_t asn_MBR_CS2_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ static asn_TYPE_member_t asn_MBR_CS2_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_CS2 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_CS2_1, diff --git a/vanetza/asn1/its/CS2.h b/vanetza/asn1/its1/CS2.h similarity index 100% rename from vanetza/asn1/its/CS2.h rename to vanetza/asn1/its1/CS2.h diff --git a/vanetza/asn1/its/CS3.c b/vanetza/asn1/its1/CS3.c similarity index 88% rename from vanetza/asn1/its/CS3.c rename to vanetza/asn1/its1/CS3.c index 41b616cd4..cd2a56b20 100644 --- a/vanetza/asn1/its/CS3.c +++ b/vanetza/asn1/its1/CS3.c @@ -20,6 +20,9 @@ static asn_TYPE_member_t asn_MBR_CS3_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ static asn_TYPE_member_t asn_MBR_CS3_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ static asn_TYPE_member_t asn_MBR_CS3_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -71,6 +80,9 @@ static asn_TYPE_member_t asn_MBR_CS3_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -111,6 +123,9 @@ asn_TYPE_descriptor_t asn_DEF_CS3 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_CS3_1, diff --git a/vanetza/asn1/its/CS3.h b/vanetza/asn1/its1/CS3.h similarity index 100% rename from vanetza/asn1/its/CS3.h rename to vanetza/asn1/its1/CS3.h diff --git a/vanetza/asn1/its/CS4.c b/vanetza/asn1/its1/CS4.c similarity index 90% rename from vanetza/asn1/its/CS4.c rename to vanetza/asn1/its1/CS4.c index 0803d06cf..1e6a98e50 100644 --- a/vanetza/asn1/its/CS4.c +++ b/vanetza/asn1/its1/CS4.c @@ -32,6 +32,9 @@ static asn_TYPE_member_t asn_MBR_CS4_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ static asn_TYPE_member_t asn_MBR_CS4_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -66,6 +72,9 @@ static asn_TYPE_member_t asn_MBR_CS4_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -105,6 +114,9 @@ asn_TYPE_descriptor_t asn_DEF_CS4 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_CS4_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_CS4_1, diff --git a/vanetza/asn1/its/CS4.h b/vanetza/asn1/its1/CS4.h similarity index 100% rename from vanetza/asn1/its/CS4.h rename to vanetza/asn1/its1/CS4.h diff --git a/vanetza/asn1/its/CS5.c b/vanetza/asn1/its1/CS5.c similarity index 88% rename from vanetza/asn1/its/CS5.c rename to vanetza/asn1/its1/CS5.c index 99b9ca978..739f9b67f 100644 --- a/vanetza/asn1/its/CS5.c +++ b/vanetza/asn1/its1/CS5.c @@ -50,6 +50,10 @@ static asn_per_constraints_t asn_PER_memb_fill_constr_3 CC_NOTUSED = { 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_fill_constr_3 CC_NOTUSED = { + 9}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ asn_TYPE_member_t asn_MBR_CS5_1[] = { { ATF_NOFLAGS, 0, offsetof(struct CS5, vin), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), @@ -63,6 +67,9 @@ asn_TYPE_member_t asn_MBR_CS5_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -80,6 +87,9 @@ asn_TYPE_member_t asn_MBR_CS5_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_fill_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_memb_fill_constr_3, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_fill_constraint_1 }, 0, 0, /* No default value */ @@ -118,6 +128,9 @@ asn_TYPE_descriptor_t asn_DEF_CS5 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_CS5_1, diff --git a/vanetza/asn1/its/CS5.h b/vanetza/asn1/its1/CS5.h similarity index 100% rename from vanetza/asn1/its/CS5.h rename to vanetza/asn1/its1/CS5.h diff --git a/vanetza/asn1/its/CS7.c b/vanetza/asn1/its1/CS7.c similarity index 92% rename from vanetza/asn1/its/CS7.c rename to vanetza/asn1/its1/CS7.c index 0949ac877..5c156aacd 100644 --- a/vanetza/asn1/its/CS7.c +++ b/vanetza/asn1/its1/CS7.c @@ -31,6 +31,9 @@ asn_TYPE_descriptor_t asn_DEF_CS7 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_FreightContainerData_1, diff --git a/vanetza/asn1/its/CS7.h b/vanetza/asn1/its1/CS7.h similarity index 100% rename from vanetza/asn1/its/CS7.h rename to vanetza/asn1/its1/CS7.h diff --git a/vanetza/asn1/its/CS8.c b/vanetza/asn1/its1/CS8.c similarity index 88% rename from vanetza/asn1/its/CS8.c rename to vanetza/asn1/its1/CS8.c index e178413bd..eb6e185c2 100644 --- a/vanetza/asn1/its/CS8.c +++ b/vanetza/asn1/its1/CS8.c @@ -50,6 +50,10 @@ static asn_per_constraints_t asn_PER_memb_fill_constr_2 CC_NOTUSED = { 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_fill_constr_2 CC_NOTUSED = { + 6}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static asn_TYPE_member_t asn_MBR_CS8_1[] = { { ATF_NOFLAGS, 0, offsetof(struct CS8, fill), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), @@ -63,6 +67,9 @@ static asn_TYPE_member_t asn_MBR_CS8_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_fill_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_memb_fill_constr_2, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_fill_constraint_1 }, 0, 0, /* No default value */ @@ -80,6 +87,9 @@ static asn_TYPE_member_t asn_MBR_CS8_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -97,6 +107,9 @@ static asn_TYPE_member_t asn_MBR_CS8_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -136,6 +149,9 @@ asn_TYPE_descriptor_t asn_DEF_CS8 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_CS8_1, diff --git a/vanetza/asn1/its/CS8.h b/vanetza/asn1/its1/CS8.h similarity index 100% rename from vanetza/asn1/its/CS8.h rename to vanetza/asn1/its1/CS8.h diff --git a/vanetza/asn1/its1/CamParameters.c b/vanetza/asn1/its1/CamParameters.c new file mode 100644 index 000000000..ad47c4b04 --- /dev/null +++ b/vanetza/asn1/its1/CamParameters.c @@ -0,0 +1,137 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/EN302637-2v141-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CamParameters.h" + +asn_TYPE_member_t asn_MBR_CamParameters_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CamParameters, basicContainer), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BasicContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "basicContainer" + }, + { ATF_NOFLAGS, 0, offsetof(struct CamParameters, highFrequencyContainer), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_HighFrequencyContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "highFrequencyContainer" + }, + { ATF_POINTER, 2, offsetof(struct CamParameters, lowFrequencyContainer), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_LowFrequencyContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lowFrequencyContainer" + }, + { ATF_POINTER, 1, offsetof(struct CamParameters, specialVehicleContainer), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_SpecialVehicleContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "specialVehicleContainer" + }, +}; +static const int asn_MAP_CamParameters_oms_1[] = { 2, 3 }; +static const ber_tlv_tag_t asn_DEF_CamParameters_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CamParameters_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* basicContainer */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* highFrequencyContainer */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* lowFrequencyContainer */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* specialVehicleContainer */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CamParameters_specs_1 = { + sizeof(struct CamParameters), + offsetof(struct CamParameters, _asn_ctx), + asn_MAP_CamParameters_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_CamParameters_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_CamParameters = { + "CamParameters", + "CamParameters", + &asn_OP_SEQUENCE, + asn_DEF_CamParameters_tags_1, + sizeof(asn_DEF_CamParameters_tags_1) + /sizeof(asn_DEF_CamParameters_tags_1[0]), /* 1 */ + asn_DEF_CamParameters_tags_1, /* Same as above */ + sizeof(asn_DEF_CamParameters_tags_1) + /sizeof(asn_DEF_CamParameters_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CamParameters_1, + 4, /* Elements count */ + &asn_SPC_CamParameters_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/CamParameters.h b/vanetza/asn1/its1/CamParameters.h similarity index 100% rename from vanetza/asn1/its/CamParameters.h rename to vanetza/asn1/its1/CamParameters.h diff --git a/vanetza/asn1/its1/CartesianAngle.c b/vanetza/asn1/its1/CartesianAngle.c new file mode 100644 index 000000000..e26874cee --- /dev/null +++ b/vanetza/asn1/its1/CartesianAngle.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TR103562v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CartesianAngle.h" + +asn_TYPE_member_t asn_MBR_CartesianAngle_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CartesianAngle, value), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianAngleValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "value" + }, + { ATF_NOFLAGS, 0, offsetof(struct CartesianAngle, confidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AngleConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "confidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_CartesianAngle_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CartesianAngle_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* value */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* confidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CartesianAngle_specs_1 = { + sizeof(struct CartesianAngle), + offsetof(struct CartesianAngle, _asn_ctx), + asn_MAP_CartesianAngle_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_CartesianAngle = { + "CartesianAngle", + "CartesianAngle", + &asn_OP_SEQUENCE, + asn_DEF_CartesianAngle_tags_1, + sizeof(asn_DEF_CartesianAngle_tags_1) + /sizeof(asn_DEF_CartesianAngle_tags_1[0]), /* 1 */ + asn_DEF_CartesianAngle_tags_1, /* Same as above */ + sizeof(asn_DEF_CartesianAngle_tags_1) + /sizeof(asn_DEF_CartesianAngle_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CartesianAngle_1, + 2, /* Elements count */ + &asn_SPC_CartesianAngle_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/CartesianAngle.h b/vanetza/asn1/its1/CartesianAngle.h similarity index 100% rename from vanetza/asn1/its/CartesianAngle.h rename to vanetza/asn1/its1/CartesianAngle.h diff --git a/vanetza/asn1/its1/CartesianAngleValue.c b/vanetza/asn1/its1/CartesianAngleValue.c new file mode 100644 index 000000000..d147c50dd --- /dev/null +++ b/vanetza/asn1/its1/CartesianAngleValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TR103562v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CartesianAngleValue.h" + +int +CartesianAngleValue_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 <= 3601L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_CartesianAngleValue_constr_1 CC_NOTUSED = { + { 2, 1 } /* (0..3601) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CartesianAngleValue_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 3601 } /* (0..3601) */, + { 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_CartesianAngleValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_CartesianAngleValue = { + "CartesianAngleValue", + "CartesianAngleValue", + &asn_OP_NativeInteger, + asn_DEF_CartesianAngleValue_tags_1, + sizeof(asn_DEF_CartesianAngleValue_tags_1) + /sizeof(asn_DEF_CartesianAngleValue_tags_1[0]), /* 1 */ + asn_DEF_CartesianAngleValue_tags_1, /* Same as above */ + sizeof(asn_DEF_CartesianAngleValue_tags_1) + /sizeof(asn_DEF_CartesianAngleValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_CartesianAngleValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CartesianAngleValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CartesianAngleValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/CartesianAngleValue.h b/vanetza/asn1/its1/CartesianAngleValue.h similarity index 100% rename from vanetza/asn1/its/CartesianAngleValue.h rename to vanetza/asn1/its1/CartesianAngleValue.h diff --git a/vanetza/asn1/its1/CauseCode.c b/vanetza/asn1/its1/CauseCode.c new file mode 100644 index 000000000..69f593766 --- /dev/null +++ b/vanetza/asn1/its1/CauseCode.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CauseCode.h" + +asn_TYPE_member_t asn_MBR_CauseCode_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CauseCode, causeCode), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "causeCode" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCode, subCauseCode), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "subCauseCode" + }, +}; +static const ber_tlv_tag_t asn_DEF_CauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CauseCode_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* causeCode */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* subCauseCode */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CauseCode_specs_1 = { + sizeof(struct CauseCode), + offsetof(struct CauseCode, _asn_ctx), + asn_MAP_CauseCode_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_CauseCode = { + "CauseCode", + "CauseCode", + &asn_OP_SEQUENCE, + 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) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CauseCode_1, + 2, /* Elements count */ + &asn_SPC_CauseCode_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/CauseCode.h b/vanetza/asn1/its1/CauseCode.h similarity index 100% rename from vanetza/asn1/its/CauseCode.h rename to vanetza/asn1/its1/CauseCode.h diff --git a/vanetza/asn1/its1/CauseCodeType.c b/vanetza/asn1/its1/CauseCodeType.c new file mode 100644 index 000000000..17ab6ad55 --- /dev/null +++ b/vanetza/asn1/its1/CauseCodeType.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CauseCodeType.h" + +int +CauseCodeType_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_CauseCodeType_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CauseCodeType_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_CauseCodeType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_CauseCodeType = { + "CauseCodeType", + "CauseCodeType", + &asn_OP_NativeInteger, + asn_DEF_CauseCodeType_tags_1, + sizeof(asn_DEF_CauseCodeType_tags_1) + /sizeof(asn_DEF_CauseCodeType_tags_1[0]), /* 1 */ + asn_DEF_CauseCodeType_tags_1, /* Same as above */ + sizeof(asn_DEF_CauseCodeType_tags_1) + /sizeof(asn_DEF_CauseCodeType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_CauseCodeType_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CauseCodeType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CauseCodeType_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/CauseCodeType.h b/vanetza/asn1/its1/CauseCodeType.h similarity index 100% rename from vanetza/asn1/its/CauseCodeType.h rename to vanetza/asn1/its1/CauseCodeType.h diff --git a/vanetza/asn1/its1/CenDsrcTollingZone.c b/vanetza/asn1/its1/CenDsrcTollingZone.c new file mode 100644 index 000000000..60542e238 --- /dev/null +++ b/vanetza/asn1/its1/CenDsrcTollingZone.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CenDsrcTollingZone.h" + +asn_TYPE_member_t asn_MBR_CenDsrcTollingZone_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CenDsrcTollingZone, protectedZoneLatitude), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Latitude, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "protectedZoneLatitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct CenDsrcTollingZone, protectedZoneLongitude), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Longitude, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "protectedZoneLongitude" + }, + { ATF_POINTER, 1, offsetof(struct CenDsrcTollingZone, cenDsrcTollingZoneID), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CenDsrcTollingZoneID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cenDsrcTollingZoneID" + }, +}; +static const int asn_MAP_CenDsrcTollingZone_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_CenDsrcTollingZone_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CenDsrcTollingZone_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* protectedZoneLatitude */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* protectedZoneLongitude */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* cenDsrcTollingZoneID */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CenDsrcTollingZone_specs_1 = { + sizeof(struct CenDsrcTollingZone), + offsetof(struct CenDsrcTollingZone, _asn_ctx), + asn_MAP_CenDsrcTollingZone_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_CenDsrcTollingZone_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_CenDsrcTollingZone = { + "CenDsrcTollingZone", + "CenDsrcTollingZone", + &asn_OP_SEQUENCE, + asn_DEF_CenDsrcTollingZone_tags_1, + sizeof(asn_DEF_CenDsrcTollingZone_tags_1) + /sizeof(asn_DEF_CenDsrcTollingZone_tags_1[0]), /* 1 */ + asn_DEF_CenDsrcTollingZone_tags_1, /* Same as above */ + sizeof(asn_DEF_CenDsrcTollingZone_tags_1) + /sizeof(asn_DEF_CenDsrcTollingZone_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CenDsrcTollingZone_1, + 3, /* Elements count */ + &asn_SPC_CenDsrcTollingZone_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/CenDsrcTollingZone.h b/vanetza/asn1/its1/CenDsrcTollingZone.h similarity index 100% rename from vanetza/asn1/its/CenDsrcTollingZone.h rename to vanetza/asn1/its1/CenDsrcTollingZone.h diff --git a/vanetza/asn1/its1/CenDsrcTollingZoneID.c b/vanetza/asn1/its1/CenDsrcTollingZoneID.c new file mode 100644 index 000000000..ee50f4692 --- /dev/null +++ b/vanetza/asn1/its1/CenDsrcTollingZoneID.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CenDsrcTollingZoneID.h" + +int +CenDsrcTollingZoneID_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 <= 134217727L)) { + /* 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 ProtectedZoneID, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_CenDsrcTollingZoneID_constr_1 CC_NOTUSED = { + { 4, 1 } /* (0..134217727) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CenDsrcTollingZoneID_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 27, -1, 0, 134217727 } /* (0..134217727) */, + { 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_CenDsrcTollingZoneID_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_CenDsrcTollingZoneID = { + "CenDsrcTollingZoneID", + "CenDsrcTollingZoneID", + &asn_OP_NativeInteger, + asn_DEF_CenDsrcTollingZoneID_tags_1, + sizeof(asn_DEF_CenDsrcTollingZoneID_tags_1) + /sizeof(asn_DEF_CenDsrcTollingZoneID_tags_1[0]), /* 1 */ + asn_DEF_CenDsrcTollingZoneID_tags_1, /* Same as above */ + sizeof(asn_DEF_CenDsrcTollingZoneID_tags_1) + /sizeof(asn_DEF_CenDsrcTollingZoneID_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_CenDsrcTollingZoneID_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CenDsrcTollingZoneID_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CenDsrcTollingZoneID_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/CenDsrcTollingZoneID.h b/vanetza/asn1/its1/CenDsrcTollingZoneID.h similarity index 100% rename from vanetza/asn1/its/CenDsrcTollingZoneID.h rename to vanetza/asn1/its1/CenDsrcTollingZoneID.h diff --git a/vanetza/asn1/its/ChannelId.c b/vanetza/asn1/its1/ChannelId.c similarity index 96% rename from vanetza/asn1/its/ChannelId.c rename to vanetza/asn1/its1/ChannelId.c index 26ac14811..458b24598 100644 --- a/vanetza/asn1/its/ChannelId.c +++ b/vanetza/asn1/its1/ChannelId.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_ChannelId = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ChannelId_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ ChannelId_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/ChannelId.h b/vanetza/asn1/its1/ChannelId.h similarity index 100% rename from vanetza/asn1/its/ChannelId.h rename to vanetza/asn1/its1/ChannelId.h diff --git a/vanetza/asn1/its/ChannelRq.c b/vanetza/asn1/its1/ChannelRq.c similarity index 90% rename from vanetza/asn1/its/ChannelRq.c rename to vanetza/asn1/its1/ChannelRq.c index 28b2145d6..9071c28cc 100644 --- a/vanetza/asn1/its/ChannelRq.c +++ b/vanetza/asn1/its1/ChannelRq.c @@ -20,6 +20,9 @@ static asn_TYPE_member_t asn_MBR_ChannelRq_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ static asn_TYPE_member_t asn_MBR_ChannelRq_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_ChannelRq = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_ChannelRq_1, diff --git a/vanetza/asn1/its/ChannelRq.h b/vanetza/asn1/its1/ChannelRq.h similarity index 100% rename from vanetza/asn1/its/ChannelRq.h rename to vanetza/asn1/its1/ChannelRq.h diff --git a/vanetza/asn1/its/ChannelRs.c b/vanetza/asn1/its1/ChannelRs.c similarity index 90% rename from vanetza/asn1/its/ChannelRs.c rename to vanetza/asn1/its1/ChannelRs.c index c8bc35d25..49249d8c3 100644 --- a/vanetza/asn1/its/ChannelRs.c +++ b/vanetza/asn1/its1/ChannelRs.c @@ -20,6 +20,9 @@ static asn_TYPE_member_t asn_MBR_ChannelRs_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ static asn_TYPE_member_t asn_MBR_ChannelRs_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_ChannelRs = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_ChannelRs_1, diff --git a/vanetza/asn1/its/ChannelRs.h b/vanetza/asn1/its1/ChannelRs.h similarity index 100% rename from vanetza/asn1/its/ChannelRs.h rename to vanetza/asn1/its1/ChannelRs.h diff --git a/vanetza/asn1/its/ClassConfidence.c b/vanetza/asn1/its1/ClassConfidence.c similarity index 96% rename from vanetza/asn1/its/ClassConfidence.c rename to vanetza/asn1/its1/ClassConfidence.c index 87e8e459c..e1e79ac26 100644 --- a/vanetza/asn1/its/ClassConfidence.c +++ b/vanetza/asn1/its1/ClassConfidence.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_ClassConfidence = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ClassConfidence_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ ClassConfidence_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/ClassConfidence.h b/vanetza/asn1/its1/ClassConfidence.h similarity index 100% rename from vanetza/asn1/its/ClassConfidence.h rename to vanetza/asn1/its1/ClassConfidence.h diff --git a/vanetza/asn1/its1/ClosedLanes.c b/vanetza/asn1/its1/ClosedLanes.c new file mode 100644 index 000000000..adc601ac7 --- /dev/null +++ b/vanetza/asn1/its1/ClosedLanes.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ClosedLanes.h" + +asn_TYPE_member_t asn_MBR_ClosedLanes_1[] = { + { ATF_POINTER, 3, offsetof(struct ClosedLanes, innerhardShoulderStatus), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HardShoulderStatus, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "innerhardShoulderStatus" + }, + { ATF_POINTER, 2, offsetof(struct ClosedLanes, outerhardShoulderStatus), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HardShoulderStatus, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "outerhardShoulderStatus" + }, + { ATF_POINTER, 1, offsetof(struct ClosedLanes, drivingLaneStatus), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DrivingLaneStatus, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "drivingLaneStatus" + }, +}; +static const int asn_MAP_ClosedLanes_oms_1[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_ClosedLanes_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ClosedLanes_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* innerhardShoulderStatus */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* outerhardShoulderStatus */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* drivingLaneStatus */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ClosedLanes_specs_1 = { + sizeof(struct ClosedLanes), + offsetof(struct ClosedLanes, _asn_ctx), + asn_MAP_ClosedLanes_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_ClosedLanes_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ClosedLanes = { + "ClosedLanes", + "ClosedLanes", + &asn_OP_SEQUENCE, + asn_DEF_ClosedLanes_tags_1, + sizeof(asn_DEF_ClosedLanes_tags_1) + /sizeof(asn_DEF_ClosedLanes_tags_1[0]), /* 1 */ + asn_DEF_ClosedLanes_tags_1, /* Same as above */ + sizeof(asn_DEF_ClosedLanes_tags_1) + /sizeof(asn_DEF_ClosedLanes_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ClosedLanes_1, + 3, /* Elements count */ + &asn_SPC_ClosedLanes_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/ClosedLanes.h b/vanetza/asn1/its1/ClosedLanes.h similarity index 100% rename from vanetza/asn1/its/ClosedLanes.h rename to vanetza/asn1/its1/ClosedLanes.h diff --git a/vanetza/asn1/its/Code-Units.c b/vanetza/asn1/its1/Code-Units.c similarity index 96% rename from vanetza/asn1/its/Code-Units.c rename to vanetza/asn1/its1/Code-Units.c index 4c6071b56..eb679cc2b 100644 --- a/vanetza/asn1/its/Code-Units.c +++ b/vanetza/asn1/its1/Code-Units.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Code_Units = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Code_Units_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Code_Units_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/Code-Units.h b/vanetza/asn1/its1/Code-Units.h similarity index 100% rename from vanetza/asn1/its/Code-Units.h rename to vanetza/asn1/its1/Code-Units.h diff --git a/vanetza/asn1/its1/CollectivePerceptionMessage.c b/vanetza/asn1/its1/CollectivePerceptionMessage.c new file mode 100644 index 000000000..dac052a3d --- /dev/null +++ b/vanetza/asn1/its1/CollectivePerceptionMessage.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TR103562v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CollectivePerceptionMessage.h" + +asn_TYPE_member_t asn_MBR_CollectivePerceptionMessage_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CollectivePerceptionMessage, generationDeltaTime), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GenerationDeltaTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "generationDeltaTime" + }, + { ATF_NOFLAGS, 0, offsetof(struct CollectivePerceptionMessage, cpmParameters), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CpmParameters, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cpmParameters" + }, +}; +static const ber_tlv_tag_t asn_DEF_CollectivePerceptionMessage_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CollectivePerceptionMessage_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* generationDeltaTime */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* cpmParameters */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CollectivePerceptionMessage_specs_1 = { + sizeof(struct CollectivePerceptionMessage), + offsetof(struct CollectivePerceptionMessage, _asn_ctx), + asn_MAP_CollectivePerceptionMessage_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_CollectivePerceptionMessage = { + "CollectivePerceptionMessage", + "CollectivePerceptionMessage", + &asn_OP_SEQUENCE, + asn_DEF_CollectivePerceptionMessage_tags_1, + sizeof(asn_DEF_CollectivePerceptionMessage_tags_1) + /sizeof(asn_DEF_CollectivePerceptionMessage_tags_1[0]), /* 1 */ + asn_DEF_CollectivePerceptionMessage_tags_1, /* Same as above */ + sizeof(asn_DEF_CollectivePerceptionMessage_tags_1) + /sizeof(asn_DEF_CollectivePerceptionMessage_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CollectivePerceptionMessage_1, + 2, /* Elements count */ + &asn_SPC_CollectivePerceptionMessage_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/CollectivePerceptionMessage.h b/vanetza/asn1/its1/CollectivePerceptionMessage.h similarity index 100% rename from vanetza/asn1/its/CollectivePerceptionMessage.h rename to vanetza/asn1/its1/CollectivePerceptionMessage.h diff --git a/vanetza/asn1/its1/CollisionRiskSubCauseCode.c b/vanetza/asn1/its1/CollisionRiskSubCauseCode.c new file mode 100644 index 000000000..d6773ab0e --- /dev/null +++ b/vanetza/asn1/its1/CollisionRiskSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CollisionRiskSubCauseCode.h" + +int +CollisionRiskSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_CollisionRiskSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_CollisionRiskSubCauseCode_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_CollisionRiskSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_CollisionRiskSubCauseCode = { + "CollisionRiskSubCauseCode", + "CollisionRiskSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_CollisionRiskSubCauseCode_tags_1, + sizeof(asn_DEF_CollisionRiskSubCauseCode_tags_1) + /sizeof(asn_DEF_CollisionRiskSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_CollisionRiskSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_CollisionRiskSubCauseCode_tags_1) + /sizeof(asn_DEF_CollisionRiskSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_CollisionRiskSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CollisionRiskSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CollisionRiskSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/CollisionRiskSubCauseCode.h b/vanetza/asn1/its1/CollisionRiskSubCauseCode.h similarity index 100% rename from vanetza/asn1/its/CollisionRiskSubCauseCode.h rename to vanetza/asn1/its1/CollisionRiskSubCauseCode.h diff --git a/vanetza/asn1/its/ComparisonOperator.c b/vanetza/asn1/its1/ComparisonOperator.c similarity index 96% rename from vanetza/asn1/its/ComparisonOperator.c rename to vanetza/asn1/its1/ComparisonOperator.c index 4a72ea66d..3ef61bde9 100644 --- a/vanetza/asn1/its/ComparisonOperator.c +++ b/vanetza/asn1/its1/ComparisonOperator.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_ComparisonOperator = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ComparisonOperator_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ ComparisonOperator_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/ComparisonOperator.h b/vanetza/asn1/its1/ComparisonOperator.h similarity index 100% rename from vanetza/asn1/its/ComparisonOperator.h rename to vanetza/asn1/its1/ComparisonOperator.h diff --git a/vanetza/asn1/its/CompleteVehicleCharacteristics.c b/vanetza/asn1/its1/CompleteVehicleCharacteristics.c similarity index 91% rename from vanetza/asn1/its/CompleteVehicleCharacteristics.c rename to vanetza/asn1/its1/CompleteVehicleCharacteristics.c index c8acd50ac..4682113ec 100644 --- a/vanetza/asn1/its/CompleteVehicleCharacteristics.c +++ b/vanetza/asn1/its1/CompleteVehicleCharacteristics.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_CompleteVehicleCharacteristics_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_CompleteVehicleCharacteristics_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_CompleteVehicleCharacteristics_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -95,6 +104,9 @@ asn_TYPE_descriptor_t asn_DEF_CompleteVehicleCharacteristics = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_CompleteVehicleCharacteristics_1, diff --git a/vanetza/asn1/its/CompleteVehicleCharacteristics.h b/vanetza/asn1/its1/CompleteVehicleCharacteristics.h similarity index 100% rename from vanetza/asn1/its/CompleteVehicleCharacteristics.h rename to vanetza/asn1/its1/CompleteVehicleCharacteristics.h diff --git a/vanetza/asn1/its/ComputedLane.c b/vanetza/asn1/its1/ComputedLane.c similarity index 91% rename from vanetza/asn1/its/ComputedLane.c rename to vanetza/asn1/its1/ComputedLane.c index c1bce7d4a..dedda6358 100644 --- a/vanetza/asn1/its/ComputedLane.c +++ b/vanetza/asn1/its1/ComputedLane.c @@ -94,6 +94,9 @@ static asn_TYPE_member_t asn_MBR_offsetXaxis_3[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -111,6 +114,9 @@ static asn_TYPE_member_t asn_MBR_offsetXaxis_3[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -147,6 +153,9 @@ asn_TYPE_descriptor_t asn_DEF_offsetXaxis_3 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_offsetXaxis_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_offsetXaxis_3, @@ -167,6 +176,9 @@ static asn_TYPE_member_t asn_MBR_offsetYaxis_6[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -184,6 +196,9 @@ static asn_TYPE_member_t asn_MBR_offsetYaxis_6[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -220,6 +235,9 @@ asn_TYPE_descriptor_t asn_DEF_offsetYaxis_6 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_offsetYaxis_constr_6, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_offsetYaxis_6, @@ -240,6 +258,9 @@ static asn_TYPE_member_t asn_MBR_regional_12[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -273,6 +294,9 @@ asn_TYPE_descriptor_t asn_DEF_regional_12 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_regional_constr_12, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_regional_12, @@ -293,6 +317,9 @@ asn_TYPE_member_t asn_MBR_ComputedLane_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -310,6 +337,9 @@ asn_TYPE_member_t asn_MBR_ComputedLane_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -327,6 +357,9 @@ asn_TYPE_member_t asn_MBR_ComputedLane_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -344,6 +377,9 @@ asn_TYPE_member_t asn_MBR_ComputedLane_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -361,6 +397,9 @@ asn_TYPE_member_t asn_MBR_ComputedLane_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -378,6 +417,9 @@ asn_TYPE_member_t asn_MBR_ComputedLane_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -395,6 +437,9 @@ asn_TYPE_member_t asn_MBR_ComputedLane_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regional_constr_12, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regional_constraint_1 }, 0, 0, /* No default value */ @@ -440,6 +485,9 @@ asn_TYPE_descriptor_t asn_DEF_ComputedLane = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_ComputedLane_1, diff --git a/vanetza/asn1/its/ComputedLane.h b/vanetza/asn1/its1/ComputedLane.h similarity index 100% rename from vanetza/asn1/its/ComputedLane.h rename to vanetza/asn1/its1/ComputedLane.h diff --git a/vanetza/asn1/its/ComputedSegment.c b/vanetza/asn1/its1/ComputedSegment.c similarity index 91% rename from vanetza/asn1/its/ComputedSegment.c rename to vanetza/asn1/its1/ComputedSegment.c index 4f3874fae..456844830 100644 --- a/vanetza/asn1/its/ComputedSegment.c +++ b/vanetza/asn1/its1/ComputedSegment.c @@ -57,6 +57,9 @@ asn_TYPE_member_t asn_MBR_ComputedSegment_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -74,6 +77,9 @@ asn_TYPE_member_t asn_MBR_ComputedSegment_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -91,6 +97,9 @@ asn_TYPE_member_t asn_MBR_ComputedSegment_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -108,6 +117,9 @@ asn_TYPE_member_t asn_MBR_ComputedSegment_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_offsetDistance_constr_5, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_offsetDistance_constraint_1 }, 0, 0, /* No default value */ @@ -125,6 +137,9 @@ asn_TYPE_member_t asn_MBR_ComputedSegment_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -168,6 +183,9 @@ asn_TYPE_descriptor_t asn_DEF_ComputedSegment = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_ComputedSegment_1, diff --git a/vanetza/asn1/its/ComputedSegment.h b/vanetza/asn1/its1/ComputedSegment.h similarity index 100% rename from vanetza/asn1/its/ComputedSegment.h rename to vanetza/asn1/its1/ComputedSegment.h diff --git a/vanetza/asn1/its/Condition.c b/vanetza/asn1/its1/Condition.c similarity index 96% rename from vanetza/asn1/its/Condition.c rename to vanetza/asn1/its1/Condition.c index 4fbe08bf8..b1a78b4f2 100644 --- a/vanetza/asn1/its/Condition.c +++ b/vanetza/asn1/its1/Condition.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Condition = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Condition_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Condition_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/Condition.h b/vanetza/asn1/its1/Condition.h similarity index 100% rename from vanetza/asn1/its/Condition.h rename to vanetza/asn1/its1/Condition.h diff --git a/vanetza/asn1/its/ConnectedDenms.c b/vanetza/asn1/its1/ConnectedDenms.c similarity index 92% rename from vanetza/asn1/its/ConnectedDenms.c rename to vanetza/asn1/its1/ConnectedDenms.c index b08521d8a..5bb77f333 100644 --- a/vanetza/asn1/its/ConnectedDenms.c +++ b/vanetza/asn1/its1/ConnectedDenms.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_ConnectedDenms_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_ConnectedDenms = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ConnectedDenms_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_ConnectedDenms_1, diff --git a/vanetza/asn1/its/ConnectedDenms.h b/vanetza/asn1/its1/ConnectedDenms.h similarity index 100% rename from vanetza/asn1/its/ConnectedDenms.h rename to vanetza/asn1/its1/ConnectedDenms.h diff --git a/vanetza/asn1/its/ConnectingLane.c b/vanetza/asn1/its1/ConnectingLane.c similarity index 90% rename from vanetza/asn1/its/ConnectingLane.c rename to vanetza/asn1/its1/ConnectingLane.c index 10015ddf1..e80852f57 100644 --- a/vanetza/asn1/its/ConnectingLane.c +++ b/vanetza/asn1/its1/ConnectingLane.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_ConnectingLane_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_ConnectingLane_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -77,6 +83,9 @@ asn_TYPE_descriptor_t asn_DEF_ConnectingLane = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_ConnectingLane_1, diff --git a/vanetza/asn1/its/ConnectingLane.h b/vanetza/asn1/its1/ConnectingLane.h similarity index 100% rename from vanetza/asn1/its/ConnectingLane.h rename to vanetza/asn1/its1/ConnectingLane.h diff --git a/vanetza/asn1/its/Connection.c b/vanetza/asn1/its1/Connection.c similarity index 88% rename from vanetza/asn1/its/Connection.c rename to vanetza/asn1/its1/Connection.c index f2d710628..e1e17f9d7 100644 --- a/vanetza/asn1/its/Connection.c +++ b/vanetza/asn1/its1/Connection.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Connection_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Connection_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_Connection_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -71,6 +80,9 @@ asn_TYPE_member_t asn_MBR_Connection_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -88,6 +100,9 @@ asn_TYPE_member_t asn_MBR_Connection_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -131,6 +146,9 @@ asn_TYPE_descriptor_t asn_DEF_Connection = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Connection_1, diff --git a/vanetza/asn1/its/Connection.h b/vanetza/asn1/its1/Connection.h similarity index 100% rename from vanetza/asn1/its/Connection.h rename to vanetza/asn1/its1/Connection.h diff --git a/vanetza/asn1/its/ConnectionManeuverAssist-addGrpC.c b/vanetza/asn1/its1/ConnectionManeuverAssist-addGrpC.c similarity index 93% rename from vanetza/asn1/its/ConnectionManeuverAssist-addGrpC.c rename to vanetza/asn1/its1/ConnectionManeuverAssist-addGrpC.c index 5609b8eee..5e02deb3a 100644 --- a/vanetza/asn1/its/ConnectionManeuverAssist-addGrpC.c +++ b/vanetza/asn1/its1/ConnectionManeuverAssist-addGrpC.c @@ -21,6 +21,9 @@ asn_TYPE_member_t asn_MBR_ConnectionManeuverAssist_addGrpC_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -60,6 +63,9 @@ asn_TYPE_descriptor_t asn_DEF_ConnectionManeuverAssist_addGrpC = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_ConnectionManeuverAssist_addGrpC_1, diff --git a/vanetza/asn1/its/ConnectionManeuverAssist-addGrpC.h b/vanetza/asn1/its1/ConnectionManeuverAssist-addGrpC.h similarity index 100% rename from vanetza/asn1/its/ConnectionManeuverAssist-addGrpC.h rename to vanetza/asn1/its1/ConnectionManeuverAssist-addGrpC.h diff --git a/vanetza/asn1/its/ConnectionManeuverAssist.c b/vanetza/asn1/its1/ConnectionManeuverAssist.c similarity index 91% rename from vanetza/asn1/its/ConnectionManeuverAssist.c rename to vanetza/asn1/its1/ConnectionManeuverAssist.c index 7789bd016..e1811d0ed 100644 --- a/vanetza/asn1/its/ConnectionManeuverAssist.c +++ b/vanetza/asn1/its1/ConnectionManeuverAssist.c @@ -70,6 +70,9 @@ static asn_TYPE_member_t asn_MBR_regional_7[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -103,6 +106,9 @@ asn_TYPE_descriptor_t asn_DEF_regional_7 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_regional_constr_7, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_regional_7, @@ -123,6 +129,9 @@ asn_TYPE_member_t asn_MBR_ConnectionManeuverAssist_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -140,6 +149,9 @@ asn_TYPE_member_t asn_MBR_ConnectionManeuverAssist_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -157,6 +169,9 @@ asn_TYPE_member_t asn_MBR_ConnectionManeuverAssist_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -174,6 +189,9 @@ asn_TYPE_member_t asn_MBR_ConnectionManeuverAssist_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -191,6 +209,9 @@ asn_TYPE_member_t asn_MBR_ConnectionManeuverAssist_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -208,6 +229,9 @@ asn_TYPE_member_t asn_MBR_ConnectionManeuverAssist_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regional_constr_7, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regional_constraint_1 }, 0, 0, /* No default value */ @@ -252,6 +276,9 @@ asn_TYPE_descriptor_t asn_DEF_ConnectionManeuverAssist = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_ConnectionManeuverAssist_1, diff --git a/vanetza/asn1/its/ConnectionManeuverAssist.h b/vanetza/asn1/its1/ConnectionManeuverAssist.h similarity index 100% rename from vanetza/asn1/its/ConnectionManeuverAssist.h rename to vanetza/asn1/its1/ConnectionManeuverAssist.h diff --git a/vanetza/asn1/its/ConnectionTrajectory-addGrpC.c b/vanetza/asn1/its1/ConnectionTrajectory-addGrpC.c similarity index 91% rename from vanetza/asn1/its/ConnectionTrajectory-addGrpC.c rename to vanetza/asn1/its1/ConnectionTrajectory-addGrpC.c index 408e3d4d9..8e3a2c25a 100644 --- a/vanetza/asn1/its/ConnectionTrajectory-addGrpC.c +++ b/vanetza/asn1/its1/ConnectionTrajectory-addGrpC.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_ConnectionTrajectory_addGrpC_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_ConnectionTrajectory_addGrpC_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_ConnectionTrajectory_addGrpC = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_ConnectionTrajectory_addGrpC_1, diff --git a/vanetza/asn1/its/ConnectionTrajectory-addGrpC.h b/vanetza/asn1/its1/ConnectionTrajectory-addGrpC.h similarity index 100% rename from vanetza/asn1/its/ConnectionTrajectory-addGrpC.h rename to vanetza/asn1/its1/ConnectionTrajectory-addGrpC.h diff --git a/vanetza/asn1/its/ConnectsToList.c b/vanetza/asn1/its1/ConnectsToList.c similarity index 92% rename from vanetza/asn1/its/ConnectsToList.c rename to vanetza/asn1/its1/ConnectsToList.c index e92e2f8a3..41a68a17b 100644 --- a/vanetza/asn1/its/ConnectsToList.c +++ b/vanetza/asn1/its1/ConnectsToList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_ConnectsToList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_ConnectsToList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ConnectsToList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_ConnectsToList_1, diff --git a/vanetza/asn1/its/ConnectsToList.h b/vanetza/asn1/its1/ConnectsToList.h similarity index 100% rename from vanetza/asn1/its/ConnectsToList.h rename to vanetza/asn1/its1/ConnectsToList.h diff --git a/vanetza/asn1/its/ConstraintTextLines1.c b/vanetza/asn1/its1/ConstraintTextLines1.c similarity index 95% rename from vanetza/asn1/its/ConstraintTextLines1.c rename to vanetza/asn1/its1/ConstraintTextLines1.c index a82d62cc7..5bb552282 100644 --- a/vanetza/asn1/its/ConstraintTextLines1.c +++ b/vanetza/asn1/its1/ConstraintTextLines1.c @@ -63,6 +63,9 @@ asn_TYPE_member_t asn_MBR_ConstraintTextLines1_1[] = { #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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Text_constraint_1 }, 0, 0, /* No default value */ @@ -94,6 +97,9 @@ asn_TYPE_descriptor_t asn_DEF_ConstraintTextLines1 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ConstraintTextLines1_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_ConstraintTextLines1_1, diff --git a/vanetza/asn1/its/ConstraintTextLines1.h b/vanetza/asn1/its1/ConstraintTextLines1.h similarity index 100% rename from vanetza/asn1/its/ConstraintTextLines1.h rename to vanetza/asn1/its1/ConstraintTextLines1.h diff --git a/vanetza/asn1/its/ConstraintTextLines2.c b/vanetza/asn1/its1/ConstraintTextLines2.c similarity index 95% rename from vanetza/asn1/its/ConstraintTextLines2.c rename to vanetza/asn1/its1/ConstraintTextLines2.c index 4bf381d9c..f6618cf51 100644 --- a/vanetza/asn1/its/ConstraintTextLines2.c +++ b/vanetza/asn1/its1/ConstraintTextLines2.c @@ -63,6 +63,9 @@ asn_TYPE_member_t asn_MBR_ConstraintTextLines2_1[] = { #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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Text_constraint_1 }, 0, 0, /* No default value */ @@ -94,6 +97,9 @@ asn_TYPE_descriptor_t asn_DEF_ConstraintTextLines2 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ConstraintTextLines2_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_ConstraintTextLines2_1, diff --git a/vanetza/asn1/its/ConstraintTextLines2.h b/vanetza/asn1/its1/ConstraintTextLines2.h similarity index 100% rename from vanetza/asn1/its/ConstraintTextLines2.h rename to vanetza/asn1/its1/ConstraintTextLines2.h diff --git a/vanetza/asn1/its/ContractAuthenticator.c b/vanetza/asn1/its1/ContractAuthenticator.c similarity index 93% rename from vanetza/asn1/its/ContractAuthenticator.c rename to vanetza/asn1/its1/ContractAuthenticator.c index fb3deb888..c209d8f8f 100644 --- a/vanetza/asn1/its/ContractAuthenticator.c +++ b/vanetza/asn1/its1/ContractAuthenticator.c @@ -31,6 +31,9 @@ asn_TYPE_descriptor_t asn_DEF_ContractAuthenticator = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OCTET_STRING_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/ContractAuthenticator.h b/vanetza/asn1/its1/ContractAuthenticator.h similarity index 100% rename from vanetza/asn1/its/ContractAuthenticator.h rename to vanetza/asn1/its1/ContractAuthenticator.h diff --git a/vanetza/asn1/its/ContractSerialNumber.c b/vanetza/asn1/its1/ContractSerialNumber.c similarity index 96% rename from vanetza/asn1/its/ContractSerialNumber.c rename to vanetza/asn1/its1/ContractSerialNumber.c index e5a6208d3..080351f7d 100644 --- a/vanetza/asn1/its/ContractSerialNumber.c +++ b/vanetza/asn1/its1/ContractSerialNumber.c @@ -59,6 +59,9 @@ asn_TYPE_descriptor_t asn_DEF_ContractSerialNumber = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ContractSerialNumber_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ ContractSerialNumber_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/ContractSerialNumber.h b/vanetza/asn1/its1/ContractSerialNumber.h similarity index 100% rename from vanetza/asn1/its/ContractSerialNumber.h rename to vanetza/asn1/its1/ContractSerialNumber.h diff --git a/vanetza/asn1/its/ContractValidity.c b/vanetza/asn1/its1/ContractValidity.c similarity index 93% rename from vanetza/asn1/its/ContractValidity.c rename to vanetza/asn1/its1/ContractValidity.c index 55015dadd..494d6e6e6 100644 --- a/vanetza/asn1/its/ContractValidity.c +++ b/vanetza/asn1/its1/ContractValidity.c @@ -58,6 +58,9 @@ static asn_TYPE_member_t asn_MBR_ContractValidity_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_contractRestrictions_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_contractRestrictions_constraint_1 }, 0, 0, /* No default value */ @@ -75,6 +78,9 @@ static asn_TYPE_member_t asn_MBR_ContractValidity_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -113,6 +119,9 @@ asn_TYPE_descriptor_t asn_DEF_ContractValidity = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_ContractValidity_1, diff --git a/vanetza/asn1/its/ContractValidity.h b/vanetza/asn1/its1/ContractValidity.h similarity index 100% rename from vanetza/asn1/its/ContractValidity.h rename to vanetza/asn1/its1/ContractValidity.h diff --git a/vanetza/asn1/its/ContractVehicle.c b/vanetza/asn1/its1/ContractVehicle.c similarity index 92% rename from vanetza/asn1/its/ContractVehicle.c rename to vanetza/asn1/its1/ContractVehicle.c index 001420bb3..44464ab47 100644 --- a/vanetza/asn1/its/ContractVehicle.c +++ b/vanetza/asn1/its1/ContractVehicle.c @@ -31,6 +31,9 @@ asn_TYPE_descriptor_t asn_DEF_ContractVehicle = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_LPN_1, diff --git a/vanetza/asn1/its/ContractVehicle.h b/vanetza/asn1/its1/ContractVehicle.h similarity index 100% rename from vanetza/asn1/its/ContractVehicle.h rename to vanetza/asn1/its1/ContractVehicle.h diff --git a/vanetza/asn1/its/CoopAwareness.c b/vanetza/asn1/its1/CoopAwareness.c similarity index 90% rename from vanetza/asn1/its/CoopAwareness.c rename to vanetza/asn1/its1/CoopAwareness.c index a0172aed0..ff8572a11 100644 --- a/vanetza/asn1/its/CoopAwareness.c +++ b/vanetza/asn1/its1/CoopAwareness.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_CoopAwareness_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_CoopAwareness_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_CoopAwareness = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_CoopAwareness_1, diff --git a/vanetza/asn1/its/CoopAwareness.h b/vanetza/asn1/its1/CoopAwareness.h similarity index 100% rename from vanetza/asn1/its/CoopAwareness.h rename to vanetza/asn1/its1/CoopAwareness.h diff --git a/vanetza/asn1/its/CopValue.c b/vanetza/asn1/its1/CopValue.c similarity index 96% rename from vanetza/asn1/its/CopValue.c rename to vanetza/asn1/its1/CopValue.c index 625ff78d3..9fa02f171 100644 --- a/vanetza/asn1/its/CopValue.c +++ b/vanetza/asn1/its1/CopValue.c @@ -74,6 +74,9 @@ asn_TYPE_descriptor_t asn_DEF_CopValue = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_CopValue_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/CopValue.h b/vanetza/asn1/its1/CopValue.h similarity index 100% rename from vanetza/asn1/its/CopValue.h rename to vanetza/asn1/its1/CopValue.h diff --git a/vanetza/asn1/its/CopyRq.c b/vanetza/asn1/its1/CopyRq.c similarity index 93% rename from vanetza/asn1/its/CopyRq.c rename to vanetza/asn1/its1/CopyRq.c index 61a765d48..825377bb3 100644 --- a/vanetza/asn1/its/CopyRq.c +++ b/vanetza/asn1/its1/CopyRq.c @@ -57,6 +57,9 @@ static asn_TYPE_member_t asn_MBR_CopyRq_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_destinationEID_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_destinationEID_constraint_1 }, 0, 0, /* No default value */ @@ -74,6 +77,9 @@ static asn_TYPE_member_t asn_MBR_CopyRq_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -112,6 +118,9 @@ asn_TYPE_descriptor_t asn_DEF_CopyRq = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_CopyRq_1, diff --git a/vanetza/asn1/its/CopyRq.h b/vanetza/asn1/its1/CopyRq.h similarity index 100% rename from vanetza/asn1/its/CopyRq.h rename to vanetza/asn1/its1/CopyRq.h diff --git a/vanetza/asn1/its1/CountryCode.c b/vanetza/asn1/its1/CountryCode.c new file mode 100644 index 000000000..5e0bec5ac --- /dev/null +++ b/vanetza/asn1/its1/CountryCode.c @@ -0,0 +1,89 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "AVIAEINumberingAndDataStructures" + * found in "build.asn1/iso/ISO14816.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CountryCode.h" + +int +CountryCode_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 == 10UL)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_CountryCode_constr_1 CC_NOTUSED = { + { 0, 0 }, + 10 /* (SIZE(10..10)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CountryCode_constr_1 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_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_CountryCode_constr_1 CC_NOTUSED = { + 10}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_CountryCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_CountryCode = { + "CountryCode", + "CountryCode", + &asn_OP_BIT_STRING, + asn_DEF_CountryCode_tags_1, + sizeof(asn_DEF_CountryCode_tags_1) + /sizeof(asn_DEF_CountryCode_tags_1[0]), /* 1 */ + asn_DEF_CountryCode_tags_1, /* Same as above */ + sizeof(asn_DEF_CountryCode_tags_1) + /sizeof(asn_DEF_CountryCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_CountryCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CountryCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_CountryCode_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CountryCode_constraint + }, + 0, 0, /* No members */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/CountryCode.h b/vanetza/asn1/its1/CountryCode.h similarity index 100% rename from vanetza/asn1/its/CountryCode.h rename to vanetza/asn1/its1/CountryCode.h diff --git a/vanetza/asn1/its/CpmManagementContainer.c b/vanetza/asn1/its1/CpmManagementContainer.c similarity index 90% rename from vanetza/asn1/its/CpmManagementContainer.c rename to vanetza/asn1/its1/CpmManagementContainer.c index ac881ee41..acd6c8fe3 100644 --- a/vanetza/asn1/its/CpmManagementContainer.c +++ b/vanetza/asn1/its1/CpmManagementContainer.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_CpmManagementContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_CpmManagementContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_CpmManagementContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -95,6 +104,9 @@ asn_TYPE_descriptor_t asn_DEF_CpmManagementContainer = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_CpmManagementContainer_1, diff --git a/vanetza/asn1/its/CpmManagementContainer.h b/vanetza/asn1/its1/CpmManagementContainer.h similarity index 100% rename from vanetza/asn1/its/CpmManagementContainer.h rename to vanetza/asn1/its1/CpmManagementContainer.h diff --git a/vanetza/asn1/its/CpmParameters.c b/vanetza/asn1/its1/CpmParameters.c similarity index 89% rename from vanetza/asn1/its/CpmParameters.c rename to vanetza/asn1/its1/CpmParameters.c index bcd48bae2..6db7a4a91 100644 --- a/vanetza/asn1/its/CpmParameters.c +++ b/vanetza/asn1/its1/CpmParameters.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_CpmParameters_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_CpmParameters_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_CpmParameters_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -71,6 +80,9 @@ asn_TYPE_member_t asn_MBR_CpmParameters_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -88,6 +100,9 @@ asn_TYPE_member_t asn_MBR_CpmParameters_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -105,6 +120,9 @@ asn_TYPE_member_t asn_MBR_CpmParameters_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -149,6 +167,9 @@ asn_TYPE_descriptor_t asn_DEF_CpmParameters = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_CpmParameters_1, diff --git a/vanetza/asn1/its/CpmParameters.h b/vanetza/asn1/its1/CpmParameters.h similarity index 100% rename from vanetza/asn1/its/CpmParameters.h rename to vanetza/asn1/its1/CpmParameters.h diff --git a/vanetza/asn1/its/CreditRq.c b/vanetza/asn1/its1/CreditRq.c similarity index 92% rename from vanetza/asn1/its/CreditRq.c rename to vanetza/asn1/its1/CreditRq.c index d5ce1d3e4..dfc567d8f 100644 --- a/vanetza/asn1/its/CreditRq.c +++ b/vanetza/asn1/its1/CreditRq.c @@ -57,6 +57,9 @@ static asn_TYPE_member_t asn_MBR_CreditRq_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -74,6 +77,9 @@ static asn_TYPE_member_t asn_MBR_CreditRq_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -91,6 +97,9 @@ static asn_TYPE_member_t asn_MBR_CreditRq_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_key_constr_4, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_key_constraint_1 }, 0, 0, /* No default value */ @@ -130,6 +139,9 @@ asn_TYPE_descriptor_t asn_DEF_CreditRq = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_CreditRq_1, diff --git a/vanetza/asn1/its/CreditRq.h b/vanetza/asn1/its1/CreditRq.h similarity index 100% rename from vanetza/asn1/its/CreditRq.h rename to vanetza/asn1/its1/CreditRq.h diff --git a/vanetza/asn1/its/CreditRs.c b/vanetza/asn1/its1/CreditRs.c similarity index 90% rename from vanetza/asn1/its/CreditRs.c rename to vanetza/asn1/its1/CreditRs.c index babce0a50..8ad612bb6 100644 --- a/vanetza/asn1/its/CreditRs.c +++ b/vanetza/asn1/its1/CreditRs.c @@ -20,6 +20,9 @@ static asn_TYPE_member_t asn_MBR_CreditRs_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ static asn_TYPE_member_t asn_MBR_CreditRs_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_CreditRs = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_CreditRs_1, diff --git a/vanetza/asn1/its/CreditRs.h b/vanetza/asn1/its1/CreditRs.h similarity index 100% rename from vanetza/asn1/its/CreditRs.h rename to vanetza/asn1/its1/CreditRs.h diff --git a/vanetza/asn1/its1/Curvature.c b/vanetza/asn1/its1/Curvature.c new file mode 100644 index 000000000..eb277e229 --- /dev/null +++ b/vanetza/asn1/its1/Curvature.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Curvature.h" + +asn_TYPE_member_t asn_MBR_Curvature_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Curvature, curvatureValue), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CurvatureValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "curvatureValue" + }, + { ATF_NOFLAGS, 0, offsetof(struct Curvature, curvatureConfidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CurvatureConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "curvatureConfidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_Curvature_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Curvature_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* curvatureValue */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* curvatureConfidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Curvature_specs_1 = { + sizeof(struct Curvature), + offsetof(struct Curvature, _asn_ctx), + asn_MAP_Curvature_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_Curvature = { + "Curvature", + "Curvature", + &asn_OP_SEQUENCE, + asn_DEF_Curvature_tags_1, + sizeof(asn_DEF_Curvature_tags_1) + /sizeof(asn_DEF_Curvature_tags_1[0]), /* 1 */ + asn_DEF_Curvature_tags_1, /* Same as above */ + sizeof(asn_DEF_Curvature_tags_1) + /sizeof(asn_DEF_Curvature_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Curvature_1, + 2, /* Elements count */ + &asn_SPC_Curvature_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/Curvature.h b/vanetza/asn1/its1/Curvature.h similarity index 100% rename from vanetza/asn1/its/Curvature.h rename to vanetza/asn1/its1/Curvature.h diff --git a/vanetza/asn1/its1/CurvatureCalculationMode.c b/vanetza/asn1/its1/CurvatureCalculationMode.c new file mode 100644 index 000000000..8fc67ec03 --- /dev/null +++ b/vanetza/asn1/its1/CurvatureCalculationMode.c @@ -0,0 +1,75 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CurvatureCalculationMode.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_CurvatureCalculationMode_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CurvatureCalculationMode_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_CurvatureCalculationMode_value2enum_1[] = { + { 0, 11, "yawRateUsed" }, + { 1, 14, "yawRateNotUsed" }, + { 2, 11, "unavailable" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_CurvatureCalculationMode_enum2value_1[] = { + 2, /* unavailable(2) */ + 1, /* yawRateNotUsed(1) */ + 0 /* yawRateUsed(0) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_CurvatureCalculationMode_specs_1 = { + asn_MAP_CurvatureCalculationMode_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_CurvatureCalculationMode_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_CurvatureCalculationMode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_CurvatureCalculationMode = { + "CurvatureCalculationMode", + "CurvatureCalculationMode", + &asn_OP_NativeEnumerated, + asn_DEF_CurvatureCalculationMode_tags_1, + sizeof(asn_DEF_CurvatureCalculationMode_tags_1) + /sizeof(asn_DEF_CurvatureCalculationMode_tags_1[0]), /* 1 */ + asn_DEF_CurvatureCalculationMode_tags_1, /* Same as above */ + sizeof(asn_DEF_CurvatureCalculationMode_tags_1) + /sizeof(asn_DEF_CurvatureCalculationMode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_CurvatureCalculationMode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CurvatureCalculationMode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_CurvatureCalculationMode_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/CurvatureCalculationMode.h b/vanetza/asn1/its1/CurvatureCalculationMode.h similarity index 100% rename from vanetza/asn1/its/CurvatureCalculationMode.h rename to vanetza/asn1/its1/CurvatureCalculationMode.h diff --git a/vanetza/asn1/its1/CurvatureConfidence.c b/vanetza/asn1/its1/CurvatureConfidence.c new file mode 100644 index 000000000..ea91f93a6 --- /dev/null +++ b/vanetza/asn1/its1/CurvatureConfidence.c @@ -0,0 +1,83 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CurvatureConfidence.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_CurvatureConfidence_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CurvatureConfidence_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 asn_INTEGER_enum_map_t asn_MAP_CurvatureConfidence_value2enum_1[] = { + { 0, 19, "onePerMeter-0-00002" }, + { 1, 18, "onePerMeter-0-0001" }, + { 2, 18, "onePerMeter-0-0005" }, + { 3, 17, "onePerMeter-0-002" }, + { 4, 16, "onePerMeter-0-01" }, + { 5, 15, "onePerMeter-0-1" }, + { 6, 10, "outOfRange" }, + { 7, 11, "unavailable" } +}; +static const unsigned int asn_MAP_CurvatureConfidence_enum2value_1[] = { + 0, /* onePerMeter-0-00002(0) */ + 1, /* onePerMeter-0-0001(1) */ + 2, /* onePerMeter-0-0005(2) */ + 3, /* onePerMeter-0-002(3) */ + 4, /* onePerMeter-0-01(4) */ + 5, /* onePerMeter-0-1(5) */ + 6, /* outOfRange(6) */ + 7 /* unavailable(7) */ +}; +const asn_INTEGER_specifics_t asn_SPC_CurvatureConfidence_specs_1 = { + asn_MAP_CurvatureConfidence_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_CurvatureConfidence_enum2value_1, /* 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_CurvatureConfidence_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_CurvatureConfidence = { + "CurvatureConfidence", + "CurvatureConfidence", + &asn_OP_NativeEnumerated, + asn_DEF_CurvatureConfidence_tags_1, + sizeof(asn_DEF_CurvatureConfidence_tags_1) + /sizeof(asn_DEF_CurvatureConfidence_tags_1[0]), /* 1 */ + asn_DEF_CurvatureConfidence_tags_1, /* Same as above */ + sizeof(asn_DEF_CurvatureConfidence_tags_1) + /sizeof(asn_DEF_CurvatureConfidence_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_CurvatureConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CurvatureConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_CurvatureConfidence_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/CurvatureConfidence.h b/vanetza/asn1/its1/CurvatureConfidence.h similarity index 100% rename from vanetza/asn1/its/CurvatureConfidence.h rename to vanetza/asn1/its1/CurvatureConfidence.h diff --git a/vanetza/asn1/its1/CurvatureValue.c b/vanetza/asn1/its1/CurvatureValue.c new file mode 100644 index 000000000..45a4a3076 --- /dev/null +++ b/vanetza/asn1/its1/CurvatureValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CurvatureValue.h" + +int +CurvatureValue_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 >= -1023L && 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; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_CurvatureValue_constr_1 CC_NOTUSED = { + { 2, 0 } /* (-1023..1023) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CurvatureValue_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, -1023, 1023 } /* (-1023..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 ber_tlv_tag_t asn_DEF_CurvatureValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_CurvatureValue = { + "CurvatureValue", + "CurvatureValue", + &asn_OP_NativeInteger, + asn_DEF_CurvatureValue_tags_1, + sizeof(asn_DEF_CurvatureValue_tags_1) + /sizeof(asn_DEF_CurvatureValue_tags_1[0]), /* 1 */ + asn_DEF_CurvatureValue_tags_1, /* Same as above */ + sizeof(asn_DEF_CurvatureValue_tags_1) + /sizeof(asn_DEF_CurvatureValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_CurvatureValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CurvatureValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CurvatureValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/CurvatureValue.h b/vanetza/asn1/its1/CurvatureValue.h similarity index 100% rename from vanetza/asn1/its/CurvatureValue.h rename to vanetza/asn1/its1/CurvatureValue.h diff --git a/vanetza/asn1/its/DDD-IO-LIST.c b/vanetza/asn1/its1/DDD-IO-LIST.c similarity index 92% rename from vanetza/asn1/its/DDD-IO-LIST.c rename to vanetza/asn1/its1/DDD-IO-LIST.c index cde3f913f..1e62d8cb0 100644 --- a/vanetza/asn1/its/DDD-IO-LIST.c +++ b/vanetza/asn1/its1/DDD-IO-LIST.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_DDD_IO_LIST_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_DDD_IO_LIST = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_DDD_IO_LIST_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_DDD_IO_LIST_1, diff --git a/vanetza/asn1/its/DDD-IO-LIST.h b/vanetza/asn1/its1/DDD-IO-LIST.h similarity index 100% rename from vanetza/asn1/its/DDD-IO-LIST.h rename to vanetza/asn1/its1/DDD-IO-LIST.h diff --git a/vanetza/asn1/its/DDD-IO.c b/vanetza/asn1/its1/DDD-IO.c similarity index 92% rename from vanetza/asn1/its/DDD-IO.c rename to vanetza/asn1/its1/DDD-IO.c index 24403557b..9150adcae 100644 --- a/vanetza/asn1/its/DDD-IO.c +++ b/vanetza/asn1/its1/DDD-IO.c @@ -131,6 +131,9 @@ asn_TYPE_member_t asn_MBR_DDD_IO_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_arrowDirection_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_arrowDirection_constraint_1 }, 0, 0, /* No default value */ @@ -148,6 +151,9 @@ asn_TYPE_member_t asn_MBR_DDD_IO_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -165,6 +171,9 @@ asn_TYPE_member_t asn_MBR_DDD_IO_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -182,6 +191,9 @@ asn_TYPE_member_t asn_MBR_DDD_IO_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_roadNumberIdentifier_constr_5, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_roadNumberIdentifier_constraint_1 }, 0, 0, /* No default value */ @@ -199,6 +211,9 @@ asn_TYPE_member_t asn_MBR_DDD_IO_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_streetName_constr_6, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_streetName_constraint_1 }, 0, 0, /* No default value */ @@ -216,6 +231,9 @@ asn_TYPE_member_t asn_MBR_DDD_IO_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -233,6 +251,9 @@ asn_TYPE_member_t asn_MBR_DDD_IO_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -250,6 +271,9 @@ asn_TYPE_member_t asn_MBR_DDD_IO_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -296,6 +320,9 @@ asn_TYPE_descriptor_t asn_DEF_DDD_IO = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_DDD_IO_1, diff --git a/vanetza/asn1/its/DDD-IO.h b/vanetza/asn1/its1/DDD-IO.h similarity index 100% rename from vanetza/asn1/its/DDD-IO.h rename to vanetza/asn1/its1/DDD-IO.h diff --git a/vanetza/asn1/its/DDateTime.c b/vanetza/asn1/its1/DDateTime.c similarity index 87% rename from vanetza/asn1/its/DDateTime.c rename to vanetza/asn1/its1/DDateTime.c index f3fee2305..6c4eb2e30 100644 --- a/vanetza/asn1/its/DDateTime.c +++ b/vanetza/asn1/its1/DDateTime.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_DDateTime_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_DDateTime_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_DDateTime_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -71,6 +80,9 @@ asn_TYPE_member_t asn_MBR_DDateTime_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -88,6 +100,9 @@ asn_TYPE_member_t asn_MBR_DDateTime_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -105,6 +120,9 @@ asn_TYPE_member_t asn_MBR_DDateTime_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -122,6 +140,9 @@ asn_TYPE_member_t asn_MBR_DDateTime_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -167,6 +188,9 @@ asn_TYPE_descriptor_t asn_DEF_DDateTime = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_DDateTime_1, diff --git a/vanetza/asn1/its/DDateTime.h b/vanetza/asn1/its1/DDateTime.h similarity index 100% rename from vanetza/asn1/its/DDateTime.h rename to vanetza/asn1/its1/DDateTime.h diff --git a/vanetza/asn1/its/DDay.c b/vanetza/asn1/its1/DDay.c similarity index 95% rename from vanetza/asn1/its/DDay.c rename to vanetza/asn1/its1/DDay.c index fe163402b..36f7bb312 100644 --- a/vanetza/asn1/its/DDay.c +++ b/vanetza/asn1/its1/DDay.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_DDay = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_DDay_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ DDay_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/DDay.h b/vanetza/asn1/its1/DDay.h similarity index 100% rename from vanetza/asn1/its/DDay.h rename to vanetza/asn1/its1/DDay.h diff --git a/vanetza/asn1/its1/DENM.c b/vanetza/asn1/its1/DENM.c new file mode 100644 index 000000000..e21e5580f --- /dev/null +++ b/vanetza/asn1/its1/DENM.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "DENM-PDU-Descriptions" + * found in "asn1/EN302637-3v131-DENM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DENM.h" + +static asn_TYPE_member_t asn_MBR_DENM_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct DENM, header), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ItsPduHeader, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "header" + }, + { ATF_NOFLAGS, 0, offsetof(struct DENM, denm), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DecentralizedEnvironmentalNotificationMessage, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "denm" + }, +}; +static const ber_tlv_tag_t asn_DEF_DENM_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DENM_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* header */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* denm */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_DENM_specs_1 = { + sizeof(struct DENM), + offsetof(struct DENM, _asn_ctx), + asn_MAP_DENM_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_DENM = { + "DENM", + "DENM", + &asn_OP_SEQUENCE, + asn_DEF_DENM_tags_1, + sizeof(asn_DEF_DENM_tags_1) + /sizeof(asn_DEF_DENM_tags_1[0]), /* 1 */ + asn_DEF_DENM_tags_1, /* Same as above */ + sizeof(asn_DEF_DENM_tags_1) + /sizeof(asn_DEF_DENM_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DENM_1, + 2, /* Elements count */ + &asn_SPC_DENM_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/DENM.h b/vanetza/asn1/its1/DENM.h similarity index 100% rename from vanetza/asn1/its/DENM.h rename to vanetza/asn1/its1/DENM.h diff --git a/vanetza/asn1/its/DHour.c b/vanetza/asn1/its1/DHour.c similarity index 95% rename from vanetza/asn1/its/DHour.c rename to vanetza/asn1/its1/DHour.c index 14ca6e073..aa35e8ad3 100644 --- a/vanetza/asn1/its/DHour.c +++ b/vanetza/asn1/its1/DHour.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_DHour = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_DHour_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ DHour_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/DHour.h b/vanetza/asn1/its1/DHour.h similarity index 100% rename from vanetza/asn1/its/DHour.h rename to vanetza/asn1/its1/DHour.h diff --git a/vanetza/asn1/its/DMinute.c b/vanetza/asn1/its1/DMinute.c similarity index 96% rename from vanetza/asn1/its/DMinute.c rename to vanetza/asn1/its1/DMinute.c index fa2bda36e..4b2fda4a4 100644 --- a/vanetza/asn1/its/DMinute.c +++ b/vanetza/asn1/its1/DMinute.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_DMinute = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_DMinute_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ DMinute_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/DMinute.h b/vanetza/asn1/its1/DMinute.h similarity index 100% rename from vanetza/asn1/its/DMinute.h rename to vanetza/asn1/its1/DMinute.h diff --git a/vanetza/asn1/its/DMonth.c b/vanetza/asn1/its1/DMonth.c similarity index 96% rename from vanetza/asn1/its/DMonth.c rename to vanetza/asn1/its1/DMonth.c index 4f599dc8f..db925e20f 100644 --- a/vanetza/asn1/its/DMonth.c +++ b/vanetza/asn1/its1/DMonth.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_DMonth = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_DMonth_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ DMonth_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/DMonth.h b/vanetza/asn1/its1/DMonth.h similarity index 100% rename from vanetza/asn1/its/DMonth.h rename to vanetza/asn1/its1/DMonth.h diff --git a/vanetza/asn1/its/DOffset.c b/vanetza/asn1/its1/DOffset.c similarity index 96% rename from vanetza/asn1/its/DOffset.c rename to vanetza/asn1/its1/DOffset.c index 1a25c86de..700a2c479 100644 --- a/vanetza/asn1/its/DOffset.c +++ b/vanetza/asn1/its1/DOffset.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_DOffset = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_DOffset_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ DOffset_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/DOffset.h b/vanetza/asn1/its1/DOffset.h similarity index 100% rename from vanetza/asn1/its/DOffset.h rename to vanetza/asn1/its1/DOffset.h diff --git a/vanetza/asn1/its/DSRCmsgID.c b/vanetza/asn1/its1/DSRCmsgID.c similarity index 96% rename from vanetza/asn1/its/DSRCmsgID.c rename to vanetza/asn1/its1/DSRCmsgID.c index f725944d3..010b80fb1 100644 --- a/vanetza/asn1/its/DSRCmsgID.c +++ b/vanetza/asn1/its1/DSRCmsgID.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_DSRCmsgID = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_DSRCmsgID_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ DSRCmsgID_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/DSRCmsgID.h b/vanetza/asn1/its1/DSRCmsgID.h similarity index 100% rename from vanetza/asn1/its/DSRCmsgID.h rename to vanetza/asn1/its1/DSRCmsgID.h diff --git a/vanetza/asn1/its/DSecond.c b/vanetza/asn1/its1/DSecond.c similarity index 96% rename from vanetza/asn1/its/DSecond.c rename to vanetza/asn1/its1/DSecond.c index fa8e611cd..fa721a99d 100644 --- a/vanetza/asn1/its/DSecond.c +++ b/vanetza/asn1/its1/DSecond.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_DSecond = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_DSecond_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ DSecond_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/DSecond.h b/vanetza/asn1/its1/DSecond.h similarity index 100% rename from vanetza/asn1/its/DSecond.h rename to vanetza/asn1/its1/DSecond.h diff --git a/vanetza/asn1/its/DYear.c b/vanetza/asn1/its1/DYear.c similarity index 95% rename from vanetza/asn1/its/DYear.c rename to vanetza/asn1/its1/DYear.c index 6926189d7..d31d2e735 100644 --- a/vanetza/asn1/its/DYear.c +++ b/vanetza/asn1/its1/DYear.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_DYear = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_DYear_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ DYear_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/DYear.h b/vanetza/asn1/its1/DYear.h similarity index 100% rename from vanetza/asn1/its/DYear.h rename to vanetza/asn1/its1/DYear.h diff --git a/vanetza/asn1/its1/DangerousEndOfQueueSubCauseCode.c b/vanetza/asn1/its1/DangerousEndOfQueueSubCauseCode.c new file mode 100644 index 000000000..8cb33e67b --- /dev/null +++ b/vanetza/asn1/its1/DangerousEndOfQueueSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DangerousEndOfQueueSubCauseCode.h" + +int +DangerousEndOfQueueSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_DangerousEndOfQueueSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_DangerousEndOfQueueSubCauseCode_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_DangerousEndOfQueueSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_DangerousEndOfQueueSubCauseCode = { + "DangerousEndOfQueueSubCauseCode", + "DangerousEndOfQueueSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_DangerousEndOfQueueSubCauseCode_tags_1, + sizeof(asn_DEF_DangerousEndOfQueueSubCauseCode_tags_1) + /sizeof(asn_DEF_DangerousEndOfQueueSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_DangerousEndOfQueueSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_DangerousEndOfQueueSubCauseCode_tags_1) + /sizeof(asn_DEF_DangerousEndOfQueueSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_DangerousEndOfQueueSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DangerousEndOfQueueSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + DangerousEndOfQueueSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/DangerousEndOfQueueSubCauseCode.h b/vanetza/asn1/its1/DangerousEndOfQueueSubCauseCode.h similarity index 100% rename from vanetza/asn1/its/DangerousEndOfQueueSubCauseCode.h rename to vanetza/asn1/its1/DangerousEndOfQueueSubCauseCode.h diff --git a/vanetza/asn1/its1/DangerousGoodsBasic.c b/vanetza/asn1/its1/DangerousGoodsBasic.c new file mode 100644 index 000000000..1c4b497b3 --- /dev/null +++ b/vanetza/asn1/its1/DangerousGoodsBasic.c @@ -0,0 +1,107 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DangerousGoodsBasic.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_DangerousGoodsBasic_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DangerousGoodsBasic_constr_1 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) */ +static const asn_INTEGER_enum_map_t asn_MAP_DangerousGoodsBasic_value2enum_1[] = { + { 0, 11, "explosives1" }, + { 1, 11, "explosives2" }, + { 2, 11, "explosives3" }, + { 3, 11, "explosives4" }, + { 4, 11, "explosives5" }, + { 5, 11, "explosives6" }, + { 6, 14, "flammableGases" }, + { 7, 17, "nonFlammableGases" }, + { 8, 10, "toxicGases" }, + { 9, 16, "flammableLiquids" }, + { 10, 15, "flammableSolids" }, + { 11, 39, "substancesLiableToSpontaneousCombustion" }, + { 12, 52, "substancesEmittingFlammableGasesUponContactWithWater" }, + { 13, 19, "oxidizingSubstances" }, + { 14, 16, "organicPeroxides" }, + { 15, 15, "toxicSubstances" }, + { 16, 20, "infectiousSubstances" }, + { 17, 19, "radioactiveMaterial" }, + { 18, 19, "corrosiveSubstances" }, + { 19, 32, "miscellaneousDangerousSubstances" } +}; +static const unsigned int asn_MAP_DangerousGoodsBasic_enum2value_1[] = { + 18, /* corrosiveSubstances(18) */ + 0, /* explosives1(0) */ + 1, /* explosives2(1) */ + 2, /* explosives3(2) */ + 3, /* explosives4(3) */ + 4, /* explosives5(4) */ + 5, /* explosives6(5) */ + 6, /* flammableGases(6) */ + 9, /* flammableLiquids(9) */ + 10, /* flammableSolids(10) */ + 16, /* infectiousSubstances(16) */ + 19, /* miscellaneousDangerousSubstances(19) */ + 7, /* nonFlammableGases(7) */ + 14, /* organicPeroxides(14) */ + 13, /* oxidizingSubstances(13) */ + 17, /* radioactiveMaterial(17) */ + 12, /* substancesEmittingFlammableGasesUponContactWithWater(12) */ + 11, /* substancesLiableToSpontaneousCombustion(11) */ + 8, /* toxicGases(8) */ + 15 /* toxicSubstances(15) */ +}; +const asn_INTEGER_specifics_t asn_SPC_DangerousGoodsBasic_specs_1 = { + asn_MAP_DangerousGoodsBasic_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_DangerousGoodsBasic_enum2value_1, /* N => "tag"; sorted by N */ + 20, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_DangerousGoodsBasic_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_DangerousGoodsBasic = { + "DangerousGoodsBasic", + "DangerousGoodsBasic", + &asn_OP_NativeEnumerated, + asn_DEF_DangerousGoodsBasic_tags_1, + sizeof(asn_DEF_DangerousGoodsBasic_tags_1) + /sizeof(asn_DEF_DangerousGoodsBasic_tags_1[0]), /* 1 */ + asn_DEF_DangerousGoodsBasic_tags_1, /* Same as above */ + sizeof(asn_DEF_DangerousGoodsBasic_tags_1) + /sizeof(asn_DEF_DangerousGoodsBasic_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_DangerousGoodsBasic_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DangerousGoodsBasic_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_DangerousGoodsBasic_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/DangerousGoodsBasic.h b/vanetza/asn1/its1/DangerousGoodsBasic.h similarity index 100% rename from vanetza/asn1/its/DangerousGoodsBasic.h rename to vanetza/asn1/its1/DangerousGoodsBasic.h diff --git a/vanetza/asn1/its1/DangerousGoodsContainer.c b/vanetza/asn1/its1/DangerousGoodsContainer.c new file mode 100644 index 000000000..87c2fb377 --- /dev/null +++ b/vanetza/asn1/its1/DangerousGoodsContainer.c @@ -0,0 +1,72 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/EN302637-2v141-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DangerousGoodsContainer.h" + +asn_TYPE_member_t asn_MBR_DangerousGoodsContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct DangerousGoodsContainer, dangerousGoodsBasic), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DangerousGoodsBasic, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dangerousGoodsBasic" + }, +}; +static const ber_tlv_tag_t asn_DEF_DangerousGoodsContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DangerousGoodsContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* dangerousGoodsBasic */ +}; +asn_SEQUENCE_specifics_t asn_SPC_DangerousGoodsContainer_specs_1 = { + sizeof(struct DangerousGoodsContainer), + offsetof(struct DangerousGoodsContainer, _asn_ctx), + asn_MAP_DangerousGoodsContainer_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_DangerousGoodsContainer = { + "DangerousGoodsContainer", + "DangerousGoodsContainer", + &asn_OP_SEQUENCE, + asn_DEF_DangerousGoodsContainer_tags_1, + sizeof(asn_DEF_DangerousGoodsContainer_tags_1) + /sizeof(asn_DEF_DangerousGoodsContainer_tags_1[0]), /* 1 */ + asn_DEF_DangerousGoodsContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_DangerousGoodsContainer_tags_1) + /sizeof(asn_DEF_DangerousGoodsContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DangerousGoodsContainer_1, + 1, /* Elements count */ + &asn_SPC_DangerousGoodsContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/DangerousGoodsContainer.h b/vanetza/asn1/its1/DangerousGoodsContainer.h similarity index 100% rename from vanetza/asn1/its/DangerousGoodsContainer.h rename to vanetza/asn1/its1/DangerousGoodsContainer.h diff --git a/vanetza/asn1/its1/DangerousGoodsExtended.c b/vanetza/asn1/its1/DangerousGoodsExtended.c new file mode 100644 index 000000000..3f3e755ed --- /dev/null +++ b/vanetza/asn1/its1/DangerousGoodsExtended.c @@ -0,0 +1,354 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DangerousGoodsExtended.h" + +static int check_permitted_alphabet_7(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_unNumber_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 9999L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_emergencyActionCode_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_7(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_companyName_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const UTF8String_t *st = (const UTF8String_t *)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 = UTF8String_length(st); + if((ssize_t)size < 0) { + ASN__CTFAIL(app_key, td, sptr, + "%s: UTF-8: broken encoding (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if((size >= 1UL && 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_unNumber_constr_3 CC_NOTUSED = { + { 2, 1 } /* (0..9999) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_unNumber_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 0, 9999 } /* (0..9999) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_emergencyActionCode_constr_7 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..24)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_emergencyActionCode_constr_7 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_companyName_constr_9 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_companyName_constr_9 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 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) */ +asn_TYPE_member_t asn_MBR_DangerousGoodsExtended_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct DangerousGoodsExtended, dangerousGoodsType), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DangerousGoodsBasic, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dangerousGoodsType" + }, + { ATF_NOFLAGS, 0, offsetof(struct DangerousGoodsExtended, unNumber), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_unNumber_constr_3, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_unNumber_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_unNumber_constraint_1 + }, + 0, 0, /* No default value */ + "unNumber" + }, + { ATF_NOFLAGS, 0, offsetof(struct DangerousGoodsExtended, elevatedTemperature), + (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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "elevatedTemperature" + }, + { ATF_NOFLAGS, 0, offsetof(struct DangerousGoodsExtended, tunnelsRestricted), + (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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "tunnelsRestricted" + }, + { ATF_NOFLAGS, 0, offsetof(struct DangerousGoodsExtended, limitedQuantity), + (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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "limitedQuantity" + }, + { ATF_POINTER, 3, offsetof(struct DangerousGoodsExtended, emergencyActionCode), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_IA5String, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_emergencyActionCode_constr_7, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_emergencyActionCode_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_emergencyActionCode_constraint_1 + }, + 0, 0, /* No default value */ + "emergencyActionCode" + }, + { ATF_POINTER, 2, offsetof(struct DangerousGoodsExtended, phoneNumber), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PhoneNumber, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "phoneNumber" + }, + { ATF_POINTER, 1, offsetof(struct DangerousGoodsExtended, companyName), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UTF8String, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_companyName_constr_9, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_companyName_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_companyName_constraint_1 + }, + 0, 0, /* No default value */ + "companyName" + }, +}; +static const int asn_MAP_DangerousGoodsExtended_oms_1[] = { 5, 6, 7 }; +static const ber_tlv_tag_t asn_DEF_DangerousGoodsExtended_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DangerousGoodsExtended_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dangerousGoodsType */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* unNumber */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* elevatedTemperature */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* tunnelsRestricted */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* limitedQuantity */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* emergencyActionCode */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* phoneNumber */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* companyName */ +}; +asn_SEQUENCE_specifics_t asn_SPC_DangerousGoodsExtended_specs_1 = { + sizeof(struct DangerousGoodsExtended), + offsetof(struct DangerousGoodsExtended, _asn_ctx), + asn_MAP_DangerousGoodsExtended_tag2el_1, + 8, /* Count of tags in the map */ + asn_MAP_DangerousGoodsExtended_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 8, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_DangerousGoodsExtended = { + "DangerousGoodsExtended", + "DangerousGoodsExtended", + &asn_OP_SEQUENCE, + asn_DEF_DangerousGoodsExtended_tags_1, + sizeof(asn_DEF_DangerousGoodsExtended_tags_1) + /sizeof(asn_DEF_DangerousGoodsExtended_tags_1[0]), /* 1 */ + asn_DEF_DangerousGoodsExtended_tags_1, /* Same as above */ + sizeof(asn_DEF_DangerousGoodsExtended_tags_1) + /sizeof(asn_DEF_DangerousGoodsExtended_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DangerousGoodsExtended_1, + 8, /* Elements count */ + &asn_SPC_DangerousGoodsExtended_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/DangerousGoodsExtended.h b/vanetza/asn1/its1/DangerousGoodsExtended.h similarity index 100% rename from vanetza/asn1/its/DangerousGoodsExtended.h rename to vanetza/asn1/its1/DangerousGoodsExtended.h diff --git a/vanetza/asn1/its1/DangerousSituationSubCauseCode.c b/vanetza/asn1/its1/DangerousSituationSubCauseCode.c new file mode 100644 index 000000000..58b4edaf0 --- /dev/null +++ b/vanetza/asn1/its1/DangerousSituationSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DangerousSituationSubCauseCode.h" + +int +DangerousSituationSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_DangerousSituationSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_DangerousSituationSubCauseCode_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_DangerousSituationSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_DangerousSituationSubCauseCode = { + "DangerousSituationSubCauseCode", + "DangerousSituationSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_DangerousSituationSubCauseCode_tags_1, + sizeof(asn_DEF_DangerousSituationSubCauseCode_tags_1) + /sizeof(asn_DEF_DangerousSituationSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_DangerousSituationSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_DangerousSituationSubCauseCode_tags_1) + /sizeof(asn_DEF_DangerousSituationSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_DangerousSituationSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DangerousSituationSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + DangerousSituationSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/DangerousSituationSubCauseCode.h b/vanetza/asn1/its1/DangerousSituationSubCauseCode.h similarity index 100% rename from vanetza/asn1/its/DangerousSituationSubCauseCode.h rename to vanetza/asn1/its1/DangerousSituationSubCauseCode.h diff --git a/vanetza/asn1/its/DataParameters.c b/vanetza/asn1/its1/DataParameters.c similarity index 95% rename from vanetza/asn1/its/DataParameters.c rename to vanetza/asn1/its1/DataParameters.c index debc4b587..348d7c8e2 100644 --- a/vanetza/asn1/its/DataParameters.c +++ b/vanetza/asn1/its1/DataParameters.c @@ -228,6 +228,9 @@ asn_TYPE_member_t asn_MBR_DataParameters_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_processMethod_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_processMethod_constraint_1 }, 0, 0, /* No default value */ @@ -245,6 +248,9 @@ asn_TYPE_member_t asn_MBR_DataParameters_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_processAgency_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_processAgency_constraint_1 }, 0, 0, /* No default value */ @@ -262,6 +268,9 @@ asn_TYPE_member_t asn_MBR_DataParameters_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_lastCheckedDate_constr_4, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_lastCheckedDate_constraint_1 }, 0, 0, /* No default value */ @@ -279,6 +288,9 @@ asn_TYPE_member_t asn_MBR_DataParameters_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_geoidUsed_constr_5, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_geoidUsed_constraint_1 }, 0, 0, /* No default value */ @@ -321,6 +333,9 @@ asn_TYPE_descriptor_t asn_DEF_DataParameters = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_DataParameters_1, diff --git a/vanetza/asn1/its/DataParameters.h b/vanetza/asn1/its1/DataParameters.h similarity index 100% rename from vanetza/asn1/its/DataParameters.h rename to vanetza/asn1/its1/DataParameters.h diff --git a/vanetza/asn1/its/DateAndTime.c b/vanetza/asn1/its1/DateAndTime.c similarity index 93% rename from vanetza/asn1/its/DateAndTime.c rename to vanetza/asn1/its1/DateAndTime.c index c8afae939..7411793e7 100644 --- a/vanetza/asn1/its/DateAndTime.c +++ b/vanetza/asn1/its1/DateAndTime.c @@ -131,6 +131,9 @@ static asn_TYPE_member_t asn_MBR_timeCompact_3[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_hours_constr_4, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_hours_constraint_3 }, 0, 0, /* No default value */ @@ -148,6 +151,9 @@ static asn_TYPE_member_t asn_MBR_timeCompact_3[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_mins_constr_5, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_mins_constraint_3 }, 0, 0, /* No default value */ @@ -165,6 +171,9 @@ static asn_TYPE_member_t asn_MBR_timeCompact_3[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_double_secs_constr_6, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_double_secs_constraint_3 }, 0, 0, /* No default value */ @@ -206,6 +215,9 @@ asn_TYPE_descriptor_t asn_DEF_timeCompact_3 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_timeCompact_3, @@ -226,6 +238,9 @@ asn_TYPE_member_t asn_MBR_DateAndTime_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -243,6 +258,9 @@ asn_TYPE_member_t asn_MBR_DateAndTime_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -281,6 +299,9 @@ asn_TYPE_descriptor_t asn_DEF_DateAndTime = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_DateAndTime_1, diff --git a/vanetza/asn1/its/DateAndTime.h b/vanetza/asn1/its1/DateAndTime.h similarity index 100% rename from vanetza/asn1/its/DateAndTime.h rename to vanetza/asn1/its1/DateAndTime.h diff --git a/vanetza/asn1/its/DateCompact.c b/vanetza/asn1/its1/DateCompact.c similarity index 94% rename from vanetza/asn1/its/DateCompact.c rename to vanetza/asn1/its1/DateCompact.c index faf733a57..6c42a372e 100644 --- a/vanetza/asn1/its/DateCompact.c +++ b/vanetza/asn1/its1/DateCompact.c @@ -131,6 +131,9 @@ asn_TYPE_member_t asn_MBR_DateCompact_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_year_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_year_constraint_1 }, 0, 0, /* No default value */ @@ -148,6 +151,9 @@ asn_TYPE_member_t asn_MBR_DateCompact_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_month_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_month_constraint_1 }, 0, 0, /* No default value */ @@ -165,6 +171,9 @@ asn_TYPE_member_t asn_MBR_DateCompact_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_day_constr_4, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_day_constraint_1 }, 0, 0, /* No default value */ @@ -204,6 +213,9 @@ asn_TYPE_descriptor_t asn_DEF_DateCompact = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_DateCompact_1, diff --git a/vanetza/asn1/its/DateCompact.h b/vanetza/asn1/its1/DateCompact.h similarity index 100% rename from vanetza/asn1/its/DateCompact.h rename to vanetza/asn1/its1/DateCompact.h diff --git a/vanetza/asn1/its/DayOfWeek.c b/vanetza/asn1/its1/DayOfWeek.c similarity index 89% rename from vanetza/asn1/its/DayOfWeek.c rename to vanetza/asn1/its1/DayOfWeek.c index 020f1a042..3b2262713 100644 --- a/vanetza/asn1/its/DayOfWeek.c +++ b/vanetza/asn1/its1/DayOfWeek.c @@ -54,6 +54,10 @@ asn_per_constraints_t asn_PER_type_DayOfWeek_constr_1 CC_NOTUSED = { 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_DayOfWeek_constr_1 CC_NOTUSED = { + 8}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_DayOfWeek_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) }; @@ -74,6 +78,9 @@ asn_TYPE_descriptor_t asn_DEF_DayOfWeek = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_DayOfWeek_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_DayOfWeek_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ DayOfWeek_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/DayOfWeek.h b/vanetza/asn1/its1/DayOfWeek.h similarity index 100% rename from vanetza/asn1/its/DayOfWeek.h rename to vanetza/asn1/its1/DayOfWeek.h diff --git a/vanetza/asn1/its/DebitRq.c b/vanetza/asn1/its1/DebitRq.c similarity index 92% rename from vanetza/asn1/its/DebitRq.c rename to vanetza/asn1/its1/DebitRq.c index 11c490e96..ce5f6ad9d 100644 --- a/vanetza/asn1/its/DebitRq.c +++ b/vanetza/asn1/its1/DebitRq.c @@ -57,6 +57,9 @@ static asn_TYPE_member_t asn_MBR_DebitRq_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -74,6 +77,9 @@ static asn_TYPE_member_t asn_MBR_DebitRq_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -91,6 +97,9 @@ static asn_TYPE_member_t asn_MBR_DebitRq_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_keyRef_constr_4, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_keyRef_constraint_1 }, 0, 0, /* No default value */ @@ -130,6 +139,9 @@ asn_TYPE_descriptor_t asn_DEF_DebitRq = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_DebitRq_1, diff --git a/vanetza/asn1/its/DebitRq.h b/vanetza/asn1/its1/DebitRq.h similarity index 100% rename from vanetza/asn1/its/DebitRq.h rename to vanetza/asn1/its1/DebitRq.h diff --git a/vanetza/asn1/its/DebitRs.c b/vanetza/asn1/its1/DebitRs.c similarity index 90% rename from vanetza/asn1/its/DebitRs.c rename to vanetza/asn1/its1/DebitRs.c index 623392baf..5fde8f817 100644 --- a/vanetza/asn1/its/DebitRs.c +++ b/vanetza/asn1/its1/DebitRs.c @@ -20,6 +20,9 @@ static asn_TYPE_member_t asn_MBR_DebitRs_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ static asn_TYPE_member_t asn_MBR_DebitRs_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_DebitRs = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_DebitRs_1, diff --git a/vanetza/asn1/its/DebitRs.h b/vanetza/asn1/its1/DebitRs.h similarity index 100% rename from vanetza/asn1/its/DebitRs.h rename to vanetza/asn1/its1/DebitRs.h diff --git a/vanetza/asn1/its/DecentralizedEnvironmentalNotificationMessage.c b/vanetza/asn1/its1/DecentralizedEnvironmentalNotificationMessage.c similarity index 91% rename from vanetza/asn1/its/DecentralizedEnvironmentalNotificationMessage.c rename to vanetza/asn1/its1/DecentralizedEnvironmentalNotificationMessage.c index 2b01e1a73..12f3b21b1 100644 --- a/vanetza/asn1/its/DecentralizedEnvironmentalNotificationMessage.c +++ b/vanetza/asn1/its1/DecentralizedEnvironmentalNotificationMessage.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_DecentralizedEnvironmentalNotificationMessage_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_DecentralizedEnvironmentalNotificationMessage_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_DecentralizedEnvironmentalNotificationMessage_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -71,6 +80,9 @@ asn_TYPE_member_t asn_MBR_DecentralizedEnvironmentalNotificationMessage_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -113,6 +125,9 @@ asn_TYPE_descriptor_t asn_DEF_DecentralizedEnvironmentalNotificationMessage = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_DecentralizedEnvironmentalNotificationMessage_1, diff --git a/vanetza/asn1/its/DecentralizedEnvironmentalNotificationMessage.h b/vanetza/asn1/its1/DecentralizedEnvironmentalNotificationMessage.h similarity index 100% rename from vanetza/asn1/its/DecentralizedEnvironmentalNotificationMessage.h rename to vanetza/asn1/its1/DecentralizedEnvironmentalNotificationMessage.h diff --git a/vanetza/asn1/its/DefinitionAccuracy.c b/vanetza/asn1/its1/DefinitionAccuracy.c similarity index 96% rename from vanetza/asn1/its/DefinitionAccuracy.c rename to vanetza/asn1/its1/DefinitionAccuracy.c index a9f250b3b..47108e975 100644 --- a/vanetza/asn1/its/DefinitionAccuracy.c +++ b/vanetza/asn1/its1/DefinitionAccuracy.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_DefinitionAccuracy = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_DefinitionAccuracy_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ DefinitionAccuracy_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/DefinitionAccuracy.h b/vanetza/asn1/its1/DefinitionAccuracy.h similarity index 100% rename from vanetza/asn1/its/DefinitionAccuracy.h rename to vanetza/asn1/its1/DefinitionAccuracy.h diff --git a/vanetza/asn1/its1/DeltaAltitude.c b/vanetza/asn1/its1/DeltaAltitude.c new file mode 100644 index 000000000..145088d78 --- /dev/null +++ b/vanetza/asn1/its1/DeltaAltitude.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DeltaAltitude.h" + +int +DeltaAltitude_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 >= -12700L && value <= 12800L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_DeltaAltitude_constr_1 CC_NOTUSED = { + { 2, 0 } /* (-12700..12800) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DeltaAltitude_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, -12700, 12800 } /* (-12700..12800) */, + { 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_DeltaAltitude_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_DeltaAltitude = { + "DeltaAltitude", + "DeltaAltitude", + &asn_OP_NativeInteger, + asn_DEF_DeltaAltitude_tags_1, + sizeof(asn_DEF_DeltaAltitude_tags_1) + /sizeof(asn_DEF_DeltaAltitude_tags_1[0]), /* 1 */ + asn_DEF_DeltaAltitude_tags_1, /* Same as above */ + sizeof(asn_DEF_DeltaAltitude_tags_1) + /sizeof(asn_DEF_DeltaAltitude_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_DeltaAltitude_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DeltaAltitude_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + DeltaAltitude_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/DeltaAltitude.h b/vanetza/asn1/its1/DeltaAltitude.h similarity index 100% rename from vanetza/asn1/its/DeltaAltitude.h rename to vanetza/asn1/its1/DeltaAltitude.h diff --git a/vanetza/asn1/its/DeltaAngle.c b/vanetza/asn1/its1/DeltaAngle.c similarity index 96% rename from vanetza/asn1/its/DeltaAngle.c rename to vanetza/asn1/its1/DeltaAngle.c index a9d884092..86278929e 100644 --- a/vanetza/asn1/its/DeltaAngle.c +++ b/vanetza/asn1/its1/DeltaAngle.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_DeltaAngle = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_DeltaAngle_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ DeltaAngle_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/DeltaAngle.h b/vanetza/asn1/its1/DeltaAngle.h similarity index 100% rename from vanetza/asn1/its/DeltaAngle.h rename to vanetza/asn1/its1/DeltaAngle.h diff --git a/vanetza/asn1/its1/DeltaLatitude.c b/vanetza/asn1/its1/DeltaLatitude.c new file mode 100644 index 000000000..7c75bd425 --- /dev/null +++ b/vanetza/asn1/its1/DeltaLatitude.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DeltaLatitude.h" + +int +DeltaLatitude_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 >= -131071L && value <= 131072L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_DeltaLatitude_constr_1 CC_NOTUSED = { + { 4, 0 } /* (-131071..131072) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DeltaLatitude_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 18, -1, -131071, 131072 } /* (-131071..131072) */, + { 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_DeltaLatitude_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_DeltaLatitude = { + "DeltaLatitude", + "DeltaLatitude", + &asn_OP_NativeInteger, + asn_DEF_DeltaLatitude_tags_1, + sizeof(asn_DEF_DeltaLatitude_tags_1) + /sizeof(asn_DEF_DeltaLatitude_tags_1[0]), /* 1 */ + asn_DEF_DeltaLatitude_tags_1, /* Same as above */ + sizeof(asn_DEF_DeltaLatitude_tags_1) + /sizeof(asn_DEF_DeltaLatitude_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_DeltaLatitude_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DeltaLatitude_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + DeltaLatitude_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/DeltaLatitude.h b/vanetza/asn1/its1/DeltaLatitude.h similarity index 100% rename from vanetza/asn1/its/DeltaLatitude.h rename to vanetza/asn1/its1/DeltaLatitude.h diff --git a/vanetza/asn1/its1/DeltaLongitude.c b/vanetza/asn1/its1/DeltaLongitude.c new file mode 100644 index 000000000..506aa2907 --- /dev/null +++ b/vanetza/asn1/its1/DeltaLongitude.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DeltaLongitude.h" + +int +DeltaLongitude_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 >= -131071L && value <= 131072L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_DeltaLongitude_constr_1 CC_NOTUSED = { + { 4, 0 } /* (-131071..131072) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DeltaLongitude_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 18, -1, -131071, 131072 } /* (-131071..131072) */, + { 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_DeltaLongitude_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_DeltaLongitude = { + "DeltaLongitude", + "DeltaLongitude", + &asn_OP_NativeInteger, + asn_DEF_DeltaLongitude_tags_1, + sizeof(asn_DEF_DeltaLongitude_tags_1) + /sizeof(asn_DEF_DeltaLongitude_tags_1[0]), /* 1 */ + asn_DEF_DeltaLongitude_tags_1, /* Same as above */ + sizeof(asn_DEF_DeltaLongitude_tags_1) + /sizeof(asn_DEF_DeltaLongitude_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_DeltaLongitude_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DeltaLongitude_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + DeltaLongitude_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/DeltaLongitude.h b/vanetza/asn1/its1/DeltaLongitude.h similarity index 100% rename from vanetza/asn1/its/DeltaLongitude.h rename to vanetza/asn1/its1/DeltaLongitude.h diff --git a/vanetza/asn1/its/DeltaPosition.c b/vanetza/asn1/its1/DeltaPosition.c similarity index 90% rename from vanetza/asn1/its/DeltaPosition.c rename to vanetza/asn1/its1/DeltaPosition.c index 1cb87e5cf..e67600bed 100644 --- a/vanetza/asn1/its/DeltaPosition.c +++ b/vanetza/asn1/its1/DeltaPosition.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_DeltaPosition_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_DeltaPosition_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_DeltaPosition = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_DeltaPosition_1, diff --git a/vanetza/asn1/its/DeltaPosition.h b/vanetza/asn1/its1/DeltaPosition.h similarity index 100% rename from vanetza/asn1/its/DeltaPosition.h rename to vanetza/asn1/its1/DeltaPosition.h diff --git a/vanetza/asn1/its/DeltaPositions.c b/vanetza/asn1/its1/DeltaPositions.c similarity index 93% rename from vanetza/asn1/its/DeltaPositions.c rename to vanetza/asn1/its1/DeltaPositions.c index 4eb01f3a1..558299517 100644 --- a/vanetza/asn1/its/DeltaPositions.c +++ b/vanetza/asn1/its1/DeltaPositions.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_DeltaPositions_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_DeltaPositions = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_DeltaPositions_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_DeltaPositions_1, diff --git a/vanetza/asn1/its/DeltaPositions.h b/vanetza/asn1/its1/DeltaPositions.h similarity index 100% rename from vanetza/asn1/its/DeltaPositions.h rename to vanetza/asn1/its1/DeltaPositions.h diff --git a/vanetza/asn1/its1/DeltaReferencePosition.c b/vanetza/asn1/its1/DeltaReferencePosition.c new file mode 100644 index 000000000..7b00bb2dc --- /dev/null +++ b/vanetza/asn1/its1/DeltaReferencePosition.c @@ -0,0 +1,114 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DeltaReferencePosition.h" + +asn_TYPE_member_t asn_MBR_DeltaReferencePosition_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct DeltaReferencePosition, deltaLatitude), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DeltaLatitude, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "deltaLatitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct DeltaReferencePosition, deltaLongitude), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DeltaLongitude, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "deltaLongitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct DeltaReferencePosition, deltaAltitude), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DeltaAltitude, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "deltaAltitude" + }, +}; +static const ber_tlv_tag_t asn_DEF_DeltaReferencePosition_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DeltaReferencePosition_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* deltaLatitude */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* deltaLongitude */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* deltaAltitude */ +}; +asn_SEQUENCE_specifics_t asn_SPC_DeltaReferencePosition_specs_1 = { + sizeof(struct DeltaReferencePosition), + offsetof(struct DeltaReferencePosition, _asn_ctx), + asn_MAP_DeltaReferencePosition_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_DeltaReferencePosition = { + "DeltaReferencePosition", + "DeltaReferencePosition", + &asn_OP_SEQUENCE, + asn_DEF_DeltaReferencePosition_tags_1, + sizeof(asn_DEF_DeltaReferencePosition_tags_1) + /sizeof(asn_DEF_DeltaReferencePosition_tags_1[0]), /* 1 */ + asn_DEF_DeltaReferencePosition_tags_1, /* Same as above */ + sizeof(asn_DEF_DeltaReferencePosition_tags_1) + /sizeof(asn_DEF_DeltaReferencePosition_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DeltaReferencePosition_1, + 3, /* Elements count */ + &asn_SPC_DeltaReferencePosition_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/DeltaReferencePosition.h b/vanetza/asn1/its1/DeltaReferencePosition.h similarity index 100% rename from vanetza/asn1/its/DeltaReferencePosition.h rename to vanetza/asn1/its1/DeltaReferencePosition.h diff --git a/vanetza/asn1/its/DeltaReferencePositions.c b/vanetza/asn1/its1/DeltaReferencePositions.c similarity index 93% rename from vanetza/asn1/its/DeltaReferencePositions.c rename to vanetza/asn1/its1/DeltaReferencePositions.c index 7ec9ae868..a3a78d71e 100644 --- a/vanetza/asn1/its/DeltaReferencePositions.c +++ b/vanetza/asn1/its1/DeltaReferencePositions.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_DeltaReferencePositions_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_DeltaReferencePositions = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_DeltaReferencePositions_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_DeltaReferencePositions_1, diff --git a/vanetza/asn1/its/DeltaReferencePositions.h b/vanetza/asn1/its1/DeltaReferencePositions.h similarity index 100% rename from vanetza/asn1/its/DeltaReferencePositions.h rename to vanetza/asn1/its1/DeltaReferencePositions.h diff --git a/vanetza/asn1/its/DeltaTime.c b/vanetza/asn1/its1/DeltaTime.c similarity index 96% rename from vanetza/asn1/its/DeltaTime.c rename to vanetza/asn1/its1/DeltaTime.c index 82c54584b..967f7d09c 100644 --- a/vanetza/asn1/its/DeltaTime.c +++ b/vanetza/asn1/its1/DeltaTime.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_DeltaTime = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_DeltaTime_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ DeltaTime_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/DeltaTime.h b/vanetza/asn1/its1/DeltaTime.h similarity index 100% rename from vanetza/asn1/its/DeltaTime.h rename to vanetza/asn1/its1/DeltaTime.h diff --git a/vanetza/asn1/its/Depth.c b/vanetza/asn1/its1/Depth.c similarity index 95% rename from vanetza/asn1/its/Depth.c rename to vanetza/asn1/its1/Depth.c index a376db7fb..293e57c28 100644 --- a/vanetza/asn1/its/Depth.c +++ b/vanetza/asn1/its1/Depth.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Depth = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Depth_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Depth_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/Depth.h b/vanetza/asn1/its1/Depth.h similarity index 100% rename from vanetza/asn1/its/Depth.h rename to vanetza/asn1/its1/Depth.h diff --git a/vanetza/asn1/its/DescriptiveCharacteristics.c b/vanetza/asn1/its1/DescriptiveCharacteristics.c similarity index 96% rename from vanetza/asn1/its/DescriptiveCharacteristics.c rename to vanetza/asn1/its1/DescriptiveCharacteristics.c index 75718902a..a083875f5 100644 --- a/vanetza/asn1/its/DescriptiveCharacteristics.c +++ b/vanetza/asn1/its1/DescriptiveCharacteristics.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_DescriptiveCharacteristics = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_DescriptiveCharacteristics_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ DescriptiveCharacteristics_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/DescriptiveCharacteristics.h b/vanetza/asn1/its1/DescriptiveCharacteristics.h similarity index 100% rename from vanetza/asn1/its/DescriptiveCharacteristics.h rename to vanetza/asn1/its1/DescriptiveCharacteristics.h diff --git a/vanetza/asn1/its/DescriptiveName.c b/vanetza/asn1/its1/DescriptiveName.c similarity index 96% rename from vanetza/asn1/its/DescriptiveName.c rename to vanetza/asn1/its1/DescriptiveName.c index 00eb5c6ae..5207554ad 100644 --- a/vanetza/asn1/its/DescriptiveName.c +++ b/vanetza/asn1/its1/DescriptiveName.c @@ -83,6 +83,9 @@ asn_TYPE_descriptor_t asn_DEF_DescriptiveName = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_DescriptiveName_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ DescriptiveName_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/DescriptiveName.h b/vanetza/asn1/its1/DescriptiveName.h similarity index 100% rename from vanetza/asn1/its/DescriptiveName.h rename to vanetza/asn1/its1/DescriptiveName.h diff --git a/vanetza/asn1/its/DestinationPlace.c b/vanetza/asn1/its1/DestinationPlace.c similarity index 92% rename from vanetza/asn1/its/DestinationPlace.c rename to vanetza/asn1/its1/DestinationPlace.c index d4ead829f..3824b765c 100644 --- a/vanetza/asn1/its/DestinationPlace.c +++ b/vanetza/asn1/its1/DestinationPlace.c @@ -88,6 +88,9 @@ asn_TYPE_member_t asn_MBR_DestinationPlace_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -105,6 +108,9 @@ asn_TYPE_member_t asn_MBR_DestinationPlace_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_destRSCode_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_destRSCode_constraint_1 }, 0, 0, /* No default value */ @@ -122,6 +128,9 @@ asn_TYPE_member_t asn_MBR_DestinationPlace_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -139,6 +148,9 @@ asn_TYPE_member_t asn_MBR_DestinationPlace_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_placeNameIdentification_constr_5, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_placeNameIdentification_constraint_1 }, 0, 0, /* No default value */ @@ -156,6 +168,9 @@ asn_TYPE_member_t asn_MBR_DestinationPlace_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -199,6 +214,9 @@ asn_TYPE_descriptor_t asn_DEF_DestinationPlace = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_DestinationPlace_1, diff --git a/vanetza/asn1/its/DestinationPlace.h b/vanetza/asn1/its1/DestinationPlace.h similarity index 100% rename from vanetza/asn1/its/DestinationPlace.h rename to vanetza/asn1/its1/DestinationPlace.h diff --git a/vanetza/asn1/its/DestinationPlaces.c b/vanetza/asn1/its1/DestinationPlaces.c similarity index 93% rename from vanetza/asn1/its/DestinationPlaces.c rename to vanetza/asn1/its1/DestinationPlaces.c index b980f6082..deed0d527 100644 --- a/vanetza/asn1/its/DestinationPlaces.c +++ b/vanetza/asn1/its1/DestinationPlaces.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_DestinationPlaces_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_DestinationPlaces = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_DestinationPlaces_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_DestinationPlaces_1, diff --git a/vanetza/asn1/its/DestinationPlaces.h b/vanetza/asn1/its1/DestinationPlaces.h similarity index 100% rename from vanetza/asn1/its/DestinationPlaces.h rename to vanetza/asn1/its1/DestinationPlaces.h diff --git a/vanetza/asn1/its/DestinationRoad.c b/vanetza/asn1/its1/DestinationRoad.c similarity index 92% rename from vanetza/asn1/its/DestinationRoad.c rename to vanetza/asn1/its1/DestinationRoad.c index 032c1b44b..5ed3409d5 100644 --- a/vanetza/asn1/its/DestinationRoad.c +++ b/vanetza/asn1/its1/DestinationRoad.c @@ -57,6 +57,9 @@ asn_TYPE_member_t asn_MBR_DestinationRoad_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -74,6 +77,9 @@ asn_TYPE_member_t asn_MBR_DestinationRoad_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_roadNumberIdentifier_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_roadNumberIdentifier_constraint_1 }, 0, 0, /* No default value */ @@ -91,6 +97,9 @@ asn_TYPE_member_t asn_MBR_DestinationRoad_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -132,6 +141,9 @@ asn_TYPE_descriptor_t asn_DEF_DestinationRoad = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_DestinationRoad_1, diff --git a/vanetza/asn1/its/DestinationRoad.h b/vanetza/asn1/its1/DestinationRoad.h similarity index 100% rename from vanetza/asn1/its/DestinationRoad.h rename to vanetza/asn1/its1/DestinationRoad.h diff --git a/vanetza/asn1/its/DestinationRoadType.c b/vanetza/asn1/its1/DestinationRoadType.c similarity index 96% rename from vanetza/asn1/its/DestinationRoadType.c rename to vanetza/asn1/its1/DestinationRoadType.c index a9bd166ad..b12a6694c 100644 --- a/vanetza/asn1/its/DestinationRoadType.c +++ b/vanetza/asn1/its1/DestinationRoadType.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_DestinationRoadType = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_DestinationRoadType_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ DestinationRoadType_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/DestinationRoadType.h b/vanetza/asn1/its1/DestinationRoadType.h similarity index 100% rename from vanetza/asn1/its/DestinationRoadType.h rename to vanetza/asn1/its1/DestinationRoadType.h diff --git a/vanetza/asn1/its/DestinationRoads.c b/vanetza/asn1/its1/DestinationRoads.c similarity index 93% rename from vanetza/asn1/its/DestinationRoads.c rename to vanetza/asn1/its1/DestinationRoads.c index 640468321..39d10c2ad 100644 --- a/vanetza/asn1/its/DestinationRoads.c +++ b/vanetza/asn1/its1/DestinationRoads.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_DestinationRoads_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_DestinationRoads = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_DestinationRoads_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_DestinationRoads_1, diff --git a/vanetza/asn1/its/DestinationRoads.h b/vanetza/asn1/its1/DestinationRoads.h similarity index 100% rename from vanetza/asn1/its/DestinationRoads.h rename to vanetza/asn1/its1/DestinationRoads.h diff --git a/vanetza/asn1/its/DestinationType.c b/vanetza/asn1/its1/DestinationType.c similarity index 96% rename from vanetza/asn1/its/DestinationType.c rename to vanetza/asn1/its1/DestinationType.c index 888a1d901..8a1bf5dab 100644 --- a/vanetza/asn1/its/DestinationType.c +++ b/vanetza/asn1/its1/DestinationType.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_DestinationType = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_DestinationType_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ DestinationType_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/DestinationType.h b/vanetza/asn1/its1/DestinationType.h similarity index 100% rename from vanetza/asn1/its/DestinationType.h rename to vanetza/asn1/its1/DestinationType.h diff --git a/vanetza/asn1/its/DetectionArea.c b/vanetza/asn1/its1/DetectionArea.c similarity index 89% rename from vanetza/asn1/its/DetectionArea.c rename to vanetza/asn1/its1/DetectionArea.c index 227be46db..4731fe378 100644 --- a/vanetza/asn1/its/DetectionArea.c +++ b/vanetza/asn1/its1/DetectionArea.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_DetectionArea_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_DetectionArea_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -66,6 +72,9 @@ asn_TYPE_member_t asn_MBR_DetectionArea_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -83,6 +92,9 @@ asn_TYPE_member_t asn_MBR_DetectionArea_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -100,6 +112,9 @@ asn_TYPE_member_t asn_MBR_DetectionArea_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -117,6 +132,9 @@ asn_TYPE_member_t asn_MBR_DetectionArea_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -156,6 +174,9 @@ asn_TYPE_descriptor_t asn_DEF_DetectionArea = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_DetectionArea_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_DetectionArea_1, diff --git a/vanetza/asn1/its/DetectionArea.h b/vanetza/asn1/its1/DetectionArea.h similarity index 100% rename from vanetza/asn1/its/DetectionArea.h rename to vanetza/asn1/its1/DetectionArea.h diff --git a/vanetza/asn1/its/DieselEmissionValues.c b/vanetza/asn1/its1/DieselEmissionValues.c similarity index 92% rename from vanetza/asn1/its/DieselEmissionValues.c rename to vanetza/asn1/its1/DieselEmissionValues.c index fff80bda6..e9b861a7d 100644 --- a/vanetza/asn1/its/DieselEmissionValues.c +++ b/vanetza/asn1/its1/DieselEmissionValues.c @@ -57,6 +57,9 @@ static asn_TYPE_member_t asn_MBR_particulate_2[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -74,6 +77,9 @@ static asn_TYPE_member_t asn_MBR_particulate_2[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_value_constr_4, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_value_constraint_2 }, 0, 0, /* No default value */ @@ -114,6 +120,9 @@ asn_TYPE_descriptor_t asn_DEF_particulate_2 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_particulate_2, @@ -134,6 +143,9 @@ asn_TYPE_member_t asn_MBR_DieselEmissionValues_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -151,6 +163,9 @@ asn_TYPE_member_t asn_MBR_DieselEmissionValues_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -189,6 +204,9 @@ asn_TYPE_descriptor_t asn_DEF_DieselEmissionValues = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_DieselEmissionValues_1, diff --git a/vanetza/asn1/its/DieselEmissionValues.h b/vanetza/asn1/its1/DieselEmissionValues.h similarity index 100% rename from vanetza/asn1/its/DieselEmissionValues.h rename to vanetza/asn1/its1/DieselEmissionValues.h diff --git a/vanetza/asn1/its1/DigitalMap.c b/vanetza/asn1/its1/DigitalMap.c new file mode 100644 index 000000000..528b4314b --- /dev/null +++ b/vanetza/asn1/its1/DigitalMap.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DigitalMap.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_DigitalMap_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..256)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_DigitalMap_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) */ +static asn_TYPE_member_t asn_MBR_DigitalMap_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_ReferencePosition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_DigitalMap_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_DigitalMap_specs_1 = { + sizeof(struct DigitalMap), + offsetof(struct DigitalMap, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_DigitalMap = { + "DigitalMap", + "DigitalMap", + &asn_OP_SEQUENCE_OF, + asn_DEF_DigitalMap_tags_1, + sizeof(asn_DEF_DigitalMap_tags_1) + /sizeof(asn_DEF_DigitalMap_tags_1[0]), /* 1 */ + asn_DEF_DigitalMap_tags_1, /* Same as above */ + sizeof(asn_DEF_DigitalMap_tags_1) + /sizeof(asn_DEF_DigitalMap_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_DigitalMap_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DigitalMap_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_DigitalMap_1, + 1, /* Single element */ + &asn_SPC_DigitalMap_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/DigitalMap.h b/vanetza/asn1/its1/DigitalMap.h similarity index 100% rename from vanetza/asn1/its/DigitalMap.h rename to vanetza/asn1/its1/DigitalMap.h diff --git a/vanetza/asn1/its1/Direction.c b/vanetza/asn1/its1/Direction.c new file mode 100644 index 000000000..5e0960be9 --- /dev/null +++ b/vanetza/asn1/its1/Direction.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "IVI" + * found in "build.asn1/iso/ISO19321.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Direction.h" + +int +Direction_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 <= 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 NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_Direction_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..3) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Direction_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) */ +static const ber_tlv_tag_t asn_DEF_Direction_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_Direction = { + "Direction", + "Direction", + &asn_OP_NativeInteger, + asn_DEF_Direction_tags_1, + sizeof(asn_DEF_Direction_tags_1) + /sizeof(asn_DEF_Direction_tags_1[0]), /* 1 */ + asn_DEF_Direction_tags_1, /* Same as above */ + sizeof(asn_DEF_Direction_tags_1) + /sizeof(asn_DEF_Direction_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_Direction_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Direction_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + Direction_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/Direction.h b/vanetza/asn1/its1/Direction.h similarity index 100% rename from vanetza/asn1/its/Direction.h rename to vanetza/asn1/its1/Direction.h diff --git a/vanetza/asn1/its/Distance.c b/vanetza/asn1/its1/Distance.c similarity index 94% rename from vanetza/asn1/its/Distance.c rename to vanetza/asn1/its1/Distance.c index d3abec3a0..6b6243814 100644 --- a/vanetza/asn1/its/Distance.c +++ b/vanetza/asn1/its1/Distance.c @@ -94,6 +94,9 @@ asn_TYPE_member_t asn_MBR_Distance_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_value_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_value_constraint_1 }, 0, 0, /* No default value */ @@ -111,6 +114,9 @@ asn_TYPE_member_t asn_MBR_Distance_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_unit_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_unit_constraint_1 }, 0, 0, /* No default value */ @@ -149,6 +155,9 @@ asn_TYPE_descriptor_t asn_DEF_Distance = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Distance_1, diff --git a/vanetza/asn1/its/Distance.h b/vanetza/asn1/its1/Distance.h similarity index 100% rename from vanetza/asn1/its/Distance.h rename to vanetza/asn1/its1/Distance.h diff --git a/vanetza/asn1/its/DistanceConfidence.c b/vanetza/asn1/its1/DistanceConfidence.c similarity index 96% rename from vanetza/asn1/its/DistanceConfidence.c rename to vanetza/asn1/its1/DistanceConfidence.c index e508c2bc2..71478fb52 100644 --- a/vanetza/asn1/its/DistanceConfidence.c +++ b/vanetza/asn1/its1/DistanceConfidence.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_DistanceConfidence = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_DistanceConfidence_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ DistanceConfidence_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/DistanceConfidence.h b/vanetza/asn1/its1/DistanceConfidence.h similarity index 100% rename from vanetza/asn1/its/DistanceConfidence.h rename to vanetza/asn1/its1/DistanceConfidence.h diff --git a/vanetza/asn1/its/DistanceOrDuration.c b/vanetza/asn1/its1/DistanceOrDuration.c similarity index 94% rename from vanetza/asn1/its/DistanceOrDuration.c rename to vanetza/asn1/its1/DistanceOrDuration.c index 6e520bad4..eb11d007b 100644 --- a/vanetza/asn1/its/DistanceOrDuration.c +++ b/vanetza/asn1/its1/DistanceOrDuration.c @@ -94,6 +94,9 @@ asn_TYPE_member_t asn_MBR_DistanceOrDuration_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_value_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_value_constraint_1 }, 0, 0, /* No default value */ @@ -111,6 +114,9 @@ asn_TYPE_member_t asn_MBR_DistanceOrDuration_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_unit_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_unit_constraint_1 }, 0, 0, /* No default value */ @@ -149,6 +155,9 @@ asn_TYPE_descriptor_t asn_DEF_DistanceOrDuration = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_DistanceOrDuration_1, diff --git a/vanetza/asn1/its/DistanceOrDuration.h b/vanetza/asn1/its1/DistanceOrDuration.h similarity index 100% rename from vanetza/asn1/its/DistanceOrDuration.h rename to vanetza/asn1/its1/DistanceOrDuration.h diff --git a/vanetza/asn1/its/DistanceValue.c b/vanetza/asn1/its1/DistanceValue.c similarity index 96% rename from vanetza/asn1/its/DistanceValue.c rename to vanetza/asn1/its1/DistanceValue.c index 6033430d4..2f64ef48d 100644 --- a/vanetza/asn1/its/DistanceValue.c +++ b/vanetza/asn1/its1/DistanceValue.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_DistanceValue = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_DistanceValue_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ DistanceValue_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/DistanceValue.h b/vanetza/asn1/its1/DistanceValue.h similarity index 100% rename from vanetza/asn1/its/DistanceValue.h rename to vanetza/asn1/its1/DistanceValue.h diff --git a/vanetza/asn1/its1/DriveDirection.c b/vanetza/asn1/its1/DriveDirection.c new file mode 100644 index 000000000..d4687f813 --- /dev/null +++ b/vanetza/asn1/its1/DriveDirection.c @@ -0,0 +1,73 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DriveDirection.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_DriveDirection_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DriveDirection_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_DriveDirection_value2enum_1[] = { + { 0, 7, "forward" }, + { 1, 8, "backward" }, + { 2, 11, "unavailable" } +}; +static const unsigned int asn_MAP_DriveDirection_enum2value_1[] = { + 1, /* backward(1) */ + 0, /* forward(0) */ + 2 /* unavailable(2) */ +}; +const asn_INTEGER_specifics_t asn_SPC_DriveDirection_specs_1 = { + asn_MAP_DriveDirection_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_DriveDirection_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_DriveDirection_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_DriveDirection = { + "DriveDirection", + "DriveDirection", + &asn_OP_NativeEnumerated, + asn_DEF_DriveDirection_tags_1, + sizeof(asn_DEF_DriveDirection_tags_1) + /sizeof(asn_DEF_DriveDirection_tags_1[0]), /* 1 */ + asn_DEF_DriveDirection_tags_1, /* Same as above */ + sizeof(asn_DEF_DriveDirection_tags_1) + /sizeof(asn_DEF_DriveDirection_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_DriveDirection_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DriveDirection_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_DriveDirection_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/DriveDirection.h b/vanetza/asn1/its1/DriveDirection.h similarity index 100% rename from vanetza/asn1/its/DriveDirection.h rename to vanetza/asn1/its1/DriveDirection.h diff --git a/vanetza/asn1/its/DrivenLineOffsetLg.c b/vanetza/asn1/its1/DrivenLineOffsetLg.c similarity index 96% rename from vanetza/asn1/its/DrivenLineOffsetLg.c rename to vanetza/asn1/its1/DrivenLineOffsetLg.c index b86614634..62b504ae0 100644 --- a/vanetza/asn1/its/DrivenLineOffsetLg.c +++ b/vanetza/asn1/its1/DrivenLineOffsetLg.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_DrivenLineOffsetLg = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_DrivenLineOffsetLg_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ DrivenLineOffsetLg_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/DrivenLineOffsetLg.h b/vanetza/asn1/its1/DrivenLineOffsetLg.h similarity index 100% rename from vanetza/asn1/its/DrivenLineOffsetLg.h rename to vanetza/asn1/its1/DrivenLineOffsetLg.h diff --git a/vanetza/asn1/its/DrivenLineOffsetSm.c b/vanetza/asn1/its1/DrivenLineOffsetSm.c similarity index 96% rename from vanetza/asn1/its/DrivenLineOffsetSm.c rename to vanetza/asn1/its1/DrivenLineOffsetSm.c index 9686fda2a..9e9e66aaa 100644 --- a/vanetza/asn1/its/DrivenLineOffsetSm.c +++ b/vanetza/asn1/its1/DrivenLineOffsetSm.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_DrivenLineOffsetSm = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_DrivenLineOffsetSm_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ DrivenLineOffsetSm_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/DrivenLineOffsetSm.h b/vanetza/asn1/its1/DrivenLineOffsetSm.h similarity index 100% rename from vanetza/asn1/its/DrivenLineOffsetSm.h rename to vanetza/asn1/its1/DrivenLineOffsetSm.h diff --git a/vanetza/asn1/its1/DrivingLaneStatus.c b/vanetza/asn1/its1/DrivingLaneStatus.c new file mode 100644 index 000000000..db577dd59 --- /dev/null +++ b/vanetza/asn1/its1/DrivingLaneStatus.c @@ -0,0 +1,89 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DrivingLaneStatus.h" + +int +DrivingLaneStatus_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 <= 13UL)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_DrivingLaneStatus_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..13)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DrivingLaneStatus_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 4, 4, 1, 13 } /* (SIZE(1..13)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_DrivingLaneStatus_constr_1 CC_NOTUSED = { + -1}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_DrivingLaneStatus_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_DrivingLaneStatus = { + "DrivingLaneStatus", + "DrivingLaneStatus", + &asn_OP_BIT_STRING, + asn_DEF_DrivingLaneStatus_tags_1, + sizeof(asn_DEF_DrivingLaneStatus_tags_1) + /sizeof(asn_DEF_DrivingLaneStatus_tags_1[0]), /* 1 */ + asn_DEF_DrivingLaneStatus_tags_1, /* Same as above */ + sizeof(asn_DEF_DrivingLaneStatus_tags_1) + /sizeof(asn_DEF_DrivingLaneStatus_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_DrivingLaneStatus_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DrivingLaneStatus_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_DrivingLaneStatus_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + DrivingLaneStatus_constraint + }, + 0, 0, /* No members */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/DrivingLaneStatus.h b/vanetza/asn1/its1/DrivingLaneStatus.h similarity index 100% rename from vanetza/asn1/its/DrivingLaneStatus.h rename to vanetza/asn1/its1/DrivingLaneStatus.h diff --git a/vanetza/asn1/its/DynamicStatus.c b/vanetza/asn1/its1/DynamicStatus.c similarity index 96% rename from vanetza/asn1/its/DynamicStatus.c rename to vanetza/asn1/its1/DynamicStatus.c index 18de07877..5128dd864 100644 --- a/vanetza/asn1/its/DynamicStatus.c +++ b/vanetza/asn1/its1/DynamicStatus.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_DynamicStatus = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_DynamicStatus_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ DynamicStatus_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/DynamicStatus.h b/vanetza/asn1/its1/DynamicStatus.h similarity index 100% rename from vanetza/asn1/its/DynamicStatus.h rename to vanetza/asn1/its1/DynamicStatus.h diff --git a/vanetza/asn1/its/EFC-ContextMark.c b/vanetza/asn1/its1/EFC-ContextMark.c similarity index 94% rename from vanetza/asn1/its/EFC-ContextMark.c rename to vanetza/asn1/its1/EFC-ContextMark.c index ca887705d..4beeb0a2d 100644 --- a/vanetza/asn1/its/EFC-ContextMark.c +++ b/vanetza/asn1/its1/EFC-ContextMark.c @@ -95,6 +95,9 @@ static asn_TYPE_member_t asn_MBR_EFC_ContextMark_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -112,6 +115,9 @@ static asn_TYPE_member_t asn_MBR_EFC_ContextMark_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_typeOfContract_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_typeOfContract_constraint_1 }, 0, 0, /* No default value */ @@ -129,6 +135,9 @@ static asn_TYPE_member_t asn_MBR_EFC_ContextMark_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_contextVersion_constr_4, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_contextVersion_constraint_1 }, 0, 0, /* No default value */ @@ -168,6 +177,9 @@ asn_TYPE_descriptor_t asn_DEF_EFC_ContextMark = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_EFC_ContextMark_1, diff --git a/vanetza/asn1/its/EFC-ContextMark.h b/vanetza/asn1/its1/EFC-ContextMark.h similarity index 100% rename from vanetza/asn1/its/EFC-ContextMark.h rename to vanetza/asn1/its1/EFC-ContextMark.h diff --git a/vanetza/asn1/its1/EXTERNAL.c b/vanetza/asn1/its1/EXTERNAL.c new file mode 100644 index 000000000..b9ec9db97 --- /dev/null +++ b/vanetza/asn1/its1/EXTERNAL.c @@ -0,0 +1,255 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ASN1C-UsefulInformationObjectClasses" + * found in "/usr/local/share/asn1c/standard-modules/ASN1C-UsefulInformationObjectClasses.asn1" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "EXTERNAL.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_encoding_constr_5 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_encoding_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) */ +static asn_TYPE_member_t asn_MBR_encoding_5[] = { + { ATF_NOFLAGS, 0, offsetof(struct EXTERNAL__encoding, choice.single_ASN1_type), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_ANY, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "single-ASN1-type" + }, + { ATF_NOFLAGS, 0, offsetof(struct EXTERNAL__encoding, choice.octet_aligned), + (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) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "octet-aligned" + }, + { ATF_NOFLAGS, 0, offsetof(struct EXTERNAL__encoding, choice.arbitrary), + (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) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "arbitrary" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_encoding_tag2el_5[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* single-ASN1-type */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* octet-aligned */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* arbitrary */ +}; +static asn_CHOICE_specifics_t asn_SPC_encoding_specs_5 = { + sizeof(struct EXTERNAL__encoding), + offsetof(struct EXTERNAL__encoding, _asn_ctx), + offsetof(struct EXTERNAL__encoding, present), + sizeof(((struct EXTERNAL__encoding *)0)->present), + asn_MAP_encoding_tag2el_5, + 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_encoding_5 = { + "encoding", + "encoding", + &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) + &asn_OER_type_encoding_constr_5, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_encoding_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_encoding_5, + 3, /* Elements count */ + &asn_SPC_encoding_specs_5 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_EXTERNAL_1[] = { + { ATF_POINTER, 3, offsetof(struct EXTERNAL, direct_reference), + (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), + 0, + &asn_DEF_OBJECT_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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "direct-reference" + }, + { ATF_POINTER, 2, offsetof(struct EXTERNAL, indirect_reference), + (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) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "indirect-reference" + }, + { ATF_POINTER, 1, offsetof(struct EXTERNAL, data_value_descriptor), + (ASN_TAG_CLASS_UNIVERSAL | (7 << 2)), + 0, + &asn_DEF_ObjectDescriptor, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "data-value-descriptor" + }, + { ATF_NOFLAGS, 0, offsetof(struct EXTERNAL, encoding), + -1 /* Ambiguous tag (CHOICE?) */, + 0, + &asn_DEF_encoding_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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "encoding" + }, +}; +static const int asn_MAP_EXTERNAL_oms_1[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_EXTERNAL_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_EXTERNAL_tag2el_1[] = { + { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* indirect-reference */ + { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 0, 0, 0 }, /* direct-reference */ + { (ASN_TAG_CLASS_UNIVERSAL | (7 << 2)), 2, 0, 0 }, /* data-value-descriptor */ + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 3, 0, 0 }, /* single-ASN1-type */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 3, 0, 0 }, /* octet-aligned */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 3, 0, 0 } /* arbitrary */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_EXTERNAL_specs_1 = { + sizeof(struct EXTERNAL), + offsetof(struct EXTERNAL, _asn_ctx), + asn_MAP_EXTERNAL_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_EXTERNAL_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_EXTERNAL = { + "EXTERNAL", + "EXTERNAL", + &asn_OP_SEQUENCE, + asn_DEF_EXTERNAL_tags_1, + sizeof(asn_DEF_EXTERNAL_tags_1) + /sizeof(asn_DEF_EXTERNAL_tags_1[0]) - 1, /* 1 */ + asn_DEF_EXTERNAL_tags_1, /* Same as above */ + sizeof(asn_DEF_EXTERNAL_tags_1) + /sizeof(asn_DEF_EXTERNAL_tags_1[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_EXTERNAL_1, + 4, /* Elements count */ + &asn_SPC_EXTERNAL_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its1/EXTERNAL.h b/vanetza/asn1/its1/EXTERNAL.h new file mode 100644 index 000000000..73f8b91a6 --- /dev/null +++ b/vanetza/asn1/its1/EXTERNAL.h @@ -0,0 +1,65 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ASN1C-UsefulInformationObjectClasses" + * found in "/usr/local/share/asn1c/standard-modules/ASN1C-UsefulInformationObjectClasses.asn1" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _EXTERNAL_H_ +#define _EXTERNAL_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "OBJECT_IDENTIFIER.h" +#include "NativeInteger.h" +#include "ObjectDescriptor.h" +#include "ANY.h" +#include "OCTET_STRING.h" +#include "BIT_STRING.h" +#include "constr_CHOICE.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum EXTERNAL__encoding_PR { + EXTERNAL__encoding_PR_NOTHING, /* No components present */ + EXTERNAL__encoding_PR_single_ASN1_type, + EXTERNAL__encoding_PR_octet_aligned, + EXTERNAL__encoding_PR_arbitrary +} EXTERNAL__encoding_PR; + +/* EXTERNAL */ +typedef struct EXTERNAL { + OBJECT_IDENTIFIER_t *direct_reference; /* OPTIONAL */ + long *indirect_reference; /* OPTIONAL */ + ObjectDescriptor_t *data_value_descriptor; /* OPTIONAL */ + struct EXTERNAL__encoding { + EXTERNAL__encoding_PR present; + union EXTERNAL__encoding_u { + ANY_t single_ASN1_type; + OCTET_STRING_t octet_aligned; + BIT_STRING_t arbitrary; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } encoding; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} EXTERNAL_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_EXTERNAL; + +#ifdef __cplusplus +} +#endif + +#endif /* _EXTERNAL_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its/EfcDsrcApplication_DriverCharacteristics.c b/vanetza/asn1/its1/EfcDsrcApplication_DriverCharacteristics.c similarity index 92% rename from vanetza/asn1/its/EfcDsrcApplication_DriverCharacteristics.c rename to vanetza/asn1/its1/EfcDsrcApplication_DriverCharacteristics.c index 8d5d9d77b..310de764c 100644 --- a/vanetza/asn1/its/EfcDsrcApplication_DriverCharacteristics.c +++ b/vanetza/asn1/its1/EfcDsrcApplication_DriverCharacteristics.c @@ -20,6 +20,9 @@ static asn_TYPE_member_t asn_MBR_EfcDsrcApplication_DriverCharacteristics_1[] = #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ static asn_TYPE_member_t asn_MBR_EfcDsrcApplication_DriverCharacteristics_1[] = #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_EfcDsrcApplication_DriverCharacteristics = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_EfcDsrcApplication_DriverCharacteristics_1, diff --git a/vanetza/asn1/its/EfcDsrcApplication_DriverCharacteristics.h b/vanetza/asn1/its1/EfcDsrcApplication_DriverCharacteristics.h similarity index 100% rename from vanetza/asn1/its/EfcDsrcApplication_DriverCharacteristics.h rename to vanetza/asn1/its1/EfcDsrcApplication_DriverCharacteristics.h diff --git a/vanetza/asn1/its/EfcDsrcApplication_TrailerCharacteristics.c b/vanetza/asn1/its1/EfcDsrcApplication_TrailerCharacteristics.c similarity index 91% rename from vanetza/asn1/its/EfcDsrcApplication_TrailerCharacteristics.c rename to vanetza/asn1/its1/EfcDsrcApplication_TrailerCharacteristics.c index 75bfff607..23cbcc8f3 100644 --- a/vanetza/asn1/its/EfcDsrcApplication_TrailerCharacteristics.c +++ b/vanetza/asn1/its1/EfcDsrcApplication_TrailerCharacteristics.c @@ -20,6 +20,9 @@ static asn_TYPE_member_t asn_MBR_EfcDsrcApplication_TrailerCharacteristics_1[] = #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ static asn_TYPE_member_t asn_MBR_EfcDsrcApplication_TrailerCharacteristics_1[] = #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ static asn_TYPE_member_t asn_MBR_EfcDsrcApplication_TrailerCharacteristics_1[] = #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -93,6 +102,9 @@ asn_TYPE_descriptor_t asn_DEF_EfcDsrcApplication_TrailerCharacteristics = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_EfcDsrcApplication_TrailerCharacteristics_1, diff --git a/vanetza/asn1/its/EfcDsrcApplication_TrailerCharacteristics.h b/vanetza/asn1/its1/EfcDsrcApplication_TrailerCharacteristics.h similarity index 100% rename from vanetza/asn1/its/EfcDsrcApplication_TrailerCharacteristics.h rename to vanetza/asn1/its1/EfcDsrcApplication_TrailerCharacteristics.h diff --git a/vanetza/asn1/its/Elevation.c b/vanetza/asn1/its1/Elevation.c similarity index 96% rename from vanetza/asn1/its/Elevation.c rename to vanetza/asn1/its1/Elevation.c index ec6bca736..a847540a0 100644 --- a/vanetza/asn1/its/Elevation.c +++ b/vanetza/asn1/its1/Elevation.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Elevation = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Elevation_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Elevation_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/Elevation.h b/vanetza/asn1/its1/Elevation.h similarity index 100% rename from vanetza/asn1/its/Elevation.h rename to vanetza/asn1/its1/Elevation.h diff --git a/vanetza/asn1/its/ElevationConfidence.c b/vanetza/asn1/its1/ElevationConfidence.c similarity index 97% rename from vanetza/asn1/its/ElevationConfidence.c rename to vanetza/asn1/its1/ElevationConfidence.c index 7eb3a0942..0dbf61c7b 100644 --- a/vanetza/asn1/its/ElevationConfidence.c +++ b/vanetza/asn1/its1/ElevationConfidence.c @@ -88,6 +88,9 @@ asn_TYPE_descriptor_t asn_DEF_ElevationConfidence = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ElevationConfidence_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/ElevationConfidence.h b/vanetza/asn1/its1/ElevationConfidence.h similarity index 100% rename from vanetza/asn1/its/ElevationConfidence.h rename to vanetza/asn1/its1/ElevationConfidence.h diff --git a/vanetza/asn1/its1/EmbarkationStatus.c b/vanetza/asn1/its1/EmbarkationStatus.c new file mode 100644 index 000000000..191768111 --- /dev/null +++ b/vanetza/asn1/its1/EmbarkationStatus.c @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "EmbarkationStatus.h" + +/* + * This type is implemented using BOOLEAN, + * so here we adjust the DEF accordingly. + */ +static const ber_tlv_tag_t asn_DEF_EmbarkationStatus_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_EmbarkationStatus = { + "EmbarkationStatus", + "EmbarkationStatus", + &asn_OP_BOOLEAN, + asn_DEF_EmbarkationStatus_tags_1, + sizeof(asn_DEF_EmbarkationStatus_tags_1) + /sizeof(asn_DEF_EmbarkationStatus_tags_1[0]), /* 1 */ + asn_DEF_EmbarkationStatus_tags_1, /* Same as above */ + sizeof(asn_DEF_EmbarkationStatus_tags_1) + /sizeof(asn_DEF_EmbarkationStatus_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + BOOLEAN_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/EmbarkationStatus.h b/vanetza/asn1/its1/EmbarkationStatus.h similarity index 100% rename from vanetza/asn1/its/EmbarkationStatus.h rename to vanetza/asn1/its1/EmbarkationStatus.h diff --git a/vanetza/asn1/its1/EmergencyContainer.c b/vanetza/asn1/its1/EmergencyContainer.c new file mode 100644 index 000000000..d2f443ba2 --- /dev/null +++ b/vanetza/asn1/its1/EmergencyContainer.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/EN302637-2v141-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "EmergencyContainer.h" + +asn_TYPE_member_t asn_MBR_EmergencyContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct EmergencyContainer, lightBarSirenInUse), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LightBarSirenInUse, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lightBarSirenInUse" + }, + { ATF_POINTER, 2, offsetof(struct EmergencyContainer, incidentIndication), + (ASN_TAG_CLASS_CONTEXT | (1 << 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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "incidentIndication" + }, + { ATF_POINTER, 1, offsetof(struct EmergencyContainer, emergencyPriority), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EmergencyPriority, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "emergencyPriority" + }, +}; +static const int asn_MAP_EmergencyContainer_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_EmergencyContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_EmergencyContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* lightBarSirenInUse */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* incidentIndication */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* emergencyPriority */ +}; +asn_SEQUENCE_specifics_t asn_SPC_EmergencyContainer_specs_1 = { + sizeof(struct EmergencyContainer), + offsetof(struct EmergencyContainer, _asn_ctx), + asn_MAP_EmergencyContainer_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_EmergencyContainer_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_EmergencyContainer = { + "EmergencyContainer", + "EmergencyContainer", + &asn_OP_SEQUENCE, + asn_DEF_EmergencyContainer_tags_1, + sizeof(asn_DEF_EmergencyContainer_tags_1) + /sizeof(asn_DEF_EmergencyContainer_tags_1[0]), /* 1 */ + asn_DEF_EmergencyContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_EmergencyContainer_tags_1) + /sizeof(asn_DEF_EmergencyContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_EmergencyContainer_1, + 3, /* Elements count */ + &asn_SPC_EmergencyContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/EmergencyContainer.h b/vanetza/asn1/its1/EmergencyContainer.h similarity index 100% rename from vanetza/asn1/its/EmergencyContainer.h rename to vanetza/asn1/its1/EmergencyContainer.h diff --git a/vanetza/asn1/its1/EmergencyPriority.c b/vanetza/asn1/its1/EmergencyPriority.c new file mode 100644 index 000000000..c282bb3e8 --- /dev/null +++ b/vanetza/asn1/its1/EmergencyPriority.c @@ -0,0 +1,89 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "EmergencyPriority.h" + +int +EmergencyPriority_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 == 2UL)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_EmergencyPriority_constr_1 CC_NOTUSED = { + { 0, 0 }, + 2 /* (SIZE(2..2)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_EmergencyPriority_constr_1 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_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_EmergencyPriority_constr_1 CC_NOTUSED = { + 2}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_EmergencyPriority_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_EmergencyPriority = { + "EmergencyPriority", + "EmergencyPriority", + &asn_OP_BIT_STRING, + asn_DEF_EmergencyPriority_tags_1, + sizeof(asn_DEF_EmergencyPriority_tags_1) + /sizeof(asn_DEF_EmergencyPriority_tags_1[0]), /* 1 */ + asn_DEF_EmergencyPriority_tags_1, /* Same as above */ + sizeof(asn_DEF_EmergencyPriority_tags_1) + /sizeof(asn_DEF_EmergencyPriority_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_EmergencyPriority_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_EmergencyPriority_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_EmergencyPriority_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + EmergencyPriority_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/EmergencyPriority.h b/vanetza/asn1/its1/EmergencyPriority.h similarity index 100% rename from vanetza/asn1/its/EmergencyPriority.h rename to vanetza/asn1/its1/EmergencyPriority.h diff --git a/vanetza/asn1/its1/EmergencyVehicleApproachingSubCauseCode.c b/vanetza/asn1/its1/EmergencyVehicleApproachingSubCauseCode.c new file mode 100644 index 000000000..13df8f9f6 --- /dev/null +++ b/vanetza/asn1/its1/EmergencyVehicleApproachingSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "EmergencyVehicleApproachingSubCauseCode.h" + +int +EmergencyVehicleApproachingSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_EmergencyVehicleApproachingSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_EmergencyVehicleApproachingSubCauseCode_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_EmergencyVehicleApproachingSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_EmergencyVehicleApproachingSubCauseCode = { + "EmergencyVehicleApproachingSubCauseCode", + "EmergencyVehicleApproachingSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_EmergencyVehicleApproachingSubCauseCode_tags_1, + sizeof(asn_DEF_EmergencyVehicleApproachingSubCauseCode_tags_1) + /sizeof(asn_DEF_EmergencyVehicleApproachingSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_EmergencyVehicleApproachingSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_EmergencyVehicleApproachingSubCauseCode_tags_1) + /sizeof(asn_DEF_EmergencyVehicleApproachingSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_EmergencyVehicleApproachingSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_EmergencyVehicleApproachingSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + EmergencyVehicleApproachingSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/EmergencyVehicleApproachingSubCauseCode.h b/vanetza/asn1/its1/EmergencyVehicleApproachingSubCauseCode.h similarity index 100% rename from vanetza/asn1/its/EmergencyVehicleApproachingSubCauseCode.h rename to vanetza/asn1/its1/EmergencyVehicleApproachingSubCauseCode.h diff --git a/vanetza/asn1/its/EmissionType.c b/vanetza/asn1/its1/EmissionType.c similarity index 96% rename from vanetza/asn1/its/EmissionType.c rename to vanetza/asn1/its1/EmissionType.c index 30c0da84b..df89d9cbc 100644 --- a/vanetza/asn1/its/EmissionType.c +++ b/vanetza/asn1/its1/EmissionType.c @@ -70,6 +70,9 @@ asn_TYPE_descriptor_t asn_DEF_EmissionType = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_EmissionType_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/EmissionType.h b/vanetza/asn1/its1/EmissionType.h similarity index 100% rename from vanetza/asn1/its/EmissionType.h rename to vanetza/asn1/its1/EmissionType.h diff --git a/vanetza/asn1/its/EnabledLaneList.c b/vanetza/asn1/its1/EnabledLaneList.c similarity index 92% rename from vanetza/asn1/its/EnabledLaneList.c rename to vanetza/asn1/its1/EnabledLaneList.c index 0f5ab04fa..2ece7a0ba 100644 --- a/vanetza/asn1/its/EnabledLaneList.c +++ b/vanetza/asn1/its1/EnabledLaneList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_EnabledLaneList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_EnabledLaneList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_EnabledLaneList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_EnabledLaneList_1, diff --git a/vanetza/asn1/its/EnabledLaneList.h b/vanetza/asn1/its1/EnabledLaneList.h similarity index 100% rename from vanetza/asn1/its/EnabledLaneList.h rename to vanetza/asn1/its1/EnabledLaneList.h diff --git a/vanetza/asn1/its1/EnergyStorageType.c b/vanetza/asn1/its1/EnergyStorageType.c new file mode 100644 index 000000000..e2748cba6 --- /dev/null +++ b/vanetza/asn1/its1/EnergyStorageType.c @@ -0,0 +1,89 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "EnergyStorageType.h" + +int +EnergyStorageType_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 == 7UL)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_EnergyStorageType_constr_1 CC_NOTUSED = { + { 0, 0 }, + 7 /* (SIZE(7..7)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_EnergyStorageType_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 7, 7 } /* (SIZE(7..7)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_EnergyStorageType_constr_1 CC_NOTUSED = { + 7}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_EnergyStorageType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_EnergyStorageType = { + "EnergyStorageType", + "EnergyStorageType", + &asn_OP_BIT_STRING, + asn_DEF_EnergyStorageType_tags_1, + sizeof(asn_DEF_EnergyStorageType_tags_1) + /sizeof(asn_DEF_EnergyStorageType_tags_1[0]), /* 1 */ + asn_DEF_EnergyStorageType_tags_1, /* Same as above */ + sizeof(asn_DEF_EnergyStorageType_tags_1) + /sizeof(asn_DEF_EnergyStorageType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_EnergyStorageType_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_EnergyStorageType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_EnergyStorageType_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + EnergyStorageType_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/EnergyStorageType.h b/vanetza/asn1/its1/EnergyStorageType.h similarity index 100% rename from vanetza/asn1/its/EnergyStorageType.h rename to vanetza/asn1/its1/EnergyStorageType.h diff --git a/vanetza/asn1/its/Engine.c b/vanetza/asn1/its1/Engine.c similarity index 90% rename from vanetza/asn1/its/Engine.c rename to vanetza/asn1/its1/Engine.c index 5bc8e29f8..214d0d42d 100644 --- a/vanetza/asn1/its/Engine.c +++ b/vanetza/asn1/its1/Engine.c @@ -20,6 +20,9 @@ static asn_TYPE_member_t asn_MBR_Engine_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ static asn_TYPE_member_t asn_MBR_Engine_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_Engine = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Engine_1, diff --git a/vanetza/asn1/its/Engine.h b/vanetza/asn1/its1/Engine.h similarity index 100% rename from vanetza/asn1/its/Engine.h rename to vanetza/asn1/its1/Engine.h diff --git a/vanetza/asn1/its/EngineCharacteristics.c b/vanetza/asn1/its1/EngineCharacteristics.c similarity index 96% rename from vanetza/asn1/its/EngineCharacteristics.c rename to vanetza/asn1/its1/EngineCharacteristics.c index 324879b4c..7e6f7f12b 100644 --- a/vanetza/asn1/its/EngineCharacteristics.c +++ b/vanetza/asn1/its1/EngineCharacteristics.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_EngineCharacteristics = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_EngineCharacteristics_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ EngineCharacteristics_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/EngineCharacteristics.h b/vanetza/asn1/its1/EngineCharacteristics.h similarity index 100% rename from vanetza/asn1/its/EngineCharacteristics.h rename to vanetza/asn1/its1/EngineCharacteristics.h diff --git a/vanetza/asn1/its/EnvironmentalCharacteristics.c b/vanetza/asn1/its1/EnvironmentalCharacteristics.c similarity index 91% rename from vanetza/asn1/its/EnvironmentalCharacteristics.c rename to vanetza/asn1/its1/EnvironmentalCharacteristics.c index 48c6224d8..97029cad4 100644 --- a/vanetza/asn1/its/EnvironmentalCharacteristics.c +++ b/vanetza/asn1/its1/EnvironmentalCharacteristics.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_EnvironmentalCharacteristics_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_EnvironmentalCharacteristics_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_EnvironmentalCharacteristics = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_EnvironmentalCharacteristics_1, diff --git a/vanetza/asn1/its/EnvironmentalCharacteristics.h b/vanetza/asn1/its1/EnvironmentalCharacteristics.h similarity index 100% rename from vanetza/asn1/its/EnvironmentalCharacteristics.h rename to vanetza/asn1/its1/EnvironmentalCharacteristics.h diff --git a/vanetza/asn1/its/EquipmentOBUId.c b/vanetza/asn1/its1/EquipmentOBUId.c similarity index 92% rename from vanetza/asn1/its/EquipmentOBUId.c rename to vanetza/asn1/its1/EquipmentOBUId.c index 7283b9a45..58ecc7e34 100644 --- a/vanetza/asn1/its/EquipmentOBUId.c +++ b/vanetza/asn1/its1/EquipmentOBUId.c @@ -31,6 +31,9 @@ asn_TYPE_descriptor_t asn_DEF_EquipmentOBUId = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OCTET_STRING_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/EquipmentOBUId.h b/vanetza/asn1/its1/EquipmentOBUId.h similarity index 100% rename from vanetza/asn1/its/EquipmentOBUId.h rename to vanetza/asn1/its1/EquipmentOBUId.h diff --git a/vanetza/asn1/its/EquipmentStatus.c b/vanetza/asn1/its1/EquipmentStatus.c similarity index 89% rename from vanetza/asn1/its/EquipmentStatus.c rename to vanetza/asn1/its1/EquipmentStatus.c index fe9bdeba0..fdc017b43 100644 --- a/vanetza/asn1/its/EquipmentStatus.c +++ b/vanetza/asn1/its1/EquipmentStatus.c @@ -54,6 +54,10 @@ static asn_per_constraints_t asn_PER_type_EquipmentStatus_constr_1 CC_NOTUSED = 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_EquipmentStatus_constr_1 CC_NOTUSED = { + 16}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_EquipmentStatus_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) }; @@ -74,6 +78,9 @@ asn_TYPE_descriptor_t asn_DEF_EquipmentStatus = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_EquipmentStatus_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_EquipmentStatus_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ EquipmentStatus_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/EquipmentStatus.h b/vanetza/asn1/its1/EquipmentStatus.h similarity index 100% rename from vanetza/asn1/its/EquipmentStatus.h rename to vanetza/asn1/its1/EquipmentStatus.h diff --git a/vanetza/asn1/its1/EuVehicleCategoryCode.c b/vanetza/asn1/its1/EuVehicleCategoryCode.c new file mode 100644 index 000000000..d46b90db1 --- /dev/null +++ b/vanetza/asn1/its1/EuVehicleCategoryCode.c @@ -0,0 +1,186 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ElectronicRegistrationIdentificationVehicleDataModule" + * found in "build.asn1/iso/ISO24534-3.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "EuVehicleCategoryCode.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_EuVehicleCategoryCode_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_EuVehicleCategoryCode_constr_1 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_EuVehicleCategoryCode_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct EuVehicleCategoryCode, choice.euVehicleCategoryL), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EuVehicleCategoryL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "euVehicleCategoryL" + }, + { ATF_NOFLAGS, 0, offsetof(struct EuVehicleCategoryCode, choice.euVehicleCategoryM), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EuVehicleCategoryM, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "euVehicleCategoryM" + }, + { ATF_NOFLAGS, 0, offsetof(struct EuVehicleCategoryCode, choice.euVehicleCategoryN), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EuVehicleCategoryN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "euVehicleCategoryN" + }, + { ATF_NOFLAGS, 0, offsetof(struct EuVehicleCategoryCode, choice.euVehicleCategoryO), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EuVehicleCategoryO, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "euVehicleCategoryO" + }, + { ATF_NOFLAGS, 0, offsetof(struct EuVehicleCategoryCode, choice.euVehilcleCategoryT), + (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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "euVehilcleCategoryT" + }, + { ATF_NOFLAGS, 0, offsetof(struct EuVehicleCategoryCode, choice.euVehilcleCategoryG), + (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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "euVehilcleCategoryG" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_EuVehicleCategoryCode_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* euVehicleCategoryL */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* euVehicleCategoryM */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* euVehicleCategoryN */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* euVehicleCategoryO */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* euVehilcleCategoryT */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* euVehilcleCategoryG */ +}; +asn_CHOICE_specifics_t asn_SPC_EuVehicleCategoryCode_specs_1 = { + sizeof(struct EuVehicleCategoryCode), + offsetof(struct EuVehicleCategoryCode, _asn_ctx), + offsetof(struct EuVehicleCategoryCode, present), + sizeof(((struct EuVehicleCategoryCode *)0)->present), + asn_MAP_EuVehicleCategoryCode_tag2el_1, + 6, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_EuVehicleCategoryCode = { + "EuVehicleCategoryCode", + "EuVehicleCategoryCode", + &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) + &asn_OER_type_EuVehicleCategoryCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_EuVehicleCategoryCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_EuVehicleCategoryCode_1, + 6, /* Elements count */ + &asn_SPC_EuVehicleCategoryCode_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/EuVehicleCategoryCode.h b/vanetza/asn1/its1/EuVehicleCategoryCode.h similarity index 100% rename from vanetza/asn1/its/EuVehicleCategoryCode.h rename to vanetza/asn1/its1/EuVehicleCategoryCode.h diff --git a/vanetza/asn1/its1/EuVehicleCategoryL.c b/vanetza/asn1/its1/EuVehicleCategoryL.c new file mode 100644 index 000000000..8606d140d --- /dev/null +++ b/vanetza/asn1/its1/EuVehicleCategoryL.c @@ -0,0 +1,81 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ElectronicRegistrationIdentificationVehicleDataModule" + * found in "build.asn1/iso/ISO24534-3.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "EuVehicleCategoryL.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_EuVehicleCategoryL_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_EuVehicleCategoryL_constr_1 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_EuVehicleCategoryL_value2enum_1[] = { + { 0, 2, "l1" }, + { 1, 2, "l2" }, + { 2, 2, "l3" }, + { 3, 2, "l4" }, + { 4, 2, "l5" }, + { 5, 2, "l6" }, + { 6, 2, "l7" } +}; +static const unsigned int asn_MAP_EuVehicleCategoryL_enum2value_1[] = { + 0, /* l1(0) */ + 1, /* l2(1) */ + 2, /* l3(2) */ + 3, /* l4(3) */ + 4, /* l5(4) */ + 5, /* l6(5) */ + 6 /* l7(6) */ +}; +const asn_INTEGER_specifics_t asn_SPC_EuVehicleCategoryL_specs_1 = { + asn_MAP_EuVehicleCategoryL_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_EuVehicleCategoryL_enum2value_1, /* 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_EuVehicleCategoryL_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_EuVehicleCategoryL = { + "EuVehicleCategoryL", + "EuVehicleCategoryL", + &asn_OP_NativeEnumerated, + asn_DEF_EuVehicleCategoryL_tags_1, + sizeof(asn_DEF_EuVehicleCategoryL_tags_1) + /sizeof(asn_DEF_EuVehicleCategoryL_tags_1[0]), /* 1 */ + asn_DEF_EuVehicleCategoryL_tags_1, /* Same as above */ + sizeof(asn_DEF_EuVehicleCategoryL_tags_1) + /sizeof(asn_DEF_EuVehicleCategoryL_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_EuVehicleCategoryL_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_EuVehicleCategoryL_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_EuVehicleCategoryL_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/EuVehicleCategoryL.h b/vanetza/asn1/its1/EuVehicleCategoryL.h similarity index 100% rename from vanetza/asn1/its/EuVehicleCategoryL.h rename to vanetza/asn1/its1/EuVehicleCategoryL.h diff --git a/vanetza/asn1/its1/EuVehicleCategoryM.c b/vanetza/asn1/its1/EuVehicleCategoryM.c new file mode 100644 index 000000000..6d2e2ec49 --- /dev/null +++ b/vanetza/asn1/its1/EuVehicleCategoryM.c @@ -0,0 +1,73 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ElectronicRegistrationIdentificationVehicleDataModule" + * found in "build.asn1/iso/ISO24534-3.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "EuVehicleCategoryM.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_EuVehicleCategoryM_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_EuVehicleCategoryM_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_EuVehicleCategoryM_value2enum_1[] = { + { 0, 2, "m1" }, + { 1, 2, "m2" }, + { 2, 2, "m3" } +}; +static const unsigned int asn_MAP_EuVehicleCategoryM_enum2value_1[] = { + 0, /* m1(0) */ + 1, /* m2(1) */ + 2 /* m3(2) */ +}; +const asn_INTEGER_specifics_t asn_SPC_EuVehicleCategoryM_specs_1 = { + asn_MAP_EuVehicleCategoryM_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_EuVehicleCategoryM_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_EuVehicleCategoryM_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_EuVehicleCategoryM = { + "EuVehicleCategoryM", + "EuVehicleCategoryM", + &asn_OP_NativeEnumerated, + asn_DEF_EuVehicleCategoryM_tags_1, + sizeof(asn_DEF_EuVehicleCategoryM_tags_1) + /sizeof(asn_DEF_EuVehicleCategoryM_tags_1[0]), /* 1 */ + asn_DEF_EuVehicleCategoryM_tags_1, /* Same as above */ + sizeof(asn_DEF_EuVehicleCategoryM_tags_1) + /sizeof(asn_DEF_EuVehicleCategoryM_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_EuVehicleCategoryM_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_EuVehicleCategoryM_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_EuVehicleCategoryM_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/EuVehicleCategoryM.h b/vanetza/asn1/its1/EuVehicleCategoryM.h similarity index 100% rename from vanetza/asn1/its/EuVehicleCategoryM.h rename to vanetza/asn1/its1/EuVehicleCategoryM.h diff --git a/vanetza/asn1/its1/EuVehicleCategoryN.c b/vanetza/asn1/its1/EuVehicleCategoryN.c new file mode 100644 index 000000000..509fdeab2 --- /dev/null +++ b/vanetza/asn1/its1/EuVehicleCategoryN.c @@ -0,0 +1,73 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ElectronicRegistrationIdentificationVehicleDataModule" + * found in "build.asn1/iso/ISO24534-3.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "EuVehicleCategoryN.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_EuVehicleCategoryN_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_EuVehicleCategoryN_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_EuVehicleCategoryN_value2enum_1[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n3" } +}; +static const unsigned int asn_MAP_EuVehicleCategoryN_enum2value_1[] = { + 0, /* n1(0) */ + 1, /* n2(1) */ + 2 /* n3(2) */ +}; +const asn_INTEGER_specifics_t asn_SPC_EuVehicleCategoryN_specs_1 = { + asn_MAP_EuVehicleCategoryN_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_EuVehicleCategoryN_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_EuVehicleCategoryN_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_EuVehicleCategoryN = { + "EuVehicleCategoryN", + "EuVehicleCategoryN", + &asn_OP_NativeEnumerated, + asn_DEF_EuVehicleCategoryN_tags_1, + sizeof(asn_DEF_EuVehicleCategoryN_tags_1) + /sizeof(asn_DEF_EuVehicleCategoryN_tags_1[0]), /* 1 */ + asn_DEF_EuVehicleCategoryN_tags_1, /* Same as above */ + sizeof(asn_DEF_EuVehicleCategoryN_tags_1) + /sizeof(asn_DEF_EuVehicleCategoryN_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_EuVehicleCategoryN_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_EuVehicleCategoryN_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_EuVehicleCategoryN_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/EuVehicleCategoryN.h b/vanetza/asn1/its1/EuVehicleCategoryN.h similarity index 100% rename from vanetza/asn1/its/EuVehicleCategoryN.h rename to vanetza/asn1/its1/EuVehicleCategoryN.h diff --git a/vanetza/asn1/its1/EuVehicleCategoryO.c b/vanetza/asn1/its1/EuVehicleCategoryO.c new file mode 100644 index 000000000..91f408be7 --- /dev/null +++ b/vanetza/asn1/its1/EuVehicleCategoryO.c @@ -0,0 +1,75 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ElectronicRegistrationIdentificationVehicleDataModule" + * found in "build.asn1/iso/ISO24534-3.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "EuVehicleCategoryO.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_EuVehicleCategoryO_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_EuVehicleCategoryO_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) */ +static const asn_INTEGER_enum_map_t asn_MAP_EuVehicleCategoryO_value2enum_1[] = { + { 0, 2, "o1" }, + { 1, 2, "o2" }, + { 2, 2, "o3" }, + { 3, 2, "o4" } +}; +static const unsigned int asn_MAP_EuVehicleCategoryO_enum2value_1[] = { + 0, /* o1(0) */ + 1, /* o2(1) */ + 2, /* o3(2) */ + 3 /* o4(3) */ +}; +const asn_INTEGER_specifics_t asn_SPC_EuVehicleCategoryO_specs_1 = { + asn_MAP_EuVehicleCategoryO_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_EuVehicleCategoryO_enum2value_1, /* 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_EuVehicleCategoryO_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_EuVehicleCategoryO = { + "EuVehicleCategoryO", + "EuVehicleCategoryO", + &asn_OP_NativeEnumerated, + asn_DEF_EuVehicleCategoryO_tags_1, + sizeof(asn_DEF_EuVehicleCategoryO_tags_1) + /sizeof(asn_DEF_EuVehicleCategoryO_tags_1[0]), /* 1 */ + asn_DEF_EuVehicleCategoryO_tags_1, /* Same as above */ + sizeof(asn_DEF_EuVehicleCategoryO_tags_1) + /sizeof(asn_DEF_EuVehicleCategoryO_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_EuVehicleCategoryO_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_EuVehicleCategoryO_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_EuVehicleCategoryO_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/EuVehicleCategoryO.h b/vanetza/asn1/its1/EuVehicleCategoryO.h similarity index 100% rename from vanetza/asn1/its/EuVehicleCategoryO.h rename to vanetza/asn1/its1/EuVehicleCategoryO.h diff --git a/vanetza/asn1/its/EuroValue.c b/vanetza/asn1/its1/EuroValue.c similarity index 97% rename from vanetza/asn1/its/EuroValue.c rename to vanetza/asn1/its1/EuroValue.c index 8ca7f7d97..56a4b9d47 100644 --- a/vanetza/asn1/its/EuroValue.c +++ b/vanetza/asn1/its1/EuroValue.c @@ -88,6 +88,9 @@ asn_TYPE_descriptor_t asn_DEF_EuroValue = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_EuroValue_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/EuroValue.h b/vanetza/asn1/its1/EuroValue.h similarity index 100% rename from vanetza/asn1/its/EuroValue.h rename to vanetza/asn1/its1/EuroValue.h diff --git a/vanetza/asn1/its1/EventHistory.c b/vanetza/asn1/its1/EventHistory.c new file mode 100644 index 000000000..272d0d7f7 --- /dev/null +++ b/vanetza/asn1/its1/EventHistory.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "EventHistory.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_EventHistory_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..23)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_EventHistory_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_EventHistory_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_EventPoint, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_EventHistory_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_EventHistory_specs_1 = { + sizeof(struct EventHistory), + offsetof(struct EventHistory, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_EventHistory = { + "EventHistory", + "EventHistory", + &asn_OP_SEQUENCE_OF, + asn_DEF_EventHistory_tags_1, + sizeof(asn_DEF_EventHistory_tags_1) + /sizeof(asn_DEF_EventHistory_tags_1[0]), /* 1 */ + asn_DEF_EventHistory_tags_1, /* Same as above */ + sizeof(asn_DEF_EventHistory_tags_1) + /sizeof(asn_DEF_EventHistory_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_EventHistory_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_EventHistory_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_EventHistory_1, + 1, /* Single element */ + &asn_SPC_EventHistory_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/EventHistory.h b/vanetza/asn1/its1/EventHistory.h similarity index 100% rename from vanetza/asn1/its/EventHistory.h rename to vanetza/asn1/its1/EventHistory.h diff --git a/vanetza/asn1/its1/EventPoint.c b/vanetza/asn1/its1/EventPoint.c new file mode 100644 index 000000000..f12736105 --- /dev/null +++ b/vanetza/asn1/its1/EventPoint.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "EventPoint.h" + +asn_TYPE_member_t asn_MBR_EventPoint_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct EventPoint, eventPosition), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DeltaReferencePosition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "eventPosition" + }, + { ATF_POINTER, 1, offsetof(struct EventPoint, eventDeltaTime), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PathDeltaTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "eventDeltaTime" + }, + { ATF_NOFLAGS, 0, offsetof(struct EventPoint, informationQuality), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_InformationQuality, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "informationQuality" + }, +}; +static const int asn_MAP_EventPoint_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_EventPoint_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_EventPoint_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* eventPosition */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* eventDeltaTime */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* informationQuality */ +}; +asn_SEQUENCE_specifics_t asn_SPC_EventPoint_specs_1 = { + sizeof(struct EventPoint), + offsetof(struct EventPoint, _asn_ctx), + asn_MAP_EventPoint_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_EventPoint_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_EventPoint = { + "EventPoint", + "EventPoint", + &asn_OP_SEQUENCE, + asn_DEF_EventPoint_tags_1, + sizeof(asn_DEF_EventPoint_tags_1) + /sizeof(asn_DEF_EventPoint_tags_1[0]), /* 1 */ + asn_DEF_EventPoint_tags_1, /* Same as above */ + sizeof(asn_DEF_EventPoint_tags_1) + /sizeof(asn_DEF_EventPoint_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_EventPoint_1, + 3, /* Elements count */ + &asn_SPC_EventPoint_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/EventPoint.h b/vanetza/asn1/its1/EventPoint.h similarity index 100% rename from vanetza/asn1/its/EventPoint.h rename to vanetza/asn1/its1/EventPoint.h diff --git a/vanetza/asn1/its/ExceptionalCondition.c b/vanetza/asn1/its1/ExceptionalCondition.c similarity index 97% rename from vanetza/asn1/its/ExceptionalCondition.c rename to vanetza/asn1/its1/ExceptionalCondition.c index 7b31d8aa3..6ad08fa52 100644 --- a/vanetza/asn1/its/ExceptionalCondition.c +++ b/vanetza/asn1/its1/ExceptionalCondition.c @@ -84,6 +84,9 @@ asn_TYPE_descriptor_t asn_DEF_ExceptionalCondition = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ExceptionalCondition_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/ExceptionalCondition.h b/vanetza/asn1/its1/ExceptionalCondition.h similarity index 100% rename from vanetza/asn1/its/ExceptionalCondition.h rename to vanetza/asn1/its1/ExceptionalCondition.h diff --git a/vanetza/asn1/its/ExhaustEmissionValues.c b/vanetza/asn1/its1/ExhaustEmissionValues.c similarity index 91% rename from vanetza/asn1/its/ExhaustEmissionValues.c rename to vanetza/asn1/its1/ExhaustEmissionValues.c index 383952912..ce06c3e34 100644 --- a/vanetza/asn1/its/ExhaustEmissionValues.c +++ b/vanetza/asn1/its1/ExhaustEmissionValues.c @@ -57,6 +57,9 @@ asn_TYPE_member_t asn_MBR_ExhaustEmissionValues_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -74,6 +77,9 @@ asn_TYPE_member_t asn_MBR_ExhaustEmissionValues_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_emissionCO_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_emissionCO_constraint_1 }, 0, 0, /* No default value */ @@ -91,6 +97,9 @@ asn_TYPE_member_t asn_MBR_ExhaustEmissionValues_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -108,6 +117,9 @@ asn_TYPE_member_t asn_MBR_ExhaustEmissionValues_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -125,6 +137,9 @@ asn_TYPE_member_t asn_MBR_ExhaustEmissionValues_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -166,6 +181,9 @@ asn_TYPE_descriptor_t asn_DEF_ExhaustEmissionValues = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_ExhaustEmissionValues_1, diff --git a/vanetza/asn1/its/ExhaustEmissionValues.h b/vanetza/asn1/its1/ExhaustEmissionValues.h similarity index 100% rename from vanetza/asn1/its/ExhaustEmissionValues.h rename to vanetza/asn1/its1/ExhaustEmissionValues.h diff --git a/vanetza/asn1/its1/Ext1.c b/vanetza/asn1/its1/Ext1.c new file mode 100644 index 000000000..6f5b3ebb6 --- /dev/null +++ b/vanetza/asn1/its1/Ext1.c @@ -0,0 +1,139 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CITSapplMgmtIDs" + * found in "build.asn1/iso/ISO17419.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Ext1.h" + +static int +memb_content_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + 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 <= 16511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_content_constr_2 CC_NOTUSED = { + { 2, 1 } /* (128..16511) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_content_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 128, 16511 } /* (128..16511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_Ext1_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Ext1_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_Ext1_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Ext1, choice.content), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_content_constr_2, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_content_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_content_constraint_1 + }, + 0, 0, /* No default value */ + "content" + }, + { ATF_NOFLAGS, 0, offsetof(struct Ext1, choice.extension), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_Ext2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "extension" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_Ext1_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* content */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* extension */ +}; +asn_CHOICE_specifics_t asn_SPC_Ext1_specs_1 = { + sizeof(struct Ext1), + offsetof(struct Ext1, _asn_ctx), + offsetof(struct Ext1, present), + sizeof(((struct Ext1 *)0)->present), + asn_MAP_Ext1_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_Ext1 = { + "Ext1", + "Ext1", + &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) + &asn_OER_type_Ext1_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Ext1_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_Ext1_1, + 2, /* Elements count */ + &asn_SPC_Ext1_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/Ext1.h b/vanetza/asn1/its1/Ext1.h similarity index 100% rename from vanetza/asn1/its/Ext1.h rename to vanetza/asn1/its1/Ext1.h diff --git a/vanetza/asn1/its1/Ext2.c b/vanetza/asn1/its1/Ext2.c new file mode 100644 index 000000000..98d92a442 --- /dev/null +++ b/vanetza/asn1/its1/Ext2.c @@ -0,0 +1,139 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CITSapplMgmtIDs" + * found in "build.asn1/iso/ISO17419.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Ext2.h" + +static int +memb_content_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 16512L && value <= 2113663L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_content_constr_2 CC_NOTUSED = { + { 4, 1 } /* (16512..2113663) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_content_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 21, -1, 16512, 2113663 } /* (16512..2113663) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_Ext2_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Ext2_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_Ext2_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Ext2, choice.content), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_content_constr_2, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_content_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_content_constraint_1 + }, + 0, 0, /* No default value */ + "content" + }, + { ATF_NOFLAGS, 0, offsetof(struct Ext2, choice.extension), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Ext3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "extension" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_Ext2_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* content */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* extension */ +}; +asn_CHOICE_specifics_t asn_SPC_Ext2_specs_1 = { + sizeof(struct Ext2), + offsetof(struct Ext2, _asn_ctx), + offsetof(struct Ext2, present), + sizeof(((struct Ext2 *)0)->present), + asn_MAP_Ext2_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_Ext2 = { + "Ext2", + "Ext2", + &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) + &asn_OER_type_Ext2_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Ext2_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_Ext2_1, + 2, /* Elements count */ + &asn_SPC_Ext2_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/Ext2.h b/vanetza/asn1/its1/Ext2.h similarity index 100% rename from vanetza/asn1/its/Ext2.h rename to vanetza/asn1/its1/Ext2.h diff --git a/vanetza/asn1/its1/Ext3.c b/vanetza/asn1/its1/Ext3.c new file mode 100644 index 000000000..16470efb9 --- /dev/null +++ b/vanetza/asn1/its1/Ext3.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CITSapplMgmtIDs" + * found in "build.asn1/iso/ISO17419.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Ext3.h" + +int +Ext3_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 >= 2113664L && value <= 270549119L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_Ext3_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Ext3_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 28, -1, 2113664, 270549119 } /* (2113664..270549119,...) */, + { 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_Ext3_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_Ext3 = { + "Ext3", + "Ext3", + &asn_OP_NativeInteger, + asn_DEF_Ext3_tags_1, + sizeof(asn_DEF_Ext3_tags_1) + /sizeof(asn_DEF_Ext3_tags_1[0]), /* 1 */ + asn_DEF_Ext3_tags_1, /* Same as above */ + sizeof(asn_DEF_Ext3_tags_1) + /sizeof(asn_DEF_Ext3_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_Ext3_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Ext3_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + Ext3_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/Ext3.h b/vanetza/asn1/its1/Ext3.h similarity index 100% rename from vanetza/asn1/its/Ext3.h rename to vanetza/asn1/its1/Ext3.h diff --git a/vanetza/asn1/its1/ExteriorLights.c b/vanetza/asn1/its1/ExteriorLights.c new file mode 100644 index 000000000..58acc997e --- /dev/null +++ b/vanetza/asn1/its1/ExteriorLights.c @@ -0,0 +1,89 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ExteriorLights.h" + +int +ExteriorLights_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_ExteriorLights_constr_1 CC_NOTUSED = { + { 0, 0 }, + 8 /* (SIZE(8..8)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ExteriorLights_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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_ExteriorLights_constr_1 CC_NOTUSED = { + 8}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_ExteriorLights_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_ExteriorLights = { + "ExteriorLights", + "ExteriorLights", + &asn_OP_BIT_STRING, + asn_DEF_ExteriorLights_tags_1, + sizeof(asn_DEF_ExteriorLights_tags_1) + /sizeof(asn_DEF_ExteriorLights_tags_1[0]), /* 1 */ + asn_DEF_ExteriorLights_tags_1, /* Same as above */ + sizeof(asn_DEF_ExteriorLights_tags_1) + /sizeof(asn_DEF_ExteriorLights_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_ExteriorLights_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ExteriorLights_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_ExteriorLights_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + ExteriorLights_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/ExteriorLights.h b/vanetza/asn1/its1/ExteriorLights.h similarity index 100% rename from vanetza/asn1/its/ExteriorLights.h rename to vanetza/asn1/its1/ExteriorLights.h diff --git a/vanetza/asn1/its/FreeSpaceAddendum.c b/vanetza/asn1/its1/FreeSpaceAddendum.c similarity index 90% rename from vanetza/asn1/its/FreeSpaceAddendum.c rename to vanetza/asn1/its1/FreeSpaceAddendum.c index 54890e214..01085ba4c 100644 --- a/vanetza/asn1/its/FreeSpaceAddendum.c +++ b/vanetza/asn1/its1/FreeSpaceAddendum.c @@ -42,6 +42,9 @@ asn_TYPE_member_t asn_MBR_FreeSpaceAddendum_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -59,6 +62,9 @@ asn_TYPE_member_t asn_MBR_FreeSpaceAddendum_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -76,6 +82,9 @@ asn_TYPE_member_t asn_MBR_FreeSpaceAddendum_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -93,6 +102,9 @@ asn_TYPE_member_t asn_MBR_FreeSpaceAddendum_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, &asn_DFL_5_cmp_1, /* Compare DEFAULT 1 */ @@ -136,6 +148,9 @@ asn_TYPE_descriptor_t asn_DEF_FreeSpaceAddendum = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_FreeSpaceAddendum_1, diff --git a/vanetza/asn1/its/FreeSpaceAddendum.h b/vanetza/asn1/its1/FreeSpaceAddendum.h similarity index 100% rename from vanetza/asn1/its/FreeSpaceAddendum.h rename to vanetza/asn1/its1/FreeSpaceAddendum.h diff --git a/vanetza/asn1/its/FreeSpaceAddendumContainer.c b/vanetza/asn1/its1/FreeSpaceAddendumContainer.c similarity index 93% rename from vanetza/asn1/its/FreeSpaceAddendumContainer.c rename to vanetza/asn1/its1/FreeSpaceAddendumContainer.c index 2091a9e18..d75617ba6 100644 --- a/vanetza/asn1/its/FreeSpaceAddendumContainer.c +++ b/vanetza/asn1/its1/FreeSpaceAddendumContainer.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_FreeSpaceAddendumContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_FreeSpaceAddendumContainer = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_FreeSpaceAddendumContainer_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_FreeSpaceAddendumContainer_1, diff --git a/vanetza/asn1/its/FreeSpaceAddendumContainer.h b/vanetza/asn1/its1/FreeSpaceAddendumContainer.h similarity index 100% rename from vanetza/asn1/its/FreeSpaceAddendumContainer.h rename to vanetza/asn1/its1/FreeSpaceAddendumContainer.h diff --git a/vanetza/asn1/its/FreeSpaceArea.c b/vanetza/asn1/its1/FreeSpaceArea.c similarity index 90% rename from vanetza/asn1/its/FreeSpaceArea.c rename to vanetza/asn1/its1/FreeSpaceArea.c index 60971d641..1c96226d1 100644 --- a/vanetza/asn1/its/FreeSpaceArea.c +++ b/vanetza/asn1/its1/FreeSpaceArea.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_FreeSpaceArea_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_FreeSpaceArea_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -66,6 +72,9 @@ asn_TYPE_member_t asn_MBR_FreeSpaceArea_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -83,6 +92,9 @@ asn_TYPE_member_t asn_MBR_FreeSpaceArea_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -120,6 +132,9 @@ asn_TYPE_descriptor_t asn_DEF_FreeSpaceArea = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_FreeSpaceArea_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_FreeSpaceArea_1, diff --git a/vanetza/asn1/its/FreeSpaceArea.h b/vanetza/asn1/its1/FreeSpaceArea.h similarity index 100% rename from vanetza/asn1/its/FreeSpaceArea.h rename to vanetza/asn1/its1/FreeSpaceArea.h diff --git a/vanetza/asn1/its/FreeSpaceConfidence.c b/vanetza/asn1/its1/FreeSpaceConfidence.c similarity index 96% rename from vanetza/asn1/its/FreeSpaceConfidence.c rename to vanetza/asn1/its1/FreeSpaceConfidence.c index 5134553d6..4d4704611 100644 --- a/vanetza/asn1/its/FreeSpaceConfidence.c +++ b/vanetza/asn1/its1/FreeSpaceConfidence.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_FreeSpaceConfidence = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_FreeSpaceConfidence_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ FreeSpaceConfidence_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/FreeSpaceConfidence.h b/vanetza/asn1/its1/FreeSpaceConfidence.h similarity index 100% rename from vanetza/asn1/its/FreeSpaceConfidence.h rename to vanetza/asn1/its1/FreeSpaceConfidence.h diff --git a/vanetza/asn1/its/FreightContainerData.c b/vanetza/asn1/its1/FreightContainerData.c similarity index 93% rename from vanetza/asn1/its/FreightContainerData.c rename to vanetza/asn1/its1/FreightContainerData.c index 633f4d0d7..212171302 100644 --- a/vanetza/asn1/its/FreightContainerData.c +++ b/vanetza/asn1/its1/FreightContainerData.c @@ -281,6 +281,10 @@ static asn_per_constraints_t asn_PER_memb_ownerCode_constr_2 CC_NOTUSED = { 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_ownerCode_constr_2 CC_NOTUSED = { + 19}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ #if !defined(ASN_DISABLE_OER_SUPPORT) static asn_oer_constraints_t asn_OER_memb_serialNumber_constr_3 CC_NOTUSED = { { 4, 1 } /* (0..1000000) */, @@ -389,6 +393,10 @@ static asn_per_constraints_t asn_PER_memb_fill_constr_11 CC_NOTUSED = { 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_fill_constr_11 CC_NOTUSED = { + 3}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ asn_TYPE_member_t asn_MBR_FreightContainerData_1[] = { { ATF_NOFLAGS, 0, offsetof(struct FreightContainerData, ownerCode), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), @@ -402,6 +410,9 @@ asn_TYPE_member_t asn_MBR_FreightContainerData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_ownerCode_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_memb_ownerCode_constr_2, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_ownerCode_constraint_1 }, 0, 0, /* No default value */ @@ -419,6 +430,9 @@ asn_TYPE_member_t asn_MBR_FreightContainerData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_serialNumber_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_serialNumber_constraint_1 }, 0, 0, /* No default value */ @@ -436,6 +450,9 @@ asn_TYPE_member_t asn_MBR_FreightContainerData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_checkDigit_constr_4, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_checkDigit_constraint_1 }, 0, 0, /* No default value */ @@ -453,6 +470,9 @@ asn_TYPE_member_t asn_MBR_FreightContainerData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_length_constr_5, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_length_constraint_1 }, 0, 0, /* No default value */ @@ -470,6 +490,9 @@ asn_TYPE_member_t asn_MBR_FreightContainerData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_height_constr_6, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_height_constraint_1 }, 0, 0, /* No default value */ @@ -487,6 +510,9 @@ asn_TYPE_member_t asn_MBR_FreightContainerData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_width_constr_7, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_width_constraint_1 }, 0, 0, /* No default value */ @@ -504,6 +530,9 @@ asn_TYPE_member_t asn_MBR_FreightContainerData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_containerTypeCode_constr_8, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_containerTypeCode_constraint_1 }, 0, 0, /* No default value */ @@ -521,6 +550,9 @@ asn_TYPE_member_t asn_MBR_FreightContainerData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_maximumGrossMass_constr_9, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_maximumGrossMass_constraint_1 }, 0, 0, /* No default value */ @@ -538,6 +570,9 @@ asn_TYPE_member_t asn_MBR_FreightContainerData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_tareMass_constr_10, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_tareMass_constraint_1 }, 0, 0, /* No default value */ @@ -555,6 +590,9 @@ asn_TYPE_member_t asn_MBR_FreightContainerData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_fill_constr_11, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_memb_fill_constr_11, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_fill_constraint_1 }, 0, 0, /* No default value */ @@ -601,6 +639,9 @@ asn_TYPE_descriptor_t asn_DEF_FreightContainerData = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_FreightContainerData_1, diff --git a/vanetza/asn1/its/FreightContainerData.h b/vanetza/asn1/its1/FreightContainerData.h similarity index 100% rename from vanetza/asn1/its/FreightContainerData.h rename to vanetza/asn1/its1/FreightContainerData.h diff --git a/vanetza/asn1/its/FrictionCoefficient.c b/vanetza/asn1/its1/FrictionCoefficient.c similarity index 96% rename from vanetza/asn1/its/FrictionCoefficient.c rename to vanetza/asn1/its1/FrictionCoefficient.c index 01e937337..424c95e35 100644 --- a/vanetza/asn1/its/FrictionCoefficient.c +++ b/vanetza/asn1/its1/FrictionCoefficient.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_FrictionCoefficient = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_FrictionCoefficient_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ FrictionCoefficient_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/FrictionCoefficient.h b/vanetza/asn1/its1/FrictionCoefficient.h similarity index 100% rename from vanetza/asn1/its/FrictionCoefficient.h rename to vanetza/asn1/its1/FrictionCoefficient.h diff --git a/vanetza/asn1/its/FrontOverhang.c b/vanetza/asn1/its1/FrontOverhang.c similarity index 96% rename from vanetza/asn1/its/FrontOverhang.c rename to vanetza/asn1/its1/FrontOverhang.c index 274dbc009..f6264c049 100644 --- a/vanetza/asn1/its/FrontOverhang.c +++ b/vanetza/asn1/its1/FrontOverhang.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_FrontOverhang = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_FrontOverhang_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ FrontOverhang_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/FrontOverhang.h b/vanetza/asn1/its1/FrontOverhang.h similarity index 100% rename from vanetza/asn1/its/FrontOverhang.h rename to vanetza/asn1/its1/FrontOverhang.h diff --git a/vanetza/asn1/its/FuelType.c b/vanetza/asn1/its1/FuelType.c similarity index 96% rename from vanetza/asn1/its/FuelType.c rename to vanetza/asn1/its1/FuelType.c index 5aec588bb..ea0f028a4 100644 --- a/vanetza/asn1/its/FuelType.c +++ b/vanetza/asn1/its1/FuelType.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_FuelType = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_FuelType_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ FuelType_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/FuelType.h b/vanetza/asn1/its1/FuelType.h similarity index 100% rename from vanetza/asn1/its/FuelType.h rename to vanetza/asn1/its1/FuelType.h diff --git a/vanetza/asn1/its/FullPositionVector.c b/vanetza/asn1/its1/FullPositionVector.c similarity index 88% rename from vanetza/asn1/its/FullPositionVector.c rename to vanetza/asn1/its1/FullPositionVector.c index fb28e67bb..d7660ff3f 100644 --- a/vanetza/asn1/its/FullPositionVector.c +++ b/vanetza/asn1/its1/FullPositionVector.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_FullPositionVector_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_FullPositionVector_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_FullPositionVector_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -71,6 +80,9 @@ asn_TYPE_member_t asn_MBR_FullPositionVector_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -88,6 +100,9 @@ asn_TYPE_member_t asn_MBR_FullPositionVector_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -105,6 +120,9 @@ asn_TYPE_member_t asn_MBR_FullPositionVector_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -122,6 +140,9 @@ asn_TYPE_member_t asn_MBR_FullPositionVector_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -139,6 +160,9 @@ asn_TYPE_member_t asn_MBR_FullPositionVector_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -156,6 +180,9 @@ asn_TYPE_member_t asn_MBR_FullPositionVector_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -173,6 +200,9 @@ asn_TYPE_member_t asn_MBR_FullPositionVector_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -221,6 +251,9 @@ asn_TYPE_descriptor_t asn_DEF_FullPositionVector = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_FullPositionVector_1, diff --git a/vanetza/asn1/its/FullPositionVector.h b/vanetza/asn1/its1/FullPositionVector.h similarity index 100% rename from vanetza/asn1/its/FullPositionVector.h rename to vanetza/asn1/its1/FullPositionVector.h diff --git a/vanetza/asn1/its/FutureCharacteristics.c b/vanetza/asn1/its1/FutureCharacteristics.c similarity index 96% rename from vanetza/asn1/its/FutureCharacteristics.c rename to vanetza/asn1/its1/FutureCharacteristics.c index 2dfeb83ae..5d3c20579 100644 --- a/vanetza/asn1/its/FutureCharacteristics.c +++ b/vanetza/asn1/its1/FutureCharacteristics.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_FutureCharacteristics = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_FutureCharacteristics_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ FutureCharacteristics_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/FutureCharacteristics.h b/vanetza/asn1/its1/FutureCharacteristics.h similarity index 100% rename from vanetza/asn1/its/FutureCharacteristics.h rename to vanetza/asn1/its1/FutureCharacteristics.h diff --git a/vanetza/asn1/its/GNSSstatus.c b/vanetza/asn1/its1/GNSSstatus.c similarity index 89% rename from vanetza/asn1/its/GNSSstatus.c rename to vanetza/asn1/its1/GNSSstatus.c index 66aad136b..634e65e00 100644 --- a/vanetza/asn1/its/GNSSstatus.c +++ b/vanetza/asn1/its1/GNSSstatus.c @@ -54,6 +54,10 @@ asn_per_constraints_t asn_PER_type_GNSSstatus_constr_1 CC_NOTUSED = { 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_GNSSstatus_constr_1 CC_NOTUSED = { + 8}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_GNSSstatus_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) }; @@ -74,6 +78,9 @@ asn_TYPE_descriptor_t asn_DEF_GNSSstatus = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_GNSSstatus_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_GNSSstatus_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ GNSSstatus_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/GNSSstatus.h b/vanetza/asn1/its1/GNSSstatus.h similarity index 100% rename from vanetza/asn1/its/GNSSstatus.h rename to vanetza/asn1/its1/GNSSstatus.h diff --git a/vanetza/asn1/its/GapBetweenVehicles.c b/vanetza/asn1/its1/GapBetweenVehicles.c similarity index 96% rename from vanetza/asn1/its/GapBetweenVehicles.c rename to vanetza/asn1/its1/GapBetweenVehicles.c index 17cd66437..6f6876490 100644 --- a/vanetza/asn1/its/GapBetweenVehicles.c +++ b/vanetza/asn1/its1/GapBetweenVehicles.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_GapBetweenVehicles = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_GapBetweenVehicles_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ GapBetweenVehicles_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/GapBetweenVehicles.h b/vanetza/asn1/its1/GapBetweenVehicles.h similarity index 100% rename from vanetza/asn1/its/GapBetweenVehicles.h rename to vanetza/asn1/its1/GapBetweenVehicles.h diff --git a/vanetza/asn1/its/GddAttribute.c b/vanetza/asn1/its1/GddAttribute.c similarity index 88% rename from vanetza/asn1/its/GddAttribute.c rename to vanetza/asn1/its1/GddAttribute.c index c2100838a..628d7bb86 100644 --- a/vanetza/asn1/its/GddAttribute.c +++ b/vanetza/asn1/its1/GddAttribute.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_GddAttribute_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_GddAttribute_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -66,6 +72,9 @@ asn_TYPE_member_t asn_MBR_GddAttribute_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -83,6 +92,9 @@ asn_TYPE_member_t asn_MBR_GddAttribute_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -100,6 +112,9 @@ asn_TYPE_member_t asn_MBR_GddAttribute_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -117,6 +132,9 @@ asn_TYPE_member_t asn_MBR_GddAttribute_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -134,6 +152,9 @@ asn_TYPE_member_t asn_MBR_GddAttribute_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -151,6 +172,9 @@ asn_TYPE_member_t asn_MBR_GddAttribute_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -168,6 +192,9 @@ asn_TYPE_member_t asn_MBR_GddAttribute_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -185,6 +212,9 @@ asn_TYPE_member_t asn_MBR_GddAttribute_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -228,6 +258,9 @@ asn_TYPE_descriptor_t asn_DEF_GddAttribute = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_GddAttribute_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_GddAttribute_1, diff --git a/vanetza/asn1/its/GddAttribute.h b/vanetza/asn1/its1/GddAttribute.h similarity index 100% rename from vanetza/asn1/its/GddAttribute.h rename to vanetza/asn1/its1/GddAttribute.h diff --git a/vanetza/asn1/its/GddAttributes.c b/vanetza/asn1/its1/GddAttributes.c similarity index 92% rename from vanetza/asn1/its/GddAttributes.c rename to vanetza/asn1/its1/GddAttributes.c index 97e63aaa8..6ea4541b1 100644 --- a/vanetza/asn1/its/GddAttributes.c +++ b/vanetza/asn1/its1/GddAttributes.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_GddAttributes_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_GddAttributes = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_GddAttributes_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_GddAttributes_1, diff --git a/vanetza/asn1/its/GddAttributes.h b/vanetza/asn1/its1/GddAttributes.h similarity index 100% rename from vanetza/asn1/its/GddAttributes.h rename to vanetza/asn1/its1/GddAttributes.h diff --git a/vanetza/asn1/its/GddStructure.c b/vanetza/asn1/its1/GddStructure.c similarity index 93% rename from vanetza/asn1/its/GddStructure.c rename to vanetza/asn1/its1/GddStructure.c index 1f7fb4730..4ad9d6778 100644 --- a/vanetza/asn1/its/GddStructure.c +++ b/vanetza/asn1/its1/GddStructure.c @@ -222,6 +222,9 @@ asn_TYPE_descriptor_t asn_DEF_trafficSignPictogram_5 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_trafficSignPictogram_constr_5, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ @@ -267,6 +270,9 @@ asn_TYPE_descriptor_t asn_DEF_publicFacilitiesPictogram_10 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_publicFacilitiesPictogram_constr_10, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ @@ -314,6 +320,9 @@ asn_TYPE_descriptor_t asn_DEF_ambientOrRoadConditionPictogram_13 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ambientOrRoadConditionPictogram_constr_13, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ @@ -333,6 +342,9 @@ static asn_TYPE_member_t asn_MBR_serviceCategoryCode_4[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -350,6 +362,9 @@ static asn_TYPE_member_t asn_MBR_serviceCategoryCode_4[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -367,6 +382,9 @@ static asn_TYPE_member_t asn_MBR_serviceCategoryCode_4[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -404,6 +422,9 @@ asn_TYPE_descriptor_t asn_DEF_serviceCategoryCode_4 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_serviceCategoryCode_constr_4, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_serviceCategoryCode_4, @@ -424,6 +445,9 @@ static asn_TYPE_member_t asn_MBR_pictogramCategoryCode_18[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_nature_constr_19, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_nature_constraint_18 }, 0, 0, /* No default value */ @@ -441,6 +465,9 @@ static asn_TYPE_member_t asn_MBR_pictogramCategoryCode_18[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_serialNumber_constr_20, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_serialNumber_constraint_18 }, 0, 0, /* No default value */ @@ -481,6 +508,9 @@ asn_TYPE_descriptor_t asn_DEF_pictogramCategoryCode_18 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_pictogramCategoryCode_18, @@ -501,6 +531,9 @@ static asn_TYPE_member_t asn_MBR_pictogramCode_2[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_countryCode_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_countryCode_constraint_2 }, 0, 0, /* No default value */ @@ -518,6 +551,9 @@ static asn_TYPE_member_t asn_MBR_pictogramCode_2[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -535,6 +571,9 @@ static asn_TYPE_member_t asn_MBR_pictogramCode_2[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -578,6 +617,9 @@ asn_TYPE_descriptor_t asn_DEF_pictogramCode_2 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_pictogramCode_2, @@ -598,6 +640,9 @@ asn_TYPE_member_t asn_MBR_GddStructure_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -615,6 +660,9 @@ asn_TYPE_member_t asn_MBR_GddStructure_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -655,6 +703,9 @@ asn_TYPE_descriptor_t asn_DEF_GddStructure = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_GddStructure_1, diff --git a/vanetza/asn1/its/GddStructure.h b/vanetza/asn1/its1/GddStructure.h similarity index 100% rename from vanetza/asn1/its/GddStructure.h rename to vanetza/asn1/its1/GddStructure.h diff --git a/vanetza/asn1/its/GeneralIviContainer.c b/vanetza/asn1/its1/GeneralIviContainer.c similarity index 93% rename from vanetza/asn1/its/GeneralIviContainer.c rename to vanetza/asn1/its1/GeneralIviContainer.c index 20e236635..358c239f9 100644 --- a/vanetza/asn1/its/GeneralIviContainer.c +++ b/vanetza/asn1/its1/GeneralIviContainer.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_GeneralIviContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_GeneralIviContainer = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_GeneralIviContainer_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_GeneralIviContainer_1, diff --git a/vanetza/asn1/its/GeneralIviContainer.h b/vanetza/asn1/its1/GeneralIviContainer.h similarity index 100% rename from vanetza/asn1/its/GeneralIviContainer.h rename to vanetza/asn1/its1/GeneralIviContainer.h diff --git a/vanetza/asn1/its1/GenerationDeltaTime.c b/vanetza/asn1/its1/GenerationDeltaTime.c new file mode 100644 index 000000000..03629d014 --- /dev/null +++ b/vanetza/asn1/its1/GenerationDeltaTime.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/EN302637-2v141-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "GenerationDeltaTime.h" + +int +GenerationDeltaTime_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_GenerationDeltaTime_constr_1 CC_NOTUSED = { + { 2, 1 } /* (0..65535) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GenerationDeltaTime_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_GenerationDeltaTime_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_GenerationDeltaTime = { + "GenerationDeltaTime", + "GenerationDeltaTime", + &asn_OP_NativeInteger, + asn_DEF_GenerationDeltaTime_tags_1, + sizeof(asn_DEF_GenerationDeltaTime_tags_1) + /sizeof(asn_DEF_GenerationDeltaTime_tags_1[0]), /* 1 */ + asn_DEF_GenerationDeltaTime_tags_1, /* Same as above */ + sizeof(asn_DEF_GenerationDeltaTime_tags_1) + /sizeof(asn_DEF_GenerationDeltaTime_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_GenerationDeltaTime_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GenerationDeltaTime_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + GenerationDeltaTime_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/GenerationDeltaTime.h b/vanetza/asn1/its1/GenerationDeltaTime.h similarity index 100% rename from vanetza/asn1/its/GenerationDeltaTime.h rename to vanetza/asn1/its1/GenerationDeltaTime.h diff --git a/vanetza/asn1/its/GenericLane.c b/vanetza/asn1/its1/GenericLane.c similarity index 89% rename from vanetza/asn1/its/GenericLane.c rename to vanetza/asn1/its1/GenericLane.c index 503946852..ec428a9fb 100644 --- a/vanetza/asn1/its/GenericLane.c +++ b/vanetza/asn1/its1/GenericLane.c @@ -70,6 +70,9 @@ static asn_TYPE_member_t asn_MBR_regional_11[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -103,6 +106,9 @@ asn_TYPE_descriptor_t asn_DEF_regional_11 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_regional_constr_11, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_regional_11, @@ -123,6 +129,9 @@ asn_TYPE_member_t asn_MBR_GenericLane_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -140,6 +149,9 @@ asn_TYPE_member_t asn_MBR_GenericLane_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -157,6 +169,9 @@ asn_TYPE_member_t asn_MBR_GenericLane_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -174,6 +189,9 @@ asn_TYPE_member_t asn_MBR_GenericLane_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -191,6 +209,9 @@ asn_TYPE_member_t asn_MBR_GenericLane_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -208,6 +229,9 @@ asn_TYPE_member_t asn_MBR_GenericLane_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -225,6 +249,9 @@ asn_TYPE_member_t asn_MBR_GenericLane_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -242,6 +269,9 @@ asn_TYPE_member_t asn_MBR_GenericLane_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -259,6 +289,9 @@ asn_TYPE_member_t asn_MBR_GenericLane_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -276,6 +309,9 @@ asn_TYPE_member_t asn_MBR_GenericLane_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regional_constr_11, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regional_constraint_1 }, 0, 0, /* No default value */ @@ -324,6 +360,9 @@ asn_TYPE_descriptor_t asn_DEF_GenericLane = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_GenericLane_1, diff --git a/vanetza/asn1/its/GenericLane.h b/vanetza/asn1/its1/GenericLane.h similarity index 100% rename from vanetza/asn1/its/GenericLane.h rename to vanetza/asn1/its1/GenericLane.h diff --git a/vanetza/asn1/its/GeoGraphicalLimit.c b/vanetza/asn1/its1/GeoGraphicalLimit.c similarity index 89% rename from vanetza/asn1/its/GeoGraphicalLimit.c rename to vanetza/asn1/its1/GeoGraphicalLimit.c index 5a265fa68..3f22ec446 100644 --- a/vanetza/asn1/its/GeoGraphicalLimit.c +++ b/vanetza/asn1/its1/GeoGraphicalLimit.c @@ -54,6 +54,10 @@ asn_per_constraints_t asn_PER_type_GeoGraphicalLimit_constr_1 CC_NOTUSED = { 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_GeoGraphicalLimit_constr_1 CC_NOTUSED = { + 8}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_GeoGraphicalLimit_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) }; @@ -74,6 +78,9 @@ asn_TYPE_descriptor_t asn_DEF_GeoGraphicalLimit = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_GeoGraphicalLimit_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_GeoGraphicalLimit_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ GeoGraphicalLimit_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/GeoGraphicalLimit.h b/vanetza/asn1/its1/GeoGraphicalLimit.h similarity index 100% rename from vanetza/asn1/its/GeoGraphicalLimit.h rename to vanetza/asn1/its1/GeoGraphicalLimit.h diff --git a/vanetza/asn1/its/GeographicLocationContainer.c b/vanetza/asn1/its1/GeographicLocationContainer.c similarity index 89% rename from vanetza/asn1/its/GeographicLocationContainer.c rename to vanetza/asn1/its1/GeographicLocationContainer.c index 42af3b3f2..c3fe9b853 100644 --- a/vanetza/asn1/its/GeographicLocationContainer.c +++ b/vanetza/asn1/its1/GeographicLocationContainer.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_GeographicLocationContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_GeographicLocationContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_GeographicLocationContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -71,6 +80,9 @@ asn_TYPE_member_t asn_MBR_GeographicLocationContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -88,6 +100,9 @@ asn_TYPE_member_t asn_MBR_GeographicLocationContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -131,6 +146,9 @@ asn_TYPE_descriptor_t asn_DEF_GeographicLocationContainer = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_GeographicLocationContainer_1, diff --git a/vanetza/asn1/its/GeographicLocationContainer.h b/vanetza/asn1/its1/GeographicLocationContainer.h similarity index 100% rename from vanetza/asn1/its/GeographicLocationContainer.h rename to vanetza/asn1/its1/GeographicLocationContainer.h diff --git a/vanetza/asn1/its/GetInstanceRq.c b/vanetza/asn1/its1/GetInstanceRq.c similarity index 94% rename from vanetza/asn1/its/GetInstanceRq.c rename to vanetza/asn1/its1/GetInstanceRq.c index f8f2f090d..28d860bf1 100644 --- a/vanetza/asn1/its/GetInstanceRq.c +++ b/vanetza/asn1/its1/GetInstanceRq.c @@ -94,6 +94,9 @@ static asn_TYPE_member_t asn_MBR_GetInstanceRq_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_posOfFirstInstance_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_posOfFirstInstance_constraint_1 }, 0, 0, /* No default value */ @@ -111,6 +114,9 @@ static asn_TYPE_member_t asn_MBR_GetInstanceRq_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_posOfLastInstance_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_posOfLastInstance_constraint_1 }, 0, 0, /* No default value */ @@ -128,6 +134,9 @@ static asn_TYPE_member_t asn_MBR_GetInstanceRq_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -167,6 +176,9 @@ asn_TYPE_descriptor_t asn_DEF_GetInstanceRq = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_GetInstanceRq_1, diff --git a/vanetza/asn1/its/GetInstanceRq.h b/vanetza/asn1/its1/GetInstanceRq.h similarity index 100% rename from vanetza/asn1/its/GetInstanceRq.h rename to vanetza/asn1/its1/GetInstanceRq.h diff --git a/vanetza/asn1/its/GetInstanceRs.c b/vanetza/asn1/its1/GetInstanceRs.c similarity index 100% rename from vanetza/asn1/its/GetInstanceRs.c rename to vanetza/asn1/its1/GetInstanceRs.c diff --git a/vanetza/asn1/its/GetInstanceRs.h b/vanetza/asn1/its1/GetInstanceRs.h similarity index 100% rename from vanetza/asn1/its/GetInstanceRs.h rename to vanetza/asn1/its1/GetInstanceRs.h diff --git a/vanetza/asn1/its/GetStampedRq.c b/vanetza/asn1/its1/GetStampedRq.c similarity index 92% rename from vanetza/asn1/its/GetStampedRq.c rename to vanetza/asn1/its1/GetStampedRq.c index f86229e83..c5995a0e6 100644 --- a/vanetza/asn1/its/GetStampedRq.c +++ b/vanetza/asn1/its1/GetStampedRq.c @@ -57,6 +57,9 @@ static asn_TYPE_member_t asn_MBR_GetStampedRq_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -74,6 +77,9 @@ static asn_TYPE_member_t asn_MBR_GetStampedRq_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -91,6 +97,9 @@ static asn_TYPE_member_t asn_MBR_GetStampedRq_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_keyRef_constr_4, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_keyRef_constraint_1 }, 0, 0, /* No default value */ @@ -130,6 +139,9 @@ asn_TYPE_descriptor_t asn_DEF_GetStampedRq = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_GetStampedRq_1, diff --git a/vanetza/asn1/its/GetStampedRq.h b/vanetza/asn1/its1/GetStampedRq.h similarity index 100% rename from vanetza/asn1/its/GetStampedRq.h rename to vanetza/asn1/its1/GetStampedRq.h diff --git a/vanetza/asn1/its/GetStampedRs.c b/vanetza/asn1/its1/GetStampedRs.c similarity index 100% rename from vanetza/asn1/its/GetStampedRs.c rename to vanetza/asn1/its1/GetStampedRs.c diff --git a/vanetza/asn1/its/GetStampedRs.h b/vanetza/asn1/its1/GetStampedRs.h similarity index 100% rename from vanetza/asn1/its/GetStampedRs.h rename to vanetza/asn1/its1/GetStampedRs.h diff --git a/vanetza/asn1/its/GicPart.c b/vanetza/asn1/its1/GicPart.c similarity index 90% rename from vanetza/asn1/its/GicPart.c rename to vanetza/asn1/its1/GicPart.c index e9808c262..3c75b1569 100644 --- a/vanetza/asn1/its/GicPart.c +++ b/vanetza/asn1/its1/GicPart.c @@ -131,6 +131,9 @@ asn_TYPE_member_t asn_MBR_GicPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -148,6 +151,9 @@ asn_TYPE_member_t asn_MBR_GicPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -165,6 +171,9 @@ asn_TYPE_member_t asn_MBR_GicPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -182,6 +191,9 @@ asn_TYPE_member_t asn_MBR_GicPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -199,6 +211,9 @@ asn_TYPE_member_t asn_MBR_GicPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -216,6 +231,9 @@ asn_TYPE_member_t asn_MBR_GicPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_minimumAwarenessTime_constr_7, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_minimumAwarenessTime_constraint_1 }, 0, 0, /* No default value */ @@ -233,6 +251,9 @@ asn_TYPE_member_t asn_MBR_GicPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -250,6 +271,9 @@ asn_TYPE_member_t asn_MBR_GicPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -267,6 +291,9 @@ asn_TYPE_member_t asn_MBR_GicPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -284,6 +311,9 @@ asn_TYPE_member_t asn_MBR_GicPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -301,6 +331,9 @@ asn_TYPE_member_t asn_MBR_GicPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -318,6 +351,9 @@ asn_TYPE_member_t asn_MBR_GicPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -335,6 +371,9 @@ asn_TYPE_member_t asn_MBR_GicPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_layoutId_constr_14, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_layoutId_constraint_1 }, 0, 0, /* No default value */ @@ -352,6 +391,9 @@ asn_TYPE_member_t asn_MBR_GicPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_preStoredlayoutId_constr_15, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_preStoredlayoutId_constraint_1 }, 0, 0, /* No default value */ @@ -369,6 +411,9 @@ asn_TYPE_member_t asn_MBR_GicPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -386,6 +431,9 @@ asn_TYPE_member_t asn_MBR_GicPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -440,6 +488,9 @@ asn_TYPE_descriptor_t asn_DEF_GicPart = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_GicPart_1, diff --git a/vanetza/asn1/its/GicPart.h b/vanetza/asn1/its1/GicPart.h similarity index 100% rename from vanetza/asn1/its/GicPart.h rename to vanetza/asn1/its1/GicPart.h diff --git a/vanetza/asn1/its/GlcPart.c b/vanetza/asn1/its1/GlcPart.c similarity index 90% rename from vanetza/asn1/its/GlcPart.c rename to vanetza/asn1/its1/GlcPart.c index c0b179a7e..541656640 100644 --- a/vanetza/asn1/its/GlcPart.c +++ b/vanetza/asn1/its1/GlcPart.c @@ -57,6 +57,9 @@ asn_TYPE_member_t asn_MBR_GlcPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -74,6 +77,9 @@ asn_TYPE_member_t asn_MBR_GlcPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -91,6 +97,9 @@ asn_TYPE_member_t asn_MBR_GlcPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_zoneExtension_constr_4, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_zoneExtension_constraint_1 }, 0, 0, /* No default value */ @@ -108,6 +117,9 @@ asn_TYPE_member_t asn_MBR_GlcPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -125,6 +137,9 @@ asn_TYPE_member_t asn_MBR_GlcPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -168,6 +183,9 @@ asn_TYPE_descriptor_t asn_DEF_GlcPart = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_GlcPart_1, diff --git a/vanetza/asn1/its/GlcPart.h b/vanetza/asn1/its1/GlcPart.h similarity index 100% rename from vanetza/asn1/its/GlcPart.h rename to vanetza/asn1/its1/GlcPart.h diff --git a/vanetza/asn1/its/GlcParts.c b/vanetza/asn1/its1/GlcParts.c similarity index 92% rename from vanetza/asn1/its/GlcParts.c rename to vanetza/asn1/its1/GlcParts.c index 40fee5821..40d7288d0 100644 --- a/vanetza/asn1/its/GlcParts.c +++ b/vanetza/asn1/its1/GlcParts.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_GlcParts_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_GlcParts = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_GlcParts_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_GlcParts_1, diff --git a/vanetza/asn1/its/GlcParts.h b/vanetza/asn1/its1/GlcParts.h similarity index 100% rename from vanetza/asn1/its/GlcParts.h rename to vanetza/asn1/its1/GlcParts.h diff --git a/vanetza/asn1/its/GoodsType.c b/vanetza/asn1/its1/GoodsType.c similarity index 96% rename from vanetza/asn1/its/GoodsType.c rename to vanetza/asn1/its1/GoodsType.c index efaabd45e..52d600af2 100644 --- a/vanetza/asn1/its/GoodsType.c +++ b/vanetza/asn1/its1/GoodsType.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_GoodsType = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_GoodsType_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ GoodsType_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/GoodsType.h b/vanetza/asn1/its1/GoodsType.h similarity index 100% rename from vanetza/asn1/its/GoodsType.h rename to vanetza/asn1/its1/GoodsType.h diff --git a/vanetza/asn1/its1/HardShoulderStatus.c b/vanetza/asn1/its1/HardShoulderStatus.c new file mode 100644 index 000000000..d89aa593a --- /dev/null +++ b/vanetza/asn1/its1/HardShoulderStatus.c @@ -0,0 +1,73 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "HardShoulderStatus.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_HardShoulderStatus_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_HardShoulderStatus_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_HardShoulderStatus_value2enum_1[] = { + { 0, 20, "availableForStopping" }, + { 1, 6, "closed" }, + { 2, 19, "availableForDriving" } +}; +static const unsigned int asn_MAP_HardShoulderStatus_enum2value_1[] = { + 2, /* availableForDriving(2) */ + 0, /* availableForStopping(0) */ + 1 /* closed(1) */ +}; +const asn_INTEGER_specifics_t asn_SPC_HardShoulderStatus_specs_1 = { + asn_MAP_HardShoulderStatus_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_HardShoulderStatus_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_HardShoulderStatus_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_HardShoulderStatus = { + "HardShoulderStatus", + "HardShoulderStatus", + &asn_OP_NativeEnumerated, + asn_DEF_HardShoulderStatus_tags_1, + sizeof(asn_DEF_HardShoulderStatus_tags_1) + /sizeof(asn_DEF_HardShoulderStatus_tags_1[0]), /* 1 */ + asn_DEF_HardShoulderStatus_tags_1, /* Same as above */ + sizeof(asn_DEF_HardShoulderStatus_tags_1) + /sizeof(asn_DEF_HardShoulderStatus_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_HardShoulderStatus_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_HardShoulderStatus_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_HardShoulderStatus_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/HardShoulderStatus.h b/vanetza/asn1/its1/HardShoulderStatus.h similarity index 100% rename from vanetza/asn1/its/HardShoulderStatus.h rename to vanetza/asn1/its1/HardShoulderStatus.h diff --git a/vanetza/asn1/its1/HazardousLocation-AnimalOnTheRoadSubCauseCode.c b/vanetza/asn1/its1/HazardousLocation-AnimalOnTheRoadSubCauseCode.c new file mode 100644 index 000000000..99e3d566e --- /dev/null +++ b/vanetza/asn1/its1/HazardousLocation-AnimalOnTheRoadSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "HazardousLocation-AnimalOnTheRoadSubCauseCode.h" + +int +HazardousLocation_AnimalOnTheRoadSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_HazardousLocation_AnimalOnTheRoadSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_HazardousLocation_AnimalOnTheRoadSubCauseCode_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_HazardousLocation_AnimalOnTheRoadSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_HazardousLocation_AnimalOnTheRoadSubCauseCode = { + "HazardousLocation-AnimalOnTheRoadSubCauseCode", + "HazardousLocation-AnimalOnTheRoadSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_HazardousLocation_AnimalOnTheRoadSubCauseCode_tags_1, + sizeof(asn_DEF_HazardousLocation_AnimalOnTheRoadSubCauseCode_tags_1) + /sizeof(asn_DEF_HazardousLocation_AnimalOnTheRoadSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_HazardousLocation_AnimalOnTheRoadSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_HazardousLocation_AnimalOnTheRoadSubCauseCode_tags_1) + /sizeof(asn_DEF_HazardousLocation_AnimalOnTheRoadSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_HazardousLocation_AnimalOnTheRoadSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_HazardousLocation_AnimalOnTheRoadSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + HazardousLocation_AnimalOnTheRoadSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/HazardousLocation-AnimalOnTheRoadSubCauseCode.h b/vanetza/asn1/its1/HazardousLocation-AnimalOnTheRoadSubCauseCode.h similarity index 100% rename from vanetza/asn1/its/HazardousLocation-AnimalOnTheRoadSubCauseCode.h rename to vanetza/asn1/its1/HazardousLocation-AnimalOnTheRoadSubCauseCode.h diff --git a/vanetza/asn1/its1/HazardousLocation-DangerousCurveSubCauseCode.c b/vanetza/asn1/its1/HazardousLocation-DangerousCurveSubCauseCode.c new file mode 100644 index 000000000..a7fa9b892 --- /dev/null +++ b/vanetza/asn1/its1/HazardousLocation-DangerousCurveSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "HazardousLocation-DangerousCurveSubCauseCode.h" + +int +HazardousLocation_DangerousCurveSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_HazardousLocation_DangerousCurveSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_HazardousLocation_DangerousCurveSubCauseCode_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_HazardousLocation_DangerousCurveSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_HazardousLocation_DangerousCurveSubCauseCode = { + "HazardousLocation-DangerousCurveSubCauseCode", + "HazardousLocation-DangerousCurveSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_HazardousLocation_DangerousCurveSubCauseCode_tags_1, + sizeof(asn_DEF_HazardousLocation_DangerousCurveSubCauseCode_tags_1) + /sizeof(asn_DEF_HazardousLocation_DangerousCurveSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_HazardousLocation_DangerousCurveSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_HazardousLocation_DangerousCurveSubCauseCode_tags_1) + /sizeof(asn_DEF_HazardousLocation_DangerousCurveSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_HazardousLocation_DangerousCurveSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_HazardousLocation_DangerousCurveSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + HazardousLocation_DangerousCurveSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/HazardousLocation-DangerousCurveSubCauseCode.h b/vanetza/asn1/its1/HazardousLocation-DangerousCurveSubCauseCode.h similarity index 100% rename from vanetza/asn1/its/HazardousLocation-DangerousCurveSubCauseCode.h rename to vanetza/asn1/its1/HazardousLocation-DangerousCurveSubCauseCode.h diff --git a/vanetza/asn1/its1/HazardousLocation-ObstacleOnTheRoadSubCauseCode.c b/vanetza/asn1/its1/HazardousLocation-ObstacleOnTheRoadSubCauseCode.c new file mode 100644 index 000000000..bc1bfdd6a --- /dev/null +++ b/vanetza/asn1/its1/HazardousLocation-ObstacleOnTheRoadSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "HazardousLocation-ObstacleOnTheRoadSubCauseCode.h" + +int +HazardousLocation_ObstacleOnTheRoadSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_HazardousLocation_ObstacleOnTheRoadSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_HazardousLocation_ObstacleOnTheRoadSubCauseCode_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_HazardousLocation_ObstacleOnTheRoadSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_HazardousLocation_ObstacleOnTheRoadSubCauseCode = { + "HazardousLocation-ObstacleOnTheRoadSubCauseCode", + "HazardousLocation-ObstacleOnTheRoadSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_HazardousLocation_ObstacleOnTheRoadSubCauseCode_tags_1, + sizeof(asn_DEF_HazardousLocation_ObstacleOnTheRoadSubCauseCode_tags_1) + /sizeof(asn_DEF_HazardousLocation_ObstacleOnTheRoadSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_HazardousLocation_ObstacleOnTheRoadSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_HazardousLocation_ObstacleOnTheRoadSubCauseCode_tags_1) + /sizeof(asn_DEF_HazardousLocation_ObstacleOnTheRoadSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_HazardousLocation_ObstacleOnTheRoadSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_HazardousLocation_ObstacleOnTheRoadSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + HazardousLocation_ObstacleOnTheRoadSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/HazardousLocation-ObstacleOnTheRoadSubCauseCode.h b/vanetza/asn1/its1/HazardousLocation-ObstacleOnTheRoadSubCauseCode.h similarity index 100% rename from vanetza/asn1/its/HazardousLocation-ObstacleOnTheRoadSubCauseCode.h rename to vanetza/asn1/its1/HazardousLocation-ObstacleOnTheRoadSubCauseCode.h diff --git a/vanetza/asn1/its1/HazardousLocation-SurfaceConditionSubCauseCode.c b/vanetza/asn1/its1/HazardousLocation-SurfaceConditionSubCauseCode.c new file mode 100644 index 000000000..9ff9949d5 --- /dev/null +++ b/vanetza/asn1/its1/HazardousLocation-SurfaceConditionSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "HazardousLocation-SurfaceConditionSubCauseCode.h" + +int +HazardousLocation_SurfaceConditionSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_HazardousLocation_SurfaceConditionSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_HazardousLocation_SurfaceConditionSubCauseCode_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_HazardousLocation_SurfaceConditionSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_HazardousLocation_SurfaceConditionSubCauseCode = { + "HazardousLocation-SurfaceConditionSubCauseCode", + "HazardousLocation-SurfaceConditionSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_HazardousLocation_SurfaceConditionSubCauseCode_tags_1, + sizeof(asn_DEF_HazardousLocation_SurfaceConditionSubCauseCode_tags_1) + /sizeof(asn_DEF_HazardousLocation_SurfaceConditionSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_HazardousLocation_SurfaceConditionSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_HazardousLocation_SurfaceConditionSubCauseCode_tags_1) + /sizeof(asn_DEF_HazardousLocation_SurfaceConditionSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_HazardousLocation_SurfaceConditionSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_HazardousLocation_SurfaceConditionSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + HazardousLocation_SurfaceConditionSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/HazardousLocation-SurfaceConditionSubCauseCode.h b/vanetza/asn1/its1/HazardousLocation-SurfaceConditionSubCauseCode.h similarity index 100% rename from vanetza/asn1/its/HazardousLocation-SurfaceConditionSubCauseCode.h rename to vanetza/asn1/its1/HazardousLocation-SurfaceConditionSubCauseCode.h diff --git a/vanetza/asn1/its1/Heading.c b/vanetza/asn1/its1/Heading.c new file mode 100644 index 000000000..15408c3bd --- /dev/null +++ b/vanetza/asn1/its1/Heading.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Heading.h" + +asn_TYPE_member_t asn_MBR_Heading_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Heading, headingValue), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HeadingValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "headingValue" + }, + { ATF_NOFLAGS, 0, offsetof(struct Heading, headingConfidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HeadingConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "headingConfidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_Heading_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Heading_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* headingValue */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* headingConfidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Heading_specs_1 = { + sizeof(struct Heading), + offsetof(struct Heading, _asn_ctx), + asn_MAP_Heading_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_Heading = { + "Heading", + "Heading", + &asn_OP_SEQUENCE, + asn_DEF_Heading_tags_1, + sizeof(asn_DEF_Heading_tags_1) + /sizeof(asn_DEF_Heading_tags_1[0]), /* 1 */ + asn_DEF_Heading_tags_1, /* Same as above */ + sizeof(asn_DEF_Heading_tags_1) + /sizeof(asn_DEF_Heading_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Heading_1, + 2, /* Elements count */ + &asn_SPC_Heading_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/Heading.h b/vanetza/asn1/its1/Heading.h similarity index 100% rename from vanetza/asn1/its/Heading.h rename to vanetza/asn1/its1/Heading.h diff --git a/vanetza/asn1/its1/HeadingConfidence.c b/vanetza/asn1/its1/HeadingConfidence.c new file mode 100644 index 000000000..1546e6390 --- /dev/null +++ b/vanetza/asn1/its1/HeadingConfidence.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "HeadingConfidence.h" + +int +HeadingConfidence_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 <= 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_HeadingConfidence_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..127) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_HeadingConfidence_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 1, 127 } /* (1..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_HeadingConfidence_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_HeadingConfidence = { + "HeadingConfidence", + "HeadingConfidence", + &asn_OP_NativeInteger, + asn_DEF_HeadingConfidence_tags_1, + sizeof(asn_DEF_HeadingConfidence_tags_1) + /sizeof(asn_DEF_HeadingConfidence_tags_1[0]), /* 1 */ + asn_DEF_HeadingConfidence_tags_1, /* Same as above */ + sizeof(asn_DEF_HeadingConfidence_tags_1) + /sizeof(asn_DEF_HeadingConfidence_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_HeadingConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_HeadingConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + HeadingConfidence_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/HeadingConfidence.h b/vanetza/asn1/its1/HeadingConfidence.h similarity index 100% rename from vanetza/asn1/its/HeadingConfidence.h rename to vanetza/asn1/its1/HeadingConfidence.h diff --git a/vanetza/asn1/its/HeadingIso.c b/vanetza/asn1/its1/HeadingIso.c similarity index 96% rename from vanetza/asn1/its/HeadingIso.c rename to vanetza/asn1/its1/HeadingIso.c index 3eeb92255..45447e416 100644 --- a/vanetza/asn1/its/HeadingIso.c +++ b/vanetza/asn1/its1/HeadingIso.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_HeadingIso = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_HeadingIso_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ HeadingIso_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/HeadingIso.h b/vanetza/asn1/its1/HeadingIso.h similarity index 100% rename from vanetza/asn1/its/HeadingIso.h rename to vanetza/asn1/its1/HeadingIso.h diff --git a/vanetza/asn1/its/HeadingIsoConfidenceIso.c b/vanetza/asn1/its1/HeadingIsoConfidenceIso.c similarity index 96% rename from vanetza/asn1/its/HeadingIsoConfidenceIso.c rename to vanetza/asn1/its1/HeadingIsoConfidenceIso.c index fad3ea5d8..d2001b499 100644 --- a/vanetza/asn1/its/HeadingIsoConfidenceIso.c +++ b/vanetza/asn1/its1/HeadingIsoConfidenceIso.c @@ -72,6 +72,9 @@ asn_TYPE_descriptor_t asn_DEF_HeadingIsoConfidenceIso = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_HeadingIsoConfidenceIso_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/HeadingIsoConfidenceIso.h b/vanetza/asn1/its1/HeadingIsoConfidenceIso.h similarity index 100% rename from vanetza/asn1/its/HeadingIsoConfidenceIso.h rename to vanetza/asn1/its1/HeadingIsoConfidenceIso.h diff --git a/vanetza/asn1/its1/HeadingValue.c b/vanetza/asn1/its1/HeadingValue.c new file mode 100644 index 000000000..478c11354 --- /dev/null +++ b/vanetza/asn1/its1/HeadingValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "HeadingValue.h" + +int +HeadingValue_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 <= 3601L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_HeadingValue_constr_1 CC_NOTUSED = { + { 2, 1 } /* (0..3601) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_HeadingValue_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 3601 } /* (0..3601) */, + { 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_HeadingValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_HeadingValue = { + "HeadingValue", + "HeadingValue", + &asn_OP_NativeInteger, + asn_DEF_HeadingValue_tags_1, + sizeof(asn_DEF_HeadingValue_tags_1) + /sizeof(asn_DEF_HeadingValue_tags_1[0]), /* 1 */ + asn_DEF_HeadingValue_tags_1, /* Same as above */ + sizeof(asn_DEF_HeadingValue_tags_1) + /sizeof(asn_DEF_HeadingValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_HeadingValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_HeadingValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + HeadingValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/HeadingValue.h b/vanetza/asn1/its1/HeadingValue.h similarity index 100% rename from vanetza/asn1/its/HeadingValue.h rename to vanetza/asn1/its1/HeadingValue.h diff --git a/vanetza/asn1/its1/HeightLonCarr.c b/vanetza/asn1/its1/HeightLonCarr.c new file mode 100644 index 000000000..f2d25908f --- /dev/null +++ b/vanetza/asn1/its1/HeightLonCarr.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "HeightLonCarr.h" + +int +HeightLonCarr_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 <= 100L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_HeightLonCarr_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..100) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_HeightLonCarr_constr_1 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) */ +static const ber_tlv_tag_t asn_DEF_HeightLonCarr_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_HeightLonCarr = { + "HeightLonCarr", + "HeightLonCarr", + &asn_OP_NativeInteger, + asn_DEF_HeightLonCarr_tags_1, + sizeof(asn_DEF_HeightLonCarr_tags_1) + /sizeof(asn_DEF_HeightLonCarr_tags_1[0]), /* 1 */ + asn_DEF_HeightLonCarr_tags_1, /* Same as above */ + sizeof(asn_DEF_HeightLonCarr_tags_1) + /sizeof(asn_DEF_HeightLonCarr_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_HeightLonCarr_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_HeightLonCarr_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + HeightLonCarr_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/HeightLonCarr.h b/vanetza/asn1/its1/HeightLonCarr.h similarity index 100% rename from vanetza/asn1/its/HeightLonCarr.h rename to vanetza/asn1/its1/HeightLonCarr.h diff --git a/vanetza/asn1/its1/HighFrequencyContainer.c b/vanetza/asn1/its1/HighFrequencyContainer.c new file mode 100644 index 000000000..3be61eabf --- /dev/null +++ b/vanetza/asn1/its1/HighFrequencyContainer.c @@ -0,0 +1,102 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/EN302637-2v141-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "HighFrequencyContainer.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_HighFrequencyContainer_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_HighFrequencyContainer_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_HighFrequencyContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HighFrequencyContainer, choice.basicVehicleContainerHighFrequency), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BasicVehicleContainerHighFrequency, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "basicVehicleContainerHighFrequency" + }, + { ATF_NOFLAGS, 0, offsetof(struct HighFrequencyContainer, choice.rsuContainerHighFrequency), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RSUContainerHighFrequency, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rsuContainerHighFrequency" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_HighFrequencyContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* basicVehicleContainerHighFrequency */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* rsuContainerHighFrequency */ +}; +asn_CHOICE_specifics_t asn_SPC_HighFrequencyContainer_specs_1 = { + sizeof(struct HighFrequencyContainer), + offsetof(struct HighFrequencyContainer, _asn_ctx), + offsetof(struct HighFrequencyContainer, present), + sizeof(((struct HighFrequencyContainer *)0)->present), + asn_MAP_HighFrequencyContainer_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + 2 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_HighFrequencyContainer = { + "HighFrequencyContainer", + "HighFrequencyContainer", + &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) + &asn_OER_type_HighFrequencyContainer_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_HighFrequencyContainer_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_HighFrequencyContainer_1, + 2, /* Elements count */ + &asn_SPC_HighFrequencyContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/HighFrequencyContainer.h b/vanetza/asn1/its1/HighFrequencyContainer.h similarity index 100% rename from vanetza/asn1/its/HighFrequencyContainer.h rename to vanetza/asn1/its1/HighFrequencyContainer.h diff --git a/vanetza/asn1/its/HitchPointOffset.c b/vanetza/asn1/its1/HitchPointOffset.c similarity index 96% rename from vanetza/asn1/its/HitchPointOffset.c rename to vanetza/asn1/its1/HitchPointOffset.c index 191de67f9..bb4a47ba9 100644 --- a/vanetza/asn1/its/HitchPointOffset.c +++ b/vanetza/asn1/its1/HitchPointOffset.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_HitchPointOffset = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_HitchPointOffset_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ HitchPointOffset_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/HitchPointOffset.h b/vanetza/asn1/its1/HitchPointOffset.h similarity index 100% rename from vanetza/asn1/its/HitchPointOffset.h rename to vanetza/asn1/its1/HitchPointOffset.h diff --git a/vanetza/asn1/its/HoursMinutes.c b/vanetza/asn1/its1/HoursMinutes.c similarity index 94% rename from vanetza/asn1/its/HoursMinutes.c rename to vanetza/asn1/its1/HoursMinutes.c index ef1297c90..95f3b7041 100644 --- a/vanetza/asn1/its/HoursMinutes.c +++ b/vanetza/asn1/its1/HoursMinutes.c @@ -94,6 +94,9 @@ asn_TYPE_member_t asn_MBR_HoursMinutes_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_hours_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_hours_constraint_1 }, 0, 0, /* No default value */ @@ -111,6 +114,9 @@ asn_TYPE_member_t asn_MBR_HoursMinutes_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_mins_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_mins_constraint_1 }, 0, 0, /* No default value */ @@ -149,6 +155,9 @@ asn_TYPE_descriptor_t asn_DEF_HoursMinutes = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_HoursMinutes_1, diff --git a/vanetza/asn1/its/HoursMinutes.h b/vanetza/asn1/its1/HoursMinutes.h similarity index 100% rename from vanetza/asn1/its/HoursMinutes.h rename to vanetza/asn1/its1/HoursMinutes.h diff --git a/vanetza/asn1/its1/HumanPresenceOnTheRoadSubCauseCode.c b/vanetza/asn1/its1/HumanPresenceOnTheRoadSubCauseCode.c new file mode 100644 index 000000000..8cbf6d99e --- /dev/null +++ b/vanetza/asn1/its1/HumanPresenceOnTheRoadSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "HumanPresenceOnTheRoadSubCauseCode.h" + +int +HumanPresenceOnTheRoadSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_HumanPresenceOnTheRoadSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_HumanPresenceOnTheRoadSubCauseCode_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_HumanPresenceOnTheRoadSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_HumanPresenceOnTheRoadSubCauseCode = { + "HumanPresenceOnTheRoadSubCauseCode", + "HumanPresenceOnTheRoadSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_HumanPresenceOnTheRoadSubCauseCode_tags_1, + sizeof(asn_DEF_HumanPresenceOnTheRoadSubCauseCode_tags_1) + /sizeof(asn_DEF_HumanPresenceOnTheRoadSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_HumanPresenceOnTheRoadSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_HumanPresenceOnTheRoadSubCauseCode_tags_1) + /sizeof(asn_DEF_HumanPresenceOnTheRoadSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_HumanPresenceOnTheRoadSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_HumanPresenceOnTheRoadSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + HumanPresenceOnTheRoadSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/HumanPresenceOnTheRoadSubCauseCode.h b/vanetza/asn1/its1/HumanPresenceOnTheRoadSubCauseCode.h similarity index 100% rename from vanetza/asn1/its/HumanPresenceOnTheRoadSubCauseCode.h rename to vanetza/asn1/its1/HumanPresenceOnTheRoadSubCauseCode.h diff --git a/vanetza/asn1/its1/HumanProblemSubCauseCode.c b/vanetza/asn1/its1/HumanProblemSubCauseCode.c new file mode 100644 index 000000000..461f7e6fc --- /dev/null +++ b/vanetza/asn1/its1/HumanProblemSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "HumanProblemSubCauseCode.h" + +int +HumanProblemSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_HumanProblemSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_HumanProblemSubCauseCode_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_HumanProblemSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_HumanProblemSubCauseCode = { + "HumanProblemSubCauseCode", + "HumanProblemSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_HumanProblemSubCauseCode_tags_1, + sizeof(asn_DEF_HumanProblemSubCauseCode_tags_1) + /sizeof(asn_DEF_HumanProblemSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_HumanProblemSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_HumanProblemSubCauseCode_tags_1) + /sizeof(asn_DEF_HumanProblemSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_HumanProblemSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_HumanProblemSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + HumanProblemSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/HumanProblemSubCauseCode.h b/vanetza/asn1/its1/HumanProblemSubCauseCode.h similarity index 100% rename from vanetza/asn1/its/HumanProblemSubCauseCode.h rename to vanetza/asn1/its1/HumanProblemSubCauseCode.h diff --git a/vanetza/asn1/its/ICC-Id.c b/vanetza/asn1/its1/ICC-Id.c similarity index 92% rename from vanetza/asn1/its/ICC-Id.c rename to vanetza/asn1/its1/ICC-Id.c index cf8acb9aa..d22895ce1 100644 --- a/vanetza/asn1/its/ICC-Id.c +++ b/vanetza/asn1/its1/ICC-Id.c @@ -31,6 +31,9 @@ asn_TYPE_descriptor_t asn_DEF_ICC_Id = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OCTET_STRING_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/ICC-Id.h b/vanetza/asn1/its1/ICC-Id.h similarity index 100% rename from vanetza/asn1/its/ICC-Id.h rename to vanetza/asn1/its1/ICC-Id.h diff --git a/vanetza/asn1/its/ISO14823Attribute.c b/vanetza/asn1/its1/ISO14823Attribute.c similarity index 88% rename from vanetza/asn1/its/ISO14823Attribute.c rename to vanetza/asn1/its1/ISO14823Attribute.c index debb961f7..cd903f6a2 100644 --- a/vanetza/asn1/its/ISO14823Attribute.c +++ b/vanetza/asn1/its1/ISO14823Attribute.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_ISO14823Attribute_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_ISO14823Attribute_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -66,6 +72,9 @@ asn_TYPE_member_t asn_MBR_ISO14823Attribute_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -83,6 +92,9 @@ asn_TYPE_member_t asn_MBR_ISO14823Attribute_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -100,6 +112,9 @@ asn_TYPE_member_t asn_MBR_ISO14823Attribute_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -117,6 +132,9 @@ asn_TYPE_member_t asn_MBR_ISO14823Attribute_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -134,6 +152,9 @@ asn_TYPE_member_t asn_MBR_ISO14823Attribute_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -151,6 +172,9 @@ asn_TYPE_member_t asn_MBR_ISO14823Attribute_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -192,6 +216,9 @@ asn_TYPE_descriptor_t asn_DEF_ISO14823Attribute = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ISO14823Attribute_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_ISO14823Attribute_1, diff --git a/vanetza/asn1/its/ISO14823Attribute.h b/vanetza/asn1/its1/ISO14823Attribute.h similarity index 100% rename from vanetza/asn1/its/ISO14823Attribute.h rename to vanetza/asn1/its1/ISO14823Attribute.h diff --git a/vanetza/asn1/its/ISO14823Attributes.c b/vanetza/asn1/its1/ISO14823Attributes.c similarity index 93% rename from vanetza/asn1/its/ISO14823Attributes.c rename to vanetza/asn1/its1/ISO14823Attributes.c index 91c7de3d2..d781a2b89 100644 --- a/vanetza/asn1/its/ISO14823Attributes.c +++ b/vanetza/asn1/its1/ISO14823Attributes.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_ISO14823Attributes_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_ISO14823Attributes = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ISO14823Attributes_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_ISO14823Attributes_1, diff --git a/vanetza/asn1/its/ISO14823Attributes.h b/vanetza/asn1/its1/ISO14823Attributes.h similarity index 100% rename from vanetza/asn1/its/ISO14823Attributes.h rename to vanetza/asn1/its1/ISO14823Attributes.h diff --git a/vanetza/asn1/its/ISO14823Code.c b/vanetza/asn1/its1/ISO14823Code.c similarity index 93% rename from vanetza/asn1/its/ISO14823Code.c rename to vanetza/asn1/its1/ISO14823Code.c index 61fed4604..a89ace390 100644 --- a/vanetza/asn1/its/ISO14823Code.c +++ b/vanetza/asn1/its1/ISO14823Code.c @@ -222,6 +222,9 @@ asn_TYPE_descriptor_t asn_DEF_trafficSignPictogram_5 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_trafficSignPictogram_constr_5, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ @@ -267,6 +270,9 @@ asn_TYPE_descriptor_t asn_DEF_publicFacilitiesPictogram_10 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_publicFacilitiesPictogram_constr_10, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ @@ -314,6 +320,9 @@ asn_TYPE_descriptor_t asn_DEF_ambientOrRoadConditionPictogram_13 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ambientOrRoadConditionPictogram_constr_13, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ @@ -333,6 +342,9 @@ static asn_TYPE_member_t asn_MBR_serviceCategoryCode_4[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -350,6 +362,9 @@ static asn_TYPE_member_t asn_MBR_serviceCategoryCode_4[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -367,6 +382,9 @@ static asn_TYPE_member_t asn_MBR_serviceCategoryCode_4[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -404,6 +422,9 @@ asn_TYPE_descriptor_t asn_DEF_serviceCategoryCode_4 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_serviceCategoryCode_constr_4, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_serviceCategoryCode_4, @@ -424,6 +445,9 @@ static asn_TYPE_member_t asn_MBR_pictogramCategoryCode_18[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_nature_constr_19, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_nature_constraint_18 }, 0, 0, /* No default value */ @@ -441,6 +465,9 @@ static asn_TYPE_member_t asn_MBR_pictogramCategoryCode_18[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_serialNumber_constr_20, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_serialNumber_constraint_18 }, 0, 0, /* No default value */ @@ -481,6 +508,9 @@ asn_TYPE_descriptor_t asn_DEF_pictogramCategoryCode_18 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_pictogramCategoryCode_18, @@ -501,6 +531,9 @@ static asn_TYPE_member_t asn_MBR_pictogramCode_2[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_countryCode_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_countryCode_constraint_2 }, 0, 0, /* No default value */ @@ -518,6 +551,9 @@ static asn_TYPE_member_t asn_MBR_pictogramCode_2[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -535,6 +571,9 @@ static asn_TYPE_member_t asn_MBR_pictogramCode_2[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -578,6 +617,9 @@ asn_TYPE_descriptor_t asn_DEF_pictogramCode_2 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_pictogramCode_2, @@ -598,6 +640,9 @@ asn_TYPE_member_t asn_MBR_ISO14823Code_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -615,6 +660,9 @@ asn_TYPE_member_t asn_MBR_ISO14823Code_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -655,6 +703,9 @@ asn_TYPE_descriptor_t asn_DEF_ISO14823Code = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_ISO14823Code_1, diff --git a/vanetza/asn1/its/ISO14823Code.h b/vanetza/asn1/its1/ISO14823Code.h similarity index 100% rename from vanetza/asn1/its/ISO14823Code.h rename to vanetza/asn1/its1/ISO14823Code.h diff --git a/vanetza/asn1/its/ITS-Container_Temperature.c b/vanetza/asn1/its1/ITS-Container_Temperature.c similarity index 96% rename from vanetza/asn1/its/ITS-Container_Temperature.c rename to vanetza/asn1/its1/ITS-Container_Temperature.c index c060b9598..3ae6fec49 100644 --- a/vanetza/asn1/its/ITS-Container_Temperature.c +++ b/vanetza/asn1/its1/ITS-Container_Temperature.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_ITS_Container_Temperature = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ITS_Container_Temperature_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ ITS_Container_Temperature_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/ITS-Container_Temperature.h b/vanetza/asn1/its1/ITS-Container_Temperature.h similarity index 100% rename from vanetza/asn1/its/ITS-Container_Temperature.h rename to vanetza/asn1/its1/ITS-Container_Temperature.h diff --git a/vanetza/asn1/its/IVIM.c b/vanetza/asn1/its1/IVIM.c similarity index 89% rename from vanetza/asn1/its/IVIM.c rename to vanetza/asn1/its1/IVIM.c index 7c0e7e5d9..9a7b9c3e0 100644 --- a/vanetza/asn1/its/IVIM.c +++ b/vanetza/asn1/its1/IVIM.c @@ -20,6 +20,9 @@ static asn_TYPE_member_t asn_MBR_IVIM_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ static asn_TYPE_member_t asn_MBR_IVIM_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_IVIM = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_IVIM_1, diff --git a/vanetza/asn1/its/IVIM.h b/vanetza/asn1/its1/IVIM.h similarity index 100% rename from vanetza/asn1/its/IVIM.h rename to vanetza/asn1/its1/IVIM.h diff --git a/vanetza/asn1/its/IVI_DriverCharacteristics.c b/vanetza/asn1/its1/IVI_DriverCharacteristics.c similarity index 96% rename from vanetza/asn1/its/IVI_DriverCharacteristics.c rename to vanetza/asn1/its1/IVI_DriverCharacteristics.c index 6e04e9bdd..5190c42c8 100644 --- a/vanetza/asn1/its/IVI_DriverCharacteristics.c +++ b/vanetza/asn1/its1/IVI_DriverCharacteristics.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_IVI_DriverCharacteristics = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_IVI_DriverCharacteristics_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ IVI_DriverCharacteristics_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/IVI_DriverCharacteristics.h b/vanetza/asn1/its1/IVI_DriverCharacteristics.h similarity index 100% rename from vanetza/asn1/its/IVI_DriverCharacteristics.h rename to vanetza/asn1/its1/IVI_DriverCharacteristics.h diff --git a/vanetza/asn1/its/IVI_Temperature.c b/vanetza/asn1/its1/IVI_Temperature.c similarity index 96% rename from vanetza/asn1/its/IVI_Temperature.c rename to vanetza/asn1/its1/IVI_Temperature.c index f1fa14eff..d63ac3080 100644 --- a/vanetza/asn1/its/IVI_Temperature.c +++ b/vanetza/asn1/its1/IVI_Temperature.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_IVI_Temperature = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_IVI_Temperature_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ IVI_Temperature_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/IVI_Temperature.h b/vanetza/asn1/its1/IVI_Temperature.h similarity index 100% rename from vanetza/asn1/its/IVI_Temperature.h rename to vanetza/asn1/its1/IVI_Temperature.h diff --git a/vanetza/asn1/its/IVI_TrailerCharacteristics.c b/vanetza/asn1/its1/IVI_TrailerCharacteristics.c similarity index 90% rename from vanetza/asn1/its/IVI_TrailerCharacteristics.c rename to vanetza/asn1/its1/IVI_TrailerCharacteristics.c index 02e2c6bcd..73b203966 100644 --- a/vanetza/asn1/its/IVI_TrailerCharacteristics.c +++ b/vanetza/asn1/its1/IVI_TrailerCharacteristics.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_IVI_TrailerCharacteristics_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_IVI_TrailerCharacteristics_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_IVI_TrailerCharacteristics_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -95,6 +104,9 @@ asn_TYPE_descriptor_t asn_DEF_IVI_TrailerCharacteristics = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_IVI_TrailerCharacteristics_1, diff --git a/vanetza/asn1/its/IVI_TrailerCharacteristics.h b/vanetza/asn1/its1/IVI_TrailerCharacteristics.h similarity index 100% rename from vanetza/asn1/its/IVI_TrailerCharacteristics.h rename to vanetza/asn1/its1/IVI_TrailerCharacteristics.h diff --git a/vanetza/asn1/its/Identifier.c b/vanetza/asn1/its1/Identifier.c similarity index 96% rename from vanetza/asn1/its/Identifier.c rename to vanetza/asn1/its1/Identifier.c index 4a10f9d18..497964947 100644 --- a/vanetza/asn1/its/Identifier.c +++ b/vanetza/asn1/its1/Identifier.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Identifier = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Identifier_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Identifier_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/Identifier.h b/vanetza/asn1/its1/Identifier.h similarity index 100% rename from vanetza/asn1/its/Identifier.h rename to vanetza/asn1/its1/Identifier.h diff --git a/vanetza/asn1/its1/ImpactReductionContainer.c b/vanetza/asn1/its1/ImpactReductionContainer.c new file mode 100644 index 000000000..8ecfbbb03 --- /dev/null +++ b/vanetza/asn1/its1/ImpactReductionContainer.c @@ -0,0 +1,303 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "DENM-PDU-Descriptions" + * found in "asn1/EN302637-3v131-DENM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ImpactReductionContainer.h" + +asn_TYPE_member_t asn_MBR_ImpactReductionContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, heightLonCarrLeft), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HeightLonCarr, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "heightLonCarrLeft" + }, + { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, heightLonCarrRight), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HeightLonCarr, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "heightLonCarrRight" + }, + { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, posLonCarrLeft), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PosLonCarr, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posLonCarrLeft" + }, + { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, posLonCarrRight), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PosLonCarr, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posLonCarrRight" + }, + { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, positionOfPillars), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PositionOfPillars, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "positionOfPillars" + }, + { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, posCentMass), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PosCentMass, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posCentMass" + }, + { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, wheelBaseVehicle), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_WheelBaseVehicle, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wheelBaseVehicle" + }, + { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, turningRadius), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TurningRadius, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "turningRadius" + }, + { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, posFrontAx), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PosFrontAx, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posFrontAx" + }, + { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, positionOfOccupants), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PositionOfOccupants, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "positionOfOccupants" + }, + { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, vehicleMass), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VehicleMass, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vehicleMass" + }, + { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, requestResponseIndication), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RequestResponseIndication, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "requestResponseIndication" + }, +}; +static const ber_tlv_tag_t asn_DEF_ImpactReductionContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ImpactReductionContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* heightLonCarrLeft */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* heightLonCarrRight */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* posLonCarrLeft */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* posLonCarrRight */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* positionOfPillars */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* posCentMass */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* wheelBaseVehicle */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* turningRadius */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* posFrontAx */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* positionOfOccupants */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* vehicleMass */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 } /* requestResponseIndication */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ImpactReductionContainer_specs_1 = { + sizeof(struct ImpactReductionContainer), + offsetof(struct ImpactReductionContainer, _asn_ctx), + asn_MAP_ImpactReductionContainer_tag2el_1, + 12, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ImpactReductionContainer = { + "ImpactReductionContainer", + "ImpactReductionContainer", + &asn_OP_SEQUENCE, + asn_DEF_ImpactReductionContainer_tags_1, + sizeof(asn_DEF_ImpactReductionContainer_tags_1) + /sizeof(asn_DEF_ImpactReductionContainer_tags_1[0]), /* 1 */ + asn_DEF_ImpactReductionContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_ImpactReductionContainer_tags_1) + /sizeof(asn_DEF_ImpactReductionContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ImpactReductionContainer_1, + 12, /* Elements count */ + &asn_SPC_ImpactReductionContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/ImpactReductionContainer.h b/vanetza/asn1/its1/ImpactReductionContainer.h similarity index 100% rename from vanetza/asn1/its/ImpactReductionContainer.h rename to vanetza/asn1/its1/ImpactReductionContainer.h diff --git a/vanetza/asn1/its1/InformationQuality.c b/vanetza/asn1/its1/InformationQuality.c new file mode 100644 index 000000000..7b75d5eff --- /dev/null +++ b/vanetza/asn1/its1/InformationQuality.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "InformationQuality.h" + +int +InformationQuality_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_InformationQuality_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..7) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_InformationQuality_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_InformationQuality_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_InformationQuality = { + "InformationQuality", + "InformationQuality", + &asn_OP_NativeInteger, + asn_DEF_InformationQuality_tags_1, + sizeof(asn_DEF_InformationQuality_tags_1) + /sizeof(asn_DEF_InformationQuality_tags_1[0]), /* 1 */ + asn_DEF_InformationQuality_tags_1, /* Same as above */ + sizeof(asn_DEF_InformationQuality_tags_1) + /sizeof(asn_DEF_InformationQuality_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_InformationQuality_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_InformationQuality_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + InformationQuality_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/InformationQuality.h b/vanetza/asn1/its1/InformationQuality.h similarity index 100% rename from vanetza/asn1/its/InformationQuality.h rename to vanetza/asn1/its1/InformationQuality.h diff --git a/vanetza/asn1/its/Int1.c b/vanetza/asn1/its1/Int1.c similarity index 95% rename from vanetza/asn1/its/Int1.c rename to vanetza/asn1/its1/Int1.c index 09d7f1e0c..1722a6dec 100644 --- a/vanetza/asn1/its/Int1.c +++ b/vanetza/asn1/its1/Int1.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Int1 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Int1_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Int1_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/Int1.h b/vanetza/asn1/its1/Int1.h similarity index 100% rename from vanetza/asn1/its/Int1.h rename to vanetza/asn1/its1/Int1.h diff --git a/vanetza/asn1/its/Int2.c b/vanetza/asn1/its1/Int2.c similarity index 96% rename from vanetza/asn1/its/Int2.c rename to vanetza/asn1/its1/Int2.c index 7cad18d42..d78529237 100644 --- a/vanetza/asn1/its/Int2.c +++ b/vanetza/asn1/its1/Int2.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Int2 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Int2_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Int2_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/Int2.h b/vanetza/asn1/its1/Int2.h similarity index 100% rename from vanetza/asn1/its/Int2.h rename to vanetza/asn1/its1/Int2.h diff --git a/vanetza/asn1/its/Int3.c b/vanetza/asn1/its1/Int3.c similarity index 96% rename from vanetza/asn1/its/Int3.c rename to vanetza/asn1/its1/Int3.c index c8d1d1023..888e83ff2 100644 --- a/vanetza/asn1/its/Int3.c +++ b/vanetza/asn1/its1/Int3.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Int3 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Int3_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Int3_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/Int3.h b/vanetza/asn1/its1/Int3.h similarity index 100% rename from vanetza/asn1/its/Int3.h rename to vanetza/asn1/its1/Int3.h diff --git a/vanetza/asn1/its/Int4.c b/vanetza/asn1/its1/Int4.c similarity index 95% rename from vanetza/asn1/its/Int4.c rename to vanetza/asn1/its1/Int4.c index 0d96d7093..4ec383e41 100644 --- a/vanetza/asn1/its/Int4.c +++ b/vanetza/asn1/its1/Int4.c @@ -64,6 +64,9 @@ asn_TYPE_descriptor_t asn_DEF_Int4 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Int4_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Int4_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/Int4.h b/vanetza/asn1/its1/Int4.h similarity index 100% rename from vanetza/asn1/its/Int4.h rename to vanetza/asn1/its1/Int4.h diff --git a/vanetza/asn1/its/InternationalSign-applicablePeriod.c b/vanetza/asn1/its1/InternationalSign-applicablePeriod.c similarity index 91% rename from vanetza/asn1/its/InternationalSign-applicablePeriod.c rename to vanetza/asn1/its1/InternationalSign-applicablePeriod.c index bb4267c3b..dfb290086 100644 --- a/vanetza/asn1/its/InternationalSign-applicablePeriod.c +++ b/vanetza/asn1/its1/InternationalSign-applicablePeriod.c @@ -94,6 +94,9 @@ static asn_TYPE_member_t asn_MBR_year_2[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_yearRangeStartYear_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_yearRangeStartYear_constraint_2 }, 0, 0, /* No default value */ @@ -111,6 +114,9 @@ static asn_TYPE_member_t asn_MBR_year_2[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_yearRangeEndYear_constr_4, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_yearRangeEndYear_constraint_2 }, 0, 0, /* No default value */ @@ -151,6 +157,9 @@ asn_TYPE_descriptor_t asn_DEF_year_2 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_year_2, @@ -171,6 +180,9 @@ static asn_TYPE_member_t asn_MBR_month_day_5[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -188,6 +200,9 @@ static asn_TYPE_member_t asn_MBR_month_day_5[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -228,6 +243,9 @@ asn_TYPE_descriptor_t asn_DEF_month_day_5 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_month_day_5, @@ -248,6 +266,9 @@ static asn_TYPE_member_t asn_MBR_hourMinutes_9[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -265,6 +286,9 @@ static asn_TYPE_member_t asn_MBR_hourMinutes_9[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -305,6 +329,9 @@ asn_TYPE_descriptor_t asn_DEF_hourMinutes_9 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_hourMinutes_9, @@ -325,6 +352,9 @@ asn_TYPE_member_t asn_MBR_InternationalSign_applicablePeriod_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -342,6 +372,9 @@ asn_TYPE_member_t asn_MBR_InternationalSign_applicablePeriod_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -359,6 +392,9 @@ asn_TYPE_member_t asn_MBR_InternationalSign_applicablePeriod_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -376,6 +412,9 @@ asn_TYPE_member_t asn_MBR_InternationalSign_applicablePeriod_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -393,6 +432,9 @@ asn_TYPE_member_t asn_MBR_InternationalSign_applicablePeriod_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -410,6 +452,9 @@ asn_TYPE_member_t asn_MBR_InternationalSign_applicablePeriod_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -454,6 +499,9 @@ asn_TYPE_descriptor_t asn_DEF_InternationalSign_applicablePeriod = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_InternationalSign_applicablePeriod_1, diff --git a/vanetza/asn1/its/InternationalSign-applicablePeriod.h b/vanetza/asn1/its1/InternationalSign-applicablePeriod.h similarity index 100% rename from vanetza/asn1/its/InternationalSign-applicablePeriod.h rename to vanetza/asn1/its1/InternationalSign-applicablePeriod.h diff --git a/vanetza/asn1/its/InternationalSign-applicableVehicleDimensions.c b/vanetza/asn1/its1/InternationalSign-applicableVehicleDimensions.c similarity index 91% rename from vanetza/asn1/its/InternationalSign-applicableVehicleDimensions.c rename to vanetza/asn1/its1/InternationalSign-applicableVehicleDimensions.c index 628fcc427..b837caa4d 100644 --- a/vanetza/asn1/its/InternationalSign-applicableVehicleDimensions.c +++ b/vanetza/asn1/its1/InternationalSign-applicableVehicleDimensions.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_InternationalSign_applicableVehicleDimensions_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_InternationalSign_applicableVehicleDimensions_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_InternationalSign_applicableVehicleDimensions_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -71,6 +80,9 @@ asn_TYPE_member_t asn_MBR_InternationalSign_applicableVehicleDimensions_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -113,6 +125,9 @@ asn_TYPE_descriptor_t asn_DEF_InternationalSign_applicableVehicleDimensions = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_InternationalSign_applicableVehicleDimensions_1, diff --git a/vanetza/asn1/its/InternationalSign-applicableVehicleDimensions.h b/vanetza/asn1/its1/InternationalSign-applicableVehicleDimensions.h similarity index 100% rename from vanetza/asn1/its/InternationalSign-applicableVehicleDimensions.h rename to vanetza/asn1/its1/InternationalSign-applicableVehicleDimensions.h diff --git a/vanetza/asn1/its/InternationalSign-destinationInformation.c b/vanetza/asn1/its1/InternationalSign-destinationInformation.c similarity index 94% rename from vanetza/asn1/its/InternationalSign-destinationInformation.c rename to vanetza/asn1/its1/InternationalSign-destinationInformation.c index 7f3778480..107dcf23f 100644 --- a/vanetza/asn1/its/InternationalSign-destinationInformation.c +++ b/vanetza/asn1/its1/InternationalSign-destinationInformation.c @@ -131,6 +131,9 @@ asn_TYPE_member_t asn_MBR_InternationalSign_destinationInformation_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_junctionDirection_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_junctionDirection_constraint_1 }, 0, 0, /* No default value */ @@ -148,6 +151,9 @@ asn_TYPE_member_t asn_MBR_InternationalSign_destinationInformation_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_roundaboutCwDirection_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_roundaboutCwDirection_constraint_1 }, 0, 0, /* No default value */ @@ -165,6 +171,9 @@ asn_TYPE_member_t asn_MBR_InternationalSign_destinationInformation_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_roundaboutCcwDirection_constr_4, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_roundaboutCcwDirection_constraint_1 }, 0, 0, /* No default value */ @@ -182,6 +191,9 @@ asn_TYPE_member_t asn_MBR_InternationalSign_destinationInformation_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -224,6 +236,9 @@ asn_TYPE_descriptor_t asn_DEF_InternationalSign_destinationInformation = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_InternationalSign_destinationInformation_1, diff --git a/vanetza/asn1/its/InternationalSign-destinationInformation.h b/vanetza/asn1/its1/InternationalSign-destinationInformation.h similarity index 100% rename from vanetza/asn1/its/InternationalSign-destinationInformation.h rename to vanetza/asn1/its1/InternationalSign-destinationInformation.h diff --git a/vanetza/asn1/its/InternationalSign-directionalFlowOfLane.c b/vanetza/asn1/its1/InternationalSign-directionalFlowOfLane.c similarity index 96% rename from vanetza/asn1/its/InternationalSign-directionalFlowOfLane.c rename to vanetza/asn1/its1/InternationalSign-directionalFlowOfLane.c index 3dc4ba6f5..1b520ac6d 100644 --- a/vanetza/asn1/its/InternationalSign-directionalFlowOfLane.c +++ b/vanetza/asn1/its1/InternationalSign-directionalFlowOfLane.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_InternationalSign_directionalFlowOfLane = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_InternationalSign_directionalFlowOfLane_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ InternationalSign_directionalFlowOfLane_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/InternationalSign-directionalFlowOfLane.h b/vanetza/asn1/its1/InternationalSign-directionalFlowOfLane.h similarity index 100% rename from vanetza/asn1/its/InternationalSign-directionalFlowOfLane.h rename to vanetza/asn1/its1/InternationalSign-directionalFlowOfLane.h diff --git a/vanetza/asn1/its/InternationalSign-distanceBetweenVehicles.c b/vanetza/asn1/its1/InternationalSign-distanceBetweenVehicles.c similarity index 94% rename from vanetza/asn1/its/InternationalSign-distanceBetweenVehicles.c rename to vanetza/asn1/its1/InternationalSign-distanceBetweenVehicles.c index f7f808fcb..c1b0f9c0b 100644 --- a/vanetza/asn1/its/InternationalSign-distanceBetweenVehicles.c +++ b/vanetza/asn1/its1/InternationalSign-distanceBetweenVehicles.c @@ -31,6 +31,9 @@ asn_TYPE_descriptor_t asn_DEF_InternationalSign_distanceBetweenVehicles = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Distance_1, diff --git a/vanetza/asn1/its/InternationalSign-distanceBetweenVehicles.h b/vanetza/asn1/its1/InternationalSign-distanceBetweenVehicles.h similarity index 100% rename from vanetza/asn1/its/InternationalSign-distanceBetweenVehicles.h rename to vanetza/asn1/its1/InternationalSign-distanceBetweenVehicles.h diff --git a/vanetza/asn1/its/InternationalSign-exemptedApplicablePeriod.c b/vanetza/asn1/its1/InternationalSign-exemptedApplicablePeriod.c similarity index 94% rename from vanetza/asn1/its/InternationalSign-exemptedApplicablePeriod.c rename to vanetza/asn1/its1/InternationalSign-exemptedApplicablePeriod.c index e8bc63db6..00b0d6079 100644 --- a/vanetza/asn1/its/InternationalSign-exemptedApplicablePeriod.c +++ b/vanetza/asn1/its1/InternationalSign-exemptedApplicablePeriod.c @@ -31,6 +31,9 @@ asn_TYPE_descriptor_t asn_DEF_InternationalSign_exemptedApplicablePeriod = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_InternationalSign_applicablePeriod_1, diff --git a/vanetza/asn1/its/InternationalSign-exemptedApplicablePeriod.h b/vanetza/asn1/its1/InternationalSign-exemptedApplicablePeriod.h similarity index 100% rename from vanetza/asn1/its/InternationalSign-exemptedApplicablePeriod.h rename to vanetza/asn1/its1/InternationalSign-exemptedApplicablePeriod.h diff --git a/vanetza/asn1/its/InternationalSign-numberOfLane.c b/vanetza/asn1/its1/InternationalSign-numberOfLane.c similarity index 96% rename from vanetza/asn1/its/InternationalSign-numberOfLane.c rename to vanetza/asn1/its1/InternationalSign-numberOfLane.c index 44a6a4a10..79803811a 100644 --- a/vanetza/asn1/its/InternationalSign-numberOfLane.c +++ b/vanetza/asn1/its1/InternationalSign-numberOfLane.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_InternationalSign_numberOfLane = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_InternationalSign_numberOfLane_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ InternationalSign_numberOfLane_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/InternationalSign-numberOfLane.h b/vanetza/asn1/its1/InternationalSign-numberOfLane.h similarity index 100% rename from vanetza/asn1/its/InternationalSign-numberOfLane.h rename to vanetza/asn1/its1/InternationalSign-numberOfLane.h diff --git a/vanetza/asn1/its/InternationalSign-rateOfIncline.c b/vanetza/asn1/its1/InternationalSign-rateOfIncline.c similarity index 96% rename from vanetza/asn1/its/InternationalSign-rateOfIncline.c rename to vanetza/asn1/its1/InternationalSign-rateOfIncline.c index 49ab941d5..4a436285c 100644 --- a/vanetza/asn1/its/InternationalSign-rateOfIncline.c +++ b/vanetza/asn1/its1/InternationalSign-rateOfIncline.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_InternationalSign_rateOfIncline = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_InternationalSign_rateOfIncline_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ InternationalSign_rateOfIncline_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/InternationalSign-rateOfIncline.h b/vanetza/asn1/its1/InternationalSign-rateOfIncline.h similarity index 100% rename from vanetza/asn1/its/InternationalSign-rateOfIncline.h rename to vanetza/asn1/its1/InternationalSign-rateOfIncline.h diff --git a/vanetza/asn1/its/InternationalSign-section.c b/vanetza/asn1/its1/InternationalSign-section.c similarity index 91% rename from vanetza/asn1/its/InternationalSign-section.c rename to vanetza/asn1/its1/InternationalSign-section.c index 0d46f7a0d..43d0fabd5 100644 --- a/vanetza/asn1/its/InternationalSign-section.c +++ b/vanetza/asn1/its1/InternationalSign-section.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_InternationalSign_section_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_InternationalSign_section_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -77,6 +83,9 @@ asn_TYPE_descriptor_t asn_DEF_InternationalSign_section = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_InternationalSign_section_1, diff --git a/vanetza/asn1/its/InternationalSign-section.h b/vanetza/asn1/its1/InternationalSign-section.h similarity index 100% rename from vanetza/asn1/its/InternationalSign-section.h rename to vanetza/asn1/its1/InternationalSign-section.h diff --git a/vanetza/asn1/its/InternationalSign-speedLimits.c b/vanetza/asn1/its1/InternationalSign-speedLimits.c similarity index 95% rename from vanetza/asn1/its/InternationalSign-speedLimits.c rename to vanetza/asn1/its1/InternationalSign-speedLimits.c index f6b9c7e2a..e6fc0b38b 100644 --- a/vanetza/asn1/its/InternationalSign-speedLimits.c +++ b/vanetza/asn1/its1/InternationalSign-speedLimits.c @@ -131,6 +131,9 @@ asn_TYPE_member_t asn_MBR_InternationalSign_speedLimits_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_speedLimitMax_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_speedLimitMax_constraint_1 }, 0, 0, /* No default value */ @@ -148,6 +151,9 @@ asn_TYPE_member_t asn_MBR_InternationalSign_speedLimits_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_speedLimitMin_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_speedLimitMin_constraint_1 }, 0, 0, /* No default value */ @@ -165,6 +171,9 @@ asn_TYPE_member_t asn_MBR_InternationalSign_speedLimits_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_unit_constr_4, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_unit_constraint_1 }, 0, 0, /* No default value */ @@ -206,6 +215,9 @@ asn_TYPE_descriptor_t asn_DEF_InternationalSign_speedLimits = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_InternationalSign_speedLimits_1, diff --git a/vanetza/asn1/its/InternationalSign-speedLimits.h b/vanetza/asn1/its1/InternationalSign-speedLimits.h similarity index 100% rename from vanetza/asn1/its/InternationalSign-speedLimits.h rename to vanetza/asn1/its1/InternationalSign-speedLimits.h diff --git a/vanetza/asn1/its/IntersectionAccessPoint.c b/vanetza/asn1/its1/IntersectionAccessPoint.c similarity index 91% rename from vanetza/asn1/its/IntersectionAccessPoint.c rename to vanetza/asn1/its1/IntersectionAccessPoint.c index bdc99892c..52636211a 100644 --- a/vanetza/asn1/its/IntersectionAccessPoint.c +++ b/vanetza/asn1/its1/IntersectionAccessPoint.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_IntersectionAccessPoint_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_IntersectionAccessPoint_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -66,6 +72,9 @@ asn_TYPE_member_t asn_MBR_IntersectionAccessPoint_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -102,6 +111,9 @@ asn_TYPE_descriptor_t asn_DEF_IntersectionAccessPoint = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_IntersectionAccessPoint_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_IntersectionAccessPoint_1, diff --git a/vanetza/asn1/its/IntersectionAccessPoint.h b/vanetza/asn1/its1/IntersectionAccessPoint.h similarity index 100% rename from vanetza/asn1/its/IntersectionAccessPoint.h rename to vanetza/asn1/its1/IntersectionAccessPoint.h diff --git a/vanetza/asn1/its/IntersectionGeometry.c b/vanetza/asn1/its1/IntersectionGeometry.c similarity index 90% rename from vanetza/asn1/its/IntersectionGeometry.c rename to vanetza/asn1/its1/IntersectionGeometry.c index dda0de32d..5490b4d98 100644 --- a/vanetza/asn1/its/IntersectionGeometry.c +++ b/vanetza/asn1/its1/IntersectionGeometry.c @@ -70,6 +70,9 @@ static asn_TYPE_member_t asn_MBR_regional_10[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -103,6 +106,9 @@ asn_TYPE_descriptor_t asn_DEF_regional_10 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_regional_constr_10, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_regional_10, @@ -123,6 +129,9 @@ asn_TYPE_member_t asn_MBR_IntersectionGeometry_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -140,6 +149,9 @@ asn_TYPE_member_t asn_MBR_IntersectionGeometry_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -157,6 +169,9 @@ asn_TYPE_member_t asn_MBR_IntersectionGeometry_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -174,6 +189,9 @@ asn_TYPE_member_t asn_MBR_IntersectionGeometry_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -191,6 +209,9 @@ asn_TYPE_member_t asn_MBR_IntersectionGeometry_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -208,6 +229,9 @@ asn_TYPE_member_t asn_MBR_IntersectionGeometry_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -225,6 +249,9 @@ asn_TYPE_member_t asn_MBR_IntersectionGeometry_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -242,6 +269,9 @@ asn_TYPE_member_t asn_MBR_IntersectionGeometry_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -259,6 +289,9 @@ asn_TYPE_member_t asn_MBR_IntersectionGeometry_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regional_constr_10, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regional_constraint_1 }, 0, 0, /* No default value */ @@ -306,6 +339,9 @@ asn_TYPE_descriptor_t asn_DEF_IntersectionGeometry = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_IntersectionGeometry_1, diff --git a/vanetza/asn1/its/IntersectionGeometry.h b/vanetza/asn1/its1/IntersectionGeometry.h similarity index 100% rename from vanetza/asn1/its/IntersectionGeometry.h rename to vanetza/asn1/its1/IntersectionGeometry.h diff --git a/vanetza/asn1/its/IntersectionGeometryList.c b/vanetza/asn1/its1/IntersectionGeometryList.c similarity index 93% rename from vanetza/asn1/its/IntersectionGeometryList.c rename to vanetza/asn1/its1/IntersectionGeometryList.c index 3258fb1a4..17c9acd1d 100644 --- a/vanetza/asn1/its/IntersectionGeometryList.c +++ b/vanetza/asn1/its1/IntersectionGeometryList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_IntersectionGeometryList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_IntersectionGeometryList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_IntersectionGeometryList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_IntersectionGeometryList_1, diff --git a/vanetza/asn1/its/IntersectionGeometryList.h b/vanetza/asn1/its1/IntersectionGeometryList.h similarity index 100% rename from vanetza/asn1/its/IntersectionGeometryList.h rename to vanetza/asn1/its1/IntersectionGeometryList.h diff --git a/vanetza/asn1/its/IntersectionID.c b/vanetza/asn1/its1/IntersectionID.c similarity index 96% rename from vanetza/asn1/its/IntersectionID.c rename to vanetza/asn1/its1/IntersectionID.c index 52b40be1a..e2fa6f8f5 100644 --- a/vanetza/asn1/its/IntersectionID.c +++ b/vanetza/asn1/its1/IntersectionID.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_IntersectionID = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_IntersectionID_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ IntersectionID_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/IntersectionID.h b/vanetza/asn1/its1/IntersectionID.h similarity index 100% rename from vanetza/asn1/its/IntersectionID.h rename to vanetza/asn1/its1/IntersectionID.h diff --git a/vanetza/asn1/its/IntersectionReferenceID.c b/vanetza/asn1/its1/IntersectionReferenceID.c similarity index 91% rename from vanetza/asn1/its/IntersectionReferenceID.c rename to vanetza/asn1/its1/IntersectionReferenceID.c index 70e073989..d4dacb009 100644 --- a/vanetza/asn1/its/IntersectionReferenceID.c +++ b/vanetza/asn1/its1/IntersectionReferenceID.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_IntersectionReferenceID_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_IntersectionReferenceID_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -77,6 +83,9 @@ asn_TYPE_descriptor_t asn_DEF_IntersectionReferenceID = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_IntersectionReferenceID_1, diff --git a/vanetza/asn1/its/IntersectionReferenceID.h b/vanetza/asn1/its1/IntersectionReferenceID.h similarity index 100% rename from vanetza/asn1/its/IntersectionReferenceID.h rename to vanetza/asn1/its1/IntersectionReferenceID.h diff --git a/vanetza/asn1/its/IntersectionState-addGrpC.c b/vanetza/asn1/its1/IntersectionState-addGrpC.c similarity index 93% rename from vanetza/asn1/its/IntersectionState-addGrpC.c rename to vanetza/asn1/its1/IntersectionState-addGrpC.c index 8893216f9..71b2cf810 100644 --- a/vanetza/asn1/its/IntersectionState-addGrpC.c +++ b/vanetza/asn1/its1/IntersectionState-addGrpC.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_IntersectionState_addGrpC_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -59,6 +62,9 @@ asn_TYPE_descriptor_t asn_DEF_IntersectionState_addGrpC = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_IntersectionState_addGrpC_1, diff --git a/vanetza/asn1/its/IntersectionState-addGrpC.h b/vanetza/asn1/its1/IntersectionState-addGrpC.h similarity index 100% rename from vanetza/asn1/its/IntersectionState-addGrpC.h rename to vanetza/asn1/its1/IntersectionState-addGrpC.h diff --git a/vanetza/asn1/its/IntersectionState.c b/vanetza/asn1/its1/IntersectionState.c similarity index 90% rename from vanetza/asn1/its/IntersectionState.c rename to vanetza/asn1/its1/IntersectionState.c index c92a2dfbc..4f695eb3c 100644 --- a/vanetza/asn1/its/IntersectionState.c +++ b/vanetza/asn1/its1/IntersectionState.c @@ -70,6 +70,9 @@ static asn_TYPE_member_t asn_MBR_regional_11[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -103,6 +106,9 @@ asn_TYPE_descriptor_t asn_DEF_regional_11 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_regional_constr_11, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_regional_11, @@ -123,6 +129,9 @@ asn_TYPE_member_t asn_MBR_IntersectionState_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -140,6 +149,9 @@ asn_TYPE_member_t asn_MBR_IntersectionState_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -157,6 +169,9 @@ asn_TYPE_member_t asn_MBR_IntersectionState_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -174,6 +189,9 @@ asn_TYPE_member_t asn_MBR_IntersectionState_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -191,6 +209,9 @@ asn_TYPE_member_t asn_MBR_IntersectionState_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -208,6 +229,9 @@ asn_TYPE_member_t asn_MBR_IntersectionState_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -225,6 +249,9 @@ asn_TYPE_member_t asn_MBR_IntersectionState_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -242,6 +269,9 @@ asn_TYPE_member_t asn_MBR_IntersectionState_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -259,6 +289,9 @@ asn_TYPE_member_t asn_MBR_IntersectionState_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -276,6 +309,9 @@ asn_TYPE_member_t asn_MBR_IntersectionState_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regional_constr_11, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regional_constraint_1 }, 0, 0, /* No default value */ @@ -324,6 +360,9 @@ asn_TYPE_descriptor_t asn_DEF_IntersectionState = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_IntersectionState_1, diff --git a/vanetza/asn1/its/IntersectionState.h b/vanetza/asn1/its1/IntersectionState.h similarity index 100% rename from vanetza/asn1/its/IntersectionState.h rename to vanetza/asn1/its1/IntersectionState.h diff --git a/vanetza/asn1/its/IntersectionStateList.c b/vanetza/asn1/its1/IntersectionStateList.c similarity index 93% rename from vanetza/asn1/its/IntersectionStateList.c rename to vanetza/asn1/its1/IntersectionStateList.c index 6d946524c..90571e462 100644 --- a/vanetza/asn1/its/IntersectionStateList.c +++ b/vanetza/asn1/its1/IntersectionStateList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_IntersectionStateList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_IntersectionStateList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_IntersectionStateList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_IntersectionStateList_1, diff --git a/vanetza/asn1/its/IntersectionStateList.h b/vanetza/asn1/its1/IntersectionStateList.h similarity index 100% rename from vanetza/asn1/its/IntersectionStateList.h rename to vanetza/asn1/its1/IntersectionStateList.h diff --git a/vanetza/asn1/its/IntersectionStatusObject.c b/vanetza/asn1/its1/IntersectionStatusObject.c similarity index 89% rename from vanetza/asn1/its/IntersectionStatusObject.c rename to vanetza/asn1/its1/IntersectionStatusObject.c index e79774c95..c7d5b05f6 100644 --- a/vanetza/asn1/its/IntersectionStatusObject.c +++ b/vanetza/asn1/its1/IntersectionStatusObject.c @@ -54,6 +54,10 @@ asn_per_constraints_t asn_PER_type_IntersectionStatusObject_constr_1 CC_NOTUSED 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_IntersectionStatusObject_constr_1 CC_NOTUSED = { + 16}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_IntersectionStatusObject_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) }; @@ -74,6 +78,9 @@ asn_TYPE_descriptor_t asn_DEF_IntersectionStatusObject = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_IntersectionStatusObject_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_IntersectionStatusObject_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ IntersectionStatusObject_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/IntersectionStatusObject.h b/vanetza/asn1/its1/IntersectionStatusObject.h similarity index 100% rename from vanetza/asn1/its/IntersectionStatusObject.h rename to vanetza/asn1/its1/IntersectionStatusObject.h diff --git a/vanetza/asn1/its1/Iso3833VehicleType.c b/vanetza/asn1/its1/Iso3833VehicleType.c new file mode 100644 index 000000000..79840a12d --- /dev/null +++ b/vanetza/asn1/its1/Iso3833VehicleType.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ElectronicRegistrationIdentificationVehicleDataModule" + * found in "build.asn1/iso/ISO24534-3.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Iso3833VehicleType.h" + +int +Iso3833VehicleType_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_Iso3833VehicleType_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Iso3833VehicleType_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_Iso3833VehicleType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_Iso3833VehicleType = { + "Iso3833VehicleType", + "Iso3833VehicleType", + &asn_OP_NativeInteger, + asn_DEF_Iso3833VehicleType_tags_1, + sizeof(asn_DEF_Iso3833VehicleType_tags_1) + /sizeof(asn_DEF_Iso3833VehicleType_tags_1[0]), /* 1 */ + asn_DEF_Iso3833VehicleType_tags_1, /* Same as above */ + sizeof(asn_DEF_Iso3833VehicleType_tags_1) + /sizeof(asn_DEF_Iso3833VehicleType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_Iso3833VehicleType_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Iso3833VehicleType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + Iso3833VehicleType_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/Iso3833VehicleType.h b/vanetza/asn1/its1/Iso3833VehicleType.h similarity index 100% rename from vanetza/asn1/its/Iso3833VehicleType.h rename to vanetza/asn1/its1/Iso3833VehicleType.h diff --git a/vanetza/asn1/its/IssuerIdentifierIso.c b/vanetza/asn1/its1/IssuerIdentifierIso.c similarity index 96% rename from vanetza/asn1/its/IssuerIdentifierIso.c rename to vanetza/asn1/its1/IssuerIdentifierIso.c index 62208c0fa..aa3125132 100644 --- a/vanetza/asn1/its/IssuerIdentifierIso.c +++ b/vanetza/asn1/its1/IssuerIdentifierIso.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_IssuerIdentifierIso = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_IssuerIdentifierIso_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ IssuerIdentifierIso_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/IssuerIdentifierIso.h b/vanetza/asn1/its1/IssuerIdentifierIso.h similarity index 100% rename from vanetza/asn1/its/IssuerIdentifierIso.h rename to vanetza/asn1/its1/IssuerIdentifierIso.h diff --git a/vanetza/asn1/its1/ItineraryPath.c b/vanetza/asn1/its1/ItineraryPath.c new file mode 100644 index 000000000..2f5bb9fcb --- /dev/null +++ b/vanetza/asn1/its1/ItineraryPath.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ItineraryPath.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_ItineraryPath_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..40)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ItineraryPath_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 40 } /* (SIZE(1..40)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_ItineraryPath_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_ReferencePosition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_ItineraryPath_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_ItineraryPath_specs_1 = { + sizeof(struct ItineraryPath), + offsetof(struct ItineraryPath, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_ItineraryPath = { + "ItineraryPath", + "ItineraryPath", + &asn_OP_SEQUENCE_OF, + asn_DEF_ItineraryPath_tags_1, + sizeof(asn_DEF_ItineraryPath_tags_1) + /sizeof(asn_DEF_ItineraryPath_tags_1[0]), /* 1 */ + asn_DEF_ItineraryPath_tags_1, /* Same as above */ + sizeof(asn_DEF_ItineraryPath_tags_1) + /sizeof(asn_DEF_ItineraryPath_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_ItineraryPath_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ItineraryPath_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_ItineraryPath_1, + 1, /* Single element */ + &asn_SPC_ItineraryPath_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/ItineraryPath.h b/vanetza/asn1/its1/ItineraryPath.h similarity index 100% rename from vanetza/asn1/its/ItineraryPath.h rename to vanetza/asn1/its1/ItineraryPath.h diff --git a/vanetza/asn1/its1/ItsPduHeader.c b/vanetza/asn1/its1/ItsPduHeader.c new file mode 100644 index 000000000..844b5b5b9 --- /dev/null +++ b/vanetza/asn1/its1/ItsPduHeader.c @@ -0,0 +1,188 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ItsPduHeader.h" + +static int +memb_protocolVersion_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(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_messageID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_protocolVersion_constr_2 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_protocolVersion_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_messageID_constr_3 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_messageID_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_ItsPduHeader_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ItsPduHeader, protocolVersion), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_protocolVersion_constr_2, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_protocolVersion_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_protocolVersion_constraint_1 + }, + 0, 0, /* No default value */ + "protocolVersion" + }, + { ATF_NOFLAGS, 0, offsetof(struct ItsPduHeader, messageID), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_messageID_constr_3, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_messageID_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_messageID_constraint_1 + }, + 0, 0, /* No default value */ + "messageID" + }, + { ATF_NOFLAGS, 0, offsetof(struct ItsPduHeader, stationID), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StationID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "stationID" + }, +}; +static const ber_tlv_tag_t asn_DEF_ItsPduHeader_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ItsPduHeader_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* protocolVersion */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* messageID */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* stationID */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ItsPduHeader_specs_1 = { + sizeof(struct ItsPduHeader), + offsetof(struct ItsPduHeader, _asn_ctx), + asn_MAP_ItsPduHeader_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_ItsPduHeader = { + "ItsPduHeader", + "ItsPduHeader", + &asn_OP_SEQUENCE, + asn_DEF_ItsPduHeader_tags_1, + sizeof(asn_DEF_ItsPduHeader_tags_1) + /sizeof(asn_DEF_ItsPduHeader_tags_1[0]), /* 1 */ + asn_DEF_ItsPduHeader_tags_1, /* Same as above */ + sizeof(asn_DEF_ItsPduHeader_tags_1) + /sizeof(asn_DEF_ItsPduHeader_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ItsPduHeader_1, + 3, /* Elements count */ + &asn_SPC_ItsPduHeader_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/ItsPduHeader.h b/vanetza/asn1/its1/ItsPduHeader.h similarity index 100% rename from vanetza/asn1/its/ItsPduHeader.h rename to vanetza/asn1/its1/ItsPduHeader.h diff --git a/vanetza/asn1/its/ItsStationPosition.c b/vanetza/asn1/its1/ItsStationPosition.c similarity index 89% rename from vanetza/asn1/its/ItsStationPosition.c rename to vanetza/asn1/its1/ItsStationPosition.c index dfd9fa093..68811f58a 100644 --- a/vanetza/asn1/its/ItsStationPosition.c +++ b/vanetza/asn1/its1/ItsStationPosition.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_ItsStationPosition_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_ItsStationPosition_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_ItsStationPosition_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -71,6 +80,9 @@ asn_TYPE_member_t asn_MBR_ItsStationPosition_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -113,6 +125,9 @@ asn_TYPE_descriptor_t asn_DEF_ItsStationPosition = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_ItsStationPosition_1, diff --git a/vanetza/asn1/its/ItsStationPosition.h b/vanetza/asn1/its1/ItsStationPosition.h similarity index 100% rename from vanetza/asn1/its/ItsStationPosition.h rename to vanetza/asn1/its1/ItsStationPosition.h diff --git a/vanetza/asn1/its/ItsStationPositionList.c b/vanetza/asn1/its1/ItsStationPositionList.c similarity index 93% rename from vanetza/asn1/its/ItsStationPositionList.c rename to vanetza/asn1/its1/ItsStationPositionList.c index 5770ffb42..05db051d1 100644 --- a/vanetza/asn1/its/ItsStationPositionList.c +++ b/vanetza/asn1/its1/ItsStationPositionList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_ItsStationPositionList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_ItsStationPositionList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ItsStationPositionList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_ItsStationPositionList_1, diff --git a/vanetza/asn1/its/ItsStationPositionList.h b/vanetza/asn1/its1/ItsStationPositionList.h similarity index 100% rename from vanetza/asn1/its/ItsStationPositionList.h rename to vanetza/asn1/its1/ItsStationPositionList.h diff --git a/vanetza/asn1/its/IviContainer.c b/vanetza/asn1/its1/IviContainer.c similarity index 89% rename from vanetza/asn1/its/IviContainer.c rename to vanetza/asn1/its1/IviContainer.c index 7c1db89cc..efbef7cfd 100644 --- a/vanetza/asn1/its/IviContainer.c +++ b/vanetza/asn1/its1/IviContainer.c @@ -32,6 +32,9 @@ static asn_TYPE_member_t asn_MBR_ext1_8[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ static asn_TYPE_member_t asn_MBR_ext1_8[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -66,6 +72,9 @@ static asn_TYPE_member_t asn_MBR_ext1_8[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -107,6 +116,9 @@ asn_TYPE_descriptor_t asn_DEF_ext1_8 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_ext1_8, @@ -127,6 +139,9 @@ asn_TYPE_member_t asn_MBR_IviContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -144,6 +159,9 @@ asn_TYPE_member_t asn_MBR_IviContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -161,6 +179,9 @@ asn_TYPE_member_t asn_MBR_IviContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -178,6 +199,9 @@ asn_TYPE_member_t asn_MBR_IviContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -195,6 +219,9 @@ asn_TYPE_member_t asn_MBR_IviContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -212,6 +239,9 @@ asn_TYPE_member_t asn_MBR_IviContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -251,6 +281,9 @@ asn_TYPE_descriptor_t asn_DEF_IviContainer = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_IviContainer_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_IviContainer_1, diff --git a/vanetza/asn1/its/IviContainer.h b/vanetza/asn1/its1/IviContainer.h similarity index 100% rename from vanetza/asn1/its/IviContainer.h rename to vanetza/asn1/its1/IviContainer.h diff --git a/vanetza/asn1/its/IviContainers.c b/vanetza/asn1/its1/IviContainers.c similarity index 92% rename from vanetza/asn1/its/IviContainers.c rename to vanetza/asn1/its1/IviContainers.c index 04558a23e..febe1fa2b 100644 --- a/vanetza/asn1/its/IviContainers.c +++ b/vanetza/asn1/its1/IviContainers.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_IviContainers_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_IviContainers = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_IviContainers_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_IviContainers_1, diff --git a/vanetza/asn1/its/IviContainers.h b/vanetza/asn1/its1/IviContainers.h similarity index 100% rename from vanetza/asn1/its/IviContainers.h rename to vanetza/asn1/its1/IviContainers.h diff --git a/vanetza/asn1/its1/IviIdentificationNumber.c b/vanetza/asn1/its1/IviIdentificationNumber.c new file mode 100644 index 000000000..451dfed7f --- /dev/null +++ b/vanetza/asn1/its1/IviIdentificationNumber.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "IVI" + * found in "build.asn1/iso/ISO19321.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "IviIdentificationNumber.h" + +int +IviIdentificationNumber_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 <= 32767L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_IviIdentificationNumber_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_IviIdentificationNumber_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 15, 15, 1, 32767 } /* (1..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 ber_tlv_tag_t asn_DEF_IviIdentificationNumber_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_IviIdentificationNumber = { + "IviIdentificationNumber", + "IviIdentificationNumber", + &asn_OP_NativeInteger, + asn_DEF_IviIdentificationNumber_tags_1, + sizeof(asn_DEF_IviIdentificationNumber_tags_1) + /sizeof(asn_DEF_IviIdentificationNumber_tags_1[0]), /* 1 */ + asn_DEF_IviIdentificationNumber_tags_1, /* Same as above */ + sizeof(asn_DEF_IviIdentificationNumber_tags_1) + /sizeof(asn_DEF_IviIdentificationNumber_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_IviIdentificationNumber_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_IviIdentificationNumber_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + IviIdentificationNumber_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/IviIdentificationNumber.h b/vanetza/asn1/its1/IviIdentificationNumber.h similarity index 100% rename from vanetza/asn1/its/IviIdentificationNumber.h rename to vanetza/asn1/its1/IviIdentificationNumber.h diff --git a/vanetza/asn1/its/IviIdentificationNumbers.c b/vanetza/asn1/its1/IviIdentificationNumbers.c similarity index 93% rename from vanetza/asn1/its/IviIdentificationNumbers.c rename to vanetza/asn1/its1/IviIdentificationNumbers.c index 06706775b..8a2533a53 100644 --- a/vanetza/asn1/its/IviIdentificationNumbers.c +++ b/vanetza/asn1/its1/IviIdentificationNumbers.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_IviIdentificationNumbers_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_IviIdentificationNumbers = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_IviIdentificationNumbers_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_IviIdentificationNumbers_1, diff --git a/vanetza/asn1/its/IviIdentificationNumbers.h b/vanetza/asn1/its1/IviIdentificationNumbers.h similarity index 100% rename from vanetza/asn1/its/IviIdentificationNumbers.h rename to vanetza/asn1/its1/IviIdentificationNumbers.h diff --git a/vanetza/asn1/its/IviLaneWidth.c b/vanetza/asn1/its1/IviLaneWidth.c similarity index 96% rename from vanetza/asn1/its/IviLaneWidth.c rename to vanetza/asn1/its1/IviLaneWidth.c index 7811fe19d..1e78bc2fd 100644 --- a/vanetza/asn1/its/IviLaneWidth.c +++ b/vanetza/asn1/its1/IviLaneWidth.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_IviLaneWidth = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_IviLaneWidth_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ IviLaneWidth_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/IviLaneWidth.h b/vanetza/asn1/its1/IviLaneWidth.h similarity index 100% rename from vanetza/asn1/its/IviLaneWidth.h rename to vanetza/asn1/its1/IviLaneWidth.h diff --git a/vanetza/asn1/its/IviManagementContainer.c b/vanetza/asn1/its1/IviManagementContainer.c similarity index 88% rename from vanetza/asn1/its/IviManagementContainer.c rename to vanetza/asn1/its1/IviManagementContainer.c index 907d809ce..3798d5f5d 100644 --- a/vanetza/asn1/its/IviManagementContainer.c +++ b/vanetza/asn1/its1/IviManagementContainer.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_IviManagementContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_IviManagementContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_IviManagementContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -71,6 +80,9 @@ asn_TYPE_member_t asn_MBR_IviManagementContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -88,6 +100,9 @@ asn_TYPE_member_t asn_MBR_IviManagementContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -105,6 +120,9 @@ asn_TYPE_member_t asn_MBR_IviManagementContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -122,6 +140,9 @@ asn_TYPE_member_t asn_MBR_IviManagementContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -139,6 +160,9 @@ asn_TYPE_member_t asn_MBR_IviManagementContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -185,6 +209,9 @@ asn_TYPE_descriptor_t asn_DEF_IviManagementContainer = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_IviManagementContainer_1, diff --git a/vanetza/asn1/its/IviManagementContainer.h b/vanetza/asn1/its1/IviManagementContainer.h similarity index 100% rename from vanetza/asn1/its/IviManagementContainer.h rename to vanetza/asn1/its1/IviManagementContainer.h diff --git a/vanetza/asn1/its/IviPurpose.c b/vanetza/asn1/its1/IviPurpose.c similarity index 96% rename from vanetza/asn1/its/IviPurpose.c rename to vanetza/asn1/its1/IviPurpose.c index 53dced2a7..70d1903e5 100644 --- a/vanetza/asn1/its/IviPurpose.c +++ b/vanetza/asn1/its1/IviPurpose.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_IviPurpose = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_IviPurpose_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ IviPurpose_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/IviPurpose.h b/vanetza/asn1/its1/IviPurpose.h similarity index 100% rename from vanetza/asn1/its/IviPurpose.h rename to vanetza/asn1/its1/IviPurpose.h diff --git a/vanetza/asn1/its/IviStatus.c b/vanetza/asn1/its1/IviStatus.c similarity index 96% rename from vanetza/asn1/its/IviStatus.c rename to vanetza/asn1/its1/IviStatus.c index 6b75dbe55..6a94894d3 100644 --- a/vanetza/asn1/its/IviStatus.c +++ b/vanetza/asn1/its1/IviStatus.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_IviStatus = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_IviStatus_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ IviStatus_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/IviStatus.h b/vanetza/asn1/its1/IviStatus.h similarity index 100% rename from vanetza/asn1/its/IviStatus.h rename to vanetza/asn1/its1/IviStatus.h diff --git a/vanetza/asn1/its/IviStructure.c b/vanetza/asn1/its1/IviStructure.c similarity index 90% rename from vanetza/asn1/its/IviStructure.c rename to vanetza/asn1/its1/IviStructure.c index 7f6615261..25ef0d2a4 100644 --- a/vanetza/asn1/its/IviStructure.c +++ b/vanetza/asn1/its1/IviStructure.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_IviStructure_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_IviStructure_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -77,6 +83,9 @@ asn_TYPE_descriptor_t asn_DEF_IviStructure = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_IviStructure_1, diff --git a/vanetza/asn1/its/IviStructure.h b/vanetza/asn1/its1/IviStructure.h similarity index 100% rename from vanetza/asn1/its/IviStructure.h rename to vanetza/asn1/its1/IviStructure.h diff --git a/vanetza/asn1/its/IviType.c b/vanetza/asn1/its1/IviType.c similarity index 96% rename from vanetza/asn1/its/IviType.c rename to vanetza/asn1/its1/IviType.c index 5efd0320a..9ec43b73d 100644 --- a/vanetza/asn1/its/IviType.c +++ b/vanetza/asn1/its1/IviType.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_IviType = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_IviType_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ IviType_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/IviType.h b/vanetza/asn1/its1/IviType.h similarity index 100% rename from vanetza/asn1/its/IviType.h rename to vanetza/asn1/its1/IviType.h diff --git a/vanetza/asn1/its/LPN.c b/vanetza/asn1/its1/LPN.c similarity index 94% rename from vanetza/asn1/its/LPN.c rename to vanetza/asn1/its1/LPN.c index ac1e5f870..85a10e407 100644 --- a/vanetza/asn1/its/LPN.c +++ b/vanetza/asn1/its1/LPN.c @@ -124,6 +124,9 @@ asn_TYPE_descriptor_t asn_DEF_alphabetIndicator_3 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_alphabetIndicator_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ @@ -143,6 +146,9 @@ asn_TYPE_member_t asn_MBR_LPN_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -160,6 +166,9 @@ asn_TYPE_member_t asn_MBR_LPN_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -177,6 +186,9 @@ asn_TYPE_member_t asn_MBR_LPN_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -216,6 +228,9 @@ asn_TYPE_descriptor_t asn_DEF_LPN = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_LPN_1, diff --git a/vanetza/asn1/its/LPN.h b/vanetza/asn1/its1/LPN.h similarity index 100% rename from vanetza/asn1/its/LPN.h rename to vanetza/asn1/its1/LPN.h diff --git a/vanetza/asn1/its/LaneAttributes-Barrier.c b/vanetza/asn1/its1/LaneAttributes-Barrier.c similarity index 89% rename from vanetza/asn1/its/LaneAttributes-Barrier.c rename to vanetza/asn1/its1/LaneAttributes-Barrier.c index da9f537ea..c771fbbea 100644 --- a/vanetza/asn1/its/LaneAttributes-Barrier.c +++ b/vanetza/asn1/its1/LaneAttributes-Barrier.c @@ -54,6 +54,10 @@ asn_per_constraints_t asn_PER_type_LaneAttributes_Barrier_constr_1 CC_NOTUSED = 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_LaneAttributes_Barrier_constr_1 CC_NOTUSED = { + 16}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_LaneAttributes_Barrier_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) }; @@ -74,6 +78,9 @@ asn_TYPE_descriptor_t asn_DEF_LaneAttributes_Barrier = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_LaneAttributes_Barrier_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_LaneAttributes_Barrier_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ LaneAttributes_Barrier_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/LaneAttributes-Barrier.h b/vanetza/asn1/its1/LaneAttributes-Barrier.h similarity index 100% rename from vanetza/asn1/its/LaneAttributes-Barrier.h rename to vanetza/asn1/its1/LaneAttributes-Barrier.h diff --git a/vanetza/asn1/its/LaneAttributes-Bike.c b/vanetza/asn1/its1/LaneAttributes-Bike.c similarity index 89% rename from vanetza/asn1/its/LaneAttributes-Bike.c rename to vanetza/asn1/its1/LaneAttributes-Bike.c index c16986d79..dd9c630e9 100644 --- a/vanetza/asn1/its/LaneAttributes-Bike.c +++ b/vanetza/asn1/its1/LaneAttributes-Bike.c @@ -54,6 +54,10 @@ asn_per_constraints_t asn_PER_type_LaneAttributes_Bike_constr_1 CC_NOTUSED = { 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_LaneAttributes_Bike_constr_1 CC_NOTUSED = { + 16}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_LaneAttributes_Bike_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) }; @@ -74,6 +78,9 @@ asn_TYPE_descriptor_t asn_DEF_LaneAttributes_Bike = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_LaneAttributes_Bike_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_LaneAttributes_Bike_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ LaneAttributes_Bike_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/LaneAttributes-Bike.h b/vanetza/asn1/its1/LaneAttributes-Bike.h similarity index 100% rename from vanetza/asn1/its/LaneAttributes-Bike.h rename to vanetza/asn1/its1/LaneAttributes-Bike.h diff --git a/vanetza/asn1/its/LaneAttributes-Crosswalk.c b/vanetza/asn1/its1/LaneAttributes-Crosswalk.c similarity index 89% rename from vanetza/asn1/its/LaneAttributes-Crosswalk.c rename to vanetza/asn1/its1/LaneAttributes-Crosswalk.c index 40235605d..91540c670 100644 --- a/vanetza/asn1/its/LaneAttributes-Crosswalk.c +++ b/vanetza/asn1/its1/LaneAttributes-Crosswalk.c @@ -54,6 +54,10 @@ asn_per_constraints_t asn_PER_type_LaneAttributes_Crosswalk_constr_1 CC_NOTUSED 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_LaneAttributes_Crosswalk_constr_1 CC_NOTUSED = { + 16}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_LaneAttributes_Crosswalk_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) }; @@ -74,6 +78,9 @@ asn_TYPE_descriptor_t asn_DEF_LaneAttributes_Crosswalk = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_LaneAttributes_Crosswalk_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_LaneAttributes_Crosswalk_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ LaneAttributes_Crosswalk_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/LaneAttributes-Crosswalk.h b/vanetza/asn1/its1/LaneAttributes-Crosswalk.h similarity index 100% rename from vanetza/asn1/its/LaneAttributes-Crosswalk.h rename to vanetza/asn1/its1/LaneAttributes-Crosswalk.h diff --git a/vanetza/asn1/its/LaneAttributes-Parking.c b/vanetza/asn1/its1/LaneAttributes-Parking.c similarity index 89% rename from vanetza/asn1/its/LaneAttributes-Parking.c rename to vanetza/asn1/its1/LaneAttributes-Parking.c index 06872fb3d..eea2ce3aa 100644 --- a/vanetza/asn1/its/LaneAttributes-Parking.c +++ b/vanetza/asn1/its1/LaneAttributes-Parking.c @@ -54,6 +54,10 @@ asn_per_constraints_t asn_PER_type_LaneAttributes_Parking_constr_1 CC_NOTUSED = 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_LaneAttributes_Parking_constr_1 CC_NOTUSED = { + 16}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_LaneAttributes_Parking_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) }; @@ -74,6 +78,9 @@ asn_TYPE_descriptor_t asn_DEF_LaneAttributes_Parking = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_LaneAttributes_Parking_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_LaneAttributes_Parking_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ LaneAttributes_Parking_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/LaneAttributes-Parking.h b/vanetza/asn1/its1/LaneAttributes-Parking.h similarity index 100% rename from vanetza/asn1/its/LaneAttributes-Parking.h rename to vanetza/asn1/its1/LaneAttributes-Parking.h diff --git a/vanetza/asn1/its/LaneAttributes-Sidewalk.c b/vanetza/asn1/its1/LaneAttributes-Sidewalk.c similarity index 89% rename from vanetza/asn1/its/LaneAttributes-Sidewalk.c rename to vanetza/asn1/its1/LaneAttributes-Sidewalk.c index bbeab91b4..e128bf943 100644 --- a/vanetza/asn1/its/LaneAttributes-Sidewalk.c +++ b/vanetza/asn1/its1/LaneAttributes-Sidewalk.c @@ -54,6 +54,10 @@ asn_per_constraints_t asn_PER_type_LaneAttributes_Sidewalk_constr_1 CC_NOTUSED = 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_LaneAttributes_Sidewalk_constr_1 CC_NOTUSED = { + 16}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_LaneAttributes_Sidewalk_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) }; @@ -74,6 +78,9 @@ asn_TYPE_descriptor_t asn_DEF_LaneAttributes_Sidewalk = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_LaneAttributes_Sidewalk_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_LaneAttributes_Sidewalk_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ LaneAttributes_Sidewalk_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/LaneAttributes-Sidewalk.h b/vanetza/asn1/its1/LaneAttributes-Sidewalk.h similarity index 100% rename from vanetza/asn1/its/LaneAttributes-Sidewalk.h rename to vanetza/asn1/its1/LaneAttributes-Sidewalk.h diff --git a/vanetza/asn1/its/LaneAttributes-Striping.c b/vanetza/asn1/its1/LaneAttributes-Striping.c similarity index 89% rename from vanetza/asn1/its/LaneAttributes-Striping.c rename to vanetza/asn1/its1/LaneAttributes-Striping.c index f6b58f503..db8d08936 100644 --- a/vanetza/asn1/its/LaneAttributes-Striping.c +++ b/vanetza/asn1/its1/LaneAttributes-Striping.c @@ -54,6 +54,10 @@ asn_per_constraints_t asn_PER_type_LaneAttributes_Striping_constr_1 CC_NOTUSED = 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_LaneAttributes_Striping_constr_1 CC_NOTUSED = { + 16}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_LaneAttributes_Striping_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) }; @@ -74,6 +78,9 @@ asn_TYPE_descriptor_t asn_DEF_LaneAttributes_Striping = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_LaneAttributes_Striping_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_LaneAttributes_Striping_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ LaneAttributes_Striping_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/LaneAttributes-Striping.h b/vanetza/asn1/its1/LaneAttributes-Striping.h similarity index 100% rename from vanetza/asn1/its/LaneAttributes-Striping.h rename to vanetza/asn1/its1/LaneAttributes-Striping.h diff --git a/vanetza/asn1/its/LaneAttributes-TrackedVehicle.c b/vanetza/asn1/its1/LaneAttributes-TrackedVehicle.c similarity index 89% rename from vanetza/asn1/its/LaneAttributes-TrackedVehicle.c rename to vanetza/asn1/its1/LaneAttributes-TrackedVehicle.c index 21ac6e542..6fee18cfd 100644 --- a/vanetza/asn1/its/LaneAttributes-TrackedVehicle.c +++ b/vanetza/asn1/its1/LaneAttributes-TrackedVehicle.c @@ -54,6 +54,10 @@ asn_per_constraints_t asn_PER_type_LaneAttributes_TrackedVehicle_constr_1 CC_NOT 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_LaneAttributes_TrackedVehicle_constr_1 CC_NOTUSED = { + 16}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_LaneAttributes_TrackedVehicle_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) }; @@ -74,6 +78,9 @@ asn_TYPE_descriptor_t asn_DEF_LaneAttributes_TrackedVehicle = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_LaneAttributes_TrackedVehicle_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_LaneAttributes_TrackedVehicle_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ LaneAttributes_TrackedVehicle_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/LaneAttributes-TrackedVehicle.h b/vanetza/asn1/its1/LaneAttributes-TrackedVehicle.h similarity index 100% rename from vanetza/asn1/its/LaneAttributes-TrackedVehicle.h rename to vanetza/asn1/its1/LaneAttributes-TrackedVehicle.h diff --git a/vanetza/asn1/its/LaneAttributes-Vehicle.c b/vanetza/asn1/its1/LaneAttributes-Vehicle.c similarity index 89% rename from vanetza/asn1/its/LaneAttributes-Vehicle.c rename to vanetza/asn1/its1/LaneAttributes-Vehicle.c index 63720cf4a..d7f377c4c 100644 --- a/vanetza/asn1/its/LaneAttributes-Vehicle.c +++ b/vanetza/asn1/its1/LaneAttributes-Vehicle.c @@ -54,6 +54,10 @@ asn_per_constraints_t asn_PER_type_LaneAttributes_Vehicle_constr_1 CC_NOTUSED = 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_LaneAttributes_Vehicle_constr_1 CC_NOTUSED = { + -1}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_LaneAttributes_Vehicle_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) }; @@ -74,6 +78,9 @@ asn_TYPE_descriptor_t asn_DEF_LaneAttributes_Vehicle = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_LaneAttributes_Vehicle_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_LaneAttributes_Vehicle_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ LaneAttributes_Vehicle_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/LaneAttributes-Vehicle.h b/vanetza/asn1/its1/LaneAttributes-Vehicle.h similarity index 100% rename from vanetza/asn1/its/LaneAttributes-Vehicle.h rename to vanetza/asn1/its1/LaneAttributes-Vehicle.h diff --git a/vanetza/asn1/its/LaneAttributes-addGrpC.c b/vanetza/asn1/its1/LaneAttributes-addGrpC.c similarity index 91% rename from vanetza/asn1/its/LaneAttributes-addGrpC.c rename to vanetza/asn1/its1/LaneAttributes-addGrpC.c index ed08e1feb..751b059fc 100644 --- a/vanetza/asn1/its/LaneAttributes-addGrpC.c +++ b/vanetza/asn1/its1/LaneAttributes-addGrpC.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_LaneAttributes_addGrpC_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_LaneAttributes_addGrpC_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -77,6 +83,9 @@ asn_TYPE_descriptor_t asn_DEF_LaneAttributes_addGrpC = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_LaneAttributes_addGrpC_1, diff --git a/vanetza/asn1/its/LaneAttributes-addGrpC.h b/vanetza/asn1/its1/LaneAttributes-addGrpC.h similarity index 100% rename from vanetza/asn1/its/LaneAttributes-addGrpC.h rename to vanetza/asn1/its1/LaneAttributes-addGrpC.h diff --git a/vanetza/asn1/its/LaneAttributes.c b/vanetza/asn1/its1/LaneAttributes.c similarity index 89% rename from vanetza/asn1/its/LaneAttributes.c rename to vanetza/asn1/its1/LaneAttributes.c index 1397f905e..4fb0a0d49 100644 --- a/vanetza/asn1/its/LaneAttributes.c +++ b/vanetza/asn1/its1/LaneAttributes.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_LaneAttributes_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_LaneAttributes_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_LaneAttributes_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -71,6 +80,9 @@ asn_TYPE_member_t asn_MBR_LaneAttributes_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -113,6 +125,9 @@ asn_TYPE_descriptor_t asn_DEF_LaneAttributes = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_LaneAttributes_1, diff --git a/vanetza/asn1/its/LaneAttributes.h b/vanetza/asn1/its1/LaneAttributes.h similarity index 100% rename from vanetza/asn1/its/LaneAttributes.h rename to vanetza/asn1/its1/LaneAttributes.h diff --git a/vanetza/asn1/its/LaneCharacteristics.c b/vanetza/asn1/its1/LaneCharacteristics.c similarity index 89% rename from vanetza/asn1/its/LaneCharacteristics.c rename to vanetza/asn1/its1/LaneCharacteristics.c index 659cd809e..acc2fbc34 100644 --- a/vanetza/asn1/its/LaneCharacteristics.c +++ b/vanetza/asn1/its1/LaneCharacteristics.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_LaneCharacteristics_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_LaneCharacteristics_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_LaneCharacteristics_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -71,6 +80,9 @@ asn_TYPE_member_t asn_MBR_LaneCharacteristics_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -88,6 +100,9 @@ asn_TYPE_member_t asn_MBR_LaneCharacteristics_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -105,6 +120,9 @@ asn_TYPE_member_t asn_MBR_LaneCharacteristics_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -147,6 +165,9 @@ asn_TYPE_descriptor_t asn_DEF_LaneCharacteristics = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_LaneCharacteristics_1, diff --git a/vanetza/asn1/its/LaneCharacteristics.h b/vanetza/asn1/its1/LaneCharacteristics.h similarity index 100% rename from vanetza/asn1/its/LaneCharacteristics.h rename to vanetza/asn1/its1/LaneCharacteristics.h diff --git a/vanetza/asn1/its/LaneConfiguration.c b/vanetza/asn1/its1/LaneConfiguration.c similarity index 93% rename from vanetza/asn1/its/LaneConfiguration.c rename to vanetza/asn1/its1/LaneConfiguration.c index 009d8d93f..a8dda3f1d 100644 --- a/vanetza/asn1/its/LaneConfiguration.c +++ b/vanetza/asn1/its1/LaneConfiguration.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_LaneConfiguration_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_LaneConfiguration = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_LaneConfiguration_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_LaneConfiguration_1, diff --git a/vanetza/asn1/its/LaneConfiguration.h b/vanetza/asn1/its1/LaneConfiguration.h similarity index 100% rename from vanetza/asn1/its/LaneConfiguration.h rename to vanetza/asn1/its1/LaneConfiguration.h diff --git a/vanetza/asn1/its/LaneConnectionID.c b/vanetza/asn1/its1/LaneConnectionID.c similarity index 96% rename from vanetza/asn1/its/LaneConnectionID.c rename to vanetza/asn1/its1/LaneConnectionID.c index 49ed9f203..feb56c3d1 100644 --- a/vanetza/asn1/its/LaneConnectionID.c +++ b/vanetza/asn1/its1/LaneConnectionID.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_LaneConnectionID = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_LaneConnectionID_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ LaneConnectionID_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/LaneConnectionID.h b/vanetza/asn1/its1/LaneConnectionID.h similarity index 100% rename from vanetza/asn1/its/LaneConnectionID.h rename to vanetza/asn1/its1/LaneConnectionID.h diff --git a/vanetza/asn1/its/LaneDataAttribute.c b/vanetza/asn1/its1/LaneDataAttribute.c similarity index 91% rename from vanetza/asn1/its/LaneDataAttribute.c rename to vanetza/asn1/its1/LaneDataAttribute.c index 721a16acf..14cc3c426 100644 --- a/vanetza/asn1/its/LaneDataAttribute.c +++ b/vanetza/asn1/its1/LaneDataAttribute.c @@ -82,6 +82,9 @@ static asn_TYPE_member_t asn_MBR_regional_8[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -115,6 +118,9 @@ asn_TYPE_descriptor_t asn_DEF_regional_8 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_regional_constr_8, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_regional_8, @@ -135,6 +141,9 @@ asn_TYPE_member_t asn_MBR_LaneDataAttribute_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -152,6 +161,9 @@ asn_TYPE_member_t asn_MBR_LaneDataAttribute_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -169,6 +181,9 @@ asn_TYPE_member_t asn_MBR_LaneDataAttribute_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -186,6 +201,9 @@ asn_TYPE_member_t asn_MBR_LaneDataAttribute_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -203,6 +221,9 @@ asn_TYPE_member_t asn_MBR_LaneDataAttribute_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -220,6 +241,9 @@ asn_TYPE_member_t asn_MBR_LaneDataAttribute_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -237,6 +261,9 @@ asn_TYPE_member_t asn_MBR_LaneDataAttribute_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regional_constr_8, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regional_constraint_1 }, 0, 0, /* No default value */ @@ -277,6 +304,9 @@ asn_TYPE_descriptor_t asn_DEF_LaneDataAttribute = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_LaneDataAttribute_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_LaneDataAttribute_1, diff --git a/vanetza/asn1/its/LaneDataAttribute.h b/vanetza/asn1/its1/LaneDataAttribute.h similarity index 100% rename from vanetza/asn1/its/LaneDataAttribute.h rename to vanetza/asn1/its1/LaneDataAttribute.h diff --git a/vanetza/asn1/its/LaneDataAttributeList.c b/vanetza/asn1/its1/LaneDataAttributeList.c similarity index 93% rename from vanetza/asn1/its/LaneDataAttributeList.c rename to vanetza/asn1/its1/LaneDataAttributeList.c index ac30e0c34..26d6baf90 100644 --- a/vanetza/asn1/its/LaneDataAttributeList.c +++ b/vanetza/asn1/its1/LaneDataAttributeList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_LaneDataAttributeList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_LaneDataAttributeList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_LaneDataAttributeList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_LaneDataAttributeList_1, diff --git a/vanetza/asn1/its/LaneDataAttributeList.h b/vanetza/asn1/its1/LaneDataAttributeList.h similarity index 100% rename from vanetza/asn1/its/LaneDataAttributeList.h rename to vanetza/asn1/its1/LaneDataAttributeList.h diff --git a/vanetza/asn1/its/LaneDelimitation.c b/vanetza/asn1/its1/LaneDelimitation.c similarity index 96% rename from vanetza/asn1/its/LaneDelimitation.c rename to vanetza/asn1/its1/LaneDelimitation.c index 804ee714d..09fa482e7 100644 --- a/vanetza/asn1/its/LaneDelimitation.c +++ b/vanetza/asn1/its1/LaneDelimitation.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_LaneDelimitation = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_LaneDelimitation_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ LaneDelimitation_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/LaneDelimitation.h b/vanetza/asn1/its1/LaneDelimitation.h similarity index 100% rename from vanetza/asn1/its/LaneDelimitation.h rename to vanetza/asn1/its1/LaneDelimitation.h diff --git a/vanetza/asn1/its/LaneDirection.c b/vanetza/asn1/its1/LaneDirection.c similarity index 89% rename from vanetza/asn1/its/LaneDirection.c rename to vanetza/asn1/its1/LaneDirection.c index 1bf39abd7..a0498587b 100644 --- a/vanetza/asn1/its/LaneDirection.c +++ b/vanetza/asn1/its1/LaneDirection.c @@ -54,6 +54,10 @@ asn_per_constraints_t asn_PER_type_LaneDirection_constr_1 CC_NOTUSED = { 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_LaneDirection_constr_1 CC_NOTUSED = { + 2}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_LaneDirection_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) }; @@ -74,6 +78,9 @@ asn_TYPE_descriptor_t asn_DEF_LaneDirection = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_LaneDirection_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_LaneDirection_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ LaneDirection_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/LaneDirection.h b/vanetza/asn1/its1/LaneDirection.h similarity index 100% rename from vanetza/asn1/its/LaneDirection.h rename to vanetza/asn1/its1/LaneDirection.h diff --git a/vanetza/asn1/its/LaneID.c b/vanetza/asn1/its1/LaneID.c similarity index 96% rename from vanetza/asn1/its/LaneID.c rename to vanetza/asn1/its1/LaneID.c index b75958815..8efab28a9 100644 --- a/vanetza/asn1/its/LaneID.c +++ b/vanetza/asn1/its1/LaneID.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_LaneID = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_LaneID_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ LaneID_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/LaneID.h b/vanetza/asn1/its1/LaneID.h similarity index 100% rename from vanetza/asn1/its/LaneID.h rename to vanetza/asn1/its1/LaneID.h diff --git a/vanetza/asn1/its/LaneIds.c b/vanetza/asn1/its1/LaneIds.c similarity index 92% rename from vanetza/asn1/its/LaneIds.c rename to vanetza/asn1/its1/LaneIds.c index a12ae2032..905b35ad8 100644 --- a/vanetza/asn1/its/LaneIds.c +++ b/vanetza/asn1/its1/LaneIds.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_LaneIds_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_LaneIds = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_LaneIds_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_LaneIds_1, diff --git a/vanetza/asn1/its/LaneIds.h b/vanetza/asn1/its1/LaneIds.h similarity index 100% rename from vanetza/asn1/its/LaneIds.h rename to vanetza/asn1/its1/LaneIds.h diff --git a/vanetza/asn1/its/LaneInformation.c b/vanetza/asn1/its1/LaneInformation.c similarity index 88% rename from vanetza/asn1/its/LaneInformation.c rename to vanetza/asn1/its1/LaneInformation.c index 4f6569395..48ce7c158 100644 --- a/vanetza/asn1/its/LaneInformation.c +++ b/vanetza/asn1/its1/LaneInformation.c @@ -20,6 +20,9 @@ static asn_TYPE_member_t asn_MBR_ext1_10[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ static asn_TYPE_member_t asn_MBR_ext1_10[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ static asn_TYPE_member_t asn_MBR_ext1_10[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -71,6 +80,9 @@ static asn_TYPE_member_t asn_MBR_ext1_10[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -88,6 +100,9 @@ static asn_TYPE_member_t asn_MBR_ext1_10[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -133,6 +148,9 @@ asn_TYPE_descriptor_t asn_DEF_ext1_10 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_ext1_10, @@ -153,6 +171,9 @@ asn_TYPE_member_t asn_MBR_LaneInformation_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -170,6 +191,9 @@ asn_TYPE_member_t asn_MBR_LaneInformation_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -187,6 +211,9 @@ asn_TYPE_member_t asn_MBR_LaneInformation_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -204,6 +231,9 @@ asn_TYPE_member_t asn_MBR_LaneInformation_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -221,6 +251,9 @@ asn_TYPE_member_t asn_MBR_LaneInformation_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -238,6 +271,9 @@ asn_TYPE_member_t asn_MBR_LaneInformation_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -255,6 +291,9 @@ asn_TYPE_member_t asn_MBR_LaneInformation_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -272,6 +311,9 @@ asn_TYPE_member_t asn_MBR_LaneInformation_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -318,6 +360,9 @@ asn_TYPE_descriptor_t asn_DEF_LaneInformation = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_LaneInformation_1, diff --git a/vanetza/asn1/its/LaneInformation.h b/vanetza/asn1/its1/LaneInformation.h similarity index 100% rename from vanetza/asn1/its/LaneInformation.h rename to vanetza/asn1/its1/LaneInformation.h diff --git a/vanetza/asn1/its/LaneList.c b/vanetza/asn1/its1/LaneList.c similarity index 92% rename from vanetza/asn1/its/LaneList.c rename to vanetza/asn1/its1/LaneList.c index 878ea7d66..56f3e8caf 100644 --- a/vanetza/asn1/its/LaneList.c +++ b/vanetza/asn1/its1/LaneList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_LaneList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_LaneList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_LaneList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_LaneList_1, diff --git a/vanetza/asn1/its/LaneList.h b/vanetza/asn1/its1/LaneList.h similarity index 100% rename from vanetza/asn1/its/LaneList.h rename to vanetza/asn1/its1/LaneList.h diff --git a/vanetza/asn1/its/LaneMarkingStatus.c b/vanetza/asn1/its1/LaneMarkingStatus.c similarity index 92% rename from vanetza/asn1/its/LaneMarkingStatus.c rename to vanetza/asn1/its1/LaneMarkingStatus.c index 793535ca2..64df2d6e6 100644 --- a/vanetza/asn1/its/LaneMarkingStatus.c +++ b/vanetza/asn1/its1/LaneMarkingStatus.c @@ -31,6 +31,9 @@ asn_TYPE_descriptor_t asn_DEF_LaneMarkingStatus = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ BOOLEAN_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/LaneMarkingStatus.h b/vanetza/asn1/its1/LaneMarkingStatus.h similarity index 100% rename from vanetza/asn1/its/LaneMarkingStatus.h rename to vanetza/asn1/its1/LaneMarkingStatus.h diff --git a/vanetza/asn1/its1/LanePosition.c b/vanetza/asn1/its1/LanePosition.c new file mode 100644 index 000000000..427a2754a --- /dev/null +++ b/vanetza/asn1/its1/LanePosition.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "LanePosition.h" + +int +LanePosition_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 <= 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_LanePosition_constr_1 CC_NOTUSED = { + { 1, 0 } /* (-1..14) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_LanePosition_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, -1, 14 } /* (-1..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_LanePosition_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_LanePosition = { + "LanePosition", + "LanePosition", + &asn_OP_NativeInteger, + asn_DEF_LanePosition_tags_1, + sizeof(asn_DEF_LanePosition_tags_1) + /sizeof(asn_DEF_LanePosition_tags_1[0]), /* 1 */ + asn_DEF_LanePosition_tags_1, /* Same as above */ + sizeof(asn_DEF_LanePosition_tags_1) + /sizeof(asn_DEF_LanePosition_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_LanePosition_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_LanePosition_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + LanePosition_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/LanePosition.h b/vanetza/asn1/its1/LanePosition.h similarity index 100% rename from vanetza/asn1/its/LanePosition.h rename to vanetza/asn1/its1/LanePosition.h diff --git a/vanetza/asn1/its/LanePositions.c b/vanetza/asn1/its1/LanePositions.c similarity index 92% rename from vanetza/asn1/its/LanePositions.c rename to vanetza/asn1/its1/LanePositions.c index e37db06f7..34f0c1dd4 100644 --- a/vanetza/asn1/its/LanePositions.c +++ b/vanetza/asn1/its1/LanePositions.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_LanePositions_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_LanePositions = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_LanePositions_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_LanePositions_1, diff --git a/vanetza/asn1/its/LanePositions.h b/vanetza/asn1/its1/LanePositions.h similarity index 100% rename from vanetza/asn1/its/LanePositions.h rename to vanetza/asn1/its1/LanePositions.h diff --git a/vanetza/asn1/its/LaneSharing.c b/vanetza/asn1/its1/LaneSharing.c similarity index 89% rename from vanetza/asn1/its/LaneSharing.c rename to vanetza/asn1/its1/LaneSharing.c index 0e10e96e5..e077fa8a5 100644 --- a/vanetza/asn1/its/LaneSharing.c +++ b/vanetza/asn1/its1/LaneSharing.c @@ -54,6 +54,10 @@ asn_per_constraints_t asn_PER_type_LaneSharing_constr_1 CC_NOTUSED = { 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_LaneSharing_constr_1 CC_NOTUSED = { + 10}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_LaneSharing_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) }; @@ -74,6 +78,9 @@ asn_TYPE_descriptor_t asn_DEF_LaneSharing = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_LaneSharing_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_LaneSharing_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ LaneSharing_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/LaneSharing.h b/vanetza/asn1/its1/LaneSharing.h similarity index 100% rename from vanetza/asn1/its/LaneSharing.h rename to vanetza/asn1/its1/LaneSharing.h diff --git a/vanetza/asn1/its/LaneStatus.c b/vanetza/asn1/its1/LaneStatus.c similarity index 96% rename from vanetza/asn1/its/LaneStatus.c rename to vanetza/asn1/its1/LaneStatus.c index 584d81fee..61922c98b 100644 --- a/vanetza/asn1/its/LaneStatus.c +++ b/vanetza/asn1/its1/LaneStatus.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_LaneStatus = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_LaneStatus_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ LaneStatus_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/LaneStatus.h b/vanetza/asn1/its1/LaneStatus.h similarity index 100% rename from vanetza/asn1/its/LaneStatus.h rename to vanetza/asn1/its1/LaneStatus.h diff --git a/vanetza/asn1/its1/LaneType.c b/vanetza/asn1/its1/LaneType.c new file mode 100644 index 000000000..e4bd2a8a6 --- /dev/null +++ b/vanetza/asn1/its1/LaneType.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "IVI" + * found in "build.asn1/iso/ISO19321.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "LaneType.h" + +int +LaneType_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 <= 31L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_LaneType_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..31) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_LaneType_constr_1 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 ber_tlv_tag_t asn_DEF_LaneType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_LaneType = { + "LaneType", + "LaneType", + &asn_OP_NativeInteger, + asn_DEF_LaneType_tags_1, + sizeof(asn_DEF_LaneType_tags_1) + /sizeof(asn_DEF_LaneType_tags_1[0]), /* 1 */ + asn_DEF_LaneType_tags_1, /* Same as above */ + sizeof(asn_DEF_LaneType_tags_1) + /sizeof(asn_DEF_LaneType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_LaneType_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_LaneType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + LaneType_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/LaneType.h b/vanetza/asn1/its1/LaneType.h similarity index 100% rename from vanetza/asn1/its/LaneType.h rename to vanetza/asn1/its1/LaneType.h diff --git a/vanetza/asn1/its/LaneTypeAttributes.c b/vanetza/asn1/its1/LaneTypeAttributes.c similarity index 89% rename from vanetza/asn1/its/LaneTypeAttributes.c rename to vanetza/asn1/its1/LaneTypeAttributes.c index 9d5f85ce8..ada5fa569 100644 --- a/vanetza/asn1/its/LaneTypeAttributes.c +++ b/vanetza/asn1/its1/LaneTypeAttributes.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_LaneTypeAttributes_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_LaneTypeAttributes_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -66,6 +72,9 @@ asn_TYPE_member_t asn_MBR_LaneTypeAttributes_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -83,6 +92,9 @@ asn_TYPE_member_t asn_MBR_LaneTypeAttributes_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -100,6 +112,9 @@ asn_TYPE_member_t asn_MBR_LaneTypeAttributes_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -117,6 +132,9 @@ asn_TYPE_member_t asn_MBR_LaneTypeAttributes_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -134,6 +152,9 @@ asn_TYPE_member_t asn_MBR_LaneTypeAttributes_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -151,6 +172,9 @@ asn_TYPE_member_t asn_MBR_LaneTypeAttributes_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -192,6 +216,9 @@ asn_TYPE_descriptor_t asn_DEF_LaneTypeAttributes = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_LaneTypeAttributes_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_LaneTypeAttributes_1, diff --git a/vanetza/asn1/its/LaneTypeAttributes.h b/vanetza/asn1/its1/LaneTypeAttributes.h similarity index 100% rename from vanetza/asn1/its/LaneTypeAttributes.h rename to vanetza/asn1/its1/LaneTypeAttributes.h diff --git a/vanetza/asn1/its1/LaneWidth.c b/vanetza/asn1/its1/LaneWidth.c new file mode 100644 index 000000000..dc0577c04 --- /dev/null +++ b/vanetza/asn1/its1/LaneWidth.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "DSRC" + * found in "build.asn1/iso/ISO19091.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "LaneWidth.h" + +int +LaneWidth_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 <= 32767L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_LaneWidth_constr_1 CC_NOTUSED = { + { 2, 1 } /* (0..32767) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_LaneWidth_constr_1 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 ber_tlv_tag_t asn_DEF_LaneWidth_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_LaneWidth = { + "LaneWidth", + "LaneWidth", + &asn_OP_NativeInteger, + asn_DEF_LaneWidth_tags_1, + sizeof(asn_DEF_LaneWidth_tags_1) + /sizeof(asn_DEF_LaneWidth_tags_1[0]), /* 1 */ + asn_DEF_LaneWidth_tags_1, /* Same as above */ + sizeof(asn_DEF_LaneWidth_tags_1) + /sizeof(asn_DEF_LaneWidth_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_LaneWidth_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_LaneWidth_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + LaneWidth_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/LaneWidth.h b/vanetza/asn1/its1/LaneWidth.h similarity index 100% rename from vanetza/asn1/its/LaneWidth.h rename to vanetza/asn1/its1/LaneWidth.h diff --git a/vanetza/asn1/its1/LateralAcceleration.c b/vanetza/asn1/its1/LateralAcceleration.c new file mode 100644 index 000000000..244a0bfff --- /dev/null +++ b/vanetza/asn1/its1/LateralAcceleration.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "LateralAcceleration.h" + +asn_TYPE_member_t asn_MBR_LateralAcceleration_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct LateralAcceleration, lateralAccelerationValue), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LateralAccelerationValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lateralAccelerationValue" + }, + { ATF_NOFLAGS, 0, offsetof(struct LateralAcceleration, lateralAccelerationConfidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AccelerationConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lateralAccelerationConfidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_LateralAcceleration_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_LateralAcceleration_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* lateralAccelerationValue */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* lateralAccelerationConfidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_LateralAcceleration_specs_1 = { + sizeof(struct LateralAcceleration), + offsetof(struct LateralAcceleration, _asn_ctx), + asn_MAP_LateralAcceleration_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_LateralAcceleration = { + "LateralAcceleration", + "LateralAcceleration", + &asn_OP_SEQUENCE, + asn_DEF_LateralAcceleration_tags_1, + sizeof(asn_DEF_LateralAcceleration_tags_1) + /sizeof(asn_DEF_LateralAcceleration_tags_1[0]), /* 1 */ + asn_DEF_LateralAcceleration_tags_1, /* Same as above */ + sizeof(asn_DEF_LateralAcceleration_tags_1) + /sizeof(asn_DEF_LateralAcceleration_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_LateralAcceleration_1, + 2, /* Elements count */ + &asn_SPC_LateralAcceleration_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/LateralAcceleration.h b/vanetza/asn1/its1/LateralAcceleration.h similarity index 100% rename from vanetza/asn1/its/LateralAcceleration.h rename to vanetza/asn1/its1/LateralAcceleration.h diff --git a/vanetza/asn1/its1/LateralAccelerationValue.c b/vanetza/asn1/its1/LateralAccelerationValue.c new file mode 100644 index 000000000..2edc53749 --- /dev/null +++ b/vanetza/asn1/its1/LateralAccelerationValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "LateralAccelerationValue.h" + +int +LateralAccelerationValue_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 >= -160L && value <= 161L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_LateralAccelerationValue_constr_1 CC_NOTUSED = { + { 2, 0 } /* (-160..161) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_LateralAccelerationValue_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, -160, 161 } /* (-160..161) */, + { 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_LateralAccelerationValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_LateralAccelerationValue = { + "LateralAccelerationValue", + "LateralAccelerationValue", + &asn_OP_NativeInteger, + asn_DEF_LateralAccelerationValue_tags_1, + sizeof(asn_DEF_LateralAccelerationValue_tags_1) + /sizeof(asn_DEF_LateralAccelerationValue_tags_1[0]), /* 1 */ + asn_DEF_LateralAccelerationValue_tags_1, /* Same as above */ + sizeof(asn_DEF_LateralAccelerationValue_tags_1) + /sizeof(asn_DEF_LateralAccelerationValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_LateralAccelerationValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_LateralAccelerationValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + LateralAccelerationValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/LateralAccelerationValue.h b/vanetza/asn1/its1/LateralAccelerationValue.h similarity index 100% rename from vanetza/asn1/its/LateralAccelerationValue.h rename to vanetza/asn1/its1/LateralAccelerationValue.h diff --git a/vanetza/asn1/its1/Latitude.c b/vanetza/asn1/its1/Latitude.c new file mode 100644 index 000000000..2de27891e --- /dev/null +++ b/vanetza/asn1/its1/Latitude.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Latitude.h" + +int +Latitude_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 >= -900000000L && value <= 900000001L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_Latitude_constr_1 CC_NOTUSED = { + { 4, 0 } /* (-900000000..900000001) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Latitude_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 31, -1, -900000000, 900000001 } /* (-900000000..900000001) */, + { 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_Latitude_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_Latitude = { + "Latitude", + "Latitude", + &asn_OP_NativeInteger, + asn_DEF_Latitude_tags_1, + sizeof(asn_DEF_Latitude_tags_1) + /sizeof(asn_DEF_Latitude_tags_1[0]), /* 1 */ + asn_DEF_Latitude_tags_1, /* Same as above */ + sizeof(asn_DEF_Latitude_tags_1) + /sizeof(asn_DEF_Latitude_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_Latitude_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Latitude_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + Latitude_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/Latitude.h b/vanetza/asn1/its1/Latitude.h similarity index 100% rename from vanetza/asn1/its/Latitude.h rename to vanetza/asn1/its1/Latitude.h diff --git a/vanetza/asn1/its/LayerID.c b/vanetza/asn1/its1/LayerID.c similarity index 96% rename from vanetza/asn1/its/LayerID.c rename to vanetza/asn1/its1/LayerID.c index f5acbefb8..6ed4b8c3d 100644 --- a/vanetza/asn1/its/LayerID.c +++ b/vanetza/asn1/its1/LayerID.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_LayerID = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_LayerID_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ LayerID_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/LayerID.h b/vanetza/asn1/its1/LayerID.h similarity index 100% rename from vanetza/asn1/its/LayerID.h rename to vanetza/asn1/its1/LayerID.h diff --git a/vanetza/asn1/its/LayerType.c b/vanetza/asn1/its1/LayerType.c similarity index 96% rename from vanetza/asn1/its/LayerType.c rename to vanetza/asn1/its1/LayerType.c index 46be59b8f..8244b0b9b 100644 --- a/vanetza/asn1/its/LayerType.c +++ b/vanetza/asn1/its1/LayerType.c @@ -74,6 +74,9 @@ asn_TYPE_descriptor_t asn_DEF_LayerType = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_LayerType_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/LayerType.h b/vanetza/asn1/its1/LayerType.h similarity index 100% rename from vanetza/asn1/its/LayerType.h rename to vanetza/asn1/its1/LayerType.h diff --git a/vanetza/asn1/its/LayoutComponent.c b/vanetza/asn1/its1/LayoutComponent.c similarity index 94% rename from vanetza/asn1/its/LayoutComponent.c rename to vanetza/asn1/its1/LayoutComponent.c index d5d5ea89d..743a840b2 100644 --- a/vanetza/asn1/its/LayoutComponent.c +++ b/vanetza/asn1/its1/LayoutComponent.c @@ -242,6 +242,9 @@ asn_TYPE_member_t asn_MBR_LayoutComponent_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_layoutComponentId_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_layoutComponentId_constraint_1 }, 0, 0, /* No default value */ @@ -259,6 +262,9 @@ asn_TYPE_member_t asn_MBR_LayoutComponent_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_height_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_height_constraint_1 }, 0, 0, /* No default value */ @@ -276,6 +282,9 @@ asn_TYPE_member_t asn_MBR_LayoutComponent_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_width_constr_4, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_width_constraint_1 }, 0, 0, /* No default value */ @@ -293,6 +302,9 @@ asn_TYPE_member_t asn_MBR_LayoutComponent_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_x_constr_5, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_x_constraint_1 }, 0, 0, /* No default value */ @@ -310,6 +322,9 @@ asn_TYPE_member_t asn_MBR_LayoutComponent_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_y_constr_6, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_y_constraint_1 }, 0, 0, /* No default value */ @@ -327,6 +342,9 @@ asn_TYPE_member_t asn_MBR_LayoutComponent_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_textScripting_constr_7, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_textScripting_constraint_1 }, 0, 0, /* No default value */ @@ -369,6 +387,9 @@ asn_TYPE_descriptor_t asn_DEF_LayoutComponent = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_LayoutComponent_1, diff --git a/vanetza/asn1/its/LayoutComponent.h b/vanetza/asn1/its1/LayoutComponent.h similarity index 100% rename from vanetza/asn1/its/LayoutComponent.h rename to vanetza/asn1/its1/LayoutComponent.h diff --git a/vanetza/asn1/its/LayoutComponents.c b/vanetza/asn1/its1/LayoutComponents.c similarity index 93% rename from vanetza/asn1/its/LayoutComponents.c rename to vanetza/asn1/its1/LayoutComponents.c index 4ab7ca528..3c7c294bc 100644 --- a/vanetza/asn1/its/LayoutComponents.c +++ b/vanetza/asn1/its1/LayoutComponents.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_LayoutComponents_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_LayoutComponents = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_LayoutComponents_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_LayoutComponents_1, diff --git a/vanetza/asn1/its/LayoutComponents.h b/vanetza/asn1/its1/LayoutComponents.h similarity index 100% rename from vanetza/asn1/its/LayoutComponents.h rename to vanetza/asn1/its1/LayoutComponents.h diff --git a/vanetza/asn1/its/LayoutContainer.c b/vanetza/asn1/its1/LayoutContainer.c similarity index 94% rename from vanetza/asn1/its/LayoutContainer.c rename to vanetza/asn1/its1/LayoutContainer.c index b9c896351..c7e4417e6 100644 --- a/vanetza/asn1/its/LayoutContainer.c +++ b/vanetza/asn1/its1/LayoutContainer.c @@ -131,6 +131,9 @@ asn_TYPE_member_t asn_MBR_LayoutContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_layoutId_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_layoutId_constraint_1 }, 0, 0, /* No default value */ @@ -148,6 +151,9 @@ asn_TYPE_member_t asn_MBR_LayoutContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_height_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_height_constraint_1 }, 0, 0, /* No default value */ @@ -165,6 +171,9 @@ asn_TYPE_member_t asn_MBR_LayoutContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_width_constr_4, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_width_constraint_1 }, 0, 0, /* No default value */ @@ -182,6 +191,9 @@ asn_TYPE_member_t asn_MBR_LayoutContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -224,6 +236,9 @@ asn_TYPE_descriptor_t asn_DEF_LayoutContainer = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_LayoutContainer_1, diff --git a/vanetza/asn1/its/LayoutContainer.h b/vanetza/asn1/its1/LayoutContainer.h similarity index 100% rename from vanetza/asn1/its/LayoutContainer.h rename to vanetza/asn1/its1/LayoutContainer.h diff --git a/vanetza/asn1/its/LicPlateNumber.c b/vanetza/asn1/its1/LicPlateNumber.c similarity index 93% rename from vanetza/asn1/its/LicPlateNumber.c rename to vanetza/asn1/its1/LicPlateNumber.c index 9629d0a67..6fb9b1629 100644 --- a/vanetza/asn1/its/LicPlateNumber.c +++ b/vanetza/asn1/its1/LicPlateNumber.c @@ -31,6 +31,9 @@ asn_TYPE_descriptor_t asn_DEF_LicPlateNumber = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OCTET_STRING_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/LicPlateNumber.h b/vanetza/asn1/its1/LicPlateNumber.h similarity index 100% rename from vanetza/asn1/its/LicPlateNumber.h rename to vanetza/asn1/its1/LicPlateNumber.h diff --git a/vanetza/asn1/its1/LightBarSirenInUse.c b/vanetza/asn1/its1/LightBarSirenInUse.c new file mode 100644 index 000000000..855736a64 --- /dev/null +++ b/vanetza/asn1/its1/LightBarSirenInUse.c @@ -0,0 +1,89 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "LightBarSirenInUse.h" + +int +LightBarSirenInUse_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 == 2UL)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_LightBarSirenInUse_constr_1 CC_NOTUSED = { + { 0, 0 }, + 2 /* (SIZE(2..2)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_LightBarSirenInUse_constr_1 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_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_LightBarSirenInUse_constr_1 CC_NOTUSED = { + 2}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_LightBarSirenInUse_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_LightBarSirenInUse = { + "LightBarSirenInUse", + "LightBarSirenInUse", + &asn_OP_BIT_STRING, + asn_DEF_LightBarSirenInUse_tags_1, + sizeof(asn_DEF_LightBarSirenInUse_tags_1) + /sizeof(asn_DEF_LightBarSirenInUse_tags_1[0]), /* 1 */ + asn_DEF_LightBarSirenInUse_tags_1, /* Same as above */ + sizeof(asn_DEF_LightBarSirenInUse_tags_1) + /sizeof(asn_DEF_LightBarSirenInUse_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_LightBarSirenInUse_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_LightBarSirenInUse_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_LightBarSirenInUse_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + LightBarSirenInUse_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/LightBarSirenInUse.h b/vanetza/asn1/its1/LightBarSirenInUse.h similarity index 100% rename from vanetza/asn1/its/LightBarSirenInUse.h rename to vanetza/asn1/its1/LightBarSirenInUse.h diff --git a/vanetza/asn1/its/LoadType.c b/vanetza/asn1/its1/LoadType.c similarity index 89% rename from vanetza/asn1/its/LoadType.c rename to vanetza/asn1/its1/LoadType.c index 24bfd08d5..e07fb8b91 100644 --- a/vanetza/asn1/its/LoadType.c +++ b/vanetza/asn1/its1/LoadType.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_LoadType_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_LoadType_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_LoadType_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -93,6 +102,9 @@ asn_TYPE_descriptor_t asn_DEF_LoadType = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_LoadType_1, diff --git a/vanetza/asn1/its/LoadType.h b/vanetza/asn1/its1/LoadType.h similarity index 100% rename from vanetza/asn1/its/LoadType.h rename to vanetza/asn1/its1/LoadType.h diff --git a/vanetza/asn1/its1/LocationContainer.c b/vanetza/asn1/its1/LocationContainer.c new file mode 100644 index 000000000..cd7208302 --- /dev/null +++ b/vanetza/asn1/its1/LocationContainer.c @@ -0,0 +1,137 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "DENM-PDU-Descriptions" + * found in "asn1/EN302637-3v131-DENM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "LocationContainer.h" + +asn_TYPE_member_t asn_MBR_LocationContainer_1[] = { + { ATF_POINTER, 2, offsetof(struct LocationContainer, eventSpeed), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Speed, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "eventSpeed" + }, + { ATF_POINTER, 1, offsetof(struct LocationContainer, eventPositionHeading), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Heading, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "eventPositionHeading" + }, + { ATF_NOFLAGS, 0, offsetof(struct LocationContainer, traces), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Traces, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "traces" + }, + { ATF_POINTER, 1, offsetof(struct LocationContainer, roadType), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RoadType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "roadType" + }, +}; +static const int asn_MAP_LocationContainer_oms_1[] = { 0, 1, 3 }; +static const ber_tlv_tag_t asn_DEF_LocationContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_LocationContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* eventSpeed */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* eventPositionHeading */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* traces */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* roadType */ +}; +asn_SEQUENCE_specifics_t asn_SPC_LocationContainer_specs_1 = { + sizeof(struct LocationContainer), + offsetof(struct LocationContainer, _asn_ctx), + asn_MAP_LocationContainer_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_LocationContainer_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_LocationContainer = { + "LocationContainer", + "LocationContainer", + &asn_OP_SEQUENCE, + asn_DEF_LocationContainer_tags_1, + sizeof(asn_DEF_LocationContainer_tags_1) + /sizeof(asn_DEF_LocationContainer_tags_1[0]), /* 1 */ + asn_DEF_LocationContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_LocationContainer_tags_1) + /sizeof(asn_DEF_LocationContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_LocationContainer_1, + 4, /* Elements count */ + &asn_SPC_LocationContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/LocationContainer.h b/vanetza/asn1/its1/LocationContainer.h similarity index 100% rename from vanetza/asn1/its/LocationContainer.h rename to vanetza/asn1/its1/LocationContainer.h diff --git a/vanetza/asn1/its1/Longitude.c b/vanetza/asn1/its1/Longitude.c new file mode 100644 index 000000000..aeff3a26c --- /dev/null +++ b/vanetza/asn1/its1/Longitude.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Longitude.h" + +int +Longitude_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 >= -1800000000L && value <= 1800000001L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_Longitude_constr_1 CC_NOTUSED = { + { 4, 0 } /* (-1800000000..1800000001) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Longitude_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, -1800000000, 1800000001 } /* (-1800000000..1800000001) */, + { 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_Longitude_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_Longitude = { + "Longitude", + "Longitude", + &asn_OP_NativeInteger, + asn_DEF_Longitude_tags_1, + sizeof(asn_DEF_Longitude_tags_1) + /sizeof(asn_DEF_Longitude_tags_1[0]), /* 1 */ + asn_DEF_Longitude_tags_1, /* Same as above */ + sizeof(asn_DEF_Longitude_tags_1) + /sizeof(asn_DEF_Longitude_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_Longitude_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Longitude_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + Longitude_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/Longitude.h b/vanetza/asn1/its1/Longitude.h similarity index 100% rename from vanetza/asn1/its/Longitude.h rename to vanetza/asn1/its1/Longitude.h diff --git a/vanetza/asn1/its1/LongitudinalAcceleration.c b/vanetza/asn1/its1/LongitudinalAcceleration.c new file mode 100644 index 000000000..aa514bce3 --- /dev/null +++ b/vanetza/asn1/its1/LongitudinalAcceleration.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "LongitudinalAcceleration.h" + +asn_TYPE_member_t asn_MBR_LongitudinalAcceleration_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct LongitudinalAcceleration, longitudinalAccelerationValue), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LongitudinalAccelerationValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "longitudinalAccelerationValue" + }, + { ATF_NOFLAGS, 0, offsetof(struct LongitudinalAcceleration, longitudinalAccelerationConfidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AccelerationConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "longitudinalAccelerationConfidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_LongitudinalAcceleration_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_LongitudinalAcceleration_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* longitudinalAccelerationValue */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* longitudinalAccelerationConfidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_LongitudinalAcceleration_specs_1 = { + sizeof(struct LongitudinalAcceleration), + offsetof(struct LongitudinalAcceleration, _asn_ctx), + asn_MAP_LongitudinalAcceleration_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_LongitudinalAcceleration = { + "LongitudinalAcceleration", + "LongitudinalAcceleration", + &asn_OP_SEQUENCE, + asn_DEF_LongitudinalAcceleration_tags_1, + sizeof(asn_DEF_LongitudinalAcceleration_tags_1) + /sizeof(asn_DEF_LongitudinalAcceleration_tags_1[0]), /* 1 */ + asn_DEF_LongitudinalAcceleration_tags_1, /* Same as above */ + sizeof(asn_DEF_LongitudinalAcceleration_tags_1) + /sizeof(asn_DEF_LongitudinalAcceleration_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_LongitudinalAcceleration_1, + 2, /* Elements count */ + &asn_SPC_LongitudinalAcceleration_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/LongitudinalAcceleration.h b/vanetza/asn1/its1/LongitudinalAcceleration.h similarity index 100% rename from vanetza/asn1/its/LongitudinalAcceleration.h rename to vanetza/asn1/its1/LongitudinalAcceleration.h diff --git a/vanetza/asn1/its1/LongitudinalAccelerationValue.c b/vanetza/asn1/its1/LongitudinalAccelerationValue.c new file mode 100644 index 000000000..f3d72fd45 --- /dev/null +++ b/vanetza/asn1/its1/LongitudinalAccelerationValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "LongitudinalAccelerationValue.h" + +int +LongitudinalAccelerationValue_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 >= -160L && value <= 161L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_LongitudinalAccelerationValue_constr_1 CC_NOTUSED = { + { 2, 0 } /* (-160..161) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_LongitudinalAccelerationValue_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, -160, 161 } /* (-160..161) */, + { 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_LongitudinalAccelerationValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_LongitudinalAccelerationValue = { + "LongitudinalAccelerationValue", + "LongitudinalAccelerationValue", + &asn_OP_NativeInteger, + asn_DEF_LongitudinalAccelerationValue_tags_1, + sizeof(asn_DEF_LongitudinalAccelerationValue_tags_1) + /sizeof(asn_DEF_LongitudinalAccelerationValue_tags_1[0]), /* 1 */ + asn_DEF_LongitudinalAccelerationValue_tags_1, /* Same as above */ + sizeof(asn_DEF_LongitudinalAccelerationValue_tags_1) + /sizeof(asn_DEF_LongitudinalAccelerationValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_LongitudinalAccelerationValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_LongitudinalAccelerationValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + LongitudinalAccelerationValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/LongitudinalAccelerationValue.h b/vanetza/asn1/its1/LongitudinalAccelerationValue.h similarity index 100% rename from vanetza/asn1/its/LongitudinalAccelerationValue.h rename to vanetza/asn1/its1/LongitudinalAccelerationValue.h diff --git a/vanetza/asn1/its1/LongitudinalLanePosition.c b/vanetza/asn1/its1/LongitudinalLanePosition.c new file mode 100644 index 000000000..1f3f7f5e6 --- /dev/null +++ b/vanetza/asn1/its1/LongitudinalLanePosition.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TR103562v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "LongitudinalLanePosition.h" + +asn_TYPE_member_t asn_MBR_LongitudinalLanePosition_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct LongitudinalLanePosition, longitudinalLanePositionValue), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LongitudinalLanePositionValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "longitudinalLanePositionValue" + }, + { ATF_NOFLAGS, 0, offsetof(struct LongitudinalLanePosition, longitudinalLanePositionConfidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LongitudinalLanePositionConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "longitudinalLanePositionConfidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_LongitudinalLanePosition_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_LongitudinalLanePosition_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* longitudinalLanePositionValue */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* longitudinalLanePositionConfidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_LongitudinalLanePosition_specs_1 = { + sizeof(struct LongitudinalLanePosition), + offsetof(struct LongitudinalLanePosition, _asn_ctx), + asn_MAP_LongitudinalLanePosition_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_LongitudinalLanePosition = { + "LongitudinalLanePosition", + "LongitudinalLanePosition", + &asn_OP_SEQUENCE, + asn_DEF_LongitudinalLanePosition_tags_1, + sizeof(asn_DEF_LongitudinalLanePosition_tags_1) + /sizeof(asn_DEF_LongitudinalLanePosition_tags_1[0]), /* 1 */ + asn_DEF_LongitudinalLanePosition_tags_1, /* Same as above */ + sizeof(asn_DEF_LongitudinalLanePosition_tags_1) + /sizeof(asn_DEF_LongitudinalLanePosition_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_LongitudinalLanePosition_1, + 2, /* Elements count */ + &asn_SPC_LongitudinalLanePosition_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/LongitudinalLanePosition.h b/vanetza/asn1/its1/LongitudinalLanePosition.h similarity index 100% rename from vanetza/asn1/its/LongitudinalLanePosition.h rename to vanetza/asn1/its1/LongitudinalLanePosition.h diff --git a/vanetza/asn1/its1/LongitudinalLanePositionConfidence.c b/vanetza/asn1/its1/LongitudinalLanePositionConfidence.c new file mode 100644 index 000000000..31ac88375 --- /dev/null +++ b/vanetza/asn1/its1/LongitudinalLanePositionConfidence.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TR103562v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "LongitudinalLanePositionConfidence.h" + +int +LongitudinalLanePositionConfidence_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 <= 102L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_LongitudinalLanePositionConfidence_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..102) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_LongitudinalLanePositionConfidence_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 102 } /* (0..102) */, + { 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_LongitudinalLanePositionConfidence_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_LongitudinalLanePositionConfidence = { + "LongitudinalLanePositionConfidence", + "LongitudinalLanePositionConfidence", + &asn_OP_NativeInteger, + asn_DEF_LongitudinalLanePositionConfidence_tags_1, + sizeof(asn_DEF_LongitudinalLanePositionConfidence_tags_1) + /sizeof(asn_DEF_LongitudinalLanePositionConfidence_tags_1[0]), /* 1 */ + asn_DEF_LongitudinalLanePositionConfidence_tags_1, /* Same as above */ + sizeof(asn_DEF_LongitudinalLanePositionConfidence_tags_1) + /sizeof(asn_DEF_LongitudinalLanePositionConfidence_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_LongitudinalLanePositionConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_LongitudinalLanePositionConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + LongitudinalLanePositionConfidence_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/LongitudinalLanePositionConfidence.h b/vanetza/asn1/its1/LongitudinalLanePositionConfidence.h similarity index 100% rename from vanetza/asn1/its/LongitudinalLanePositionConfidence.h rename to vanetza/asn1/its1/LongitudinalLanePositionConfidence.h diff --git a/vanetza/asn1/its1/LongitudinalLanePositionValue.c b/vanetza/asn1/its1/LongitudinalLanePositionValue.c new file mode 100644 index 000000000..70abb6866 --- /dev/null +++ b/vanetza/asn1/its1/LongitudinalLanePositionValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TR103562v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "LongitudinalLanePositionValue.h" + +int +LongitudinalLanePositionValue_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 <= 32767L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_LongitudinalLanePositionValue_constr_1 CC_NOTUSED = { + { 2, 1 } /* (0..32767) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_LongitudinalLanePositionValue_constr_1 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 ber_tlv_tag_t asn_DEF_LongitudinalLanePositionValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_LongitudinalLanePositionValue = { + "LongitudinalLanePositionValue", + "LongitudinalLanePositionValue", + &asn_OP_NativeInteger, + asn_DEF_LongitudinalLanePositionValue_tags_1, + sizeof(asn_DEF_LongitudinalLanePositionValue_tags_1) + /sizeof(asn_DEF_LongitudinalLanePositionValue_tags_1[0]), /* 1 */ + asn_DEF_LongitudinalLanePositionValue_tags_1, /* Same as above */ + sizeof(asn_DEF_LongitudinalLanePositionValue_tags_1) + /sizeof(asn_DEF_LongitudinalLanePositionValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_LongitudinalLanePositionValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_LongitudinalLanePositionValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + LongitudinalLanePositionValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/LongitudinalLanePositionValue.h b/vanetza/asn1/its1/LongitudinalLanePositionValue.h similarity index 100% rename from vanetza/asn1/its/LongitudinalLanePositionValue.h rename to vanetza/asn1/its1/LongitudinalLanePositionValue.h diff --git a/vanetza/asn1/its1/LowFrequencyContainer.c b/vanetza/asn1/its1/LowFrequencyContainer.c new file mode 100644 index 000000000..b2f8927e0 --- /dev/null +++ b/vanetza/asn1/its1/LowFrequencyContainer.c @@ -0,0 +1,81 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/EN302637-2v141-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "LowFrequencyContainer.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_LowFrequencyContainer_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_LowFrequencyContainer_constr_1 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) */ +asn_TYPE_member_t asn_MBR_LowFrequencyContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct LowFrequencyContainer, choice.basicVehicleContainerLowFrequency), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BasicVehicleContainerLowFrequency, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "basicVehicleContainerLowFrequency" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_LowFrequencyContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* basicVehicleContainerLowFrequency */ +}; +asn_CHOICE_specifics_t asn_SPC_LowFrequencyContainer_specs_1 = { + sizeof(struct LowFrequencyContainer), + offsetof(struct LowFrequencyContainer, _asn_ctx), + offsetof(struct LowFrequencyContainer, present), + sizeof(((struct LowFrequencyContainer *)0)->present), + asn_MAP_LowFrequencyContainer_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, + 1 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_LowFrequencyContainer = { + "LowFrequencyContainer", + "LowFrequencyContainer", + &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) + &asn_OER_type_LowFrequencyContainer_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_LowFrequencyContainer_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_LowFrequencyContainer_1, + 1, /* Elements count */ + &asn_SPC_LowFrequencyContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/LowFrequencyContainer.h b/vanetza/asn1/its1/LowFrequencyContainer.h similarity index 100% rename from vanetza/asn1/its/LowFrequencyContainer.h rename to vanetza/asn1/its1/LowFrequencyContainer.h diff --git a/vanetza/asn1/its/MAPEM.c b/vanetza/asn1/its1/MAPEM.c similarity index 90% rename from vanetza/asn1/its/MAPEM.c rename to vanetza/asn1/its1/MAPEM.c index 9f367b65d..aaa049c17 100644 --- a/vanetza/asn1/its/MAPEM.c +++ b/vanetza/asn1/its1/MAPEM.c @@ -20,6 +20,9 @@ static asn_TYPE_member_t asn_MBR_MAPEM_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ static asn_TYPE_member_t asn_MBR_MAPEM_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_MAPEM = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_MAPEM_1, diff --git a/vanetza/asn1/its/MAPEM.h b/vanetza/asn1/its1/MAPEM.h similarity index 100% rename from vanetza/asn1/its/MAPEM.h rename to vanetza/asn1/its1/MAPEM.h diff --git a/vanetza/asn1/its/ManagementContainer.c b/vanetza/asn1/its1/ManagementContainer.c similarity index 88% rename from vanetza/asn1/its/ManagementContainer.c rename to vanetza/asn1/its1/ManagementContainer.c index 11abd5c67..aa338fa1c 100644 --- a/vanetza/asn1/its/ManagementContainer.c +++ b/vanetza/asn1/its1/ManagementContainer.c @@ -42,6 +42,9 @@ asn_TYPE_member_t asn_MBR_ManagementContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -59,6 +62,9 @@ asn_TYPE_member_t asn_MBR_ManagementContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -76,6 +82,9 @@ asn_TYPE_member_t asn_MBR_ManagementContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -93,6 +102,9 @@ asn_TYPE_member_t asn_MBR_ManagementContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -110,6 +122,9 @@ asn_TYPE_member_t asn_MBR_ManagementContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -127,6 +142,9 @@ asn_TYPE_member_t asn_MBR_ManagementContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -144,6 +162,9 @@ asn_TYPE_member_t asn_MBR_ManagementContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -161,6 +182,9 @@ asn_TYPE_member_t asn_MBR_ManagementContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, &asn_DFL_9_cmp_600, /* Compare DEFAULT 600 */ @@ -179,6 +203,9 @@ asn_TYPE_member_t asn_MBR_ManagementContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -196,6 +223,9 @@ asn_TYPE_member_t asn_MBR_ManagementContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -244,6 +274,9 @@ asn_TYPE_descriptor_t asn_DEF_ManagementContainer = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_ManagementContainer_1, diff --git a/vanetza/asn1/its/ManagementContainer.h b/vanetza/asn1/its1/ManagementContainer.h similarity index 100% rename from vanetza/asn1/its/ManagementContainer.h rename to vanetza/asn1/its1/ManagementContainer.h diff --git a/vanetza/asn1/its/ManeuverAssistList.c b/vanetza/asn1/its1/ManeuverAssistList.c similarity index 93% rename from vanetza/asn1/its/ManeuverAssistList.c rename to vanetza/asn1/its1/ManeuverAssistList.c index ed045a248..5b3bd03f2 100644 --- a/vanetza/asn1/its/ManeuverAssistList.c +++ b/vanetza/asn1/its1/ManeuverAssistList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_ManeuverAssistList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_ManeuverAssistList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ManeuverAssistList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_ManeuverAssistList_1, diff --git a/vanetza/asn1/its/ManeuverAssistList.h b/vanetza/asn1/its1/ManeuverAssistList.h similarity index 100% rename from vanetza/asn1/its/ManeuverAssistList.h rename to vanetza/asn1/its1/ManeuverAssistList.h diff --git a/vanetza/asn1/its/ManufacturerIdentifier.c b/vanetza/asn1/its1/ManufacturerIdentifier.c similarity index 96% rename from vanetza/asn1/its/ManufacturerIdentifier.c rename to vanetza/asn1/its1/ManufacturerIdentifier.c index b8cf9118f..971e90a1a 100644 --- a/vanetza/asn1/its/ManufacturerIdentifier.c +++ b/vanetza/asn1/its1/ManufacturerIdentifier.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_ManufacturerIdentifier = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ManufacturerIdentifier_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ ManufacturerIdentifier_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/ManufacturerIdentifier.h b/vanetza/asn1/its1/ManufacturerIdentifier.h similarity index 100% rename from vanetza/asn1/its/ManufacturerIdentifier.h rename to vanetza/asn1/its1/ManufacturerIdentifier.h diff --git a/vanetza/asn1/its/MapData-addGrpC.c b/vanetza/asn1/its1/MapData-addGrpC.c similarity index 92% rename from vanetza/asn1/its/MapData-addGrpC.c rename to vanetza/asn1/its1/MapData-addGrpC.c index 05ac3a17f..523d8345b 100644 --- a/vanetza/asn1/its/MapData-addGrpC.c +++ b/vanetza/asn1/its1/MapData-addGrpC.c @@ -21,6 +21,9 @@ asn_TYPE_member_t asn_MBR_MapData_addGrpC_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -60,6 +63,9 @@ asn_TYPE_descriptor_t asn_DEF_MapData_addGrpC = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_MapData_addGrpC_1, diff --git a/vanetza/asn1/its/MapData-addGrpC.h b/vanetza/asn1/its1/MapData-addGrpC.h similarity index 100% rename from vanetza/asn1/its/MapData-addGrpC.h rename to vanetza/asn1/its1/MapData-addGrpC.h diff --git a/vanetza/asn1/its/MapData.c b/vanetza/asn1/its1/MapData.c similarity index 90% rename from vanetza/asn1/its/MapData.c rename to vanetza/asn1/its1/MapData.c index 172067624..0d574d58d 100644 --- a/vanetza/asn1/its/MapData.c +++ b/vanetza/asn1/its1/MapData.c @@ -70,6 +70,9 @@ static asn_TYPE_member_t asn_MBR_regional_10[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -103,6 +106,9 @@ asn_TYPE_descriptor_t asn_DEF_regional_10 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_regional_constr_10, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_regional_10, @@ -123,6 +129,9 @@ asn_TYPE_member_t asn_MBR_MapData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -140,6 +149,9 @@ asn_TYPE_member_t asn_MBR_MapData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -157,6 +169,9 @@ asn_TYPE_member_t asn_MBR_MapData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -174,6 +189,9 @@ asn_TYPE_member_t asn_MBR_MapData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -191,6 +209,9 @@ asn_TYPE_member_t asn_MBR_MapData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -208,6 +229,9 @@ asn_TYPE_member_t asn_MBR_MapData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -225,6 +249,9 @@ asn_TYPE_member_t asn_MBR_MapData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -242,6 +269,9 @@ asn_TYPE_member_t asn_MBR_MapData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -259,6 +289,9 @@ asn_TYPE_member_t asn_MBR_MapData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regional_constr_10, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regional_constraint_1 }, 0, 0, /* No default value */ @@ -306,6 +339,9 @@ asn_TYPE_descriptor_t asn_DEF_MapData = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_MapData_1, diff --git a/vanetza/asn1/its/MapData.h b/vanetza/asn1/its1/MapData.h similarity index 100% rename from vanetza/asn1/its/MapData.h rename to vanetza/asn1/its1/MapData.h diff --git a/vanetza/asn1/its/MapLocationContainer.c b/vanetza/asn1/its1/MapLocationContainer.c similarity index 90% rename from vanetza/asn1/its/MapLocationContainer.c rename to vanetza/asn1/its1/MapLocationContainer.c index 70c1e1111..49b2c373e 100644 --- a/vanetza/asn1/its/MapLocationContainer.c +++ b/vanetza/asn1/its1/MapLocationContainer.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_MapLocationContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_MapLocationContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_MapLocationContainer = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_MapLocationContainer_1, diff --git a/vanetza/asn1/its/MapLocationContainer.h b/vanetza/asn1/its1/MapLocationContainer.h similarity index 100% rename from vanetza/asn1/its/MapLocationContainer.h rename to vanetza/asn1/its1/MapLocationContainer.h diff --git a/vanetza/asn1/its1/MapReference.c b/vanetza/asn1/its1/MapReference.c new file mode 100644 index 000000000..0e05b3ec5 --- /dev/null +++ b/vanetza/asn1/its1/MapReference.c @@ -0,0 +1,102 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "IVI" + * found in "build.asn1/iso/ISO19321.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "MapReference.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_MapReference_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_MapReference_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_MapReference_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct MapReference, choice.roadsegment), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RoadSegmentReferenceID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "roadsegment" + }, + { ATF_NOFLAGS, 0, offsetof(struct MapReference, choice.intersection), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_IntersectionReferenceID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "intersection" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_MapReference_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* roadsegment */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* intersection */ +}; +asn_CHOICE_specifics_t asn_SPC_MapReference_specs_1 = { + sizeof(struct MapReference), + offsetof(struct MapReference, _asn_ctx), + offsetof(struct MapReference, present), + sizeof(((struct MapReference *)0)->present), + asn_MAP_MapReference_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_MapReference = { + "MapReference", + "MapReference", + &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) + &asn_OER_type_MapReference_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_MapReference_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_MapReference_1, + 2, /* Elements count */ + &asn_SPC_MapReference_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/MapReference.h b/vanetza/asn1/its1/MapReference.h similarity index 100% rename from vanetza/asn1/its/MapReference.h rename to vanetza/asn1/its1/MapReference.h diff --git a/vanetza/asn1/its/MarkingColour.c b/vanetza/asn1/its1/MarkingColour.c similarity index 96% rename from vanetza/asn1/its/MarkingColour.c rename to vanetza/asn1/its1/MarkingColour.c index e9a903954..2e3b896bf 100644 --- a/vanetza/asn1/its/MarkingColour.c +++ b/vanetza/asn1/its1/MarkingColour.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_MarkingColour = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_MarkingColour_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ MarkingColour_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/MarkingColour.h b/vanetza/asn1/its1/MarkingColour.h similarity index 100% rename from vanetza/asn1/its/MarkingColour.h rename to vanetza/asn1/its1/MarkingColour.h diff --git a/vanetza/asn1/its/MatchedPosition.c b/vanetza/asn1/its1/MatchedPosition.c similarity index 91% rename from vanetza/asn1/its/MatchedPosition.c rename to vanetza/asn1/its1/MatchedPosition.c index e09eefac2..72a7e206f 100644 --- a/vanetza/asn1/its/MatchedPosition.c +++ b/vanetza/asn1/its1/MatchedPosition.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_MatchedPosition_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_MatchedPosition_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -77,6 +83,9 @@ asn_TYPE_descriptor_t asn_DEF_MatchedPosition = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_MatchedPosition_1, diff --git a/vanetza/asn1/its/MatchedPosition.h b/vanetza/asn1/its1/MatchedPosition.h similarity index 100% rename from vanetza/asn1/its/MatchedPosition.h rename to vanetza/asn1/its1/MatchedPosition.h diff --git a/vanetza/asn1/its/MaterialType.c b/vanetza/asn1/its1/MaterialType.c similarity index 96% rename from vanetza/asn1/its/MaterialType.c rename to vanetza/asn1/its1/MaterialType.c index 63e486c85..4b53afd33 100644 --- a/vanetza/asn1/its/MaterialType.c +++ b/vanetza/asn1/its1/MaterialType.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_MaterialType = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_MaterialType_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ MaterialType_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/MaterialType.h b/vanetza/asn1/its1/MaterialType.h similarity index 100% rename from vanetza/asn1/its/MaterialType.h rename to vanetza/asn1/its1/MaterialType.h diff --git a/vanetza/asn1/its/MaxLenghtOfPlatoon.c b/vanetza/asn1/its1/MaxLenghtOfPlatoon.c similarity index 96% rename from vanetza/asn1/its/MaxLenghtOfPlatoon.c rename to vanetza/asn1/its1/MaxLenghtOfPlatoon.c index 7e2cb69da..657cb62cd 100644 --- a/vanetza/asn1/its/MaxLenghtOfPlatoon.c +++ b/vanetza/asn1/its1/MaxLenghtOfPlatoon.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_MaxLenghtOfPlatoon = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_MaxLenghtOfPlatoon_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ MaxLenghtOfPlatoon_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/MaxLenghtOfPlatoon.h b/vanetza/asn1/its1/MaxLenghtOfPlatoon.h similarity index 100% rename from vanetza/asn1/its/MaxLenghtOfPlatoon.h rename to vanetza/asn1/its1/MaxLenghtOfPlatoon.h diff --git a/vanetza/asn1/its/MaxNoOfVehicles.c b/vanetza/asn1/its1/MaxNoOfVehicles.c similarity index 96% rename from vanetza/asn1/its/MaxNoOfVehicles.c rename to vanetza/asn1/its1/MaxNoOfVehicles.c index 0a3217483..27d79704a 100644 --- a/vanetza/asn1/its/MaxNoOfVehicles.c +++ b/vanetza/asn1/its1/MaxNoOfVehicles.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_MaxNoOfVehicles = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_MaxNoOfVehicles_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ MaxNoOfVehicles_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/MaxNoOfVehicles.h b/vanetza/asn1/its1/MaxNoOfVehicles.h similarity index 100% rename from vanetza/asn1/its/MaxNoOfVehicles.h rename to vanetza/asn1/its1/MaxNoOfVehicles.h diff --git a/vanetza/asn1/its/MergeDivergeNodeAngle.c b/vanetza/asn1/its1/MergeDivergeNodeAngle.c similarity index 96% rename from vanetza/asn1/its/MergeDivergeNodeAngle.c rename to vanetza/asn1/its1/MergeDivergeNodeAngle.c index 26eea7461..9360228c5 100644 --- a/vanetza/asn1/its/MergeDivergeNodeAngle.c +++ b/vanetza/asn1/its1/MergeDivergeNodeAngle.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_MergeDivergeNodeAngle = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_MergeDivergeNodeAngle_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ MergeDivergeNodeAngle_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/MergeDivergeNodeAngle.h b/vanetza/asn1/its1/MergeDivergeNodeAngle.h similarity index 100% rename from vanetza/asn1/its/MergeDivergeNodeAngle.h rename to vanetza/asn1/its1/MergeDivergeNodeAngle.h diff --git a/vanetza/asn1/its/MinuteOfTheYear.c b/vanetza/asn1/its1/MinuteOfTheYear.c similarity index 96% rename from vanetza/asn1/its/MinuteOfTheYear.c rename to vanetza/asn1/its1/MinuteOfTheYear.c index ba4f94573..372400e85 100644 --- a/vanetza/asn1/its/MinuteOfTheYear.c +++ b/vanetza/asn1/its1/MinuteOfTheYear.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_MinuteOfTheYear = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_MinuteOfTheYear_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ MinuteOfTheYear_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/MinuteOfTheYear.h b/vanetza/asn1/its1/MinuteOfTheYear.h similarity index 100% rename from vanetza/asn1/its/MinuteOfTheYear.h rename to vanetza/asn1/its1/MinuteOfTheYear.h diff --git a/vanetza/asn1/its/MlcPart.c b/vanetza/asn1/its1/MlcPart.c similarity index 90% rename from vanetza/asn1/its/MlcPart.c rename to vanetza/asn1/its1/MlcPart.c index 2dcf0b1f9..97f4dbfb2 100644 --- a/vanetza/asn1/its/MlcPart.c +++ b/vanetza/asn1/its1/MlcPart.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_MlcPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_MlcPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -77,6 +83,9 @@ asn_TYPE_descriptor_t asn_DEF_MlcPart = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_MlcPart_1, diff --git a/vanetza/asn1/its/MlcPart.h b/vanetza/asn1/its1/MlcPart.h similarity index 100% rename from vanetza/asn1/its/MlcPart.h rename to vanetza/asn1/its1/MlcPart.h diff --git a/vanetza/asn1/its/MlcParts.c b/vanetza/asn1/its1/MlcParts.c similarity index 92% rename from vanetza/asn1/its/MlcParts.c rename to vanetza/asn1/its1/MlcParts.c index 223ec5b53..a8fff5d2c 100644 --- a/vanetza/asn1/its/MlcParts.c +++ b/vanetza/asn1/its1/MlcParts.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_MlcParts_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_MlcParts = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_MlcParts_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_MlcParts_1, diff --git a/vanetza/asn1/its/MlcParts.h b/vanetza/asn1/its1/MlcParts.h similarity index 100% rename from vanetza/asn1/its/MlcParts.h rename to vanetza/asn1/its1/MlcParts.h diff --git a/vanetza/asn1/its/MonthDay.c b/vanetza/asn1/its1/MonthDay.c similarity index 94% rename from vanetza/asn1/its/MonthDay.c rename to vanetza/asn1/its1/MonthDay.c index 943fb5475..2d3b06bae 100644 --- a/vanetza/asn1/its/MonthDay.c +++ b/vanetza/asn1/its1/MonthDay.c @@ -94,6 +94,9 @@ asn_TYPE_member_t asn_MBR_MonthDay_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_month_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_month_constraint_1 }, 0, 0, /* No default value */ @@ -111,6 +114,9 @@ asn_TYPE_member_t asn_MBR_MonthDay_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_day_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_day_constraint_1 }, 0, 0, /* No default value */ @@ -149,6 +155,9 @@ asn_TYPE_descriptor_t asn_DEF_MonthDay = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_MonthDay_1, diff --git a/vanetza/asn1/its/MonthDay.h b/vanetza/asn1/its1/MonthDay.h similarity index 100% rename from vanetza/asn1/its/MonthDay.h rename to vanetza/asn1/its1/MonthDay.h diff --git a/vanetza/asn1/its/MovementEvent-addGrpC.c b/vanetza/asn1/its1/MovementEvent-addGrpC.c similarity index 92% rename from vanetza/asn1/its/MovementEvent-addGrpC.c rename to vanetza/asn1/its1/MovementEvent-addGrpC.c index a9a35e471..d8c7426c4 100644 --- a/vanetza/asn1/its/MovementEvent-addGrpC.c +++ b/vanetza/asn1/its1/MovementEvent-addGrpC.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_MovementEvent_addGrpC_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -59,6 +62,9 @@ asn_TYPE_descriptor_t asn_DEF_MovementEvent_addGrpC = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_MovementEvent_addGrpC_1, diff --git a/vanetza/asn1/its/MovementEvent-addGrpC.h b/vanetza/asn1/its1/MovementEvent-addGrpC.h similarity index 100% rename from vanetza/asn1/its/MovementEvent-addGrpC.h rename to vanetza/asn1/its1/MovementEvent-addGrpC.h diff --git a/vanetza/asn1/its/MovementEvent.c b/vanetza/asn1/its1/MovementEvent.c similarity index 91% rename from vanetza/asn1/its/MovementEvent.c rename to vanetza/asn1/its1/MovementEvent.c index 1b4a8c8fc..42b5be90f 100644 --- a/vanetza/asn1/its/MovementEvent.c +++ b/vanetza/asn1/its1/MovementEvent.c @@ -70,6 +70,9 @@ static asn_TYPE_member_t asn_MBR_regional_5[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -103,6 +106,9 @@ asn_TYPE_descriptor_t asn_DEF_regional_5 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_regional_constr_5, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_regional_5, @@ -123,6 +129,9 @@ asn_TYPE_member_t asn_MBR_MovementEvent_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -140,6 +149,9 @@ asn_TYPE_member_t asn_MBR_MovementEvent_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -157,6 +169,9 @@ asn_TYPE_member_t asn_MBR_MovementEvent_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -174,6 +189,9 @@ asn_TYPE_member_t asn_MBR_MovementEvent_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regional_constr_5, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regional_constraint_1 }, 0, 0, /* No default value */ @@ -216,6 +234,9 @@ asn_TYPE_descriptor_t asn_DEF_MovementEvent = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_MovementEvent_1, diff --git a/vanetza/asn1/its/MovementEvent.h b/vanetza/asn1/its1/MovementEvent.h similarity index 100% rename from vanetza/asn1/its/MovementEvent.h rename to vanetza/asn1/its1/MovementEvent.h diff --git a/vanetza/asn1/its/MovementEventList.c b/vanetza/asn1/its1/MovementEventList.c similarity index 93% rename from vanetza/asn1/its/MovementEventList.c rename to vanetza/asn1/its1/MovementEventList.c index f3e1e77a8..18dd9769f 100644 --- a/vanetza/asn1/its/MovementEventList.c +++ b/vanetza/asn1/its1/MovementEventList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_MovementEventList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_MovementEventList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_MovementEventList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_MovementEventList_1, diff --git a/vanetza/asn1/its/MovementEventList.h b/vanetza/asn1/its1/MovementEventList.h similarity index 100% rename from vanetza/asn1/its/MovementEventList.h rename to vanetza/asn1/its1/MovementEventList.h diff --git a/vanetza/asn1/its/MovementList.c b/vanetza/asn1/its1/MovementList.c similarity index 92% rename from vanetza/asn1/its/MovementList.c rename to vanetza/asn1/its1/MovementList.c index f73efdaff..72bc490a9 100644 --- a/vanetza/asn1/its/MovementList.c +++ b/vanetza/asn1/its1/MovementList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_MovementList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_MovementList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_MovementList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_MovementList_1, diff --git a/vanetza/asn1/its/MovementList.h b/vanetza/asn1/its1/MovementList.h similarity index 100% rename from vanetza/asn1/its/MovementList.h rename to vanetza/asn1/its1/MovementList.h diff --git a/vanetza/asn1/its/MovementPhaseState.c b/vanetza/asn1/its1/MovementPhaseState.c similarity index 97% rename from vanetza/asn1/its/MovementPhaseState.c rename to vanetza/asn1/its1/MovementPhaseState.c index d89812695..c8f1b08a1 100644 --- a/vanetza/asn1/its/MovementPhaseState.c +++ b/vanetza/asn1/its1/MovementPhaseState.c @@ -76,6 +76,9 @@ asn_TYPE_descriptor_t asn_DEF_MovementPhaseState = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_MovementPhaseState_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/MovementPhaseState.h b/vanetza/asn1/its1/MovementPhaseState.h similarity index 100% rename from vanetza/asn1/its/MovementPhaseState.h rename to vanetza/asn1/its1/MovementPhaseState.h diff --git a/vanetza/asn1/its/MovementState.c b/vanetza/asn1/its1/MovementState.c similarity index 91% rename from vanetza/asn1/its/MovementState.c rename to vanetza/asn1/its1/MovementState.c index 491c5cb64..f886d67e5 100644 --- a/vanetza/asn1/its/MovementState.c +++ b/vanetza/asn1/its1/MovementState.c @@ -70,6 +70,9 @@ static asn_TYPE_member_t asn_MBR_regional_6[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -103,6 +106,9 @@ asn_TYPE_descriptor_t asn_DEF_regional_6 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_regional_constr_6, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_regional_6, @@ -123,6 +129,9 @@ asn_TYPE_member_t asn_MBR_MovementState_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -140,6 +149,9 @@ asn_TYPE_member_t asn_MBR_MovementState_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -157,6 +169,9 @@ asn_TYPE_member_t asn_MBR_MovementState_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -174,6 +189,9 @@ asn_TYPE_member_t asn_MBR_MovementState_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -191,6 +209,9 @@ asn_TYPE_member_t asn_MBR_MovementState_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regional_constr_6, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regional_constraint_1 }, 0, 0, /* No default value */ @@ -234,6 +255,9 @@ asn_TYPE_descriptor_t asn_DEF_MovementState = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_MovementState_1, diff --git a/vanetza/asn1/its/MovementState.h b/vanetza/asn1/its1/MovementState.h similarity index 100% rename from vanetza/asn1/its/MovementState.h rename to vanetza/asn1/its1/MovementState.h diff --git a/vanetza/asn1/its/MsgCount.c b/vanetza/asn1/its1/MsgCount.c similarity index 96% rename from vanetza/asn1/its/MsgCount.c rename to vanetza/asn1/its1/MsgCount.c index 3b7d2bc15..7d13cdfa6 100644 --- a/vanetza/asn1/its/MsgCount.c +++ b/vanetza/asn1/its1/MsgCount.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_MsgCount = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_MsgCount_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ MsgCount_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/MsgCount.h b/vanetza/asn1/its1/MsgCount.h similarity index 100% rename from vanetza/asn1/its/MsgCount.h rename to vanetza/asn1/its1/MsgCount.h diff --git a/vanetza/asn1/its/Node-LLmD-64b.c b/vanetza/asn1/its1/Node-LLmD-64b.c similarity index 90% rename from vanetza/asn1/its/Node-LLmD-64b.c rename to vanetza/asn1/its1/Node-LLmD-64b.c index 148b5565d..1a6775bbe 100644 --- a/vanetza/asn1/its/Node-LLmD-64b.c +++ b/vanetza/asn1/its1/Node-LLmD-64b.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Node_LLmD_64b_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Node_LLmD_64b_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_Node_LLmD_64b = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Node_LLmD_64b_1, diff --git a/vanetza/asn1/its/Node-LLmD-64b.h b/vanetza/asn1/its1/Node-LLmD-64b.h similarity index 100% rename from vanetza/asn1/its/Node-LLmD-64b.h rename to vanetza/asn1/its1/Node-LLmD-64b.h diff --git a/vanetza/asn1/its/Node-XY-20b.c b/vanetza/asn1/its1/Node-XY-20b.c similarity index 90% rename from vanetza/asn1/its/Node-XY-20b.c rename to vanetza/asn1/its1/Node-XY-20b.c index 14e59e7b8..5ffc40226 100644 --- a/vanetza/asn1/its/Node-XY-20b.c +++ b/vanetza/asn1/its1/Node-XY-20b.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Node_XY_20b_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Node_XY_20b_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_Node_XY_20b = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Node_XY_20b_1, diff --git a/vanetza/asn1/its/Node-XY-20b.h b/vanetza/asn1/its1/Node-XY-20b.h similarity index 100% rename from vanetza/asn1/its/Node-XY-20b.h rename to vanetza/asn1/its1/Node-XY-20b.h diff --git a/vanetza/asn1/its/Node-XY-22b.c b/vanetza/asn1/its1/Node-XY-22b.c similarity index 90% rename from vanetza/asn1/its/Node-XY-22b.c rename to vanetza/asn1/its1/Node-XY-22b.c index 0a97913ea..6d3929e27 100644 --- a/vanetza/asn1/its/Node-XY-22b.c +++ b/vanetza/asn1/its1/Node-XY-22b.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Node_XY_22b_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Node_XY_22b_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_Node_XY_22b = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Node_XY_22b_1, diff --git a/vanetza/asn1/its/Node-XY-22b.h b/vanetza/asn1/its1/Node-XY-22b.h similarity index 100% rename from vanetza/asn1/its/Node-XY-22b.h rename to vanetza/asn1/its1/Node-XY-22b.h diff --git a/vanetza/asn1/its/Node-XY-24b.c b/vanetza/asn1/its1/Node-XY-24b.c similarity index 90% rename from vanetza/asn1/its/Node-XY-24b.c rename to vanetza/asn1/its1/Node-XY-24b.c index f78db9367..7c924d80d 100644 --- a/vanetza/asn1/its/Node-XY-24b.c +++ b/vanetza/asn1/its1/Node-XY-24b.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Node_XY_24b_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Node_XY_24b_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_Node_XY_24b = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Node_XY_24b_1, diff --git a/vanetza/asn1/its/Node-XY-24b.h b/vanetza/asn1/its1/Node-XY-24b.h similarity index 100% rename from vanetza/asn1/its/Node-XY-24b.h rename to vanetza/asn1/its1/Node-XY-24b.h diff --git a/vanetza/asn1/its/Node-XY-26b.c b/vanetza/asn1/its1/Node-XY-26b.c similarity index 90% rename from vanetza/asn1/its/Node-XY-26b.c rename to vanetza/asn1/its1/Node-XY-26b.c index 245d0725b..9fe88d879 100644 --- a/vanetza/asn1/its/Node-XY-26b.c +++ b/vanetza/asn1/its1/Node-XY-26b.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Node_XY_26b_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Node_XY_26b_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_Node_XY_26b = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Node_XY_26b_1, diff --git a/vanetza/asn1/its/Node-XY-26b.h b/vanetza/asn1/its1/Node-XY-26b.h similarity index 100% rename from vanetza/asn1/its/Node-XY-26b.h rename to vanetza/asn1/its1/Node-XY-26b.h diff --git a/vanetza/asn1/its/Node-XY-28b.c b/vanetza/asn1/its1/Node-XY-28b.c similarity index 90% rename from vanetza/asn1/its/Node-XY-28b.c rename to vanetza/asn1/its1/Node-XY-28b.c index 950000aab..9b173a7f1 100644 --- a/vanetza/asn1/its/Node-XY-28b.c +++ b/vanetza/asn1/its1/Node-XY-28b.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Node_XY_28b_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Node_XY_28b_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_Node_XY_28b = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Node_XY_28b_1, diff --git a/vanetza/asn1/its/Node-XY-28b.h b/vanetza/asn1/its1/Node-XY-28b.h similarity index 100% rename from vanetza/asn1/its/Node-XY-28b.h rename to vanetza/asn1/its1/Node-XY-28b.h diff --git a/vanetza/asn1/its/Node-XY-32b.c b/vanetza/asn1/its1/Node-XY-32b.c similarity index 90% rename from vanetza/asn1/its/Node-XY-32b.c rename to vanetza/asn1/its1/Node-XY-32b.c index f5e42c667..2ffe1c109 100644 --- a/vanetza/asn1/its/Node-XY-32b.c +++ b/vanetza/asn1/its1/Node-XY-32b.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Node_XY_32b_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Node_XY_32b_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_Node_XY_32b = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Node_XY_32b_1, diff --git a/vanetza/asn1/its/Node-XY-32b.h b/vanetza/asn1/its1/Node-XY-32b.h similarity index 100% rename from vanetza/asn1/its/Node-XY-32b.h rename to vanetza/asn1/its1/Node-XY-32b.h diff --git a/vanetza/asn1/its/Node.c b/vanetza/asn1/its1/Node.c similarity index 88% rename from vanetza/asn1/its/Node.c rename to vanetza/asn1/its1/Node.c index d5dfd4931..0aad8d6e1 100644 --- a/vanetza/asn1/its/Node.c +++ b/vanetza/asn1/its1/Node.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Node_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Node_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_Node_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -71,6 +80,9 @@ asn_TYPE_member_t asn_MBR_Node_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -113,6 +125,9 @@ asn_TYPE_descriptor_t asn_DEF_Node = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Node_1, diff --git a/vanetza/asn1/its/Node.h b/vanetza/asn1/its1/Node.h similarity index 100% rename from vanetza/asn1/its/Node.h rename to vanetza/asn1/its1/Node.h diff --git a/vanetza/asn1/its/NodeAttributeSet-addGrpC.c b/vanetza/asn1/its1/NodeAttributeSet-addGrpC.c similarity index 90% rename from vanetza/asn1/its/NodeAttributeSet-addGrpC.c rename to vanetza/asn1/its1/NodeAttributeSet-addGrpC.c index 22c34e6a7..eba84e3eb 100644 --- a/vanetza/asn1/its/NodeAttributeSet-addGrpC.c +++ b/vanetza/asn1/its1/NodeAttributeSet-addGrpC.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_NodeAttributeSet_addGrpC_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_NodeAttributeSet_addGrpC_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_NodeAttributeSet_addGrpC_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -95,6 +104,9 @@ asn_TYPE_descriptor_t asn_DEF_NodeAttributeSet_addGrpC = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_NodeAttributeSet_addGrpC_1, diff --git a/vanetza/asn1/its/NodeAttributeSet-addGrpC.h b/vanetza/asn1/its1/NodeAttributeSet-addGrpC.h similarity index 100% rename from vanetza/asn1/its/NodeAttributeSet-addGrpC.h rename to vanetza/asn1/its1/NodeAttributeSet-addGrpC.h diff --git a/vanetza/asn1/its/NodeAttributeSetXY.c b/vanetza/asn1/its1/NodeAttributeSetXY.c similarity index 90% rename from vanetza/asn1/its/NodeAttributeSetXY.c rename to vanetza/asn1/its1/NodeAttributeSetXY.c index be4b27dcb..0c11deec8 100644 --- a/vanetza/asn1/its/NodeAttributeSetXY.c +++ b/vanetza/asn1/its1/NodeAttributeSetXY.c @@ -70,6 +70,9 @@ static asn_TYPE_member_t asn_MBR_regional_8[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -103,6 +106,9 @@ asn_TYPE_descriptor_t asn_DEF_regional_8 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_regional_constr_8, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_regional_8, @@ -123,6 +129,9 @@ asn_TYPE_member_t asn_MBR_NodeAttributeSetXY_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -140,6 +149,9 @@ asn_TYPE_member_t asn_MBR_NodeAttributeSetXY_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -157,6 +169,9 @@ asn_TYPE_member_t asn_MBR_NodeAttributeSetXY_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -174,6 +189,9 @@ asn_TYPE_member_t asn_MBR_NodeAttributeSetXY_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -191,6 +209,9 @@ asn_TYPE_member_t asn_MBR_NodeAttributeSetXY_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -208,6 +229,9 @@ asn_TYPE_member_t asn_MBR_NodeAttributeSetXY_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -225,6 +249,9 @@ asn_TYPE_member_t asn_MBR_NodeAttributeSetXY_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regional_constr_8, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regional_constraint_1 }, 0, 0, /* No default value */ @@ -270,6 +297,9 @@ asn_TYPE_descriptor_t asn_DEF_NodeAttributeSetXY = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_NodeAttributeSetXY_1, diff --git a/vanetza/asn1/its/NodeAttributeSetXY.h b/vanetza/asn1/its1/NodeAttributeSetXY.h similarity index 100% rename from vanetza/asn1/its/NodeAttributeSetXY.h rename to vanetza/asn1/its1/NodeAttributeSetXY.h diff --git a/vanetza/asn1/its/NodeAttributeXY.c b/vanetza/asn1/its1/NodeAttributeXY.c similarity index 97% rename from vanetza/asn1/its/NodeAttributeXY.c rename to vanetza/asn1/its1/NodeAttributeXY.c index 3c921330f..888ac4eac 100644 --- a/vanetza/asn1/its/NodeAttributeXY.c +++ b/vanetza/asn1/its1/NodeAttributeXY.c @@ -82,6 +82,9 @@ asn_TYPE_descriptor_t asn_DEF_NodeAttributeXY = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_NodeAttributeXY_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/NodeAttributeXY.h b/vanetza/asn1/its1/NodeAttributeXY.h similarity index 100% rename from vanetza/asn1/its/NodeAttributeXY.h rename to vanetza/asn1/its1/NodeAttributeXY.h diff --git a/vanetza/asn1/its/NodeAttributeXYList.c b/vanetza/asn1/its1/NodeAttributeXYList.c similarity index 93% rename from vanetza/asn1/its/NodeAttributeXYList.c rename to vanetza/asn1/its1/NodeAttributeXYList.c index cf5d7282e..0ea58edcf 100644 --- a/vanetza/asn1/its/NodeAttributeXYList.c +++ b/vanetza/asn1/its1/NodeAttributeXYList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_NodeAttributeXYList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_NodeAttributeXYList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_NodeAttributeXYList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_NodeAttributeXYList_1, diff --git a/vanetza/asn1/its/NodeAttributeXYList.h b/vanetza/asn1/its1/NodeAttributeXYList.h similarity index 100% rename from vanetza/asn1/its/NodeAttributeXYList.h rename to vanetza/asn1/its1/NodeAttributeXYList.h diff --git a/vanetza/asn1/its/NodeLink.c b/vanetza/asn1/its1/NodeLink.c similarity index 92% rename from vanetza/asn1/its/NodeLink.c rename to vanetza/asn1/its1/NodeLink.c index b78e502a1..8f2f8576c 100644 --- a/vanetza/asn1/its/NodeLink.c +++ b/vanetza/asn1/its1/NodeLink.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_NodeLink_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_NodeLink = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_NodeLink_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_NodeLink_1, diff --git a/vanetza/asn1/its/NodeLink.h b/vanetza/asn1/its1/NodeLink.h similarity index 100% rename from vanetza/asn1/its/NodeLink.h rename to vanetza/asn1/its1/NodeLink.h diff --git a/vanetza/asn1/its/NodeListXY.c b/vanetza/asn1/its1/NodeListXY.c similarity index 91% rename from vanetza/asn1/its/NodeListXY.c rename to vanetza/asn1/its1/NodeListXY.c index 445e15033..102228b02 100644 --- a/vanetza/asn1/its/NodeListXY.c +++ b/vanetza/asn1/its1/NodeListXY.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_NodeListXY_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_NodeListXY_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -84,6 +90,9 @@ asn_TYPE_descriptor_t asn_DEF_NodeListXY = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_NodeListXY_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_NodeListXY_1, diff --git a/vanetza/asn1/its/NodeListXY.h b/vanetza/asn1/its1/NodeListXY.h similarity index 100% rename from vanetza/asn1/its/NodeListXY.h rename to vanetza/asn1/its1/NodeListXY.h diff --git a/vanetza/asn1/its/NodeOffsetPointXY.c b/vanetza/asn1/its1/NodeOffsetPointXY.c similarity index 88% rename from vanetza/asn1/its/NodeOffsetPointXY.c rename to vanetza/asn1/its1/NodeOffsetPointXY.c index 13aa3fc8b..17739baaa 100644 --- a/vanetza/asn1/its/NodeOffsetPointXY.c +++ b/vanetza/asn1/its1/NodeOffsetPointXY.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_NodeOffsetPointXY_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_NodeOffsetPointXY_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -66,6 +72,9 @@ asn_TYPE_member_t asn_MBR_NodeOffsetPointXY_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -83,6 +92,9 @@ asn_TYPE_member_t asn_MBR_NodeOffsetPointXY_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -100,6 +112,9 @@ asn_TYPE_member_t asn_MBR_NodeOffsetPointXY_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -117,6 +132,9 @@ asn_TYPE_member_t asn_MBR_NodeOffsetPointXY_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -134,6 +152,9 @@ asn_TYPE_member_t asn_MBR_NodeOffsetPointXY_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -151,6 +172,9 @@ asn_TYPE_member_t asn_MBR_NodeOffsetPointXY_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -192,6 +216,9 @@ asn_TYPE_descriptor_t asn_DEF_NodeOffsetPointXY = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_NodeOffsetPointXY_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_NodeOffsetPointXY_1, diff --git a/vanetza/asn1/its/NodeOffsetPointXY.h b/vanetza/asn1/its1/NodeOffsetPointXY.h similarity index 100% rename from vanetza/asn1/its/NodeOffsetPointXY.h rename to vanetza/asn1/its1/NodeOffsetPointXY.h diff --git a/vanetza/asn1/its/NodeOffsetPointZ.c b/vanetza/asn1/its1/NodeOffsetPointZ.c similarity index 89% rename from vanetza/asn1/its/NodeOffsetPointZ.c rename to vanetza/asn1/its1/NodeOffsetPointZ.c index f09bca061..27e3a61fa 100644 --- a/vanetza/asn1/its/NodeOffsetPointZ.c +++ b/vanetza/asn1/its1/NodeOffsetPointZ.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_NodeOffsetPointZ_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_NodeOffsetPointZ_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -66,6 +72,9 @@ asn_TYPE_member_t asn_MBR_NodeOffsetPointZ_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -83,6 +92,9 @@ asn_TYPE_member_t asn_MBR_NodeOffsetPointZ_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -100,6 +112,9 @@ asn_TYPE_member_t asn_MBR_NodeOffsetPointZ_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -117,6 +132,9 @@ asn_TYPE_member_t asn_MBR_NodeOffsetPointZ_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -156,6 +174,9 @@ asn_TYPE_descriptor_t asn_DEF_NodeOffsetPointZ = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_NodeOffsetPointZ_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_NodeOffsetPointZ_1, diff --git a/vanetza/asn1/its/NodeOffsetPointZ.h b/vanetza/asn1/its1/NodeOffsetPointZ.h similarity index 100% rename from vanetza/asn1/its/NodeOffsetPointZ.h rename to vanetza/asn1/its1/NodeOffsetPointZ.h diff --git a/vanetza/asn1/its/NodeSetXY.c b/vanetza/asn1/its1/NodeSetXY.c similarity index 92% rename from vanetza/asn1/its/NodeSetXY.c rename to vanetza/asn1/its1/NodeSetXY.c index 42f27803a..e5d306a2d 100644 --- a/vanetza/asn1/its/NodeSetXY.c +++ b/vanetza/asn1/its1/NodeSetXY.c @@ -33,6 +33,9 @@ asn_TYPE_member_t asn_MBR_NodeSetXY_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -64,6 +67,9 @@ asn_TYPE_descriptor_t asn_DEF_NodeSetXY = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_NodeSetXY_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_NodeSetXY_1, diff --git a/vanetza/asn1/its/NodeSetXY.h b/vanetza/asn1/its1/NodeSetXY.h similarity index 100% rename from vanetza/asn1/its/NodeSetXY.h rename to vanetza/asn1/its1/NodeSetXY.h diff --git a/vanetza/asn1/its/NodeXY.c b/vanetza/asn1/its1/NodeXY.c similarity index 90% rename from vanetza/asn1/its/NodeXY.c rename to vanetza/asn1/its1/NodeXY.c index 6b4d375a0..0b3174483 100644 --- a/vanetza/asn1/its/NodeXY.c +++ b/vanetza/asn1/its1/NodeXY.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_NodeXY_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_NodeXY_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -77,6 +83,9 @@ asn_TYPE_descriptor_t asn_DEF_NodeXY = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_NodeXY_1, diff --git a/vanetza/asn1/its/NodeXY.h b/vanetza/asn1/its1/NodeXY.h similarity index 100% rename from vanetza/asn1/its/NodeXY.h rename to vanetza/asn1/its1/NodeXY.h diff --git a/vanetza/asn1/its1/NumberOfOccupants.c b/vanetza/asn1/its1/NumberOfOccupants.c new file mode 100644 index 000000000..fe364bc44 --- /dev/null +++ b/vanetza/asn1/its1/NumberOfOccupants.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "NumberOfOccupants.h" + +int +NumberOfOccupants_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_NumberOfOccupants_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..127) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NumberOfOccupants_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_NumberOfOccupants_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_NumberOfOccupants = { + "NumberOfOccupants", + "NumberOfOccupants", + &asn_OP_NativeInteger, + asn_DEF_NumberOfOccupants_tags_1, + sizeof(asn_DEF_NumberOfOccupants_tags_1) + /sizeof(asn_DEF_NumberOfOccupants_tags_1[0]), /* 1 */ + asn_DEF_NumberOfOccupants_tags_1, /* Same as above */ + sizeof(asn_DEF_NumberOfOccupants_tags_1) + /sizeof(asn_DEF_NumberOfOccupants_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_NumberOfOccupants_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NumberOfOccupants_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NumberOfOccupants_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/NumberOfOccupants.h b/vanetza/asn1/its1/NumberOfOccupants.h similarity index 100% rename from vanetza/asn1/its/NumberOfOccupants.h rename to vanetza/asn1/its1/NumberOfOccupants.h diff --git a/vanetza/asn1/its/NumberOfPerceivedObjects.c b/vanetza/asn1/its1/NumberOfPerceivedObjects.c similarity index 96% rename from vanetza/asn1/its/NumberOfPerceivedObjects.c rename to vanetza/asn1/its1/NumberOfPerceivedObjects.c index 54ac383dc..35e926058 100644 --- a/vanetza/asn1/its/NumberOfPerceivedObjects.c +++ b/vanetza/asn1/its1/NumberOfPerceivedObjects.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_NumberOfPerceivedObjects = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_NumberOfPerceivedObjects_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NumberOfPerceivedObjects_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/NumberOfPerceivedObjects.h b/vanetza/asn1/its1/NumberOfPerceivedObjects.h similarity index 100% rename from vanetza/asn1/its/NumberOfPerceivedObjects.h rename to vanetza/asn1/its1/NumberOfPerceivedObjects.h diff --git a/vanetza/asn1/its/ObjectAge.c b/vanetza/asn1/its1/ObjectAge.c similarity index 96% rename from vanetza/asn1/its/ObjectAge.c rename to vanetza/asn1/its1/ObjectAge.c index 001c48be8..fb18ccca4 100644 --- a/vanetza/asn1/its/ObjectAge.c +++ b/vanetza/asn1/its1/ObjectAge.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_ObjectAge = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ObjectAge_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ ObjectAge_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/ObjectAge.h b/vanetza/asn1/its1/ObjectAge.h similarity index 100% rename from vanetza/asn1/its/ObjectAge.h rename to vanetza/asn1/its1/ObjectAge.h diff --git a/vanetza/asn1/its1/ObjectClass.c b/vanetza/asn1/its1/ObjectClass.c new file mode 100644 index 000000000..a58e43616 --- /dev/null +++ b/vanetza/asn1/its1/ObjectClass.c @@ -0,0 +1,229 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TR103562v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ObjectClass.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_class_constr_3 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_class_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) */ +static asn_TYPE_member_t asn_MBR_class_3[] = { + { ATF_NOFLAGS, 0, offsetof(struct ObjectClass__class, choice.vehicle), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VehicleSubclass, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vehicle" + }, + { ATF_NOFLAGS, 0, offsetof(struct ObjectClass__class, choice.person), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PersonSubclass, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "person" + }, + { ATF_NOFLAGS, 0, offsetof(struct ObjectClass__class, choice.animal), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AnimalSubclass, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "animal" + }, + { ATF_NOFLAGS, 0, offsetof(struct ObjectClass__class, choice.other), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OtherSubclass, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "other" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_class_tag2el_3[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* vehicle */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* person */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* animal */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* other */ +}; +static asn_CHOICE_specifics_t asn_SPC_class_specs_3 = { + sizeof(struct ObjectClass__class), + offsetof(struct ObjectClass__class, _asn_ctx), + offsetof(struct ObjectClass__class, present), + sizeof(((struct ObjectClass__class *)0)->present), + asn_MAP_class_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_class_3 = { + "class", + "class", + &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) + &asn_OER_type_class_constr_3, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_class_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_class_3, + 4, /* Elements count */ + &asn_SPC_class_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_ObjectClass_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ObjectClass, confidence), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ClassConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "confidence" + }, + { ATF_NOFLAGS, 0, offsetof(struct ObjectClass, Class), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_class_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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "class" + }, +}; +static const ber_tlv_tag_t asn_DEF_ObjectClass_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ObjectClass_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* confidence */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* class */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ObjectClass_specs_1 = { + sizeof(struct ObjectClass), + offsetof(struct ObjectClass, _asn_ctx), + asn_MAP_ObjectClass_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_ObjectClass = { + "ObjectClass", + "ObjectClass", + &asn_OP_SEQUENCE, + asn_DEF_ObjectClass_tags_1, + sizeof(asn_DEF_ObjectClass_tags_1) + /sizeof(asn_DEF_ObjectClass_tags_1[0]), /* 1 */ + asn_DEF_ObjectClass_tags_1, /* Same as above */ + sizeof(asn_DEF_ObjectClass_tags_1) + /sizeof(asn_DEF_ObjectClass_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ObjectClass_1, + 2, /* Elements count */ + &asn_SPC_ObjectClass_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/ObjectClass.h b/vanetza/asn1/its1/ObjectClass.h similarity index 100% rename from vanetza/asn1/its/ObjectClass.h rename to vanetza/asn1/its1/ObjectClass.h diff --git a/vanetza/asn1/its1/ObjectClassDescription.c b/vanetza/asn1/its1/ObjectClassDescription.c new file mode 100644 index 000000000..a9671e38c --- /dev/null +++ b/vanetza/asn1/its1/ObjectClassDescription.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TR103562v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ObjectClassDescription.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_ObjectClassDescription_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..8)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ObjectClassDescription_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_ObjectClassDescription_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_ObjectClass, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_ObjectClassDescription_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_ObjectClassDescription_specs_1 = { + sizeof(struct ObjectClassDescription), + offsetof(struct ObjectClassDescription, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_ObjectClassDescription = { + "ObjectClassDescription", + "ObjectClassDescription", + &asn_OP_SEQUENCE_OF, + asn_DEF_ObjectClassDescription_tags_1, + sizeof(asn_DEF_ObjectClassDescription_tags_1) + /sizeof(asn_DEF_ObjectClassDescription_tags_1[0]), /* 1 */ + asn_DEF_ObjectClassDescription_tags_1, /* Same as above */ + sizeof(asn_DEF_ObjectClassDescription_tags_1) + /sizeof(asn_DEF_ObjectClassDescription_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_ObjectClassDescription_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ObjectClassDescription_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_ObjectClassDescription_1, + 1, /* Single element */ + &asn_SPC_ObjectClassDescription_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/ObjectClassDescription.h b/vanetza/asn1/its1/ObjectClassDescription.h similarity index 100% rename from vanetza/asn1/its/ObjectClassDescription.h rename to vanetza/asn1/its1/ObjectClassDescription.h diff --git a/vanetza/asn1/its/ObjectConfidence.c b/vanetza/asn1/its1/ObjectConfidence.c similarity index 96% rename from vanetza/asn1/its/ObjectConfidence.c rename to vanetza/asn1/its1/ObjectConfidence.c index f1a1ab77d..d5de66636 100644 --- a/vanetza/asn1/its/ObjectConfidence.c +++ b/vanetza/asn1/its1/ObjectConfidence.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_ObjectConfidence = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ObjectConfidence_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ ObjectConfidence_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/ObjectConfidence.h b/vanetza/asn1/its1/ObjectConfidence.h similarity index 100% rename from vanetza/asn1/its/ObjectConfidence.h rename to vanetza/asn1/its1/ObjectConfidence.h diff --git a/vanetza/asn1/its1/ObjectDimension.c b/vanetza/asn1/its1/ObjectDimension.c new file mode 100644 index 000000000..f37b69154 --- /dev/null +++ b/vanetza/asn1/its1/ObjectDimension.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TR103562v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ObjectDimension.h" + +asn_TYPE_member_t asn_MBR_ObjectDimension_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ObjectDimension, value), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ObjectDimensionValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "value" + }, + { ATF_NOFLAGS, 0, offsetof(struct ObjectDimension, confidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ObjectDimensionConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "confidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_ObjectDimension_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ObjectDimension_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* value */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* confidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ObjectDimension_specs_1 = { + sizeof(struct ObjectDimension), + offsetof(struct ObjectDimension, _asn_ctx), + asn_MAP_ObjectDimension_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_ObjectDimension = { + "ObjectDimension", + "ObjectDimension", + &asn_OP_SEQUENCE, + asn_DEF_ObjectDimension_tags_1, + sizeof(asn_DEF_ObjectDimension_tags_1) + /sizeof(asn_DEF_ObjectDimension_tags_1[0]), /* 1 */ + asn_DEF_ObjectDimension_tags_1, /* Same as above */ + sizeof(asn_DEF_ObjectDimension_tags_1) + /sizeof(asn_DEF_ObjectDimension_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ObjectDimension_1, + 2, /* Elements count */ + &asn_SPC_ObjectDimension_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/ObjectDimension.h b/vanetza/asn1/its1/ObjectDimension.h similarity index 100% rename from vanetza/asn1/its/ObjectDimension.h rename to vanetza/asn1/its1/ObjectDimension.h diff --git a/vanetza/asn1/its1/ObjectDimensionConfidence.c b/vanetza/asn1/its1/ObjectDimensionConfidence.c new file mode 100644 index 000000000..6022dae78 --- /dev/null +++ b/vanetza/asn1/its1/ObjectDimensionConfidence.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TR103562v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ObjectDimensionConfidence.h" + +int +ObjectDimensionConfidence_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 <= 102L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_ObjectDimensionConfidence_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..102) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ObjectDimensionConfidence_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 102 } /* (0..102) */, + { 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_ObjectDimensionConfidence_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_ObjectDimensionConfidence = { + "ObjectDimensionConfidence", + "ObjectDimensionConfidence", + &asn_OP_NativeInteger, + asn_DEF_ObjectDimensionConfidence_tags_1, + sizeof(asn_DEF_ObjectDimensionConfidence_tags_1) + /sizeof(asn_DEF_ObjectDimensionConfidence_tags_1[0]), /* 1 */ + asn_DEF_ObjectDimensionConfidence_tags_1, /* Same as above */ + sizeof(asn_DEF_ObjectDimensionConfidence_tags_1) + /sizeof(asn_DEF_ObjectDimensionConfidence_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_ObjectDimensionConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ObjectDimensionConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + ObjectDimensionConfidence_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/ObjectDimensionConfidence.h b/vanetza/asn1/its1/ObjectDimensionConfidence.h similarity index 100% rename from vanetza/asn1/its/ObjectDimensionConfidence.h rename to vanetza/asn1/its1/ObjectDimensionConfidence.h diff --git a/vanetza/asn1/its1/ObjectDimensionValue.c b/vanetza/asn1/its1/ObjectDimensionValue.c new file mode 100644 index 000000000..8d623a526 --- /dev/null +++ b/vanetza/asn1/its1/ObjectDimensionValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TR103562v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ObjectDimensionValue.h" + +int +ObjectDimensionValue_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 <= 1023L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_ObjectDimensionValue_constr_1 CC_NOTUSED = { + { 2, 1 } /* (0..1023) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ObjectDimensionValue_constr_1 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 ber_tlv_tag_t asn_DEF_ObjectDimensionValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_ObjectDimensionValue = { + "ObjectDimensionValue", + "ObjectDimensionValue", + &asn_OP_NativeInteger, + asn_DEF_ObjectDimensionValue_tags_1, + sizeof(asn_DEF_ObjectDimensionValue_tags_1) + /sizeof(asn_DEF_ObjectDimensionValue_tags_1[0]), /* 1 */ + asn_DEF_ObjectDimensionValue_tags_1, /* Same as above */ + sizeof(asn_DEF_ObjectDimensionValue_tags_1) + /sizeof(asn_DEF_ObjectDimensionValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_ObjectDimensionValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ObjectDimensionValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + ObjectDimensionValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/ObjectDimensionValue.h b/vanetza/asn1/its1/ObjectDimensionValue.h similarity index 100% rename from vanetza/asn1/its/ObjectDimensionValue.h rename to vanetza/asn1/its1/ObjectDimensionValue.h diff --git a/vanetza/asn1/its/ObjectDistanceWithConfidence.c b/vanetza/asn1/its1/ObjectDistanceWithConfidence.c similarity index 91% rename from vanetza/asn1/its/ObjectDistanceWithConfidence.c rename to vanetza/asn1/its1/ObjectDistanceWithConfidence.c index bc66ae3d5..f4a2cb4d7 100644 --- a/vanetza/asn1/its/ObjectDistanceWithConfidence.c +++ b/vanetza/asn1/its1/ObjectDistanceWithConfidence.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_ObjectDistanceWithConfidence_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_ObjectDistanceWithConfidence_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_ObjectDistanceWithConfidence = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_ObjectDistanceWithConfidence_1, diff --git a/vanetza/asn1/its/ObjectDistanceWithConfidence.h b/vanetza/asn1/its1/ObjectDistanceWithConfidence.h similarity index 100% rename from vanetza/asn1/its/ObjectDistanceWithConfidence.h rename to vanetza/asn1/its1/ObjectDistanceWithConfidence.h diff --git a/vanetza/asn1/its/ObjectRefPoint.c b/vanetza/asn1/its1/ObjectRefPoint.c similarity index 96% rename from vanetza/asn1/its/ObjectRefPoint.c rename to vanetza/asn1/its1/ObjectRefPoint.c index d8936d17f..a50e187fb 100644 --- a/vanetza/asn1/its/ObjectRefPoint.c +++ b/vanetza/asn1/its1/ObjectRefPoint.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_ObjectRefPoint = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ObjectRefPoint_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ ObjectRefPoint_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/ObjectRefPoint.h b/vanetza/asn1/its1/ObjectRefPoint.h similarity index 100% rename from vanetza/asn1/its/ObjectRefPoint.h rename to vanetza/asn1/its1/ObjectRefPoint.h diff --git a/vanetza/asn1/its/Offset-B09.c b/vanetza/asn1/its1/Offset-B09.c similarity index 96% rename from vanetza/asn1/its/Offset-B09.c rename to vanetza/asn1/its1/Offset-B09.c index c29b331f0..fae6dba58 100644 --- a/vanetza/asn1/its/Offset-B09.c +++ b/vanetza/asn1/its1/Offset-B09.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Offset_B09 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Offset_B09_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Offset_B09_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/Offset-B09.h b/vanetza/asn1/its1/Offset-B09.h similarity index 100% rename from vanetza/asn1/its/Offset-B09.h rename to vanetza/asn1/its1/Offset-B09.h diff --git a/vanetza/asn1/its/Offset-B10.c b/vanetza/asn1/its1/Offset-B10.c similarity index 96% rename from vanetza/asn1/its/Offset-B10.c rename to vanetza/asn1/its1/Offset-B10.c index 25a98f111..926b11495 100644 --- a/vanetza/asn1/its/Offset-B10.c +++ b/vanetza/asn1/its1/Offset-B10.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Offset_B10 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Offset_B10_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Offset_B10_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/Offset-B10.h b/vanetza/asn1/its1/Offset-B10.h similarity index 100% rename from vanetza/asn1/its/Offset-B10.h rename to vanetza/asn1/its1/Offset-B10.h diff --git a/vanetza/asn1/its/Offset-B11.c b/vanetza/asn1/its1/Offset-B11.c similarity index 96% rename from vanetza/asn1/its/Offset-B11.c rename to vanetza/asn1/its1/Offset-B11.c index 8a35f6421..3305fdf82 100644 --- a/vanetza/asn1/its/Offset-B11.c +++ b/vanetza/asn1/its1/Offset-B11.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Offset_B11 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Offset_B11_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Offset_B11_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/Offset-B11.h b/vanetza/asn1/its1/Offset-B11.h similarity index 100% rename from vanetza/asn1/its/Offset-B11.h rename to vanetza/asn1/its1/Offset-B11.h diff --git a/vanetza/asn1/its/Offset-B12.c b/vanetza/asn1/its1/Offset-B12.c similarity index 96% rename from vanetza/asn1/its/Offset-B12.c rename to vanetza/asn1/its1/Offset-B12.c index 2cddab7b7..c710c17e2 100644 --- a/vanetza/asn1/its/Offset-B12.c +++ b/vanetza/asn1/its1/Offset-B12.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Offset_B12 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Offset_B12_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Offset_B12_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/Offset-B12.h b/vanetza/asn1/its1/Offset-B12.h similarity index 100% rename from vanetza/asn1/its/Offset-B12.h rename to vanetza/asn1/its1/Offset-B12.h diff --git a/vanetza/asn1/its/Offset-B13.c b/vanetza/asn1/its1/Offset-B13.c similarity index 96% rename from vanetza/asn1/its/Offset-B13.c rename to vanetza/asn1/its1/Offset-B13.c index d43c32359..f671bef75 100644 --- a/vanetza/asn1/its/Offset-B13.c +++ b/vanetza/asn1/its1/Offset-B13.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Offset_B13 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Offset_B13_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Offset_B13_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/Offset-B13.h b/vanetza/asn1/its1/Offset-B13.h similarity index 100% rename from vanetza/asn1/its/Offset-B13.h rename to vanetza/asn1/its1/Offset-B13.h diff --git a/vanetza/asn1/its/Offset-B14.c b/vanetza/asn1/its1/Offset-B14.c similarity index 96% rename from vanetza/asn1/its/Offset-B14.c rename to vanetza/asn1/its1/Offset-B14.c index 26c25cd48..8ff6dce56 100644 --- a/vanetza/asn1/its/Offset-B14.c +++ b/vanetza/asn1/its1/Offset-B14.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Offset_B14 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Offset_B14_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Offset_B14_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/Offset-B14.h b/vanetza/asn1/its1/Offset-B14.h similarity index 100% rename from vanetza/asn1/its/Offset-B14.h rename to vanetza/asn1/its1/Offset-B14.h diff --git a/vanetza/asn1/its/Offset-B16.c b/vanetza/asn1/its1/Offset-B16.c similarity index 96% rename from vanetza/asn1/its/Offset-B16.c rename to vanetza/asn1/its1/Offset-B16.c index 1e79820e7..b0aa512bc 100644 --- a/vanetza/asn1/its/Offset-B16.c +++ b/vanetza/asn1/its1/Offset-B16.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Offset_B16 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Offset_B16_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Offset_B16_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/Offset-B16.h b/vanetza/asn1/its1/Offset-B16.h similarity index 100% rename from vanetza/asn1/its/Offset-B16.h rename to vanetza/asn1/its1/Offset-B16.h diff --git a/vanetza/asn1/its/OffsetPoint.c b/vanetza/asn1/its1/OffsetPoint.c similarity index 93% rename from vanetza/asn1/its/OffsetPoint.c rename to vanetza/asn1/its1/OffsetPoint.c index c6cbad45b..416a7d038 100644 --- a/vanetza/asn1/its/OffsetPoint.c +++ b/vanetza/asn1/its1/OffsetPoint.c @@ -51,6 +51,9 @@ asn_TYPE_member_t asn_MBR_OffsetPoint_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_nodeOffsetPointxy_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_nodeOffsetPointxy_constraint_1 }, 0, 0, /* No default value */ @@ -68,6 +71,9 @@ asn_TYPE_member_t asn_MBR_OffsetPoint_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -108,6 +114,9 @@ asn_TYPE_descriptor_t asn_DEF_OffsetPoint = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_OffsetPoint_1, diff --git a/vanetza/asn1/its/OffsetPoint.h b/vanetza/asn1/its1/OffsetPoint.h similarity index 100% rename from vanetza/asn1/its/OffsetPoint.h rename to vanetza/asn1/its1/OffsetPoint.h diff --git a/vanetza/asn1/its1/OpeningDaysHours.c b/vanetza/asn1/its1/OpeningDaysHours.c new file mode 100644 index 000000000..080b1c7f6 --- /dev/null +++ b/vanetza/asn1/its1/OpeningDaysHours.c @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "OpeningDaysHours.h" + +/* + * This type is implemented using UTF8String, + * so here we adjust the DEF accordingly. + */ +static const ber_tlv_tag_t asn_DEF_OpeningDaysHours_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_OpeningDaysHours = { + "OpeningDaysHours", + "OpeningDaysHours", + &asn_OP_UTF8String, + asn_DEF_OpeningDaysHours_tags_1, + sizeof(asn_DEF_OpeningDaysHours_tags_1) + /sizeof(asn_DEF_OpeningDaysHours_tags_1[0]), /* 1 */ + asn_DEF_OpeningDaysHours_tags_1, /* Same as above */ + sizeof(asn_DEF_OpeningDaysHours_tags_1) + /sizeof(asn_DEF_OpeningDaysHours_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + UTF8String_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/OpeningDaysHours.h b/vanetza/asn1/its1/OpeningDaysHours.h similarity index 100% rename from vanetza/asn1/its/OpeningDaysHours.h rename to vanetza/asn1/its1/OpeningDaysHours.h diff --git a/vanetza/asn1/its/OriginatingRSUContainer.c b/vanetza/asn1/its1/OriginatingRSUContainer.c similarity index 92% rename from vanetza/asn1/its/OriginatingRSUContainer.c rename to vanetza/asn1/its1/OriginatingRSUContainer.c index f2ce91a87..9325a4e2b 100644 --- a/vanetza/asn1/its/OriginatingRSUContainer.c +++ b/vanetza/asn1/its1/OriginatingRSUContainer.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_OriginatingRSUContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_OriginatingRSUContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -84,6 +90,9 @@ asn_TYPE_descriptor_t asn_DEF_OriginatingRSUContainer = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_OriginatingRSUContainer_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_OriginatingRSUContainer_1, diff --git a/vanetza/asn1/its/OriginatingRSUContainer.h b/vanetza/asn1/its1/OriginatingRSUContainer.h similarity index 100% rename from vanetza/asn1/its/OriginatingRSUContainer.h rename to vanetza/asn1/its1/OriginatingRSUContainer.h diff --git a/vanetza/asn1/its1/OriginatingVehicleContainer.c b/vanetza/asn1/its1/OriginatingVehicleContainer.c new file mode 100644 index 000000000..eb14d65ba --- /dev/null +++ b/vanetza/asn1/its1/OriginatingVehicleContainer.c @@ -0,0 +1,370 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TR103562v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "OriginatingVehicleContainer.h" + +static int asn_DFL_5_cmp_0(const void *sptr) { + const DriveDirection_t *st = sptr; + + if(!st) { + return -1; /* No value is not a default value */ + } + + /* Test default value 0 */ + return (*st != 0); +} +static int asn_DFL_5_set_0(void **sptr) { + DriveDirection_t *st = *sptr; + + if(!st) { + st = (*sptr = CALLOC(1, sizeof(*st))); + if(!st) return -1; + } + + /* Install default value 0 */ + *st = 0; + return 0; +} +asn_TYPE_member_t asn_MBR_OriginatingVehicleContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct OriginatingVehicleContainer, heading), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Heading, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "heading" + }, + { ATF_NOFLAGS, 0, offsetof(struct OriginatingVehicleContainer, speed), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Speed, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "speed" + }, + { ATF_POINTER, 12, offsetof(struct OriginatingVehicleContainer, vehicleOrientationAngle), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_WGS84Angle, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vehicleOrientationAngle" + }, + { ATF_NOFLAGS, 11, offsetof(struct OriginatingVehicleContainer, driveDirection), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DriveDirection, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + &asn_DFL_5_cmp_0, /* Compare DEFAULT 0 */ + &asn_DFL_5_set_0, /* Set DEFAULT 0 */ + "driveDirection" + }, + { ATF_POINTER, 10, offsetof(struct OriginatingVehicleContainer, longitudinalAcceleration), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LongitudinalAcceleration, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "longitudinalAcceleration" + }, + { ATF_POINTER, 9, offsetof(struct OriginatingVehicleContainer, lateralAcceleration), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LateralAcceleration, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lateralAcceleration" + }, + { ATF_POINTER, 8, offsetof(struct OriginatingVehicleContainer, verticalAcceleration), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VerticalAcceleration, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "verticalAcceleration" + }, + { ATF_POINTER, 7, offsetof(struct OriginatingVehicleContainer, yawRate), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_YawRate, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "yawRate" + }, + { ATF_POINTER, 6, offsetof(struct OriginatingVehicleContainer, pitchAngle), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianAngle, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "pitchAngle" + }, + { ATF_POINTER, 5, offsetof(struct OriginatingVehicleContainer, rollAngle), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianAngle, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rollAngle" + }, + { ATF_POINTER, 4, offsetof(struct OriginatingVehicleContainer, vehicleLength), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VehicleLength, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vehicleLength" + }, + { ATF_POINTER, 3, offsetof(struct OriginatingVehicleContainer, vehicleWidth), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VehicleWidth, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vehicleWidth" + }, + { ATF_POINTER, 2, offsetof(struct OriginatingVehicleContainer, vehicleHeight), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VehicleHeight, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vehicleHeight" + }, + { ATF_POINTER, 1, offsetof(struct OriginatingVehicleContainer, trailerDataContainer), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TrailerDataContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "trailerDataContainer" + }, +}; +static const int asn_MAP_OriginatingVehicleContainer_oms_1[] = { 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static const ber_tlv_tag_t asn_DEF_OriginatingVehicleContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_OriginatingVehicleContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* heading */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* speed */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* vehicleOrientationAngle */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* driveDirection */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* longitudinalAcceleration */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* lateralAcceleration */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* verticalAcceleration */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* yawRate */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* pitchAngle */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* rollAngle */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* vehicleLength */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* vehicleWidth */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* vehicleHeight */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 } /* trailerDataContainer */ +}; +asn_SEQUENCE_specifics_t asn_SPC_OriginatingVehicleContainer_specs_1 = { + sizeof(struct OriginatingVehicleContainer), + offsetof(struct OriginatingVehicleContainer, _asn_ctx), + asn_MAP_OriginatingVehicleContainer_tag2el_1, + 14, /* Count of tags in the map */ + asn_MAP_OriginatingVehicleContainer_oms_1, /* Optional members */ + 12, 0, /* Root/Additions */ + 14, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_OriginatingVehicleContainer = { + "OriginatingVehicleContainer", + "OriginatingVehicleContainer", + &asn_OP_SEQUENCE, + asn_DEF_OriginatingVehicleContainer_tags_1, + sizeof(asn_DEF_OriginatingVehicleContainer_tags_1) + /sizeof(asn_DEF_OriginatingVehicleContainer_tags_1[0]), /* 1 */ + asn_DEF_OriginatingVehicleContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_OriginatingVehicleContainer_tags_1) + /sizeof(asn_DEF_OriginatingVehicleContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_OriginatingVehicleContainer_1, + 14, /* Elements count */ + &asn_SPC_OriginatingVehicleContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/OriginatingVehicleContainer.h b/vanetza/asn1/its1/OriginatingVehicleContainer.h similarity index 100% rename from vanetza/asn1/its/OriginatingVehicleContainer.h rename to vanetza/asn1/its1/OriginatingVehicleContainer.h diff --git a/vanetza/asn1/its/OtherSubclass.c b/vanetza/asn1/its1/OtherSubclass.c similarity index 93% rename from vanetza/asn1/its/OtherSubclass.c rename to vanetza/asn1/its1/OtherSubclass.c index 1dd800960..fe5a2a1ab 100644 --- a/vanetza/asn1/its/OtherSubclass.c +++ b/vanetza/asn1/its1/OtherSubclass.c @@ -64,6 +64,9 @@ asn_TYPE_member_t asn_MBR_OtherSubclass_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, &asn_DFL_2_cmp_0, /* Compare DEFAULT 0 */ @@ -82,6 +85,9 @@ asn_TYPE_member_t asn_MBR_OtherSubclass_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, &asn_DFL_3_cmp_0, /* Compare DEFAULT 0 */ @@ -123,6 +129,9 @@ asn_TYPE_descriptor_t asn_DEF_OtherSubclass = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_OtherSubclass_1, diff --git a/vanetza/asn1/its/OtherSubclass.h b/vanetza/asn1/its1/OtherSubclass.h similarity index 100% rename from vanetza/asn1/its/OtherSubclass.h rename to vanetza/asn1/its1/OtherSubclass.h diff --git a/vanetza/asn1/its/OtherSublassType.c b/vanetza/asn1/its1/OtherSublassType.c similarity index 96% rename from vanetza/asn1/its/OtherSublassType.c rename to vanetza/asn1/its1/OtherSublassType.c index ec16254ce..98f9fef88 100644 --- a/vanetza/asn1/its/OtherSublassType.c +++ b/vanetza/asn1/its1/OtherSublassType.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_OtherSublassType = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_OtherSublassType_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OtherSublassType_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/OtherSublassType.h b/vanetza/asn1/its1/OtherSublassType.h similarity index 100% rename from vanetza/asn1/its/OtherSublassType.h rename to vanetza/asn1/its1/OtherSublassType.h diff --git a/vanetza/asn1/its/OverlayLaneList.c b/vanetza/asn1/its1/OverlayLaneList.c similarity index 92% rename from vanetza/asn1/its/OverlayLaneList.c rename to vanetza/asn1/its1/OverlayLaneList.c index f8c058d9b..38f1c02dd 100644 --- a/vanetza/asn1/its/OverlayLaneList.c +++ b/vanetza/asn1/its1/OverlayLaneList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_OverlayLaneList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_OverlayLaneList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_OverlayLaneList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_OverlayLaneList_1, diff --git a/vanetza/asn1/its/OverlayLaneList.h b/vanetza/asn1/its1/OverlayLaneList.h similarity index 100% rename from vanetza/asn1/its/OverlayLaneList.h rename to vanetza/asn1/its1/OverlayLaneList.h diff --git a/vanetza/asn1/its/PassengerCapacity.c b/vanetza/asn1/its1/PassengerCapacity.c similarity index 90% rename from vanetza/asn1/its/PassengerCapacity.c rename to vanetza/asn1/its1/PassengerCapacity.c index 96e6e6a9c..cd9da22d6 100644 --- a/vanetza/asn1/its/PassengerCapacity.c +++ b/vanetza/asn1/its1/PassengerCapacity.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_PassengerCapacity_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_PassengerCapacity_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_PassengerCapacity = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_PassengerCapacity_1, diff --git a/vanetza/asn1/its/PassengerCapacity.h b/vanetza/asn1/its1/PassengerCapacity.h similarity index 100% rename from vanetza/asn1/its/PassengerCapacity.h rename to vanetza/asn1/its1/PassengerCapacity.h diff --git a/vanetza/asn1/its1/PathDeltaTime.c b/vanetza/asn1/its1/PathDeltaTime.c new file mode 100644 index 000000000..4c9c47129 --- /dev/null +++ b/vanetza/asn1/its1/PathDeltaTime.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PathDeltaTime.h" + +int +PathDeltaTime_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 <= 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PathDeltaTime_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PathDeltaTime_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 16, 16, 1, 65535 } /* (1..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_PathDeltaTime_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_PathDeltaTime = { + "PathDeltaTime", + "PathDeltaTime", + &asn_OP_NativeInteger, + asn_DEF_PathDeltaTime_tags_1, + sizeof(asn_DEF_PathDeltaTime_tags_1) + /sizeof(asn_DEF_PathDeltaTime_tags_1[0]), /* 1 */ + asn_DEF_PathDeltaTime_tags_1, /* Same as above */ + sizeof(asn_DEF_PathDeltaTime_tags_1) + /sizeof(asn_DEF_PathDeltaTime_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PathDeltaTime_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PathDeltaTime_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + PathDeltaTime_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/PathDeltaTime.h b/vanetza/asn1/its1/PathDeltaTime.h similarity index 100% rename from vanetza/asn1/its/PathDeltaTime.h rename to vanetza/asn1/its1/PathDeltaTime.h diff --git a/vanetza/asn1/its1/PathHistory.c b/vanetza/asn1/its1/PathHistory.c new file mode 100644 index 000000000..db30498a3 --- /dev/null +++ b/vanetza/asn1/its1/PathHistory.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PathHistory.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PathHistory_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..40)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PathHistory_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 0, 40 } /* (SIZE(0..40)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_PathHistory_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_PathPoint, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_PathHistory_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_PathHistory_specs_1 = { + sizeof(struct PathHistory), + offsetof(struct PathHistory, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_PathHistory = { + "PathHistory", + "PathHistory", + &asn_OP_SEQUENCE_OF, + asn_DEF_PathHistory_tags_1, + sizeof(asn_DEF_PathHistory_tags_1) + /sizeof(asn_DEF_PathHistory_tags_1[0]), /* 1 */ + asn_DEF_PathHistory_tags_1, /* Same as above */ + sizeof(asn_DEF_PathHistory_tags_1) + /sizeof(asn_DEF_PathHistory_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PathHistory_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PathHistory_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_PathHistory_1, + 1, /* Single element */ + &asn_SPC_PathHistory_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/PathHistory.h b/vanetza/asn1/its1/PathHistory.h similarity index 100% rename from vanetza/asn1/its/PathHistory.h rename to vanetza/asn1/its1/PathHistory.h diff --git a/vanetza/asn1/its1/PathPoint.c b/vanetza/asn1/its1/PathPoint.c new file mode 100644 index 000000000..72f6a27a7 --- /dev/null +++ b/vanetza/asn1/its1/PathPoint.c @@ -0,0 +1,95 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PathPoint.h" + +asn_TYPE_member_t asn_MBR_PathPoint_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PathPoint, pathPosition), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DeltaReferencePosition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "pathPosition" + }, + { ATF_POINTER, 1, offsetof(struct PathPoint, pathDeltaTime), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PathDeltaTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "pathDeltaTime" + }, +}; +static const int asn_MAP_PathPoint_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_PathPoint_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PathPoint_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pathPosition */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* pathDeltaTime */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PathPoint_specs_1 = { + sizeof(struct PathPoint), + offsetof(struct PathPoint, _asn_ctx), + asn_MAP_PathPoint_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_PathPoint_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PathPoint = { + "PathPoint", + "PathPoint", + &asn_OP_SEQUENCE, + asn_DEF_PathPoint_tags_1, + sizeof(asn_DEF_PathPoint_tags_1) + /sizeof(asn_DEF_PathPoint_tags_1[0]), /* 1 */ + asn_DEF_PathPoint_tags_1, /* Same as above */ + sizeof(asn_DEF_PathPoint_tags_1) + /sizeof(asn_DEF_PathPoint_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PathPoint_1, + 2, /* Elements count */ + &asn_SPC_PathPoint_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/PathPoint.h b/vanetza/asn1/its1/PathPoint.h similarity index 100% rename from vanetza/asn1/its/PathPoint.h rename to vanetza/asn1/its1/PathPoint.h diff --git a/vanetza/asn1/its/PayUnit.c b/vanetza/asn1/its1/PayUnit.c similarity index 96% rename from vanetza/asn1/its/PayUnit.c rename to vanetza/asn1/its1/PayUnit.c index f952c2f57..cb34673d8 100644 --- a/vanetza/asn1/its/PayUnit.c +++ b/vanetza/asn1/its1/PayUnit.c @@ -69,6 +69,9 @@ asn_TYPE_descriptor_t asn_DEF_PayUnit = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_PayUnit_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ PayUnit_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/PayUnit.h b/vanetza/asn1/its1/PayUnit.h similarity index 100% rename from vanetza/asn1/its/PayUnit.h rename to vanetza/asn1/its1/PayUnit.h diff --git a/vanetza/asn1/its/PaymentFee.c b/vanetza/asn1/its1/PaymentFee.c similarity index 90% rename from vanetza/asn1/its/PaymentFee.c rename to vanetza/asn1/its1/PaymentFee.c index ce297d6ab..caa1e42c6 100644 --- a/vanetza/asn1/its/PaymentFee.c +++ b/vanetza/asn1/its1/PaymentFee.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_PaymentFee_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_PaymentFee_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_PaymentFee = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_PaymentFee_1, diff --git a/vanetza/asn1/its/PaymentFee.h b/vanetza/asn1/its1/PaymentFee.h similarity index 100% rename from vanetza/asn1/its/PaymentFee.h rename to vanetza/asn1/its1/PaymentFee.h diff --git a/vanetza/asn1/its/PaymentMeans.c b/vanetza/asn1/its1/PaymentMeans.c similarity index 92% rename from vanetza/asn1/its/PaymentMeans.c rename to vanetza/asn1/its1/PaymentMeans.c index 32c38f26e..ea5994bfb 100644 --- a/vanetza/asn1/its/PaymentMeans.c +++ b/vanetza/asn1/its1/PaymentMeans.c @@ -58,6 +58,9 @@ static asn_TYPE_member_t asn_MBR_PaymentMeans_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +78,9 @@ static asn_TYPE_member_t asn_MBR_PaymentMeans_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -92,6 +98,9 @@ static asn_TYPE_member_t asn_MBR_PaymentMeans_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_pamentMeansUsageControl_constr_4, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_pamentMeansUsageControl_constraint_1 }, 0, 0, /* No default value */ @@ -131,6 +140,9 @@ asn_TYPE_descriptor_t asn_DEF_PaymentMeans = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_PaymentMeans_1, diff --git a/vanetza/asn1/its/PaymentMeans.h b/vanetza/asn1/its1/PaymentMeans.h similarity index 100% rename from vanetza/asn1/its/PaymentMeans.h rename to vanetza/asn1/its1/PaymentMeans.h diff --git a/vanetza/asn1/its/PaymentMeansBalance.c b/vanetza/asn1/its1/PaymentMeansBalance.c similarity index 94% rename from vanetza/asn1/its/PaymentMeansBalance.c rename to vanetza/asn1/its1/PaymentMeansBalance.c index f0eb0875f..05793131b 100644 --- a/vanetza/asn1/its/PaymentMeansBalance.c +++ b/vanetza/asn1/its1/PaymentMeansBalance.c @@ -38,6 +38,9 @@ asn_TYPE_descriptor_t asn_DEF_PaymentMeansBalance = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_SignedValue_1, diff --git a/vanetza/asn1/its/PaymentMeansBalance.h b/vanetza/asn1/its1/PaymentMeansBalance.h similarity index 100% rename from vanetza/asn1/its/PaymentMeansBalance.h rename to vanetza/asn1/its1/PaymentMeansBalance.h diff --git a/vanetza/asn1/its/PaymentMeansUnit.c b/vanetza/asn1/its1/PaymentMeansUnit.c similarity index 96% rename from vanetza/asn1/its/PaymentMeansUnit.c rename to vanetza/asn1/its1/PaymentMeansUnit.c index 81808a6a6..b982d7021 100644 --- a/vanetza/asn1/its/PaymentMeansUnit.c +++ b/vanetza/asn1/its1/PaymentMeansUnit.c @@ -69,6 +69,9 @@ asn_TYPE_descriptor_t asn_DEF_PaymentMeansUnit = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_PaymentMeansUnit_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ PaymentMeansUnit_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/PaymentMeansUnit.h b/vanetza/asn1/its1/PaymentMeansUnit.h similarity index 100% rename from vanetza/asn1/its/PaymentMeansUnit.h rename to vanetza/asn1/its1/PaymentMeansUnit.h diff --git a/vanetza/asn1/its/PaymentSecurityData.c b/vanetza/asn1/its1/PaymentSecurityData.c similarity index 93% rename from vanetza/asn1/its/PaymentSecurityData.c rename to vanetza/asn1/its1/PaymentSecurityData.c index 4766963b0..3841a8470 100644 --- a/vanetza/asn1/its/PaymentSecurityData.c +++ b/vanetza/asn1/its1/PaymentSecurityData.c @@ -31,6 +31,9 @@ asn_TYPE_descriptor_t asn_DEF_PaymentSecurityData = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OCTET_STRING_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/PaymentSecurityData.h b/vanetza/asn1/its1/PaymentSecurityData.h similarity index 100% rename from vanetza/asn1/its/PaymentSecurityData.h rename to vanetza/asn1/its1/PaymentSecurityData.h diff --git a/vanetza/asn1/its/PedestrianBicycleDetect.c b/vanetza/asn1/its1/PedestrianBicycleDetect.c similarity index 93% rename from vanetza/asn1/its/PedestrianBicycleDetect.c rename to vanetza/asn1/its1/PedestrianBicycleDetect.c index 9bfcc7b0c..2a88a2e2e 100644 --- a/vanetza/asn1/its/PedestrianBicycleDetect.c +++ b/vanetza/asn1/its1/PedestrianBicycleDetect.c @@ -31,6 +31,9 @@ asn_TYPE_descriptor_t asn_DEF_PedestrianBicycleDetect = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ BOOLEAN_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/PedestrianBicycleDetect.h b/vanetza/asn1/its1/PedestrianBicycleDetect.h similarity index 100% rename from vanetza/asn1/its/PedestrianBicycleDetect.h rename to vanetza/asn1/its1/PedestrianBicycleDetect.h diff --git a/vanetza/asn1/its1/PerceivedObject.c b/vanetza/asn1/its1/PerceivedObject.c new file mode 100644 index 000000000..713cf8e2e --- /dev/null +++ b/vanetza/asn1/its1/PerceivedObject.c @@ -0,0 +1,561 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TR103562v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PerceivedObject.h" + +static int asn_DFL_6_cmp_0(const void *sptr) { + const ObjectConfidence_t *st = sptr; + + if(!st) { + return -1; /* No value is not a default value */ + } + + /* Test default value 0 */ + return (*st != 0); +} +static int asn_DFL_6_set_0(void **sptr) { + ObjectConfidence_t *st = *sptr; + + if(!st) { + st = (*sptr = CALLOC(1, sizeof(*st))); + if(!st) return -1; + } + + /* Install default value 0 */ + *st = 0; + return 0; +} +static int asn_DFL_20_cmp_0(const void *sptr) { + const ObjectRefPoint_t *st = sptr; + + if(!st) { + return -1; /* No value is not a default value */ + } + + /* Test default value 0 */ + return (*st != 0); +} +static int asn_DFL_20_set_0(void **sptr) { + ObjectRefPoint_t *st = *sptr; + + if(!st) { + st = (*sptr = CALLOC(1, sizeof(*st))); + if(!st) return -1; + } + + /* Install default value 0 */ + *st = 0; + return 0; +} +asn_TYPE_member_t asn_MBR_PerceivedObject_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PerceivedObject, objectID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "objectID" + }, + { ATF_POINTER, 1, offsetof(struct PerceivedObject, sensorIDList), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SensorIdList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sensorIDList" + }, + { ATF_NOFLAGS, 0, offsetof(struct PerceivedObject, timeOfMeasurement), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TimeOfMeasurement, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "timeOfMeasurement" + }, + { ATF_POINTER, 2, offsetof(struct PerceivedObject, objectAge), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ObjectAge, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "objectAge" + }, + { ATF_NOFLAGS, 1, offsetof(struct PerceivedObject, objectConfidence), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ObjectConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + &asn_DFL_6_cmp_0, /* Compare DEFAULT 0 */ + &asn_DFL_6_set_0, /* Set DEFAULT 0 */ + "objectConfidence" + }, + { ATF_NOFLAGS, 0, offsetof(struct PerceivedObject, xDistance), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ObjectDistanceWithConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "xDistance" + }, + { ATF_NOFLAGS, 0, offsetof(struct PerceivedObject, yDistance), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ObjectDistanceWithConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "yDistance" + }, + { ATF_POINTER, 1, offsetof(struct PerceivedObject, zDistance), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ObjectDistanceWithConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "zDistance" + }, + { ATF_NOFLAGS, 0, offsetof(struct PerceivedObject, xSpeed), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SpeedExtended, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "xSpeed" + }, + { ATF_NOFLAGS, 0, offsetof(struct PerceivedObject, ySpeed), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SpeedExtended, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ySpeed" + }, + { ATF_POINTER, 12, offsetof(struct PerceivedObject, zSpeed), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SpeedExtended, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "zSpeed" + }, + { ATF_POINTER, 11, offsetof(struct PerceivedObject, xAcceleration), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LongitudinalAcceleration, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "xAcceleration" + }, + { ATF_POINTER, 10, offsetof(struct PerceivedObject, yAcceleration), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LateralAcceleration, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "yAcceleration" + }, + { ATF_POINTER, 9, offsetof(struct PerceivedObject, zAcceleration), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VerticalAcceleration, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "zAcceleration" + }, + { ATF_POINTER, 8, offsetof(struct PerceivedObject, yawAngle), + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianAngle, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "yawAngle" + }, + { ATF_POINTER, 7, offsetof(struct PerceivedObject, planarObjectDimension1), + (ASN_TAG_CLASS_CONTEXT | (15 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ObjectDimension, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "planarObjectDimension1" + }, + { ATF_POINTER, 6, offsetof(struct PerceivedObject, planarObjectDimension2), + (ASN_TAG_CLASS_CONTEXT | (16 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ObjectDimension, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "planarObjectDimension2" + }, + { ATF_POINTER, 5, offsetof(struct PerceivedObject, verticalObjectDimension), + (ASN_TAG_CLASS_CONTEXT | (17 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ObjectDimension, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "verticalObjectDimension" + }, + { ATF_NOFLAGS, 4, offsetof(struct PerceivedObject, objectRefPoint), + (ASN_TAG_CLASS_CONTEXT | (18 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ObjectRefPoint, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + &asn_DFL_20_cmp_0, /* Compare DEFAULT 0 */ + &asn_DFL_20_set_0, /* Set DEFAULT 0 */ + "objectRefPoint" + }, + { ATF_POINTER, 3, offsetof(struct PerceivedObject, dynamicStatus), + (ASN_TAG_CLASS_CONTEXT | (19 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DynamicStatus, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dynamicStatus" + }, + { ATF_POINTER, 2, offsetof(struct PerceivedObject, classification), + (ASN_TAG_CLASS_CONTEXT | (20 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ObjectClassDescription, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "classification" + }, + { ATF_POINTER, 1, offsetof(struct PerceivedObject, matchedPosition), + (ASN_TAG_CLASS_CONTEXT | (21 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MatchedPosition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "matchedPosition" + }, +}; +static const int asn_MAP_PerceivedObject_oms_1[] = { 1, 3, 4, 7, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 }; +static const ber_tlv_tag_t asn_DEF_PerceivedObject_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PerceivedObject_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* objectID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sensorIDList */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* timeOfMeasurement */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* objectAge */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* objectConfidence */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* xDistance */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* yDistance */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* zDistance */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* xSpeed */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* ySpeed */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* zSpeed */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* xAcceleration */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* yAcceleration */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* zAcceleration */ + { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* yawAngle */ + { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 }, /* planarObjectDimension1 */ + { (ASN_TAG_CLASS_CONTEXT | (16 << 2)), 16, 0, 0 }, /* planarObjectDimension2 */ + { (ASN_TAG_CLASS_CONTEXT | (17 << 2)), 17, 0, 0 }, /* verticalObjectDimension */ + { (ASN_TAG_CLASS_CONTEXT | (18 << 2)), 18, 0, 0 }, /* objectRefPoint */ + { (ASN_TAG_CLASS_CONTEXT | (19 << 2)), 19, 0, 0 }, /* dynamicStatus */ + { (ASN_TAG_CLASS_CONTEXT | (20 << 2)), 20, 0, 0 }, /* classification */ + { (ASN_TAG_CLASS_CONTEXT | (21 << 2)), 21, 0, 0 } /* matchedPosition */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PerceivedObject_specs_1 = { + sizeof(struct PerceivedObject), + offsetof(struct PerceivedObject, _asn_ctx), + asn_MAP_PerceivedObject_tag2el_1, + 22, /* Count of tags in the map */ + asn_MAP_PerceivedObject_oms_1, /* Optional members */ + 16, 0, /* Root/Additions */ + 22, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PerceivedObject = { + "PerceivedObject", + "PerceivedObject", + &asn_OP_SEQUENCE, + asn_DEF_PerceivedObject_tags_1, + sizeof(asn_DEF_PerceivedObject_tags_1) + /sizeof(asn_DEF_PerceivedObject_tags_1[0]), /* 1 */ + asn_DEF_PerceivedObject_tags_1, /* Same as above */ + sizeof(asn_DEF_PerceivedObject_tags_1) + /sizeof(asn_DEF_PerceivedObject_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PerceivedObject_1, + 22, /* Elements count */ + &asn_SPC_PerceivedObject_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/PerceivedObject.h b/vanetza/asn1/its1/PerceivedObject.h similarity index 100% rename from vanetza/asn1/its/PerceivedObject.h rename to vanetza/asn1/its1/PerceivedObject.h diff --git a/vanetza/asn1/its1/PerceivedObjectContainer.c b/vanetza/asn1/its1/PerceivedObjectContainer.c new file mode 100644 index 000000000..dbdadf651 --- /dev/null +++ b/vanetza/asn1/its1/PerceivedObjectContainer.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TR103562v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PerceivedObjectContainer.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PerceivedObjectContainer_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PerceivedObjectContainer_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 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_PerceivedObjectContainer_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_PerceivedObject, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_PerceivedObjectContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_PerceivedObjectContainer_specs_1 = { + sizeof(struct PerceivedObjectContainer), + offsetof(struct PerceivedObjectContainer, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_PerceivedObjectContainer = { + "PerceivedObjectContainer", + "PerceivedObjectContainer", + &asn_OP_SEQUENCE_OF, + asn_DEF_PerceivedObjectContainer_tags_1, + sizeof(asn_DEF_PerceivedObjectContainer_tags_1) + /sizeof(asn_DEF_PerceivedObjectContainer_tags_1[0]), /* 1 */ + asn_DEF_PerceivedObjectContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_PerceivedObjectContainer_tags_1) + /sizeof(asn_DEF_PerceivedObjectContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PerceivedObjectContainer_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PerceivedObjectContainer_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_PerceivedObjectContainer_1, + 1, /* Single element */ + &asn_SPC_PerceivedObjectContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/PerceivedObjectContainer.h b/vanetza/asn1/its1/PerceivedObjectContainer.h similarity index 100% rename from vanetza/asn1/its/PerceivedObjectContainer.h rename to vanetza/asn1/its1/PerceivedObjectContainer.h diff --git a/vanetza/asn1/its/PerceivedObjectContainerSegmentInfo.c b/vanetza/asn1/its1/PerceivedObjectContainerSegmentInfo.c similarity index 91% rename from vanetza/asn1/its/PerceivedObjectContainerSegmentInfo.c rename to vanetza/asn1/its1/PerceivedObjectContainerSegmentInfo.c index f215d7209..1c2a75c5e 100644 --- a/vanetza/asn1/its/PerceivedObjectContainerSegmentInfo.c +++ b/vanetza/asn1/its1/PerceivedObjectContainerSegmentInfo.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_PerceivedObjectContainerSegmentInfo_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_PerceivedObjectContainerSegmentInfo_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_PerceivedObjectContainerSegmentInfo = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_PerceivedObjectContainerSegmentInfo_1, diff --git a/vanetza/asn1/its/PerceivedObjectContainerSegmentInfo.h b/vanetza/asn1/its1/PerceivedObjectContainerSegmentInfo.h similarity index 100% rename from vanetza/asn1/its/PerceivedObjectContainerSegmentInfo.h rename to vanetza/asn1/its1/PerceivedObjectContainerSegmentInfo.h diff --git a/vanetza/asn1/its1/PerformanceClass.c b/vanetza/asn1/its1/PerformanceClass.c new file mode 100644 index 000000000..1e4a01bfd --- /dev/null +++ b/vanetza/asn1/its1/PerformanceClass.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PerformanceClass.h" + +int +PerformanceClass_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PerformanceClass_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..7) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PerformanceClass_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_PerformanceClass_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_PerformanceClass = { + "PerformanceClass", + "PerformanceClass", + &asn_OP_NativeInteger, + asn_DEF_PerformanceClass_tags_1, + sizeof(asn_DEF_PerformanceClass_tags_1) + /sizeof(asn_DEF_PerformanceClass_tags_1[0]), /* 1 */ + asn_DEF_PerformanceClass_tags_1, /* Same as above */ + sizeof(asn_DEF_PerformanceClass_tags_1) + /sizeof(asn_DEF_PerformanceClass_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PerformanceClass_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PerformanceClass_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + PerformanceClass_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/PerformanceClass.h b/vanetza/asn1/its1/PerformanceClass.h similarity index 100% rename from vanetza/asn1/its/PerformanceClass.h rename to vanetza/asn1/its1/PerformanceClass.h diff --git a/vanetza/asn1/its/PersonSubclass.c b/vanetza/asn1/its1/PersonSubclass.c similarity index 93% rename from vanetza/asn1/its/PersonSubclass.c rename to vanetza/asn1/its1/PersonSubclass.c index 7b40f6101..993a4f6ed 100644 --- a/vanetza/asn1/its/PersonSubclass.c +++ b/vanetza/asn1/its1/PersonSubclass.c @@ -64,6 +64,9 @@ asn_TYPE_member_t asn_MBR_PersonSubclass_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, &asn_DFL_2_cmp_0, /* Compare DEFAULT 0 */ @@ -82,6 +85,9 @@ asn_TYPE_member_t asn_MBR_PersonSubclass_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, &asn_DFL_3_cmp_0, /* Compare DEFAULT 0 */ @@ -123,6 +129,9 @@ asn_TYPE_descriptor_t asn_DEF_PersonSubclass = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_PersonSubclass_1, diff --git a/vanetza/asn1/its/PersonSubclass.h b/vanetza/asn1/its1/PersonSubclass.h similarity index 100% rename from vanetza/asn1/its/PersonSubclass.h rename to vanetza/asn1/its1/PersonSubclass.h diff --git a/vanetza/asn1/its/PersonSubclassType.c b/vanetza/asn1/its1/PersonSubclassType.c similarity index 96% rename from vanetza/asn1/its/PersonSubclassType.c rename to vanetza/asn1/its1/PersonSubclassType.c index 2769eacc9..c3d72969a 100644 --- a/vanetza/asn1/its/PersonSubclassType.c +++ b/vanetza/asn1/its1/PersonSubclassType.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_PersonSubclassType = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_PersonSubclassType_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ PersonSubclassType_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/PersonSubclassType.h b/vanetza/asn1/its1/PersonSubclassType.h similarity index 100% rename from vanetza/asn1/its/PersonSubclassType.h rename to vanetza/asn1/its1/PersonSubclassType.h diff --git a/vanetza/asn1/its/PersonalAccountNumber.c b/vanetza/asn1/its1/PersonalAccountNumber.c similarity index 96% rename from vanetza/asn1/its/PersonalAccountNumber.c rename to vanetza/asn1/its1/PersonalAccountNumber.c index 6cd81d3d9..a9e1e2e01 100644 --- a/vanetza/asn1/its/PersonalAccountNumber.c +++ b/vanetza/asn1/its1/PersonalAccountNumber.c @@ -69,6 +69,9 @@ asn_TYPE_descriptor_t asn_DEF_PersonalAccountNumber = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_PersonalAccountNumber_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ PersonalAccountNumber_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/PersonalAccountNumber.h b/vanetza/asn1/its1/PersonalAccountNumber.h similarity index 100% rename from vanetza/asn1/its/PersonalAccountNumber.h rename to vanetza/asn1/its1/PersonalAccountNumber.h diff --git a/vanetza/asn1/its1/PhoneNumber.c b/vanetza/asn1/its1/PhoneNumber.c new file mode 100644 index 000000000..0f1f16648 --- /dev/null +++ b/vanetza/asn1/its1/PhoneNumber.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PhoneNumber.h" + +static const int permitted_alphabet_table_1[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, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* . */ + 2, 3, 4, 5, 6, 7, 8, 9,10,11, 0, 0, 0, 0, 0, 0, /* 0123456789 */ +}; +static const int permitted_alphabet_code2value_1[11] = { +32,48,49,50,51,52,53,54,55,56,57,}; + + +static int check_permitted_alphabet_1(const void *sptr) { + const int *table = permitted_alphabet_table_1; + /* The underlying type is NumericString */ + const NumericString_t *st = (const NumericString_t *)sptr; + const uint8_t *ch = st->buf; + const uint8_t *end = ch + st->size; + + for(; ch < end; ch++) { + uint8_t cv = *ch; + if(!table[cv]) return -1; + } + return 0; +} + +int +PhoneNumber_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; + 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 <= 16UL) + && !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; + } +} + +static int asn_PER_MAP_PhoneNumber_1_v2c(unsigned int value) { + if(value >= sizeof(permitted_alphabet_table_1)/sizeof(permitted_alphabet_table_1[0])) + return -1; + return permitted_alphabet_table_1[value] - 1; +} +static int asn_PER_MAP_PhoneNumber_1_c2v(unsigned int code) { + if(code >= sizeof(permitted_alphabet_code2value_1)/sizeof(permitted_alphabet_code2value_1[0])) + return -1; + return permitted_alphabet_code2value_1[code]; +} +/* + * This type is implemented using NumericString, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PhoneNumber_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..16)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PhoneNumber_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 32, 57 } /* (32..57) */, + { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, + asn_PER_MAP_PhoneNumber_1_v2c, /* Value to PER code map */ + asn_PER_MAP_PhoneNumber_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_PhoneNumber_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (18 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_PhoneNumber = { + "PhoneNumber", + "PhoneNumber", + &asn_OP_NumericString, + asn_DEF_PhoneNumber_tags_1, + sizeof(asn_DEF_PhoneNumber_tags_1) + /sizeof(asn_DEF_PhoneNumber_tags_1[0]), /* 1 */ + asn_DEF_PhoneNumber_tags_1, /* Same as above */ + sizeof(asn_DEF_PhoneNumber_tags_1) + /sizeof(asn_DEF_PhoneNumber_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PhoneNumber_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PhoneNumber_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + PhoneNumber_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/PhoneNumber.h b/vanetza/asn1/its1/PhoneNumber.h similarity index 100% rename from vanetza/asn1/its/PhoneNumber.h rename to vanetza/asn1/its1/PhoneNumber.h diff --git a/vanetza/asn1/its/PlatooningRule.c b/vanetza/asn1/its1/PlatooningRule.c similarity index 88% rename from vanetza/asn1/its/PlatooningRule.c rename to vanetza/asn1/its1/PlatooningRule.c index 1938580a2..5eca35910 100644 --- a/vanetza/asn1/its/PlatooningRule.c +++ b/vanetza/asn1/its1/PlatooningRule.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_PlatooningRule_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_PlatooningRule_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_PlatooningRule_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -71,6 +80,9 @@ asn_TYPE_member_t asn_MBR_PlatooningRule_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -88,6 +100,9 @@ asn_TYPE_member_t asn_MBR_PlatooningRule_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -105,6 +120,9 @@ asn_TYPE_member_t asn_MBR_PlatooningRule_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -122,6 +140,9 @@ asn_TYPE_member_t asn_MBR_PlatooningRule_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -139,6 +160,9 @@ asn_TYPE_member_t asn_MBR_PlatooningRule_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -156,6 +180,9 @@ asn_TYPE_member_t asn_MBR_PlatooningRule_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -173,6 +200,9 @@ asn_TYPE_member_t asn_MBR_PlatooningRule_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -221,6 +251,9 @@ asn_TYPE_descriptor_t asn_DEF_PlatooningRule = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_PlatooningRule_1, diff --git a/vanetza/asn1/its/PlatooningRule.h b/vanetza/asn1/its1/PlatooningRule.h similarity index 100% rename from vanetza/asn1/its/PlatooningRule.h rename to vanetza/asn1/its1/PlatooningRule.h diff --git a/vanetza/asn1/its/PlatooningRules.c b/vanetza/asn1/its1/PlatooningRules.c similarity index 92% rename from vanetza/asn1/its/PlatooningRules.c rename to vanetza/asn1/its1/PlatooningRules.c index 75278f548..5505a3f21 100644 --- a/vanetza/asn1/its/PlatooningRules.c +++ b/vanetza/asn1/its1/PlatooningRules.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_PlatooningRules_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_PlatooningRules = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_PlatooningRules_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_PlatooningRules_1, diff --git a/vanetza/asn1/its/PlatooningRules.h b/vanetza/asn1/its1/PlatooningRules.h similarity index 100% rename from vanetza/asn1/its/PlatooningRules.h rename to vanetza/asn1/its1/PlatooningRules.h diff --git a/vanetza/asn1/its/PolyPointList.c b/vanetza/asn1/its1/PolyPointList.c similarity index 92% rename from vanetza/asn1/its/PolyPointList.c rename to vanetza/asn1/its1/PolyPointList.c index 608841b4f..4c8849ebf 100644 --- a/vanetza/asn1/its/PolyPointList.c +++ b/vanetza/asn1/its1/PolyPointList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_PolyPointList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_PolyPointList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_PolyPointList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_PolyPointList_1, diff --git a/vanetza/asn1/its/PolyPointList.h b/vanetza/asn1/its1/PolyPointList.h similarity index 100% rename from vanetza/asn1/its/PolyPointList.h rename to vanetza/asn1/its1/PolyPointList.h diff --git a/vanetza/asn1/its/PolygonalLine.c b/vanetza/asn1/its1/PolygonalLine.c similarity index 90% rename from vanetza/asn1/its/PolygonalLine.c rename to vanetza/asn1/its1/PolygonalLine.c index 80dbf4fe3..3b6f120bc 100644 --- a/vanetza/asn1/its/PolygonalLine.c +++ b/vanetza/asn1/its1/PolygonalLine.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_PolygonalLine_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_PolygonalLine_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -66,6 +72,9 @@ asn_TYPE_member_t asn_MBR_PolygonalLine_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -83,6 +92,9 @@ asn_TYPE_member_t asn_MBR_PolygonalLine_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -120,6 +132,9 @@ asn_TYPE_descriptor_t asn_DEF_PolygonalLine = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_PolygonalLine_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_PolygonalLine_1, diff --git a/vanetza/asn1/its/PolygonalLine.h b/vanetza/asn1/its1/PolygonalLine.h similarity index 100% rename from vanetza/asn1/its/PolygonalLine.h rename to vanetza/asn1/its1/PolygonalLine.h diff --git a/vanetza/asn1/its1/PosCentMass.c b/vanetza/asn1/its1/PosCentMass.c new file mode 100644 index 000000000..809bf4d59 --- /dev/null +++ b/vanetza/asn1/its1/PosCentMass.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PosCentMass.h" + +int +PosCentMass_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 <= 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PosCentMass_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..63) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PosCentMass_constr_1 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 ber_tlv_tag_t asn_DEF_PosCentMass_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_PosCentMass = { + "PosCentMass", + "PosCentMass", + &asn_OP_NativeInteger, + asn_DEF_PosCentMass_tags_1, + sizeof(asn_DEF_PosCentMass_tags_1) + /sizeof(asn_DEF_PosCentMass_tags_1[0]), /* 1 */ + asn_DEF_PosCentMass_tags_1, /* Same as above */ + sizeof(asn_DEF_PosCentMass_tags_1) + /sizeof(asn_DEF_PosCentMass_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PosCentMass_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PosCentMass_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + PosCentMass_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/PosCentMass.h b/vanetza/asn1/its1/PosCentMass.h similarity index 100% rename from vanetza/asn1/its/PosCentMass.h rename to vanetza/asn1/its1/PosCentMass.h diff --git a/vanetza/asn1/its1/PosConfidenceEllipse.c b/vanetza/asn1/its1/PosConfidenceEllipse.c new file mode 100644 index 000000000..afe2ae795 --- /dev/null +++ b/vanetza/asn1/its1/PosConfidenceEllipse.c @@ -0,0 +1,114 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PosConfidenceEllipse.h" + +asn_TYPE_member_t asn_MBR_PosConfidenceEllipse_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PosConfidenceEllipse, semiMajorConfidence), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SemiAxisLength, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "semiMajorConfidence" + }, + { ATF_NOFLAGS, 0, offsetof(struct PosConfidenceEllipse, semiMinorConfidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SemiAxisLength, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "semiMinorConfidence" + }, + { ATF_NOFLAGS, 0, offsetof(struct PosConfidenceEllipse, semiMajorOrientation), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HeadingValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "semiMajorOrientation" + }, +}; +static const ber_tlv_tag_t asn_DEF_PosConfidenceEllipse_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PosConfidenceEllipse_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* semiMajorConfidence */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* semiMinorConfidence */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* semiMajorOrientation */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PosConfidenceEllipse_specs_1 = { + sizeof(struct PosConfidenceEllipse), + offsetof(struct PosConfidenceEllipse, _asn_ctx), + asn_MAP_PosConfidenceEllipse_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_PosConfidenceEllipse = { + "PosConfidenceEllipse", + "PosConfidenceEllipse", + &asn_OP_SEQUENCE, + asn_DEF_PosConfidenceEllipse_tags_1, + sizeof(asn_DEF_PosConfidenceEllipse_tags_1) + /sizeof(asn_DEF_PosConfidenceEllipse_tags_1[0]), /* 1 */ + asn_DEF_PosConfidenceEllipse_tags_1, /* Same as above */ + sizeof(asn_DEF_PosConfidenceEllipse_tags_1) + /sizeof(asn_DEF_PosConfidenceEllipse_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PosConfidenceEllipse_1, + 3, /* Elements count */ + &asn_SPC_PosConfidenceEllipse_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/PosConfidenceEllipse.h b/vanetza/asn1/its1/PosConfidenceEllipse.h similarity index 100% rename from vanetza/asn1/its/PosConfidenceEllipse.h rename to vanetza/asn1/its1/PosConfidenceEllipse.h diff --git a/vanetza/asn1/its1/PosFrontAx.c b/vanetza/asn1/its1/PosFrontAx.c new file mode 100644 index 000000000..05c084c04 --- /dev/null +++ b/vanetza/asn1/its1/PosFrontAx.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PosFrontAx.h" + +int +PosFrontAx_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 <= 20L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PosFrontAx_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..20) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PosFrontAx_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 1, 20 } /* (1..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 ber_tlv_tag_t asn_DEF_PosFrontAx_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_PosFrontAx = { + "PosFrontAx", + "PosFrontAx", + &asn_OP_NativeInteger, + asn_DEF_PosFrontAx_tags_1, + sizeof(asn_DEF_PosFrontAx_tags_1) + /sizeof(asn_DEF_PosFrontAx_tags_1[0]), /* 1 */ + asn_DEF_PosFrontAx_tags_1, /* Same as above */ + sizeof(asn_DEF_PosFrontAx_tags_1) + /sizeof(asn_DEF_PosFrontAx_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PosFrontAx_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PosFrontAx_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + PosFrontAx_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/PosFrontAx.h b/vanetza/asn1/its1/PosFrontAx.h similarity index 100% rename from vanetza/asn1/its/PosFrontAx.h rename to vanetza/asn1/its1/PosFrontAx.h diff --git a/vanetza/asn1/its1/PosLonCarr.c b/vanetza/asn1/its1/PosLonCarr.c new file mode 100644 index 000000000..b7aaa4e29 --- /dev/null +++ b/vanetza/asn1/its1/PosLonCarr.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PosLonCarr.h" + +int +PosLonCarr_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 <= 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PosLonCarr_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..127) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PosLonCarr_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 1, 127 } /* (1..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_PosLonCarr_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_PosLonCarr = { + "PosLonCarr", + "PosLonCarr", + &asn_OP_NativeInteger, + asn_DEF_PosLonCarr_tags_1, + sizeof(asn_DEF_PosLonCarr_tags_1) + /sizeof(asn_DEF_PosLonCarr_tags_1[0]), /* 1 */ + asn_DEF_PosLonCarr_tags_1, /* Same as above */ + sizeof(asn_DEF_PosLonCarr_tags_1) + /sizeof(asn_DEF_PosLonCarr_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PosLonCarr_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PosLonCarr_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + PosLonCarr_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/PosLonCarr.h b/vanetza/asn1/its1/PosLonCarr.h similarity index 100% rename from vanetza/asn1/its/PosLonCarr.h rename to vanetza/asn1/its1/PosLonCarr.h diff --git a/vanetza/asn1/its1/PosPillar.c b/vanetza/asn1/its1/PosPillar.c new file mode 100644 index 000000000..f4b2fd6ab --- /dev/null +++ b/vanetza/asn1/its1/PosPillar.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PosPillar.h" + +int +PosPillar_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 <= 30L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PosPillar_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..30) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PosPillar_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 1, 30 } /* (1..30) */, + { 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_PosPillar_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_PosPillar = { + "PosPillar", + "PosPillar", + &asn_OP_NativeInteger, + asn_DEF_PosPillar_tags_1, + sizeof(asn_DEF_PosPillar_tags_1) + /sizeof(asn_DEF_PosPillar_tags_1[0]), /* 1 */ + asn_DEF_PosPillar_tags_1, /* Same as above */ + sizeof(asn_DEF_PosPillar_tags_1) + /sizeof(asn_DEF_PosPillar_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PosPillar_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PosPillar_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + PosPillar_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/PosPillar.h b/vanetza/asn1/its1/PosPillar.h similarity index 100% rename from vanetza/asn1/its/PosPillar.h rename to vanetza/asn1/its1/PosPillar.h diff --git a/vanetza/asn1/its/Position3D-addGrpC.c b/vanetza/asn1/its1/Position3D-addGrpC.c similarity index 92% rename from vanetza/asn1/its/Position3D-addGrpC.c rename to vanetza/asn1/its1/Position3D-addGrpC.c index 7fd4e52d1..ba5f36a39 100644 --- a/vanetza/asn1/its/Position3D-addGrpC.c +++ b/vanetza/asn1/its1/Position3D-addGrpC.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Position3D_addGrpC_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -57,6 +60,9 @@ asn_TYPE_descriptor_t asn_DEF_Position3D_addGrpC = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Position3D_addGrpC_1, diff --git a/vanetza/asn1/its/Position3D-addGrpC.h b/vanetza/asn1/its1/Position3D-addGrpC.h similarity index 100% rename from vanetza/asn1/its/Position3D-addGrpC.h rename to vanetza/asn1/its1/Position3D-addGrpC.h diff --git a/vanetza/asn1/its/Position3D.c b/vanetza/asn1/its1/Position3D.c similarity index 91% rename from vanetza/asn1/its/Position3D.c rename to vanetza/asn1/its1/Position3D.c index f650c83bf..c29c6b358 100644 --- a/vanetza/asn1/its/Position3D.c +++ b/vanetza/asn1/its1/Position3D.c @@ -70,6 +70,9 @@ static asn_TYPE_member_t asn_MBR_regional_5[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -103,6 +106,9 @@ asn_TYPE_descriptor_t asn_DEF_regional_5 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_regional_constr_5, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_regional_5, @@ -123,6 +129,9 @@ asn_TYPE_member_t asn_MBR_Position3D_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -140,6 +149,9 @@ asn_TYPE_member_t asn_MBR_Position3D_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -157,6 +169,9 @@ asn_TYPE_member_t asn_MBR_Position3D_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -174,6 +189,9 @@ asn_TYPE_member_t asn_MBR_Position3D_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regional_constr_5, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regional_constraint_1 }, 0, 0, /* No default value */ @@ -216,6 +234,9 @@ asn_TYPE_descriptor_t asn_DEF_Position3D = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Position3D_1, diff --git a/vanetza/asn1/its/Position3D.h b/vanetza/asn1/its1/Position3D.h similarity index 100% rename from vanetza/asn1/its/Position3D.h rename to vanetza/asn1/its1/Position3D.h diff --git a/vanetza/asn1/its/PositionConfidence.c b/vanetza/asn1/its1/PositionConfidence.c similarity index 97% rename from vanetza/asn1/its/PositionConfidence.c rename to vanetza/asn1/its1/PositionConfidence.c index a3ee8dd90..98b79c32b 100644 --- a/vanetza/asn1/its/PositionConfidence.c +++ b/vanetza/asn1/its1/PositionConfidence.c @@ -88,6 +88,9 @@ asn_TYPE_descriptor_t asn_DEF_PositionConfidence = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_PositionConfidence_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/PositionConfidence.h b/vanetza/asn1/its1/PositionConfidence.h similarity index 100% rename from vanetza/asn1/its/PositionConfidence.h rename to vanetza/asn1/its1/PositionConfidence.h diff --git a/vanetza/asn1/its/PositionConfidenceSet.c b/vanetza/asn1/its1/PositionConfidenceSet.c similarity index 91% rename from vanetza/asn1/its/PositionConfidenceSet.c rename to vanetza/asn1/its1/PositionConfidenceSet.c index 40f75824e..d539f6b13 100644 --- a/vanetza/asn1/its/PositionConfidenceSet.c +++ b/vanetza/asn1/its1/PositionConfidenceSet.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_PositionConfidenceSet_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_PositionConfidenceSet_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_PositionConfidenceSet = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_PositionConfidenceSet_1, diff --git a/vanetza/asn1/its/PositionConfidenceSet.h b/vanetza/asn1/its1/PositionConfidenceSet.h similarity index 100% rename from vanetza/asn1/its/PositionConfidenceSet.h rename to vanetza/asn1/its1/PositionConfidenceSet.h diff --git a/vanetza/asn1/its1/PositionOfOccupants.c b/vanetza/asn1/its1/PositionOfOccupants.c new file mode 100644 index 000000000..ac90b7f13 --- /dev/null +++ b/vanetza/asn1/its1/PositionOfOccupants.c @@ -0,0 +1,89 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PositionOfOccupants.h" + +int +PositionOfOccupants_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 == 20UL)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PositionOfOccupants_constr_1 CC_NOTUSED = { + { 0, 0 }, + 20 /* (SIZE(20..20)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PositionOfOccupants_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 20, 20 } /* (SIZE(20..20)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_PositionOfOccupants_constr_1 CC_NOTUSED = { + 20}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_PositionOfOccupants_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_PositionOfOccupants = { + "PositionOfOccupants", + "PositionOfOccupants", + &asn_OP_BIT_STRING, + asn_DEF_PositionOfOccupants_tags_1, + sizeof(asn_DEF_PositionOfOccupants_tags_1) + /sizeof(asn_DEF_PositionOfOccupants_tags_1[0]), /* 1 */ + asn_DEF_PositionOfOccupants_tags_1, /* Same as above */ + sizeof(asn_DEF_PositionOfOccupants_tags_1) + /sizeof(asn_DEF_PositionOfOccupants_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PositionOfOccupants_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PositionOfOccupants_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_PositionOfOccupants_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + PositionOfOccupants_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/PositionOfOccupants.h b/vanetza/asn1/its1/PositionOfOccupants.h similarity index 100% rename from vanetza/asn1/its/PositionOfOccupants.h rename to vanetza/asn1/its1/PositionOfOccupants.h diff --git a/vanetza/asn1/its1/PositionOfPillars.c b/vanetza/asn1/its1/PositionOfPillars.c new file mode 100644 index 000000000..c8c169b3a --- /dev/null +++ b/vanetza/asn1/its1/PositionOfPillars.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PositionOfPillars.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PositionOfPillars_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PositionOfPillars_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 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_PositionOfPillars_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_PosPillar, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_PositionOfPillars_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_PositionOfPillars_specs_1 = { + sizeof(struct PositionOfPillars), + offsetof(struct PositionOfPillars, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_PositionOfPillars = { + "PositionOfPillars", + "PositionOfPillars", + &asn_OP_SEQUENCE_OF, + asn_DEF_PositionOfPillars_tags_1, + sizeof(asn_DEF_PositionOfPillars_tags_1) + /sizeof(asn_DEF_PositionOfPillars_tags_1[0]), /* 1 */ + asn_DEF_PositionOfPillars_tags_1, /* Same as above */ + sizeof(asn_DEF_PositionOfPillars_tags_1) + /sizeof(asn_DEF_PositionOfPillars_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PositionOfPillars_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PositionOfPillars_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_PositionOfPillars_1, + 1, /* Single element */ + &asn_SPC_PositionOfPillars_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/PositionOfPillars.h b/vanetza/asn1/its1/PositionOfPillars.h similarity index 100% rename from vanetza/asn1/its/PositionOfPillars.h rename to vanetza/asn1/its1/PositionOfPillars.h diff --git a/vanetza/asn1/its/PositionalAccuracy.c b/vanetza/asn1/its1/PositionalAccuracy.c similarity index 90% rename from vanetza/asn1/its/PositionalAccuracy.c rename to vanetza/asn1/its1/PositionalAccuracy.c index c0a20f256..4f061ccd0 100644 --- a/vanetza/asn1/its/PositionalAccuracy.c +++ b/vanetza/asn1/its1/PositionalAccuracy.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_PositionalAccuracy_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_PositionalAccuracy_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_PositionalAccuracy_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -93,6 +102,9 @@ asn_TYPE_descriptor_t asn_DEF_PositionalAccuracy = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_PositionalAccuracy_1, diff --git a/vanetza/asn1/its/PositionalAccuracy.h b/vanetza/asn1/its1/PositionalAccuracy.h similarity index 100% rename from vanetza/asn1/its/PositionalAccuracy.h rename to vanetza/asn1/its1/PositionalAccuracy.h diff --git a/vanetza/asn1/its1/PositioningSolutionType.c b/vanetza/asn1/its1/PositioningSolutionType.c new file mode 100644 index 000000000..fe7805de3 --- /dev/null +++ b/vanetza/asn1/its1/PositioningSolutionType.c @@ -0,0 +1,81 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PositioningSolutionType.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PositioningSolutionType_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PositioningSolutionType_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) */ +static const asn_INTEGER_enum_map_t asn_MAP_PositioningSolutionType_value2enum_1[] = { + { 0, 21, "noPositioningSolution" }, + { 1, 5, "sGNSS" }, + { 2, 5, "dGNSS" }, + { 3, 11, "sGNSSplusDR" }, + { 4, 11, "dGNSSplusDR" }, + { 5, 2, "dR" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_PositioningSolutionType_enum2value_1[] = { + 2, /* dGNSS(2) */ + 4, /* dGNSSplusDR(4) */ + 5, /* dR(5) */ + 0, /* noPositioningSolution(0) */ + 1, /* sGNSS(1) */ + 3 /* sGNSSplusDR(3) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_PositioningSolutionType_specs_1 = { + asn_MAP_PositioningSolutionType_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_PositioningSolutionType_enum2value_1, /* 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_PositioningSolutionType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_PositioningSolutionType = { + "PositioningSolutionType", + "PositioningSolutionType", + &asn_OP_NativeEnumerated, + asn_DEF_PositioningSolutionType_tags_1, + sizeof(asn_DEF_PositioningSolutionType_tags_1) + /sizeof(asn_DEF_PositioningSolutionType_tags_1[0]), /* 1 */ + asn_DEF_PositioningSolutionType_tags_1, /* Same as above */ + sizeof(asn_DEF_PositioningSolutionType_tags_1) + /sizeof(asn_DEF_PositioningSolutionType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PositioningSolutionType_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PositioningSolutionType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_PositioningSolutionType_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/PositioningSolutionType.h b/vanetza/asn1/its1/PositioningSolutionType.h similarity index 100% rename from vanetza/asn1/its/PositioningSolutionType.h rename to vanetza/asn1/its1/PositioningSolutionType.h diff --git a/vanetza/asn1/its1/PostCrashSubCauseCode.c b/vanetza/asn1/its1/PostCrashSubCauseCode.c new file mode 100644 index 000000000..65619aa6f --- /dev/null +++ b/vanetza/asn1/its1/PostCrashSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PostCrashSubCauseCode.h" + +int +PostCrashSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PostCrashSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_PostCrashSubCauseCode_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_PostCrashSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_PostCrashSubCauseCode = { + "PostCrashSubCauseCode", + "PostCrashSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_PostCrashSubCauseCode_tags_1, + sizeof(asn_DEF_PostCrashSubCauseCode_tags_1) + /sizeof(asn_DEF_PostCrashSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_PostCrashSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_PostCrashSubCauseCode_tags_1) + /sizeof(asn_DEF_PostCrashSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PostCrashSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PostCrashSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + PostCrashSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/PostCrashSubCauseCode.h b/vanetza/asn1/its1/PostCrashSubCauseCode.h similarity index 100% rename from vanetza/asn1/its/PostCrashSubCauseCode.h rename to vanetza/asn1/its1/PostCrashSubCauseCode.h diff --git a/vanetza/asn1/its/PreemptPriorityList.c b/vanetza/asn1/its1/PreemptPriorityList.c similarity index 93% rename from vanetza/asn1/its/PreemptPriorityList.c rename to vanetza/asn1/its1/PreemptPriorityList.c index 27f9caa1d..d0992caa9 100644 --- a/vanetza/asn1/its/PreemptPriorityList.c +++ b/vanetza/asn1/its1/PreemptPriorityList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_PreemptPriorityList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_PreemptPriorityList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_PreemptPriorityList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_PreemptPriorityList_1, diff --git a/vanetza/asn1/its/PreemptPriorityList.h b/vanetza/asn1/its1/PreemptPriorityList.h similarity index 100% rename from vanetza/asn1/its/PreemptPriorityList.h rename to vanetza/asn1/its1/PreemptPriorityList.h diff --git a/vanetza/asn1/its/PrioritizationResponse.c b/vanetza/asn1/its1/PrioritizationResponse.c similarity index 90% rename from vanetza/asn1/its/PrioritizationResponse.c rename to vanetza/asn1/its1/PrioritizationResponse.c index bef7e2336..32e699f64 100644 --- a/vanetza/asn1/its/PrioritizationResponse.c +++ b/vanetza/asn1/its1/PrioritizationResponse.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_PrioritizationResponse_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_PrioritizationResponse_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_PrioritizationResponse_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -93,6 +102,9 @@ asn_TYPE_descriptor_t asn_DEF_PrioritizationResponse = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_PrioritizationResponse_1, diff --git a/vanetza/asn1/its/PrioritizationResponse.h b/vanetza/asn1/its1/PrioritizationResponse.h similarity index 100% rename from vanetza/asn1/its/PrioritizationResponse.h rename to vanetza/asn1/its1/PrioritizationResponse.h diff --git a/vanetza/asn1/its/PrioritizationResponseList.c b/vanetza/asn1/its1/PrioritizationResponseList.c similarity index 93% rename from vanetza/asn1/its/PrioritizationResponseList.c rename to vanetza/asn1/its1/PrioritizationResponseList.c index 5c6c15291..c1b56ae64 100644 --- a/vanetza/asn1/its/PrioritizationResponseList.c +++ b/vanetza/asn1/its1/PrioritizationResponseList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_PrioritizationResponseList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_PrioritizationResponseList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_PrioritizationResponseList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_PrioritizationResponseList_1, diff --git a/vanetza/asn1/its/PrioritizationResponseList.h b/vanetza/asn1/its1/PrioritizationResponseList.h similarity index 100% rename from vanetza/asn1/its/PrioritizationResponseList.h rename to vanetza/asn1/its1/PrioritizationResponseList.h diff --git a/vanetza/asn1/its/PrioritizationResponseStatus.c b/vanetza/asn1/its1/PrioritizationResponseStatus.c similarity index 97% rename from vanetza/asn1/its/PrioritizationResponseStatus.c rename to vanetza/asn1/its1/PrioritizationResponseStatus.c index fe96559e8..42521b641 100644 --- a/vanetza/asn1/its/PrioritizationResponseStatus.c +++ b/vanetza/asn1/its1/PrioritizationResponseStatus.c @@ -74,6 +74,9 @@ asn_TYPE_descriptor_t asn_DEF_PrioritizationResponseStatus = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_PrioritizationResponseStatus_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/PrioritizationResponseStatus.h b/vanetza/asn1/its1/PrioritizationResponseStatus.h similarity index 100% rename from vanetza/asn1/its/PrioritizationResponseStatus.h rename to vanetza/asn1/its1/PrioritizationResponseStatus.h diff --git a/vanetza/asn1/its/PriorityLevel.c b/vanetza/asn1/its1/PriorityLevel.c similarity index 96% rename from vanetza/asn1/its/PriorityLevel.c rename to vanetza/asn1/its1/PriorityLevel.c index d31439365..2c7b9bc96 100644 --- a/vanetza/asn1/its/PriorityLevel.c +++ b/vanetza/asn1/its1/PriorityLevel.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_PriorityLevel = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_PriorityLevel_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ PriorityLevel_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/PriorityLevel.h b/vanetza/asn1/its1/PriorityLevel.h similarity index 100% rename from vanetza/asn1/its/PriorityLevel.h rename to vanetza/asn1/its1/PriorityLevel.h diff --git a/vanetza/asn1/its/PriorityRequestType.c b/vanetza/asn1/its1/PriorityRequestType.c similarity index 96% rename from vanetza/asn1/its/PriorityRequestType.c rename to vanetza/asn1/its1/PriorityRequestType.c index f4d1a6956..755ce002a 100644 --- a/vanetza/asn1/its/PriorityRequestType.c +++ b/vanetza/asn1/its1/PriorityRequestType.c @@ -66,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_PriorityRequestType = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_PriorityRequestType_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/PriorityRequestType.h b/vanetza/asn1/its1/PriorityRequestType.h similarity index 100% rename from vanetza/asn1/its/PriorityRequestType.h rename to vanetza/asn1/its1/PriorityRequestType.h diff --git a/vanetza/asn1/its1/ProtectedCommunicationZone.c b/vanetza/asn1/its1/ProtectedCommunicationZone.c new file mode 100644 index 000000000..4db7ae292 --- /dev/null +++ b/vanetza/asn1/its1/ProtectedCommunicationZone.c @@ -0,0 +1,179 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ProtectedCommunicationZone.h" + +asn_TYPE_member_t asn_MBR_ProtectedCommunicationZone_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ProtectedCommunicationZone, protectedZoneType), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ProtectedZoneType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "protectedZoneType" + }, + { ATF_POINTER, 1, offsetof(struct ProtectedCommunicationZone, expiryTime), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TimestampIts, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "expiryTime" + }, + { ATF_NOFLAGS, 0, offsetof(struct ProtectedCommunicationZone, protectedZoneLatitude), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Latitude, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "protectedZoneLatitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct ProtectedCommunicationZone, protectedZoneLongitude), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Longitude, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "protectedZoneLongitude" + }, + { ATF_POINTER, 2, offsetof(struct ProtectedCommunicationZone, protectedZoneRadius), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ProtectedZoneRadius, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "protectedZoneRadius" + }, + { ATF_POINTER, 1, offsetof(struct ProtectedCommunicationZone, protectedZoneID), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ProtectedZoneID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "protectedZoneID" + }, +}; +static const int asn_MAP_ProtectedCommunicationZone_oms_1[] = { 1, 4, 5 }; +static const ber_tlv_tag_t asn_DEF_ProtectedCommunicationZone_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ProtectedCommunicationZone_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* protectedZoneType */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* expiryTime */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* protectedZoneLatitude */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* protectedZoneLongitude */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* protectedZoneRadius */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* protectedZoneID */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ProtectedCommunicationZone_specs_1 = { + sizeof(struct ProtectedCommunicationZone), + offsetof(struct ProtectedCommunicationZone, _asn_ctx), + asn_MAP_ProtectedCommunicationZone_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_ProtectedCommunicationZone_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ProtectedCommunicationZone = { + "ProtectedCommunicationZone", + "ProtectedCommunicationZone", + &asn_OP_SEQUENCE, + asn_DEF_ProtectedCommunicationZone_tags_1, + sizeof(asn_DEF_ProtectedCommunicationZone_tags_1) + /sizeof(asn_DEF_ProtectedCommunicationZone_tags_1[0]), /* 1 */ + asn_DEF_ProtectedCommunicationZone_tags_1, /* Same as above */ + sizeof(asn_DEF_ProtectedCommunicationZone_tags_1) + /sizeof(asn_DEF_ProtectedCommunicationZone_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ProtectedCommunicationZone_1, + 6, /* Elements count */ + &asn_SPC_ProtectedCommunicationZone_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/ProtectedCommunicationZone.h b/vanetza/asn1/its1/ProtectedCommunicationZone.h similarity index 100% rename from vanetza/asn1/its/ProtectedCommunicationZone.h rename to vanetza/asn1/its1/ProtectedCommunicationZone.h diff --git a/vanetza/asn1/its1/ProtectedCommunicationZonesRSU.c b/vanetza/asn1/its1/ProtectedCommunicationZonesRSU.c new file mode 100644 index 000000000..e44037d0b --- /dev/null +++ b/vanetza/asn1/its1/ProtectedCommunicationZonesRSU.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ProtectedCommunicationZonesRSU.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_ProtectedCommunicationZonesRSU_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..16)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ProtectedCommunicationZonesRSU_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_ProtectedCommunicationZonesRSU_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_ProtectedCommunicationZone, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_ProtectedCommunicationZonesRSU_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_ProtectedCommunicationZonesRSU_specs_1 = { + sizeof(struct ProtectedCommunicationZonesRSU), + offsetof(struct ProtectedCommunicationZonesRSU, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_ProtectedCommunicationZonesRSU = { + "ProtectedCommunicationZonesRSU", + "ProtectedCommunicationZonesRSU", + &asn_OP_SEQUENCE_OF, + asn_DEF_ProtectedCommunicationZonesRSU_tags_1, + sizeof(asn_DEF_ProtectedCommunicationZonesRSU_tags_1) + /sizeof(asn_DEF_ProtectedCommunicationZonesRSU_tags_1[0]), /* 1 */ + asn_DEF_ProtectedCommunicationZonesRSU_tags_1, /* Same as above */ + sizeof(asn_DEF_ProtectedCommunicationZonesRSU_tags_1) + /sizeof(asn_DEF_ProtectedCommunicationZonesRSU_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_ProtectedCommunicationZonesRSU_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ProtectedCommunicationZonesRSU_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_ProtectedCommunicationZonesRSU_1, + 1, /* Single element */ + &asn_SPC_ProtectedCommunicationZonesRSU_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/ProtectedCommunicationZonesRSU.h b/vanetza/asn1/its1/ProtectedCommunicationZonesRSU.h similarity index 100% rename from vanetza/asn1/its/ProtectedCommunicationZonesRSU.h rename to vanetza/asn1/its1/ProtectedCommunicationZonesRSU.h diff --git a/vanetza/asn1/its/ProtectedZoneID.c b/vanetza/asn1/its1/ProtectedZoneID.c similarity index 96% rename from vanetza/asn1/its/ProtectedZoneID.c rename to vanetza/asn1/its1/ProtectedZoneID.c index 353992a7f..dd5c37fe0 100644 --- a/vanetza/asn1/its/ProtectedZoneID.c +++ b/vanetza/asn1/its1/ProtectedZoneID.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_ProtectedZoneID = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ProtectedZoneID_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ ProtectedZoneID_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/ProtectedZoneID.h b/vanetza/asn1/its1/ProtectedZoneID.h similarity index 100% rename from vanetza/asn1/its/ProtectedZoneID.h rename to vanetza/asn1/its1/ProtectedZoneID.h diff --git a/vanetza/asn1/its1/ProtectedZoneRadius.c b/vanetza/asn1/its1/ProtectedZoneRadius.c new file mode 100644 index 000000000..ec35c04dc --- /dev/null +++ b/vanetza/asn1/its1/ProtectedZoneRadius.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ProtectedZoneRadius.h" + +int +ProtectedZoneRadius_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 <= 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_ProtectedZoneRadius_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ProtectedZoneRadius_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 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) */ +static const ber_tlv_tag_t asn_DEF_ProtectedZoneRadius_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_ProtectedZoneRadius = { + "ProtectedZoneRadius", + "ProtectedZoneRadius", + &asn_OP_NativeInteger, + asn_DEF_ProtectedZoneRadius_tags_1, + sizeof(asn_DEF_ProtectedZoneRadius_tags_1) + /sizeof(asn_DEF_ProtectedZoneRadius_tags_1[0]), /* 1 */ + asn_DEF_ProtectedZoneRadius_tags_1, /* Same as above */ + sizeof(asn_DEF_ProtectedZoneRadius_tags_1) + /sizeof(asn_DEF_ProtectedZoneRadius_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_ProtectedZoneRadius_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ProtectedZoneRadius_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + ProtectedZoneRadius_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/ProtectedZoneRadius.h b/vanetza/asn1/its1/ProtectedZoneRadius.h similarity index 100% rename from vanetza/asn1/its/ProtectedZoneRadius.h rename to vanetza/asn1/its1/ProtectedZoneRadius.h diff --git a/vanetza/asn1/its1/ProtectedZoneType.c b/vanetza/asn1/its1/ProtectedZoneType.c new file mode 100644 index 000000000..e12d27c33 --- /dev/null +++ b/vanetza/asn1/its1/ProtectedZoneType.c @@ -0,0 +1,73 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ProtectedZoneType.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_ProtectedZoneType_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ProtectedZoneType_constr_1 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_ProtectedZoneType_value2enum_1[] = { + { 0, 23, "permanentCenDsrcTolling" }, + { 1, 23, "temporaryCenDsrcTolling" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_ProtectedZoneType_enum2value_1[] = { + 0, /* permanentCenDsrcTolling(0) */ + 1 /* temporaryCenDsrcTolling(1) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_ProtectedZoneType_specs_1 = { + asn_MAP_ProtectedZoneType_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_ProtectedZoneType_enum2value_1, /* 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_ProtectedZoneType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_ProtectedZoneType = { + "ProtectedZoneType", + "ProtectedZoneType", + &asn_OP_NativeEnumerated, + asn_DEF_ProtectedZoneType_tags_1, + sizeof(asn_DEF_ProtectedZoneType_tags_1) + /sizeof(asn_DEF_ProtectedZoneType_tags_1[0]), /* 1 */ + asn_DEF_ProtectedZoneType_tags_1, /* Same as above */ + sizeof(asn_DEF_ProtectedZoneType_tags_1) + /sizeof(asn_DEF_ProtectedZoneType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_ProtectedZoneType_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ProtectedZoneType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_ProtectedZoneType_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/ProtectedZoneType.h b/vanetza/asn1/its1/ProtectedZoneType.h similarity index 100% rename from vanetza/asn1/its/ProtectedZoneType.h rename to vanetza/asn1/its1/ProtectedZoneType.h diff --git a/vanetza/asn1/its1/Provider.c b/vanetza/asn1/its1/Provider.c new file mode 100644 index 000000000..2b29bff2d --- /dev/null +++ b/vanetza/asn1/its1/Provider.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "EfcDsrcApplication" + * found in "build.asn1/iso/ISO14906-0-6.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Provider.h" + +asn_TYPE_member_t asn_MBR_Provider_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Provider, countryCode), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CountryCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "countryCode" + }, + { ATF_NOFLAGS, 0, offsetof(struct Provider, providerIdentifier), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_IssuerIdentifierIso, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "providerIdentifier" + }, +}; +static const ber_tlv_tag_t asn_DEF_Provider_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Provider_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* countryCode */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* providerIdentifier */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Provider_specs_1 = { + sizeof(struct Provider), + offsetof(struct Provider, _asn_ctx), + asn_MAP_Provider_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_Provider = { + "Provider", + "Provider", + &asn_OP_SEQUENCE, + asn_DEF_Provider_tags_1, + sizeof(asn_DEF_Provider_tags_1) + /sizeof(asn_DEF_Provider_tags_1[0]), /* 1 */ + asn_DEF_Provider_tags_1, /* Same as above */ + sizeof(asn_DEF_Provider_tags_1) + /sizeof(asn_DEF_Provider_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Provider_1, + 2, /* Elements count */ + &asn_SPC_Provider_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/Provider.h b/vanetza/asn1/its1/Provider.h similarity index 100% rename from vanetza/asn1/its/Provider.h rename to vanetza/asn1/its1/Provider.h diff --git a/vanetza/asn1/its1/PtActivation.c b/vanetza/asn1/its1/PtActivation.c new file mode 100644 index 000000000..849b60f91 --- /dev/null +++ b/vanetza/asn1/its1/PtActivation.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PtActivation.h" + +asn_TYPE_member_t asn_MBR_PtActivation_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PtActivation, ptActivationType), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PtActivationType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ptActivationType" + }, + { ATF_NOFLAGS, 0, offsetof(struct PtActivation, ptActivationData), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PtActivationData, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ptActivationData" + }, +}; +static const ber_tlv_tag_t asn_DEF_PtActivation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PtActivation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ptActivationType */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ptActivationData */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PtActivation_specs_1 = { + sizeof(struct PtActivation), + offsetof(struct PtActivation, _asn_ctx), + asn_MAP_PtActivation_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_PtActivation = { + "PtActivation", + "PtActivation", + &asn_OP_SEQUENCE, + asn_DEF_PtActivation_tags_1, + sizeof(asn_DEF_PtActivation_tags_1) + /sizeof(asn_DEF_PtActivation_tags_1[0]), /* 1 */ + asn_DEF_PtActivation_tags_1, /* Same as above */ + sizeof(asn_DEF_PtActivation_tags_1) + /sizeof(asn_DEF_PtActivation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PtActivation_1, + 2, /* Elements count */ + &asn_SPC_PtActivation_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/PtActivation.h b/vanetza/asn1/its1/PtActivation.h similarity index 100% rename from vanetza/asn1/its/PtActivation.h rename to vanetza/asn1/its1/PtActivation.h diff --git a/vanetza/asn1/its1/PtActivationData.c b/vanetza/asn1/its1/PtActivationData.c new file mode 100644 index 000000000..b1d2ff454 --- /dev/null +++ b/vanetza/asn1/its1/PtActivationData.c @@ -0,0 +1,80 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PtActivationData.h" + +int +PtActivationData_constraint(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 <= 20UL)) { + /* 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 OCTET_STRING, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PtActivationData_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..20)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PtActivationData_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 20 } /* (SIZE(1..20)) */, + 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_PtActivationData_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_PtActivationData = { + "PtActivationData", + "PtActivationData", + &asn_OP_OCTET_STRING, + asn_DEF_PtActivationData_tags_1, + sizeof(asn_DEF_PtActivationData_tags_1) + /sizeof(asn_DEF_PtActivationData_tags_1[0]), /* 1 */ + asn_DEF_PtActivationData_tags_1, /* Same as above */ + sizeof(asn_DEF_PtActivationData_tags_1) + /sizeof(asn_DEF_PtActivationData_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PtActivationData_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PtActivationData_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + PtActivationData_constraint + }, + 0, 0, /* No members */ + &asn_SPC_OCTET_STRING_specs /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/PtActivationData.h b/vanetza/asn1/its1/PtActivationData.h similarity index 100% rename from vanetza/asn1/its/PtActivationData.h rename to vanetza/asn1/its1/PtActivationData.h diff --git a/vanetza/asn1/its1/PtActivationType.c b/vanetza/asn1/its1/PtActivationType.c new file mode 100644 index 000000000..291ce6961 --- /dev/null +++ b/vanetza/asn1/its1/PtActivationType.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PtActivationType.h" + +int +PtActivationType_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PtActivationType_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PtActivationType_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_PtActivationType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_PtActivationType = { + "PtActivationType", + "PtActivationType", + &asn_OP_NativeInteger, + asn_DEF_PtActivationType_tags_1, + sizeof(asn_DEF_PtActivationType_tags_1) + /sizeof(asn_DEF_PtActivationType_tags_1[0]), /* 1 */ + asn_DEF_PtActivationType_tags_1, /* Same as above */ + sizeof(asn_DEF_PtActivationType_tags_1) + /sizeof(asn_DEF_PtActivationType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PtActivationType_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PtActivationType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + PtActivationType_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/PtActivationType.h b/vanetza/asn1/its1/PtActivationType.h similarity index 100% rename from vanetza/asn1/its/PtActivationType.h rename to vanetza/asn1/its1/PtActivationType.h diff --git a/vanetza/asn1/its/PtvRequestType.c b/vanetza/asn1/its1/PtvRequestType.c similarity index 96% rename from vanetza/asn1/its/PtvRequestType.c rename to vanetza/asn1/its1/PtvRequestType.c index c168b736c..0065a0ee1 100644 --- a/vanetza/asn1/its/PtvRequestType.c +++ b/vanetza/asn1/its1/PtvRequestType.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_PtvRequestType = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_PtvRequestType_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/PtvRequestType.h b/vanetza/asn1/its1/PtvRequestType.h similarity index 100% rename from vanetza/asn1/its/PtvRequestType.h rename to vanetza/asn1/its1/PtvRequestType.h diff --git a/vanetza/asn1/its1/PublicTransportContainer.c b/vanetza/asn1/its1/PublicTransportContainer.c new file mode 100644 index 000000000..6690300ae --- /dev/null +++ b/vanetza/asn1/its1/PublicTransportContainer.c @@ -0,0 +1,95 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/EN302637-2v141-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PublicTransportContainer.h" + +asn_TYPE_member_t asn_MBR_PublicTransportContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PublicTransportContainer, embarkationStatus), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EmbarkationStatus, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "embarkationStatus" + }, + { ATF_POINTER, 1, offsetof(struct PublicTransportContainer, ptActivation), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PtActivation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ptActivation" + }, +}; +static const int asn_MAP_PublicTransportContainer_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_PublicTransportContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PublicTransportContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* embarkationStatus */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ptActivation */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PublicTransportContainer_specs_1 = { + sizeof(struct PublicTransportContainer), + offsetof(struct PublicTransportContainer, _asn_ctx), + asn_MAP_PublicTransportContainer_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_PublicTransportContainer_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PublicTransportContainer = { + "PublicTransportContainer", + "PublicTransportContainer", + &asn_OP_SEQUENCE, + asn_DEF_PublicTransportContainer_tags_1, + sizeof(asn_DEF_PublicTransportContainer_tags_1) + /sizeof(asn_DEF_PublicTransportContainer_tags_1[0]), /* 1 */ + asn_DEF_PublicTransportContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_PublicTransportContainer_tags_1) + /sizeof(asn_DEF_PublicTransportContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PublicTransportContainer_1, + 2, /* Elements count */ + &asn_SPC_PublicTransportContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/PublicTransportContainer.h b/vanetza/asn1/its1/PublicTransportContainer.h similarity index 100% rename from vanetza/asn1/its/PublicTransportContainer.h rename to vanetza/asn1/its1/PublicTransportContainer.h diff --git a/vanetza/asn1/its/PurseBalance.c b/vanetza/asn1/its1/PurseBalance.c similarity index 90% rename from vanetza/asn1/its/PurseBalance.c rename to vanetza/asn1/its1/PurseBalance.c index dd1281c52..1b46d8cbe 100644 --- a/vanetza/asn1/its/PurseBalance.c +++ b/vanetza/asn1/its1/PurseBalance.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_PurseBalance_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_PurseBalance_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_PurseBalance = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_PurseBalance_1, diff --git a/vanetza/asn1/its/PurseBalance.h b/vanetza/asn1/its1/PurseBalance.h similarity index 100% rename from vanetza/asn1/its/PurseBalance.h rename to vanetza/asn1/its1/PurseBalance.h diff --git a/vanetza/asn1/its/RSCUnit.c b/vanetza/asn1/its1/RSCUnit.c similarity index 96% rename from vanetza/asn1/its/RSCUnit.c rename to vanetza/asn1/its1/RSCUnit.c index f6a61e7b3..f0dbd14a8 100644 --- a/vanetza/asn1/its/RSCUnit.c +++ b/vanetza/asn1/its1/RSCUnit.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_RSCUnit = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_RSCUnit_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ RSCUnit_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/RSCUnit.h b/vanetza/asn1/its1/RSCUnit.h similarity index 100% rename from vanetza/asn1/its/RSCUnit.h rename to vanetza/asn1/its1/RSCUnit.h diff --git a/vanetza/asn1/its/RSCode.c b/vanetza/asn1/its1/RSCode.c similarity index 92% rename from vanetza/asn1/its/RSCode.c rename to vanetza/asn1/its1/RSCode.c index 161f0c4d2..92ae5dcd3 100644 --- a/vanetza/asn1/its/RSCode.c +++ b/vanetza/asn1/its1/RSCode.c @@ -106,6 +106,9 @@ static asn_TYPE_member_t asn_MBR_code_3[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -123,6 +126,9 @@ static asn_TYPE_member_t asn_MBR_code_3[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -140,6 +146,9 @@ static asn_TYPE_member_t asn_MBR_code_3[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_itisCodes_constr_6, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_itisCodes_constraint_3 }, 0, 0, /* No default value */ @@ -157,6 +166,9 @@ static asn_TYPE_member_t asn_MBR_code_3[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -195,6 +207,9 @@ asn_TYPE_descriptor_t asn_DEF_code_3 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_code_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_code_3, @@ -215,6 +230,9 @@ asn_TYPE_member_t asn_MBR_RSCode_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_layoutComponentId_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_layoutComponentId_constraint_1 }, 0, 0, /* No default value */ @@ -232,6 +250,9 @@ asn_TYPE_member_t asn_MBR_RSCode_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -272,6 +293,9 @@ asn_TYPE_descriptor_t asn_DEF_RSCode = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_RSCode_1, diff --git a/vanetza/asn1/its/RSCode.h b/vanetza/asn1/its1/RSCode.h similarity index 100% rename from vanetza/asn1/its/RSCode.h rename to vanetza/asn1/its1/RSCode.h diff --git a/vanetza/asn1/its1/RSUContainerHighFrequency.c b/vanetza/asn1/its1/RSUContainerHighFrequency.c new file mode 100644 index 000000000..26f50f295 --- /dev/null +++ b/vanetza/asn1/its1/RSUContainerHighFrequency.c @@ -0,0 +1,74 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/EN302637-2v141-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RSUContainerHighFrequency.h" + +asn_TYPE_member_t asn_MBR_RSUContainerHighFrequency_1[] = { + { ATF_POINTER, 1, offsetof(struct RSUContainerHighFrequency, protectedCommunicationZonesRSU), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ProtectedCommunicationZonesRSU, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "protectedCommunicationZonesRSU" + }, +}; +static const int asn_MAP_RSUContainerHighFrequency_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_RSUContainerHighFrequency_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RSUContainerHighFrequency_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* protectedCommunicationZonesRSU */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RSUContainerHighFrequency_specs_1 = { + sizeof(struct RSUContainerHighFrequency), + offsetof(struct RSUContainerHighFrequency, _asn_ctx), + asn_MAP_RSUContainerHighFrequency_tag2el_1, + 1, /* Count of tags in the map */ + asn_MAP_RSUContainerHighFrequency_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_RSUContainerHighFrequency = { + "RSUContainerHighFrequency", + "RSUContainerHighFrequency", + &asn_OP_SEQUENCE, + asn_DEF_RSUContainerHighFrequency_tags_1, + sizeof(asn_DEF_RSUContainerHighFrequency_tags_1) + /sizeof(asn_DEF_RSUContainerHighFrequency_tags_1[0]), /* 1 */ + asn_DEF_RSUContainerHighFrequency_tags_1, /* Same as above */ + sizeof(asn_DEF_RSUContainerHighFrequency_tags_1) + /sizeof(asn_DEF_RSUContainerHighFrequency_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RSUContainerHighFrequency_1, + 1, /* Elements count */ + &asn_SPC_RSUContainerHighFrequency_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/RSUContainerHighFrequency.h b/vanetza/asn1/its1/RSUContainerHighFrequency.h similarity index 100% rename from vanetza/asn1/its/RSUContainerHighFrequency.h rename to vanetza/asn1/its1/RSUContainerHighFrequency.h diff --git a/vanetza/asn1/its/RTCM-Revision.c b/vanetza/asn1/its1/RTCM-Revision.c similarity index 96% rename from vanetza/asn1/its/RTCM-Revision.c rename to vanetza/asn1/its1/RTCM-Revision.c index 17ccd5aec..874c9c54e 100644 --- a/vanetza/asn1/its/RTCM-Revision.c +++ b/vanetza/asn1/its1/RTCM-Revision.c @@ -66,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_RTCM_Revision = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_RTCM_Revision_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/RTCM-Revision.h b/vanetza/asn1/its1/RTCM-Revision.h similarity index 100% rename from vanetza/asn1/its/RTCM-Revision.h rename to vanetza/asn1/its1/RTCM-Revision.h diff --git a/vanetza/asn1/its/RTCMEM.c b/vanetza/asn1/its1/RTCMEM.c similarity index 90% rename from vanetza/asn1/its/RTCMEM.c rename to vanetza/asn1/its1/RTCMEM.c index e243c7a9e..f661db30c 100644 --- a/vanetza/asn1/its/RTCMEM.c +++ b/vanetza/asn1/its1/RTCMEM.c @@ -20,6 +20,9 @@ static asn_TYPE_member_t asn_MBR_RTCMEM_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ static asn_TYPE_member_t asn_MBR_RTCMEM_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_RTCMEM = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_RTCMEM_1, diff --git a/vanetza/asn1/its/RTCMEM.h b/vanetza/asn1/its1/RTCMEM.h similarity index 100% rename from vanetza/asn1/its/RTCMEM.h rename to vanetza/asn1/its1/RTCMEM.h diff --git a/vanetza/asn1/its/RTCMcorrections.c b/vanetza/asn1/its1/RTCMcorrections.c similarity index 90% rename from vanetza/asn1/its/RTCMcorrections.c rename to vanetza/asn1/its1/RTCMcorrections.c index 7d0122e03..05ea25c20 100644 --- a/vanetza/asn1/its/RTCMcorrections.c +++ b/vanetza/asn1/its1/RTCMcorrections.c @@ -70,6 +70,9 @@ static asn_TYPE_member_t asn_MBR_regional_8[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -103,6 +106,9 @@ asn_TYPE_descriptor_t asn_DEF_regional_8 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_regional_constr_8, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_regional_8, @@ -123,6 +129,9 @@ asn_TYPE_member_t asn_MBR_RTCMcorrections_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -140,6 +149,9 @@ asn_TYPE_member_t asn_MBR_RTCMcorrections_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -157,6 +169,9 @@ asn_TYPE_member_t asn_MBR_RTCMcorrections_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -174,6 +189,9 @@ asn_TYPE_member_t asn_MBR_RTCMcorrections_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -191,6 +209,9 @@ asn_TYPE_member_t asn_MBR_RTCMcorrections_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -208,6 +229,9 @@ asn_TYPE_member_t asn_MBR_RTCMcorrections_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -225,6 +249,9 @@ asn_TYPE_member_t asn_MBR_RTCMcorrections_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regional_constr_8, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regional_constraint_1 }, 0, 0, /* No default value */ @@ -270,6 +297,9 @@ asn_TYPE_descriptor_t asn_DEF_RTCMcorrections = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_RTCMcorrections_1, diff --git a/vanetza/asn1/its/RTCMcorrections.h b/vanetza/asn1/its1/RTCMcorrections.h similarity index 100% rename from vanetza/asn1/its/RTCMcorrections.h rename to vanetza/asn1/its1/RTCMcorrections.h diff --git a/vanetza/asn1/its/RTCMheader.c b/vanetza/asn1/its1/RTCMheader.c similarity index 90% rename from vanetza/asn1/its/RTCMheader.c rename to vanetza/asn1/its1/RTCMheader.c index 6beaa1ebd..fb508d649 100644 --- a/vanetza/asn1/its/RTCMheader.c +++ b/vanetza/asn1/its1/RTCMheader.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_RTCMheader_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_RTCMheader_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_RTCMheader = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_RTCMheader_1, diff --git a/vanetza/asn1/its/RTCMheader.h b/vanetza/asn1/its1/RTCMheader.h similarity index 100% rename from vanetza/asn1/its/RTCMheader.h rename to vanetza/asn1/its1/RTCMheader.h diff --git a/vanetza/asn1/its/RTCMmessage.c b/vanetza/asn1/its1/RTCMmessage.c similarity index 96% rename from vanetza/asn1/its/RTCMmessage.c rename to vanetza/asn1/its1/RTCMmessage.c index f542b8cec..9e11c5783 100644 --- a/vanetza/asn1/its/RTCMmessage.c +++ b/vanetza/asn1/its1/RTCMmessage.c @@ -69,6 +69,9 @@ asn_TYPE_descriptor_t asn_DEF_RTCMmessage = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_RTCMmessage_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ RTCMmessage_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/RTCMmessage.h b/vanetza/asn1/its1/RTCMmessage.h similarity index 100% rename from vanetza/asn1/its/RTCMmessage.h rename to vanetza/asn1/its1/RTCMmessage.h diff --git a/vanetza/asn1/its/RTCMmessageList.c b/vanetza/asn1/its1/RTCMmessageList.c similarity index 92% rename from vanetza/asn1/its/RTCMmessageList.c rename to vanetza/asn1/its1/RTCMmessageList.c index 9589489ac..5607184d5 100644 --- a/vanetza/asn1/its/RTCMmessageList.c +++ b/vanetza/asn1/its1/RTCMmessageList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_RTCMmessageList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_RTCMmessageList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_RTCMmessageList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_RTCMmessageList_1, diff --git a/vanetza/asn1/its/RTCMmessageList.h b/vanetza/asn1/its1/RTCMmessageList.h similarity index 100% rename from vanetza/asn1/its/RTCMmessageList.h rename to vanetza/asn1/its1/RTCMmessageList.h diff --git a/vanetza/asn1/its/Radius.c b/vanetza/asn1/its1/Radius.c similarity index 96% rename from vanetza/asn1/its/Radius.c rename to vanetza/asn1/its1/Radius.c index 64726600d..e7ae0a03b 100644 --- a/vanetza/asn1/its/Radius.c +++ b/vanetza/asn1/its1/Radius.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Radius = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Radius_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Radius_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/Radius.h b/vanetza/asn1/its1/Radius.h similarity index 100% rename from vanetza/asn1/its/Radius.h rename to vanetza/asn1/its1/Radius.h diff --git a/vanetza/asn1/its/Range.c b/vanetza/asn1/its1/Range.c similarity index 96% rename from vanetza/asn1/its/Range.c rename to vanetza/asn1/its1/Range.c index adcd85c56..554bf9c88 100644 --- a/vanetza/asn1/its/Range.c +++ b/vanetza/asn1/its1/Range.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Range = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Range_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Range_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/Range.h b/vanetza/asn1/its1/Range.h similarity index 100% rename from vanetza/asn1/its/Range.h rename to vanetza/asn1/its1/Range.h diff --git a/vanetza/asn1/its/RccPart.c b/vanetza/asn1/its1/RccPart.c similarity index 89% rename from vanetza/asn1/its/RccPart.c rename to vanetza/asn1/its1/RccPart.c index b54cbb80d..0d9898965 100644 --- a/vanetza/asn1/its/RccPart.c +++ b/vanetza/asn1/its1/RccPart.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_RccPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_RccPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_RccPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -93,6 +102,9 @@ asn_TYPE_descriptor_t asn_DEF_RccPart = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_RccPart_1, diff --git a/vanetza/asn1/its/RccPart.h b/vanetza/asn1/its1/RccPart.h similarity index 100% rename from vanetza/asn1/its/RccPart.h rename to vanetza/asn1/its1/RccPart.h diff --git a/vanetza/asn1/its/RearOverhang.c b/vanetza/asn1/its1/RearOverhang.c similarity index 96% rename from vanetza/asn1/its/RearOverhang.c rename to vanetza/asn1/its1/RearOverhang.c index 932a2ff8e..55105c79c 100644 --- a/vanetza/asn1/its/RearOverhang.c +++ b/vanetza/asn1/its1/RearOverhang.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_RearOverhang = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_RearOverhang_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ RearOverhang_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/RearOverhang.h b/vanetza/asn1/its1/RearOverhang.h similarity index 100% rename from vanetza/asn1/its/RearOverhang.h rename to vanetza/asn1/its1/RearOverhang.h diff --git a/vanetza/asn1/its/ReceiptAuthenticator.c b/vanetza/asn1/its1/ReceiptAuthenticator.c similarity index 93% rename from vanetza/asn1/its/ReceiptAuthenticator.c rename to vanetza/asn1/its1/ReceiptAuthenticator.c index 487db98a5..2f3a3a26f 100644 --- a/vanetza/asn1/its/ReceiptAuthenticator.c +++ b/vanetza/asn1/its1/ReceiptAuthenticator.c @@ -31,6 +31,9 @@ asn_TYPE_descriptor_t asn_DEF_ReceiptAuthenticator = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OCTET_STRING_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/ReceiptAuthenticator.h b/vanetza/asn1/its1/ReceiptAuthenticator.h similarity index 100% rename from vanetza/asn1/its/ReceiptAuthenticator.h rename to vanetza/asn1/its1/ReceiptAuthenticator.h diff --git a/vanetza/asn1/its/ReceiptContract.c b/vanetza/asn1/its1/ReceiptContract.c similarity index 92% rename from vanetza/asn1/its/ReceiptContract.c rename to vanetza/asn1/its1/ReceiptContract.c index 2cc73ab60..15b889999 100644 --- a/vanetza/asn1/its/ReceiptContract.c +++ b/vanetza/asn1/its1/ReceiptContract.c @@ -58,6 +58,9 @@ static asn_TYPE_member_t asn_MBR_ReceiptContract_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +78,9 @@ static asn_TYPE_member_t asn_MBR_ReceiptContract_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_sessionTypeOfContract_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_sessionTypeOfContract_constraint_1 }, 0, 0, /* No default value */ @@ -92,6 +98,9 @@ static asn_TYPE_member_t asn_MBR_ReceiptContract_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -131,6 +140,9 @@ asn_TYPE_descriptor_t asn_DEF_ReceiptContract = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_ReceiptContract_1, diff --git a/vanetza/asn1/its/ReceiptContract.h b/vanetza/asn1/its1/ReceiptContract.h similarity index 100% rename from vanetza/asn1/its/ReceiptContract.h rename to vanetza/asn1/its1/ReceiptContract.h diff --git a/vanetza/asn1/its/ReceiptData.c b/vanetza/asn1/its1/ReceiptData.c similarity index 91% rename from vanetza/asn1/its/ReceiptData.c rename to vanetza/asn1/its1/ReceiptData.c index 198d7c99e..2e34c12ed 100644 --- a/vanetza/asn1/its/ReceiptData.c +++ b/vanetza/asn1/its1/ReceiptData.c @@ -133,6 +133,9 @@ asn_TYPE_member_t asn_MBR_ReceiptData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -150,6 +153,9 @@ asn_TYPE_member_t asn_MBR_ReceiptData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -167,6 +173,9 @@ asn_TYPE_member_t asn_MBR_ReceiptData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -184,6 +193,9 @@ asn_TYPE_member_t asn_MBR_ReceiptData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -201,6 +213,9 @@ asn_TYPE_member_t asn_MBR_ReceiptData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -218,6 +233,9 @@ asn_TYPE_member_t asn_MBR_ReceiptData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -235,6 +253,9 @@ asn_TYPE_member_t asn_MBR_ReceiptData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -252,6 +273,9 @@ asn_TYPE_member_t asn_MBR_ReceiptData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -269,6 +293,9 @@ asn_TYPE_member_t asn_MBR_ReceiptData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -286,6 +313,9 @@ asn_TYPE_member_t asn_MBR_ReceiptData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -303,6 +333,9 @@ asn_TYPE_member_t asn_MBR_ReceiptData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_sessionTypeOfContract_constr_12, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_sessionTypeOfContract_constraint_1 }, 0, 0, /* No default value */ @@ -320,6 +353,9 @@ asn_TYPE_member_t asn_MBR_ReceiptData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_sessionContextVersion_constr_13, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_sessionContextVersion_constraint_1 }, 0, 0, /* No default value */ @@ -337,6 +373,9 @@ asn_TYPE_member_t asn_MBR_ReceiptData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_receiptDataAuthenticator_constr_14, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_receiptDataAuthenticator_constraint_1 }, 0, 0, /* No default value */ @@ -386,6 +425,9 @@ asn_TYPE_descriptor_t asn_DEF_ReceiptData = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_ReceiptData_1, diff --git a/vanetza/asn1/its/ReceiptData.h b/vanetza/asn1/its1/ReceiptData.h similarity index 100% rename from vanetza/asn1/its/ReceiptData.h rename to vanetza/asn1/its1/ReceiptData.h diff --git a/vanetza/asn1/its/ReceiptData1.c b/vanetza/asn1/its1/ReceiptData1.c similarity index 92% rename from vanetza/asn1/its/ReceiptData1.c rename to vanetza/asn1/its1/ReceiptData1.c index 0e55e2b70..c0c807fa3 100644 --- a/vanetza/asn1/its/ReceiptData1.c +++ b/vanetza/asn1/its1/ReceiptData1.c @@ -31,6 +31,9 @@ asn_TYPE_descriptor_t asn_DEF_ReceiptData1 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_ReceiptData_1, diff --git a/vanetza/asn1/its/ReceiptData1.h b/vanetza/asn1/its1/ReceiptData1.h similarity index 100% rename from vanetza/asn1/its/ReceiptData1.h rename to vanetza/asn1/its1/ReceiptData1.h diff --git a/vanetza/asn1/its/ReceiptData2.c b/vanetza/asn1/its1/ReceiptData2.c similarity index 92% rename from vanetza/asn1/its/ReceiptData2.c rename to vanetza/asn1/its1/ReceiptData2.c index efcd37caa..069feb916 100644 --- a/vanetza/asn1/its/ReceiptData2.c +++ b/vanetza/asn1/its1/ReceiptData2.c @@ -31,6 +31,9 @@ asn_TYPE_descriptor_t asn_DEF_ReceiptData2 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_ReceiptData_1, diff --git a/vanetza/asn1/its/ReceiptData2.h b/vanetza/asn1/its1/ReceiptData2.h similarity index 100% rename from vanetza/asn1/its/ReceiptData2.h rename to vanetza/asn1/its1/ReceiptData2.h diff --git a/vanetza/asn1/its/ReceiptDistance.c b/vanetza/asn1/its1/ReceiptDistance.c similarity index 96% rename from vanetza/asn1/its/ReceiptDistance.c rename to vanetza/asn1/its1/ReceiptDistance.c index baec36344..8554d6680 100644 --- a/vanetza/asn1/its/ReceiptDistance.c +++ b/vanetza/asn1/its1/ReceiptDistance.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_ReceiptDistance = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ReceiptDistance_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ ReceiptDistance_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/ReceiptDistance.h b/vanetza/asn1/its1/ReceiptDistance.h similarity index 100% rename from vanetza/asn1/its/ReceiptDistance.h rename to vanetza/asn1/its1/ReceiptDistance.h diff --git a/vanetza/asn1/its/ReceiptFinancialPart.c b/vanetza/asn1/its1/ReceiptFinancialPart.c similarity index 89% rename from vanetza/asn1/its/ReceiptFinancialPart.c rename to vanetza/asn1/its1/ReceiptFinancialPart.c index 50f248f5e..051b79ac4 100644 --- a/vanetza/asn1/its/ReceiptFinancialPart.c +++ b/vanetza/asn1/its1/ReceiptFinancialPart.c @@ -20,6 +20,9 @@ static asn_TYPE_member_t asn_MBR_ReceiptFinancialPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ static asn_TYPE_member_t asn_MBR_ReceiptFinancialPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ static asn_TYPE_member_t asn_MBR_ReceiptFinancialPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -71,6 +80,9 @@ static asn_TYPE_member_t asn_MBR_ReceiptFinancialPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -111,6 +123,9 @@ asn_TYPE_descriptor_t asn_DEF_ReceiptFinancialPart = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_ReceiptFinancialPart_1, diff --git a/vanetza/asn1/its/ReceiptFinancialPart.h b/vanetza/asn1/its1/ReceiptFinancialPart.h similarity index 100% rename from vanetza/asn1/its/ReceiptFinancialPart.h rename to vanetza/asn1/its1/ReceiptFinancialPart.h diff --git a/vanetza/asn1/its/ReceiptICC-Id.c b/vanetza/asn1/its1/ReceiptICC-Id.c similarity index 92% rename from vanetza/asn1/its/ReceiptICC-Id.c rename to vanetza/asn1/its1/ReceiptICC-Id.c index f2b6bfade..2e13f8fbb 100644 --- a/vanetza/asn1/its/ReceiptICC-Id.c +++ b/vanetza/asn1/its1/ReceiptICC-Id.c @@ -31,6 +31,9 @@ asn_TYPE_descriptor_t asn_DEF_ReceiptICC_Id = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OCTET_STRING_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/ReceiptICC-Id.h b/vanetza/asn1/its1/ReceiptICC-Id.h similarity index 100% rename from vanetza/asn1/its/ReceiptICC-Id.h rename to vanetza/asn1/its1/ReceiptICC-Id.h diff --git a/vanetza/asn1/its/ReceiptOBUId.c b/vanetza/asn1/its1/ReceiptOBUId.c similarity index 92% rename from vanetza/asn1/its/ReceiptOBUId.c rename to vanetza/asn1/its1/ReceiptOBUId.c index ab092d834..ea1146a16 100644 --- a/vanetza/asn1/its/ReceiptOBUId.c +++ b/vanetza/asn1/its1/ReceiptOBUId.c @@ -31,6 +31,9 @@ asn_TYPE_descriptor_t asn_DEF_ReceiptOBUId = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OCTET_STRING_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/ReceiptOBUId.h b/vanetza/asn1/its1/ReceiptOBUId.h similarity index 100% rename from vanetza/asn1/its/ReceiptOBUId.h rename to vanetza/asn1/its1/ReceiptOBUId.h diff --git a/vanetza/asn1/its/ReceiptServicePart.c b/vanetza/asn1/its1/ReceiptServicePart.c similarity index 89% rename from vanetza/asn1/its/ReceiptServicePart.c rename to vanetza/asn1/its1/ReceiptServicePart.c index 3e64acc0f..62ad09928 100644 --- a/vanetza/asn1/its/ReceiptServicePart.c +++ b/vanetza/asn1/its1/ReceiptServicePart.c @@ -87,6 +87,10 @@ static asn_per_constraints_t asn_PER_memb_sessionLocation_constr_5 CC_NOTUSED = 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_sessionLocation_constr_5 CC_NOTUSED = { + 8}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static asn_TYPE_member_t asn_MBR_ReceiptServicePart_1[] = { { ATF_NOFLAGS, 0, offsetof(struct ReceiptServicePart, sessionTime), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), @@ -100,6 +104,9 @@ static asn_TYPE_member_t asn_MBR_ReceiptServicePart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -117,6 +124,9 @@ static asn_TYPE_member_t asn_MBR_ReceiptServicePart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -134,6 +144,9 @@ static asn_TYPE_member_t asn_MBR_ReceiptServicePart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_stationLocation_constr_4, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_stationLocation_constraint_1 }, 0, 0, /* No default value */ @@ -151,6 +164,9 @@ static asn_TYPE_member_t asn_MBR_ReceiptServicePart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_sessionLocation_constr_5, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_memb_sessionLocation_constr_5, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_sessionLocation_constraint_1 }, 0, 0, /* No default value */ @@ -168,6 +184,9 @@ static asn_TYPE_member_t asn_MBR_ReceiptServicePart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -185,6 +204,9 @@ static asn_TYPE_member_t asn_MBR_ReceiptServicePart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -202,6 +224,9 @@ static asn_TYPE_member_t asn_MBR_ReceiptServicePart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -245,6 +270,9 @@ asn_TYPE_descriptor_t asn_DEF_ReceiptServicePart = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_ReceiptServicePart_1, diff --git a/vanetza/asn1/its/ReceiptServicePart.h b/vanetza/asn1/its1/ReceiptServicePart.h similarity index 100% rename from vanetza/asn1/its/ReceiptServicePart.h rename to vanetza/asn1/its1/ReceiptServicePart.h diff --git a/vanetza/asn1/its/ReceiptServiceSerialNumber.c b/vanetza/asn1/its1/ReceiptServiceSerialNumber.c similarity index 96% rename from vanetza/asn1/its/ReceiptServiceSerialNumber.c rename to vanetza/asn1/its1/ReceiptServiceSerialNumber.c index c47dbeafc..47ed2dfd1 100644 --- a/vanetza/asn1/its/ReceiptServiceSerialNumber.c +++ b/vanetza/asn1/its1/ReceiptServiceSerialNumber.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_ReceiptServiceSerialNumber = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ReceiptServiceSerialNumber_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ ReceiptServiceSerialNumber_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/ReceiptServiceSerialNumber.h b/vanetza/asn1/its1/ReceiptServiceSerialNumber.h similarity index 100% rename from vanetza/asn1/its/ReceiptServiceSerialNumber.h rename to vanetza/asn1/its1/ReceiptServiceSerialNumber.h diff --git a/vanetza/asn1/its/ReceiptText.c b/vanetza/asn1/its1/ReceiptText.c similarity index 92% rename from vanetza/asn1/its/ReceiptText.c rename to vanetza/asn1/its1/ReceiptText.c index 9137a50af..37fb21337 100644 --- a/vanetza/asn1/its/ReceiptText.c +++ b/vanetza/asn1/its1/ReceiptText.c @@ -31,6 +31,9 @@ asn_TYPE_descriptor_t asn_DEF_ReceiptText = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OCTET_STRING_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/ReceiptText.h b/vanetza/asn1/its1/ReceiptText.h similarity index 100% rename from vanetza/asn1/its/ReceiptText.h rename to vanetza/asn1/its1/ReceiptText.h diff --git a/vanetza/asn1/its/RefPointId.c b/vanetza/asn1/its1/RefPointId.c similarity index 96% rename from vanetza/asn1/its/RefPointId.c rename to vanetza/asn1/its1/RefPointId.c index 09246fee9..605907061 100644 --- a/vanetza/asn1/its/RefPointId.c +++ b/vanetza/asn1/its1/RefPointId.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_RefPointId = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_RefPointId_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ RefPointId_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/RefPointId.h b/vanetza/asn1/its1/RefPointId.h similarity index 100% rename from vanetza/asn1/its/RefPointId.h rename to vanetza/asn1/its1/RefPointId.h diff --git a/vanetza/asn1/its/ReferenceDenms.c b/vanetza/asn1/its1/ReferenceDenms.c similarity index 93% rename from vanetza/asn1/its/ReferenceDenms.c rename to vanetza/asn1/its1/ReferenceDenms.c index fd53803b9..95250a03d 100644 --- a/vanetza/asn1/its/ReferenceDenms.c +++ b/vanetza/asn1/its1/ReferenceDenms.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_ReferenceDenms_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_ReferenceDenms = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ReferenceDenms_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_ReferenceDenms_1, diff --git a/vanetza/asn1/its/ReferenceDenms.h b/vanetza/asn1/its1/ReferenceDenms.h similarity index 100% rename from vanetza/asn1/its/ReferenceDenms.h rename to vanetza/asn1/its1/ReferenceDenms.h diff --git a/vanetza/asn1/its1/ReferencePosition.c b/vanetza/asn1/its1/ReferencePosition.c new file mode 100644 index 000000000..46b24e297 --- /dev/null +++ b/vanetza/asn1/its1/ReferencePosition.c @@ -0,0 +1,135 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ReferencePosition.h" + +asn_TYPE_member_t asn_MBR_ReferencePosition_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ReferencePosition, latitude), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Latitude, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "latitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct ReferencePosition, longitude), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Longitude, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "longitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct ReferencePosition, positionConfidenceEllipse), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PosConfidenceEllipse, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "positionConfidenceEllipse" + }, + { ATF_NOFLAGS, 0, offsetof(struct ReferencePosition, altitude), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Altitude, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "altitude" + }, +}; +static const ber_tlv_tag_t asn_DEF_ReferencePosition_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ReferencePosition_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* latitude */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* longitude */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* positionConfidenceEllipse */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* altitude */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ReferencePosition_specs_1 = { + sizeof(struct ReferencePosition), + offsetof(struct ReferencePosition, _asn_ctx), + asn_MAP_ReferencePosition_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_ReferencePosition = { + "ReferencePosition", + "ReferencePosition", + &asn_OP_SEQUENCE, + asn_DEF_ReferencePosition_tags_1, + sizeof(asn_DEF_ReferencePosition_tags_1) + /sizeof(asn_DEF_ReferencePosition_tags_1[0]), /* 1 */ + asn_DEF_ReferencePosition_tags_1, /* Same as above */ + sizeof(asn_DEF_ReferencePosition_tags_1) + /sizeof(asn_DEF_ReferencePosition_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ReferencePosition_1, + 4, /* Elements count */ + &asn_SPC_ReferencePosition_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/ReferencePosition.h b/vanetza/asn1/its1/ReferencePosition.h similarity index 100% rename from vanetza/asn1/its/ReferencePosition.h rename to vanetza/asn1/its1/ReferencePosition.h diff --git a/vanetza/asn1/its/RegionId.c b/vanetza/asn1/its1/RegionId.c similarity index 96% rename from vanetza/asn1/its/RegionId.c rename to vanetza/asn1/its1/RegionId.c index 063c57d07..04f7439bc 100644 --- a/vanetza/asn1/its/RegionId.c +++ b/vanetza/asn1/its1/RegionId.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_RegionId = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_RegionId_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ RegionId_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/RegionId.h b/vanetza/asn1/its1/RegionId.h similarity index 100% rename from vanetza/asn1/its/RegionId.h rename to vanetza/asn1/its1/RegionId.h diff --git a/vanetza/asn1/its/RegionalExtension.c b/vanetza/asn1/its1/RegionalExtension.c similarity index 94% rename from vanetza/asn1/its/RegionalExtension.c rename to vanetza/asn1/its1/RegionalExtension.c index 9265878e0..c976426a3 100644 --- a/vanetza/asn1/its/RegionalExtension.c +++ b/vanetza/asn1/its1/RegionalExtension.c @@ -2241,6 +2241,9 @@ static asn_TYPE_member_t asn_MBR_regExtValue_3[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -2276,6 +2279,9 @@ asn_TYPE_descriptor_t asn_DEF_regExtValue_3 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OPEN_TYPE_constraint }, asn_MBR_regExtValue_3, @@ -2296,6 +2302,9 @@ asn_TYPE_member_t asn_MBR_Reg_MapData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regionId_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regionId_constraint_1 }, 0, 0, /* No default value */ @@ -2313,6 +2322,9 @@ asn_TYPE_member_t asn_MBR_Reg_MapData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regExtValue_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regExtValue_constraint_1 }, 0, 0, /* No default value */ @@ -2351,6 +2363,9 @@ asn_TYPE_descriptor_t asn_DEF_Reg_MapData = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Reg_MapData_1, @@ -2384,6 +2399,9 @@ asn_TYPE_descriptor_t asn_DEF_regExtValue_6 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OPEN_TYPE_constraint }, 0, 0, /* No members */ @@ -2403,6 +2421,9 @@ asn_TYPE_member_t asn_MBR_Reg_RTCMcorrections_4[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regionId_constr_5, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regionId_constraint_4 }, 0, 0, /* No default value */ @@ -2420,6 +2441,9 @@ asn_TYPE_member_t asn_MBR_Reg_RTCMcorrections_4[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regExtValue_constr_6, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regExtValue_constraint_4 }, 0, 0, /* No default value */ @@ -2458,6 +2482,9 @@ asn_TYPE_descriptor_t asn_DEF_Reg_RTCMcorrections = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Reg_RTCMcorrections_4, @@ -2491,6 +2518,9 @@ asn_TYPE_descriptor_t asn_DEF_regExtValue_9 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OPEN_TYPE_constraint }, 0, 0, /* No members */ @@ -2510,6 +2540,9 @@ asn_TYPE_member_t asn_MBR_Reg_SPAT_7[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regionId_constr_8, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regionId_constraint_7 }, 0, 0, /* No default value */ @@ -2527,6 +2560,9 @@ asn_TYPE_member_t asn_MBR_Reg_SPAT_7[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regExtValue_constr_9, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regExtValue_constraint_7 }, 0, 0, /* No default value */ @@ -2565,6 +2601,9 @@ asn_TYPE_descriptor_t asn_DEF_Reg_SPAT = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Reg_SPAT_7, @@ -2598,6 +2637,9 @@ asn_TYPE_descriptor_t asn_DEF_regExtValue_12 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OPEN_TYPE_constraint }, 0, 0, /* No members */ @@ -2617,6 +2659,9 @@ asn_TYPE_member_t asn_MBR_Reg_SignalRequestMessage_10[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regionId_constr_11, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regionId_constraint_10 }, 0, 0, /* No default value */ @@ -2634,6 +2679,9 @@ asn_TYPE_member_t asn_MBR_Reg_SignalRequestMessage_10[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regExtValue_constr_12, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regExtValue_constraint_10 }, 0, 0, /* No default value */ @@ -2672,6 +2720,9 @@ asn_TYPE_descriptor_t asn_DEF_Reg_SignalRequestMessage = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Reg_SignalRequestMessage_10, @@ -2705,6 +2756,9 @@ asn_TYPE_descriptor_t asn_DEF_regExtValue_15 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OPEN_TYPE_constraint }, 0, 0, /* No members */ @@ -2724,6 +2778,9 @@ asn_TYPE_member_t asn_MBR_Reg_SignalStatusMessage_13[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regionId_constr_14, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regionId_constraint_13 }, 0, 0, /* No default value */ @@ -2741,6 +2798,9 @@ asn_TYPE_member_t asn_MBR_Reg_SignalStatusMessage_13[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regExtValue_constr_15, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regExtValue_constraint_13 }, 0, 0, /* No default value */ @@ -2779,6 +2839,9 @@ asn_TYPE_descriptor_t asn_DEF_Reg_SignalStatusMessage = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Reg_SignalStatusMessage_13, @@ -2812,6 +2875,9 @@ asn_TYPE_descriptor_t asn_DEF_regExtValue_18 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OPEN_TYPE_constraint }, 0, 0, /* No members */ @@ -2831,6 +2897,9 @@ asn_TYPE_member_t asn_MBR_Reg_AdvisorySpeed_16[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regionId_constr_17, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regionId_constraint_16 }, 0, 0, /* No default value */ @@ -2848,6 +2917,9 @@ asn_TYPE_member_t asn_MBR_Reg_AdvisorySpeed_16[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regExtValue_constr_18, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regExtValue_constraint_16 }, 0, 0, /* No default value */ @@ -2886,6 +2958,9 @@ asn_TYPE_descriptor_t asn_DEF_Reg_AdvisorySpeed = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Reg_AdvisorySpeed_16, @@ -2919,6 +2994,9 @@ asn_TYPE_descriptor_t asn_DEF_regExtValue_21 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OPEN_TYPE_constraint }, 0, 0, /* No members */ @@ -2938,6 +3016,9 @@ asn_TYPE_member_t asn_MBR_Reg_ComputedLane_19[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regionId_constr_20, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regionId_constraint_19 }, 0, 0, /* No default value */ @@ -2955,6 +3036,9 @@ asn_TYPE_member_t asn_MBR_Reg_ComputedLane_19[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regExtValue_constr_21, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regExtValue_constraint_19 }, 0, 0, /* No default value */ @@ -2993,6 +3077,9 @@ asn_TYPE_descriptor_t asn_DEF_Reg_ComputedLane = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Reg_ComputedLane_19, @@ -3013,6 +3100,9 @@ static asn_TYPE_member_t asn_MBR_regExtValue_24[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -3048,6 +3138,9 @@ asn_TYPE_descriptor_t asn_DEF_regExtValue_24 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OPEN_TYPE_constraint }, asn_MBR_regExtValue_24, @@ -3068,6 +3161,9 @@ asn_TYPE_member_t asn_MBR_Reg_ConnectionManeuverAssist_22[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regionId_constr_23, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regionId_constraint_22 }, 0, 0, /* No default value */ @@ -3085,6 +3181,9 @@ asn_TYPE_member_t asn_MBR_Reg_ConnectionManeuverAssist_22[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regExtValue_constr_24, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regExtValue_constraint_22 }, 0, 0, /* No default value */ @@ -3123,6 +3222,9 @@ asn_TYPE_descriptor_t asn_DEF_Reg_ConnectionManeuverAssist = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Reg_ConnectionManeuverAssist_22, @@ -3143,6 +3245,9 @@ static asn_TYPE_member_t asn_MBR_regExtValue_27[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -3178,6 +3283,9 @@ asn_TYPE_descriptor_t asn_DEF_regExtValue_27 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OPEN_TYPE_constraint }, asn_MBR_regExtValue_27, @@ -3198,6 +3306,9 @@ asn_TYPE_member_t asn_MBR_Reg_GenericLane_25[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regionId_constr_26, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regionId_constraint_25 }, 0, 0, /* No default value */ @@ -3215,6 +3326,9 @@ asn_TYPE_member_t asn_MBR_Reg_GenericLane_25[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regExtValue_constr_27, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regExtValue_constraint_25 }, 0, 0, /* No default value */ @@ -3253,6 +3367,9 @@ asn_TYPE_descriptor_t asn_DEF_Reg_GenericLane = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Reg_GenericLane_25, @@ -3286,6 +3403,9 @@ asn_TYPE_descriptor_t asn_DEF_regExtValue_30 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OPEN_TYPE_constraint }, 0, 0, /* No members */ @@ -3305,6 +3425,9 @@ asn_TYPE_member_t asn_MBR_Reg_IntersectionGeometry_28[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regionId_constr_29, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regionId_constraint_28 }, 0, 0, /* No default value */ @@ -3322,6 +3445,9 @@ asn_TYPE_member_t asn_MBR_Reg_IntersectionGeometry_28[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regExtValue_constr_30, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regExtValue_constraint_28 }, 0, 0, /* No default value */ @@ -3360,6 +3486,9 @@ asn_TYPE_descriptor_t asn_DEF_Reg_IntersectionGeometry = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Reg_IntersectionGeometry_28, @@ -3380,6 +3509,9 @@ static asn_TYPE_member_t asn_MBR_regExtValue_33[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -3415,6 +3547,9 @@ asn_TYPE_descriptor_t asn_DEF_regExtValue_33 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OPEN_TYPE_constraint }, asn_MBR_regExtValue_33, @@ -3435,6 +3570,9 @@ asn_TYPE_member_t asn_MBR_Reg_IntersectionState_31[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regionId_constr_32, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regionId_constraint_31 }, 0, 0, /* No default value */ @@ -3452,6 +3590,9 @@ asn_TYPE_member_t asn_MBR_Reg_IntersectionState_31[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regExtValue_constr_33, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regExtValue_constraint_31 }, 0, 0, /* No default value */ @@ -3490,6 +3631,9 @@ asn_TYPE_descriptor_t asn_DEF_Reg_IntersectionState = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Reg_IntersectionState_31, @@ -3510,6 +3654,9 @@ static asn_TYPE_member_t asn_MBR_regExtValue_36[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -3545,6 +3692,9 @@ asn_TYPE_descriptor_t asn_DEF_regExtValue_36 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OPEN_TYPE_constraint }, asn_MBR_regExtValue_36, @@ -3565,6 +3715,9 @@ asn_TYPE_member_t asn_MBR_Reg_LaneAttributes_34[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regionId_constr_35, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regionId_constraint_34 }, 0, 0, /* No default value */ @@ -3582,6 +3735,9 @@ asn_TYPE_member_t asn_MBR_Reg_LaneAttributes_34[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regExtValue_constr_36, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regExtValue_constraint_34 }, 0, 0, /* No default value */ @@ -3620,6 +3776,9 @@ asn_TYPE_descriptor_t asn_DEF_Reg_LaneAttributes = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Reg_LaneAttributes_34, @@ -3653,6 +3812,9 @@ asn_TYPE_descriptor_t asn_DEF_regExtValue_39 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OPEN_TYPE_constraint }, 0, 0, /* No members */ @@ -3672,6 +3834,9 @@ asn_TYPE_member_t asn_MBR_Reg_LaneDataAttribute_37[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regionId_constr_38, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regionId_constraint_37 }, 0, 0, /* No default value */ @@ -3689,6 +3854,9 @@ asn_TYPE_member_t asn_MBR_Reg_LaneDataAttribute_37[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regExtValue_constr_39, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regExtValue_constraint_37 }, 0, 0, /* No default value */ @@ -3727,6 +3895,9 @@ asn_TYPE_descriptor_t asn_DEF_Reg_LaneDataAttribute = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Reg_LaneDataAttribute_37, @@ -3747,6 +3918,9 @@ static asn_TYPE_member_t asn_MBR_regExtValue_42[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -3782,6 +3956,9 @@ asn_TYPE_descriptor_t asn_DEF_regExtValue_42 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OPEN_TYPE_constraint }, asn_MBR_regExtValue_42, @@ -3802,6 +3979,9 @@ asn_TYPE_member_t asn_MBR_Reg_MovementEvent_40[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regionId_constr_41, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regionId_constraint_40 }, 0, 0, /* No default value */ @@ -3819,6 +3999,9 @@ asn_TYPE_member_t asn_MBR_Reg_MovementEvent_40[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regExtValue_constr_42, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regExtValue_constraint_40 }, 0, 0, /* No default value */ @@ -3857,6 +4040,9 @@ asn_TYPE_descriptor_t asn_DEF_Reg_MovementEvent = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Reg_MovementEvent_40, @@ -3890,6 +4076,9 @@ asn_TYPE_descriptor_t asn_DEF_regExtValue_45 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OPEN_TYPE_constraint }, 0, 0, /* No members */ @@ -3909,6 +4098,9 @@ asn_TYPE_member_t asn_MBR_Reg_MovementState_43[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regionId_constr_44, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regionId_constraint_43 }, 0, 0, /* No default value */ @@ -3926,6 +4118,9 @@ asn_TYPE_member_t asn_MBR_Reg_MovementState_43[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regExtValue_constr_45, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regExtValue_constraint_43 }, 0, 0, /* No default value */ @@ -3964,6 +4159,9 @@ asn_TYPE_descriptor_t asn_DEF_Reg_MovementState = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Reg_MovementState_43, @@ -3984,6 +4182,9 @@ static asn_TYPE_member_t asn_MBR_regExtValue_48[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -4019,6 +4220,9 @@ asn_TYPE_descriptor_t asn_DEF_regExtValue_48 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OPEN_TYPE_constraint }, asn_MBR_regExtValue_48, @@ -4039,6 +4243,9 @@ asn_TYPE_member_t asn_MBR_Reg_NodeAttributeSetXY_46[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regionId_constr_47, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regionId_constraint_46 }, 0, 0, /* No default value */ @@ -4056,6 +4263,9 @@ asn_TYPE_member_t asn_MBR_Reg_NodeAttributeSetXY_46[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regExtValue_constr_48, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regExtValue_constraint_46 }, 0, 0, /* No default value */ @@ -4094,6 +4304,9 @@ asn_TYPE_descriptor_t asn_DEF_Reg_NodeAttributeSetXY = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Reg_NodeAttributeSetXY_46, @@ -4127,6 +4340,9 @@ asn_TYPE_descriptor_t asn_DEF_regExtValue_51 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OPEN_TYPE_constraint }, 0, 0, /* No members */ @@ -4146,6 +4362,9 @@ asn_TYPE_member_t asn_MBR_Reg_NodeOffsetPointXY_49[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regionId_constr_50, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regionId_constraint_49 }, 0, 0, /* No default value */ @@ -4163,6 +4382,9 @@ asn_TYPE_member_t asn_MBR_Reg_NodeOffsetPointXY_49[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regExtValue_constr_51, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regExtValue_constraint_49 }, 0, 0, /* No default value */ @@ -4201,6 +4423,9 @@ asn_TYPE_descriptor_t asn_DEF_Reg_NodeOffsetPointXY = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Reg_NodeOffsetPointXY_49, @@ -4221,6 +4446,9 @@ static asn_TYPE_member_t asn_MBR_regExtValue_54[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -4256,6 +4484,9 @@ asn_TYPE_descriptor_t asn_DEF_regExtValue_54 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OPEN_TYPE_constraint }, asn_MBR_regExtValue_54, @@ -4276,6 +4507,9 @@ asn_TYPE_member_t asn_MBR_Reg_Position3D_52[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regionId_constr_53, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regionId_constraint_52 }, 0, 0, /* No default value */ @@ -4293,6 +4527,9 @@ asn_TYPE_member_t asn_MBR_Reg_Position3D_52[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regExtValue_constr_54, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regExtValue_constraint_52 }, 0, 0, /* No default value */ @@ -4331,6 +4568,9 @@ asn_TYPE_descriptor_t asn_DEF_Reg_Position3D = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Reg_Position3D_52, @@ -4351,6 +4591,9 @@ static asn_TYPE_member_t asn_MBR_regExtValue_57[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -4386,6 +4629,9 @@ asn_TYPE_descriptor_t asn_DEF_regExtValue_57 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OPEN_TYPE_constraint }, asn_MBR_regExtValue_57, @@ -4406,6 +4652,9 @@ asn_TYPE_member_t asn_MBR_Reg_RequestorDescription_55[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regionId_constr_56, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regionId_constraint_55 }, 0, 0, /* No default value */ @@ -4423,6 +4672,9 @@ asn_TYPE_member_t asn_MBR_Reg_RequestorDescription_55[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regExtValue_constr_57, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regExtValue_constraint_55 }, 0, 0, /* No default value */ @@ -4461,6 +4713,9 @@ asn_TYPE_descriptor_t asn_DEF_Reg_RequestorDescription = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Reg_RequestorDescription_55, @@ -4494,6 +4749,9 @@ asn_TYPE_descriptor_t asn_DEF_regExtValue_60 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OPEN_TYPE_constraint }, 0, 0, /* No members */ @@ -4513,6 +4771,9 @@ asn_TYPE_member_t asn_MBR_Reg_RequestorType_58[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regionId_constr_59, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regionId_constraint_58 }, 0, 0, /* No default value */ @@ -4530,6 +4791,9 @@ asn_TYPE_member_t asn_MBR_Reg_RequestorType_58[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regExtValue_constr_60, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regExtValue_constraint_58 }, 0, 0, /* No default value */ @@ -4568,6 +4832,9 @@ asn_TYPE_descriptor_t asn_DEF_Reg_RequestorType = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Reg_RequestorType_58, @@ -4588,6 +4855,9 @@ static asn_TYPE_member_t asn_MBR_regExtValue_63[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -4623,6 +4893,9 @@ asn_TYPE_descriptor_t asn_DEF_regExtValue_63 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OPEN_TYPE_constraint }, asn_MBR_regExtValue_63, @@ -4643,6 +4916,9 @@ asn_TYPE_member_t asn_MBR_Reg_RestrictionUserType_61[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regionId_constr_62, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regionId_constraint_61 }, 0, 0, /* No default value */ @@ -4660,6 +4936,9 @@ asn_TYPE_member_t asn_MBR_Reg_RestrictionUserType_61[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regExtValue_constr_63, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regExtValue_constraint_61 }, 0, 0, /* No default value */ @@ -4698,6 +4977,9 @@ asn_TYPE_descriptor_t asn_DEF_Reg_RestrictionUserType = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Reg_RestrictionUserType_61, @@ -4731,6 +5013,9 @@ asn_TYPE_descriptor_t asn_DEF_regExtValue_66 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OPEN_TYPE_constraint }, 0, 0, /* No members */ @@ -4750,6 +5035,9 @@ asn_TYPE_member_t asn_MBR_Reg_RoadSegment_64[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regionId_constr_65, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regionId_constraint_64 }, 0, 0, /* No default value */ @@ -4767,6 +5055,9 @@ asn_TYPE_member_t asn_MBR_Reg_RoadSegment_64[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regExtValue_constr_66, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regExtValue_constraint_64 }, 0, 0, /* No default value */ @@ -4805,6 +5096,9 @@ asn_TYPE_descriptor_t asn_DEF_Reg_RoadSegment = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Reg_RoadSegment_64, @@ -4838,6 +5132,9 @@ asn_TYPE_descriptor_t asn_DEF_regExtValue_69 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OPEN_TYPE_constraint }, 0, 0, /* No members */ @@ -4857,6 +5154,9 @@ asn_TYPE_member_t asn_MBR_Reg_SignalControlZone_67[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regionId_constr_68, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regionId_constraint_67 }, 0, 0, /* No default value */ @@ -4874,6 +5174,9 @@ asn_TYPE_member_t asn_MBR_Reg_SignalControlZone_67[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regExtValue_constr_69, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regExtValue_constraint_67 }, 0, 0, /* No default value */ @@ -4912,6 +5215,9 @@ asn_TYPE_descriptor_t asn_DEF_Reg_SignalControlZone = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Reg_SignalControlZone_67, @@ -4945,6 +5251,9 @@ asn_TYPE_descriptor_t asn_DEF_regExtValue_72 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OPEN_TYPE_constraint }, 0, 0, /* No members */ @@ -4964,6 +5273,9 @@ asn_TYPE_member_t asn_MBR_Reg_SignalRequest_70[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regionId_constr_71, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regionId_constraint_70 }, 0, 0, /* No default value */ @@ -4981,6 +5293,9 @@ asn_TYPE_member_t asn_MBR_Reg_SignalRequest_70[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regExtValue_constr_72, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regExtValue_constraint_70 }, 0, 0, /* No default value */ @@ -5019,6 +5334,9 @@ asn_TYPE_descriptor_t asn_DEF_Reg_SignalRequest = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Reg_SignalRequest_70, @@ -5052,6 +5370,9 @@ asn_TYPE_descriptor_t asn_DEF_regExtValue_75 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OPEN_TYPE_constraint }, 0, 0, /* No members */ @@ -5071,6 +5392,9 @@ asn_TYPE_member_t asn_MBR_Reg_SignalRequestPackage_73[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regionId_constr_74, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regionId_constraint_73 }, 0, 0, /* No default value */ @@ -5088,6 +5412,9 @@ asn_TYPE_member_t asn_MBR_Reg_SignalRequestPackage_73[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regExtValue_constr_75, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regExtValue_constraint_73 }, 0, 0, /* No default value */ @@ -5126,6 +5453,9 @@ asn_TYPE_descriptor_t asn_DEF_Reg_SignalRequestPackage = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Reg_SignalRequestPackage_73, @@ -5159,6 +5489,9 @@ asn_TYPE_descriptor_t asn_DEF_regExtValue_78 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OPEN_TYPE_constraint }, 0, 0, /* No members */ @@ -5178,6 +5511,9 @@ asn_TYPE_member_t asn_MBR_Reg_SignalStatus_76[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regionId_constr_77, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regionId_constraint_76 }, 0, 0, /* No default value */ @@ -5195,6 +5531,9 @@ asn_TYPE_member_t asn_MBR_Reg_SignalStatus_76[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regExtValue_constr_78, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regExtValue_constraint_76 }, 0, 0, /* No default value */ @@ -5233,6 +5572,9 @@ asn_TYPE_descriptor_t asn_DEF_Reg_SignalStatus = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Reg_SignalStatus_76, @@ -5253,6 +5595,9 @@ static asn_TYPE_member_t asn_MBR_regExtValue_81[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -5288,6 +5633,9 @@ asn_TYPE_descriptor_t asn_DEF_regExtValue_81 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OPEN_TYPE_constraint }, asn_MBR_regExtValue_81, @@ -5308,6 +5656,9 @@ asn_TYPE_member_t asn_MBR_Reg_SignalStatusPackage_79[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regionId_constr_80, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regionId_constraint_79 }, 0, 0, /* No default value */ @@ -5325,6 +5676,9 @@ asn_TYPE_member_t asn_MBR_Reg_SignalStatusPackage_79[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regExtValue_constr_81, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regExtValue_constraint_79 }, 0, 0, /* No default value */ @@ -5363,6 +5717,9 @@ asn_TYPE_descriptor_t asn_DEF_Reg_SignalStatusPackage = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Reg_SignalStatusPackage_79, diff --git a/vanetza/asn1/its/RegionalExtension.h b/vanetza/asn1/its1/RegionalExtension.h similarity index 100% rename from vanetza/asn1/its/RegionalExtension.h rename to vanetza/asn1/its1/RegionalExtension.h diff --git a/vanetza/asn1/its/RegulatorySpeedLimit.c b/vanetza/asn1/its1/RegulatorySpeedLimit.c similarity index 90% rename from vanetza/asn1/its/RegulatorySpeedLimit.c rename to vanetza/asn1/its1/RegulatorySpeedLimit.c index 994974bd4..b2a39cb5c 100644 --- a/vanetza/asn1/its/RegulatorySpeedLimit.c +++ b/vanetza/asn1/its1/RegulatorySpeedLimit.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_RegulatorySpeedLimit_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_RegulatorySpeedLimit_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_RegulatorySpeedLimit = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_RegulatorySpeedLimit_1, diff --git a/vanetza/asn1/its/RegulatorySpeedLimit.h b/vanetza/asn1/its1/RegulatorySpeedLimit.h similarity index 100% rename from vanetza/asn1/its/RegulatorySpeedLimit.h rename to vanetza/asn1/its1/RegulatorySpeedLimit.h diff --git a/vanetza/asn1/its/RejectedReason.c b/vanetza/asn1/its1/RejectedReason.c similarity index 96% rename from vanetza/asn1/its/RejectedReason.c rename to vanetza/asn1/its1/RejectedReason.c index caff62a35..a93993ceb 100644 --- a/vanetza/asn1/its/RejectedReason.c +++ b/vanetza/asn1/its1/RejectedReason.c @@ -70,6 +70,9 @@ asn_TYPE_descriptor_t asn_DEF_RejectedReason = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_RejectedReason_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/RejectedReason.h b/vanetza/asn1/its1/RejectedReason.h similarity index 100% rename from vanetza/asn1/its/RejectedReason.h rename to vanetza/asn1/its1/RejectedReason.h diff --git a/vanetza/asn1/its1/RelevanceDistance.c b/vanetza/asn1/its1/RelevanceDistance.c new file mode 100644 index 000000000..2234ef852 --- /dev/null +++ b/vanetza/asn1/its1/RelevanceDistance.c @@ -0,0 +1,83 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RelevanceDistance.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_RelevanceDistance_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_RelevanceDistance_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 asn_INTEGER_enum_map_t asn_MAP_RelevanceDistance_value2enum_1[] = { + { 0, 11, "lessThan50m" }, + { 1, 12, "lessThan100m" }, + { 2, 12, "lessThan200m" }, + { 3, 12, "lessThan500m" }, + { 4, 13, "lessThan1000m" }, + { 5, 11, "lessThan5km" }, + { 6, 12, "lessThan10km" }, + { 7, 8, "over10km" } +}; +static const unsigned int asn_MAP_RelevanceDistance_enum2value_1[] = { + 4, /* lessThan1000m(4) */ + 1, /* lessThan100m(1) */ + 6, /* lessThan10km(6) */ + 2, /* lessThan200m(2) */ + 3, /* lessThan500m(3) */ + 0, /* lessThan50m(0) */ + 5, /* lessThan5km(5) */ + 7 /* over10km(7) */ +}; +const asn_INTEGER_specifics_t asn_SPC_RelevanceDistance_specs_1 = { + asn_MAP_RelevanceDistance_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_RelevanceDistance_enum2value_1, /* 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_RelevanceDistance_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_RelevanceDistance = { + "RelevanceDistance", + "RelevanceDistance", + &asn_OP_NativeEnumerated, + asn_DEF_RelevanceDistance_tags_1, + sizeof(asn_DEF_RelevanceDistance_tags_1) + /sizeof(asn_DEF_RelevanceDistance_tags_1[0]), /* 1 */ + asn_DEF_RelevanceDistance_tags_1, /* Same as above */ + sizeof(asn_DEF_RelevanceDistance_tags_1) + /sizeof(asn_DEF_RelevanceDistance_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_RelevanceDistance_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_RelevanceDistance_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_RelevanceDistance_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/RelevanceDistance.h b/vanetza/asn1/its1/RelevanceDistance.h similarity index 100% rename from vanetza/asn1/its/RelevanceDistance.h rename to vanetza/asn1/its1/RelevanceDistance.h diff --git a/vanetza/asn1/its1/RelevanceTrafficDirection.c b/vanetza/asn1/its1/RelevanceTrafficDirection.c new file mode 100644 index 000000000..f13e7a5b9 --- /dev/null +++ b/vanetza/asn1/its1/RelevanceTrafficDirection.c @@ -0,0 +1,75 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RelevanceTrafficDirection.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_RelevanceTrafficDirection_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_RelevanceTrafficDirection_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) */ +static const asn_INTEGER_enum_map_t asn_MAP_RelevanceTrafficDirection_value2enum_1[] = { + { 0, 20, "allTrafficDirections" }, + { 1, 15, "upstreamTraffic" }, + { 2, 17, "downstreamTraffic" }, + { 3, 15, "oppositeTraffic" } +}; +static const unsigned int asn_MAP_RelevanceTrafficDirection_enum2value_1[] = { + 0, /* allTrafficDirections(0) */ + 2, /* downstreamTraffic(2) */ + 3, /* oppositeTraffic(3) */ + 1 /* upstreamTraffic(1) */ +}; +const asn_INTEGER_specifics_t asn_SPC_RelevanceTrafficDirection_specs_1 = { + asn_MAP_RelevanceTrafficDirection_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_RelevanceTrafficDirection_enum2value_1, /* 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_RelevanceTrafficDirection_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_RelevanceTrafficDirection = { + "RelevanceTrafficDirection", + "RelevanceTrafficDirection", + &asn_OP_NativeEnumerated, + asn_DEF_RelevanceTrafficDirection_tags_1, + sizeof(asn_DEF_RelevanceTrafficDirection_tags_1) + /sizeof(asn_DEF_RelevanceTrafficDirection_tags_1[0]), /* 1 */ + asn_DEF_RelevanceTrafficDirection_tags_1, /* Same as above */ + sizeof(asn_DEF_RelevanceTrafficDirection_tags_1) + /sizeof(asn_DEF_RelevanceTrafficDirection_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_RelevanceTrafficDirection_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_RelevanceTrafficDirection_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_RelevanceTrafficDirection_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/RelevanceTrafficDirection.h b/vanetza/asn1/its1/RelevanceTrafficDirection.h similarity index 100% rename from vanetza/asn1/its/RelevanceTrafficDirection.h rename to vanetza/asn1/its1/RelevanceTrafficDirection.h diff --git a/vanetza/asn1/its/RepeatingPeriodDayTypes.c b/vanetza/asn1/its1/RepeatingPeriodDayTypes.c similarity index 89% rename from vanetza/asn1/its/RepeatingPeriodDayTypes.c rename to vanetza/asn1/its1/RepeatingPeriodDayTypes.c index e237634ee..cbe050746 100644 --- a/vanetza/asn1/its/RepeatingPeriodDayTypes.c +++ b/vanetza/asn1/its1/RepeatingPeriodDayTypes.c @@ -54,6 +54,10 @@ asn_per_constraints_t asn_PER_type_RepeatingPeriodDayTypes_constr_1 CC_NOTUSED = 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_RepeatingPeriodDayTypes_constr_1 CC_NOTUSED = { + 4}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_RepeatingPeriodDayTypes_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) }; @@ -74,6 +78,9 @@ asn_TYPE_descriptor_t asn_DEF_RepeatingPeriodDayTypes = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_RepeatingPeriodDayTypes_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_RepeatingPeriodDayTypes_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ RepeatingPeriodDayTypes_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/RepeatingPeriodDayTypes.h b/vanetza/asn1/its1/RepeatingPeriodDayTypes.h similarity index 100% rename from vanetza/asn1/its/RepeatingPeriodDayTypes.h rename to vanetza/asn1/its1/RepeatingPeriodDayTypes.h diff --git a/vanetza/asn1/its/RequestID.c b/vanetza/asn1/its1/RequestID.c similarity index 96% rename from vanetza/asn1/its/RequestID.c rename to vanetza/asn1/its1/RequestID.c index db8a4c848..e7adbc560 100644 --- a/vanetza/asn1/its/RequestID.c +++ b/vanetza/asn1/its1/RequestID.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_RequestID = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_RequestID_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ RequestID_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/RequestID.h b/vanetza/asn1/its1/RequestID.h similarity index 100% rename from vanetza/asn1/its/RequestID.h rename to vanetza/asn1/its1/RequestID.h diff --git a/vanetza/asn1/its/RequestImportanceLevel.c b/vanetza/asn1/its1/RequestImportanceLevel.c similarity index 97% rename from vanetza/asn1/its/RequestImportanceLevel.c rename to vanetza/asn1/its1/RequestImportanceLevel.c index 25d9a466a..d63c307dd 100644 --- a/vanetza/asn1/its/RequestImportanceLevel.c +++ b/vanetza/asn1/its1/RequestImportanceLevel.c @@ -88,6 +88,9 @@ asn_TYPE_descriptor_t asn_DEF_RequestImportanceLevel = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_RequestImportanceLevel_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/RequestImportanceLevel.h b/vanetza/asn1/its1/RequestImportanceLevel.h similarity index 100% rename from vanetza/asn1/its/RequestImportanceLevel.h rename to vanetza/asn1/its1/RequestImportanceLevel.h diff --git a/vanetza/asn1/its1/RequestResponseIndication.c b/vanetza/asn1/its1/RequestResponseIndication.c new file mode 100644 index 000000000..49b15c1f4 --- /dev/null +++ b/vanetza/asn1/its1/RequestResponseIndication.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RequestResponseIndication.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_RequestResponseIndication_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_RequestResponseIndication_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_RequestResponseIndication_value2enum_1[] = { + { 0, 7, "request" }, + { 1, 8, "response" } +}; +static const unsigned int asn_MAP_RequestResponseIndication_enum2value_1[] = { + 0, /* request(0) */ + 1 /* response(1) */ +}; +const asn_INTEGER_specifics_t asn_SPC_RequestResponseIndication_specs_1 = { + asn_MAP_RequestResponseIndication_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_RequestResponseIndication_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_RequestResponseIndication_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_RequestResponseIndication = { + "RequestResponseIndication", + "RequestResponseIndication", + &asn_OP_NativeEnumerated, + asn_DEF_RequestResponseIndication_tags_1, + sizeof(asn_DEF_RequestResponseIndication_tags_1) + /sizeof(asn_DEF_RequestResponseIndication_tags_1[0]), /* 1 */ + asn_DEF_RequestResponseIndication_tags_1, /* Same as above */ + sizeof(asn_DEF_RequestResponseIndication_tags_1) + /sizeof(asn_DEF_RequestResponseIndication_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_RequestResponseIndication_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_RequestResponseIndication_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_RequestResponseIndication_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/RequestResponseIndication.h b/vanetza/asn1/its1/RequestResponseIndication.h similarity index 100% rename from vanetza/asn1/its/RequestResponseIndication.h rename to vanetza/asn1/its1/RequestResponseIndication.h diff --git a/vanetza/asn1/its/RequestSubRole.c b/vanetza/asn1/its1/RequestSubRole.c similarity index 97% rename from vanetza/asn1/its/RequestSubRole.c rename to vanetza/asn1/its1/RequestSubRole.c index 049ce0636..79d4995f0 100644 --- a/vanetza/asn1/its/RequestSubRole.c +++ b/vanetza/asn1/its1/RequestSubRole.c @@ -88,6 +88,9 @@ asn_TYPE_descriptor_t asn_DEF_RequestSubRole = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_RequestSubRole_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/RequestSubRole.h b/vanetza/asn1/its1/RequestSubRole.h similarity index 100% rename from vanetza/asn1/its/RequestSubRole.h rename to vanetza/asn1/its1/RequestSubRole.h diff --git a/vanetza/asn1/its/RequestorDescription-addGrpC.c b/vanetza/asn1/its1/RequestorDescription-addGrpC.c similarity index 91% rename from vanetza/asn1/its/RequestorDescription-addGrpC.c rename to vanetza/asn1/its1/RequestorDescription-addGrpC.c index e191cc3bc..9e36e1e43 100644 --- a/vanetza/asn1/its/RequestorDescription-addGrpC.c +++ b/vanetza/asn1/its1/RequestorDescription-addGrpC.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_RequestorDescription_addGrpC_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_RequestorDescription_addGrpC_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -77,6 +83,9 @@ asn_TYPE_descriptor_t asn_DEF_RequestorDescription_addGrpC = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_RequestorDescription_addGrpC_1, diff --git a/vanetza/asn1/its/RequestorDescription-addGrpC.h b/vanetza/asn1/its1/RequestorDescription-addGrpC.h similarity index 100% rename from vanetza/asn1/its/RequestorDescription-addGrpC.h rename to vanetza/asn1/its1/RequestorDescription-addGrpC.h diff --git a/vanetza/asn1/its/RequestorDescription.c b/vanetza/asn1/its1/RequestorDescription.c similarity index 90% rename from vanetza/asn1/its/RequestorDescription.c rename to vanetza/asn1/its1/RequestorDescription.c index 59b51383d..d641bffda 100644 --- a/vanetza/asn1/its/RequestorDescription.c +++ b/vanetza/asn1/its1/RequestorDescription.c @@ -70,6 +70,9 @@ static asn_TYPE_member_t asn_MBR_regional_10[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -103,6 +106,9 @@ asn_TYPE_descriptor_t asn_DEF_regional_10 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_regional_constr_10, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_regional_10, @@ -123,6 +129,9 @@ asn_TYPE_member_t asn_MBR_RequestorDescription_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -140,6 +149,9 @@ asn_TYPE_member_t asn_MBR_RequestorDescription_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -157,6 +169,9 @@ asn_TYPE_member_t asn_MBR_RequestorDescription_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -174,6 +189,9 @@ asn_TYPE_member_t asn_MBR_RequestorDescription_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -191,6 +209,9 @@ asn_TYPE_member_t asn_MBR_RequestorDescription_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -208,6 +229,9 @@ asn_TYPE_member_t asn_MBR_RequestorDescription_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -225,6 +249,9 @@ asn_TYPE_member_t asn_MBR_RequestorDescription_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -242,6 +269,9 @@ asn_TYPE_member_t asn_MBR_RequestorDescription_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -259,6 +289,9 @@ asn_TYPE_member_t asn_MBR_RequestorDescription_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regional_constr_10, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regional_constraint_1 }, 0, 0, /* No default value */ @@ -306,6 +339,9 @@ asn_TYPE_descriptor_t asn_DEF_RequestorDescription = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_RequestorDescription_1, diff --git a/vanetza/asn1/its/RequestorDescription.h b/vanetza/asn1/its1/RequestorDescription.h similarity index 100% rename from vanetza/asn1/its/RequestorDescription.h rename to vanetza/asn1/its1/RequestorDescription.h diff --git a/vanetza/asn1/its/RequestorPositionVector.c b/vanetza/asn1/its1/RequestorPositionVector.c similarity index 90% rename from vanetza/asn1/its/RequestorPositionVector.c rename to vanetza/asn1/its1/RequestorPositionVector.c index d9eb83358..db7ebe3cd 100644 --- a/vanetza/asn1/its/RequestorPositionVector.c +++ b/vanetza/asn1/its1/RequestorPositionVector.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_RequestorPositionVector_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_RequestorPositionVector_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_RequestorPositionVector_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -95,6 +104,9 @@ asn_TYPE_descriptor_t asn_DEF_RequestorPositionVector = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_RequestorPositionVector_1, diff --git a/vanetza/asn1/its/RequestorPositionVector.h b/vanetza/asn1/its1/RequestorPositionVector.h similarity index 100% rename from vanetza/asn1/its/RequestorPositionVector.h rename to vanetza/asn1/its1/RequestorPositionVector.h diff --git a/vanetza/asn1/its/RequestorType.c b/vanetza/asn1/its1/RequestorType.c similarity index 88% rename from vanetza/asn1/its/RequestorType.c rename to vanetza/asn1/its1/RequestorType.c index c276b4216..5c5d86687 100644 --- a/vanetza/asn1/its/RequestorType.c +++ b/vanetza/asn1/its1/RequestorType.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_RequestorType_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_RequestorType_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_RequestorType_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -71,6 +80,9 @@ asn_TYPE_member_t asn_MBR_RequestorType_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -88,6 +100,9 @@ asn_TYPE_member_t asn_MBR_RequestorType_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -105,6 +120,9 @@ asn_TYPE_member_t asn_MBR_RequestorType_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -149,6 +167,9 @@ asn_TYPE_descriptor_t asn_DEF_RequestorType = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_RequestorType_1, diff --git a/vanetza/asn1/its/RequestorType.h b/vanetza/asn1/its1/RequestorType.h similarity index 100% rename from vanetza/asn1/its/RequestorType.h rename to vanetza/asn1/its1/RequestorType.h diff --git a/vanetza/asn1/its1/RescueAndRecoveryWorkInProgressSubCauseCode.c b/vanetza/asn1/its1/RescueAndRecoveryWorkInProgressSubCauseCode.c new file mode 100644 index 000000000..d051375ba --- /dev/null +++ b/vanetza/asn1/its1/RescueAndRecoveryWorkInProgressSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RescueAndRecoveryWorkInProgressSubCauseCode.h" + +int +RescueAndRecoveryWorkInProgressSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_RescueAndRecoveryWorkInProgressSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_RescueAndRecoveryWorkInProgressSubCauseCode_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_RescueAndRecoveryWorkInProgressSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_RescueAndRecoveryWorkInProgressSubCauseCode = { + "RescueAndRecoveryWorkInProgressSubCauseCode", + "RescueAndRecoveryWorkInProgressSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_RescueAndRecoveryWorkInProgressSubCauseCode_tags_1, + sizeof(asn_DEF_RescueAndRecoveryWorkInProgressSubCauseCode_tags_1) + /sizeof(asn_DEF_RescueAndRecoveryWorkInProgressSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_RescueAndRecoveryWorkInProgressSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_RescueAndRecoveryWorkInProgressSubCauseCode_tags_1) + /sizeof(asn_DEF_RescueAndRecoveryWorkInProgressSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_RescueAndRecoveryWorkInProgressSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_RescueAndRecoveryWorkInProgressSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + RescueAndRecoveryWorkInProgressSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/RescueAndRecoveryWorkInProgressSubCauseCode.h b/vanetza/asn1/its1/RescueAndRecoveryWorkInProgressSubCauseCode.h similarity index 100% rename from vanetza/asn1/its/RescueAndRecoveryWorkInProgressSubCauseCode.h rename to vanetza/asn1/its1/RescueAndRecoveryWorkInProgressSubCauseCode.h diff --git a/vanetza/asn1/its1/RescueContainer.c b/vanetza/asn1/its1/RescueContainer.c new file mode 100644 index 000000000..00d20f116 --- /dev/null +++ b/vanetza/asn1/its1/RescueContainer.c @@ -0,0 +1,72 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/EN302637-2v141-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RescueContainer.h" + +asn_TYPE_member_t asn_MBR_RescueContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RescueContainer, lightBarSirenInUse), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LightBarSirenInUse, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lightBarSirenInUse" + }, +}; +static const ber_tlv_tag_t asn_DEF_RescueContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RescueContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* lightBarSirenInUse */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RescueContainer_specs_1 = { + sizeof(struct RescueContainer), + offsetof(struct RescueContainer, _asn_ctx), + asn_MAP_RescueContainer_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_RescueContainer = { + "RescueContainer", + "RescueContainer", + &asn_OP_SEQUENCE, + asn_DEF_RescueContainer_tags_1, + sizeof(asn_DEF_RescueContainer_tags_1) + /sizeof(asn_DEF_RescueContainer_tags_1[0]), /* 1 */ + asn_DEF_RescueContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_RescueContainer_tags_1) + /sizeof(asn_DEF_RescueContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RescueContainer_1, + 1, /* Elements count */ + &asn_SPC_RescueContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/RescueContainer.h b/vanetza/asn1/its1/RescueContainer.h similarity index 100% rename from vanetza/asn1/its/RescueContainer.h rename to vanetza/asn1/its1/RescueContainer.h diff --git a/vanetza/asn1/its1/RestrictedTypes.c b/vanetza/asn1/its1/RestrictedTypes.c new file mode 100644 index 000000000..e40b0f1d0 --- /dev/null +++ b/vanetza/asn1/its1/RestrictedTypes.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RestrictedTypes.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_RestrictedTypes_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_RestrictedTypes_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 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_RestrictedTypes_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_StationType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_RestrictedTypes_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_RestrictedTypes_specs_1 = { + sizeof(struct RestrictedTypes), + offsetof(struct RestrictedTypes, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_RestrictedTypes = { + "RestrictedTypes", + "RestrictedTypes", + &asn_OP_SEQUENCE_OF, + asn_DEF_RestrictedTypes_tags_1, + sizeof(asn_DEF_RestrictedTypes_tags_1) + /sizeof(asn_DEF_RestrictedTypes_tags_1[0]), /* 1 */ + asn_DEF_RestrictedTypes_tags_1, /* Same as above */ + sizeof(asn_DEF_RestrictedTypes_tags_1) + /sizeof(asn_DEF_RestrictedTypes_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_RestrictedTypes_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_RestrictedTypes_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_RestrictedTypes_1, + 1, /* Single element */ + &asn_SPC_RestrictedTypes_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/RestrictedTypes.h b/vanetza/asn1/its1/RestrictedTypes.h similarity index 100% rename from vanetza/asn1/its/RestrictedTypes.h rename to vanetza/asn1/its1/RestrictedTypes.h diff --git a/vanetza/asn1/its/RestrictionAppliesTo.c b/vanetza/asn1/its1/RestrictionAppliesTo.c similarity index 97% rename from vanetza/asn1/its/RestrictionAppliesTo.c rename to vanetza/asn1/its1/RestrictionAppliesTo.c index 459fbac65..5118454fe 100644 --- a/vanetza/asn1/its/RestrictionAppliesTo.c +++ b/vanetza/asn1/its1/RestrictionAppliesTo.c @@ -86,6 +86,9 @@ asn_TYPE_descriptor_t asn_DEF_RestrictionAppliesTo = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_RestrictionAppliesTo_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/RestrictionAppliesTo.h b/vanetza/asn1/its1/RestrictionAppliesTo.h similarity index 100% rename from vanetza/asn1/its/RestrictionAppliesTo.h rename to vanetza/asn1/its1/RestrictionAppliesTo.h diff --git a/vanetza/asn1/its/RestrictionClassAssignment.c b/vanetza/asn1/its1/RestrictionClassAssignment.c similarity index 91% rename from vanetza/asn1/its/RestrictionClassAssignment.c rename to vanetza/asn1/its1/RestrictionClassAssignment.c index c070245f5..19b3997a6 100644 --- a/vanetza/asn1/its/RestrictionClassAssignment.c +++ b/vanetza/asn1/its1/RestrictionClassAssignment.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_RestrictionClassAssignment_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_RestrictionClassAssignment_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_RestrictionClassAssignment = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_RestrictionClassAssignment_1, diff --git a/vanetza/asn1/its/RestrictionClassAssignment.h b/vanetza/asn1/its1/RestrictionClassAssignment.h similarity index 100% rename from vanetza/asn1/its/RestrictionClassAssignment.h rename to vanetza/asn1/its1/RestrictionClassAssignment.h diff --git a/vanetza/asn1/its/RestrictionClassID.c b/vanetza/asn1/its1/RestrictionClassID.c similarity index 96% rename from vanetza/asn1/its/RestrictionClassID.c rename to vanetza/asn1/its1/RestrictionClassID.c index f80112417..83dd9f38b 100644 --- a/vanetza/asn1/its/RestrictionClassID.c +++ b/vanetza/asn1/its1/RestrictionClassID.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_RestrictionClassID = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_RestrictionClassID_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ RestrictionClassID_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/RestrictionClassID.h b/vanetza/asn1/its1/RestrictionClassID.h similarity index 100% rename from vanetza/asn1/its/RestrictionClassID.h rename to vanetza/asn1/its1/RestrictionClassID.h diff --git a/vanetza/asn1/its/RestrictionClassList.c b/vanetza/asn1/its1/RestrictionClassList.c similarity index 93% rename from vanetza/asn1/its/RestrictionClassList.c rename to vanetza/asn1/its1/RestrictionClassList.c index c84ebeae0..8639d08df 100644 --- a/vanetza/asn1/its/RestrictionClassList.c +++ b/vanetza/asn1/its1/RestrictionClassList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_RestrictionClassList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_RestrictionClassList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_RestrictionClassList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_RestrictionClassList_1, diff --git a/vanetza/asn1/its/RestrictionClassList.h b/vanetza/asn1/its1/RestrictionClassList.h similarity index 100% rename from vanetza/asn1/its/RestrictionClassList.h rename to vanetza/asn1/its1/RestrictionClassList.h diff --git a/vanetza/asn1/its/RestrictionUserType-addGrpC.c b/vanetza/asn1/its1/RestrictionUserType-addGrpC.c similarity index 91% rename from vanetza/asn1/its/RestrictionUserType-addGrpC.c rename to vanetza/asn1/its1/RestrictionUserType-addGrpC.c index 1ea6714c0..93d88f46f 100644 --- a/vanetza/asn1/its/RestrictionUserType-addGrpC.c +++ b/vanetza/asn1/its1/RestrictionUserType-addGrpC.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_RestrictionUserType_addGrpC_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_RestrictionUserType_addGrpC_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -77,6 +83,9 @@ asn_TYPE_descriptor_t asn_DEF_RestrictionUserType_addGrpC = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_RestrictionUserType_addGrpC_1, diff --git a/vanetza/asn1/its/RestrictionUserType-addGrpC.h b/vanetza/asn1/its1/RestrictionUserType-addGrpC.h similarity index 100% rename from vanetza/asn1/its/RestrictionUserType-addGrpC.h rename to vanetza/asn1/its1/RestrictionUserType-addGrpC.h diff --git a/vanetza/asn1/its/RestrictionUserType.c b/vanetza/asn1/its1/RestrictionUserType.c similarity index 93% rename from vanetza/asn1/its/RestrictionUserType.c rename to vanetza/asn1/its1/RestrictionUserType.c index 21634e6f6..4689f2b11 100644 --- a/vanetza/asn1/its/RestrictionUserType.c +++ b/vanetza/asn1/its1/RestrictionUserType.c @@ -82,6 +82,9 @@ static asn_TYPE_member_t asn_MBR_regional_3[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -115,6 +118,9 @@ asn_TYPE_descriptor_t asn_DEF_regional_3 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_regional_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_regional_3, @@ -135,6 +141,9 @@ asn_TYPE_member_t asn_MBR_RestrictionUserType_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -152,6 +161,9 @@ asn_TYPE_member_t asn_MBR_RestrictionUserType_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regional_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regional_constraint_1 }, 0, 0, /* No default value */ @@ -187,6 +199,9 @@ asn_TYPE_descriptor_t asn_DEF_RestrictionUserType = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_RestrictionUserType_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_RestrictionUserType_1, diff --git a/vanetza/asn1/its/RestrictionUserType.h b/vanetza/asn1/its1/RestrictionUserType.h similarity index 100% rename from vanetza/asn1/its/RestrictionUserType.h rename to vanetza/asn1/its1/RestrictionUserType.h diff --git a/vanetza/asn1/its/RestrictionUserTypeList.c b/vanetza/asn1/its1/RestrictionUserTypeList.c similarity index 93% rename from vanetza/asn1/its/RestrictionUserTypeList.c rename to vanetza/asn1/its1/RestrictionUserTypeList.c index c7f680dba..9e0367829 100644 --- a/vanetza/asn1/its/RestrictionUserTypeList.c +++ b/vanetza/asn1/its1/RestrictionUserTypeList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_RestrictionUserTypeList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_RestrictionUserTypeList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_RestrictionUserTypeList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_RestrictionUserTypeList_1, diff --git a/vanetza/asn1/its/RestrictionUserTypeList.h b/vanetza/asn1/its1/RestrictionUserTypeList.h similarity index 100% rename from vanetza/asn1/its/RestrictionUserTypeList.h rename to vanetza/asn1/its1/RestrictionUserTypeList.h diff --git a/vanetza/asn1/its/ResultFin.c b/vanetza/asn1/its1/ResultFin.c similarity index 96% rename from vanetza/asn1/its/ResultFin.c rename to vanetza/asn1/its1/ResultFin.c index 39309e644..b02da2630 100644 --- a/vanetza/asn1/its/ResultFin.c +++ b/vanetza/asn1/its1/ResultFin.c @@ -69,6 +69,9 @@ asn_TYPE_descriptor_t asn_DEF_ResultFin = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ResultFin_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ ResultFin_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/ResultFin.h b/vanetza/asn1/its1/ResultFin.h similarity index 100% rename from vanetza/asn1/its/ResultFin.h rename to vanetza/asn1/its1/ResultFin.h diff --git a/vanetza/asn1/its/ResultOp.c b/vanetza/asn1/its1/ResultOp.c similarity index 96% rename from vanetza/asn1/its/ResultOp.c rename to vanetza/asn1/its1/ResultOp.c index 1473415ef..648c7c6e6 100644 --- a/vanetza/asn1/its/ResultOp.c +++ b/vanetza/asn1/its1/ResultOp.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_ResultOp = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ResultOp_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ ResultOp_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/ResultOp.h b/vanetza/asn1/its1/ResultOp.h similarity index 100% rename from vanetza/asn1/its/ResultOp.h rename to vanetza/asn1/its1/ResultOp.h diff --git a/vanetza/asn1/its/RoadConfigurationContainer.c b/vanetza/asn1/its1/RoadConfigurationContainer.c similarity index 93% rename from vanetza/asn1/its/RoadConfigurationContainer.c rename to vanetza/asn1/its1/RoadConfigurationContainer.c index e8c37937d..489319f43 100644 --- a/vanetza/asn1/its/RoadConfigurationContainer.c +++ b/vanetza/asn1/its1/RoadConfigurationContainer.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_RoadConfigurationContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_RoadConfigurationContainer = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_RoadConfigurationContainer_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_RoadConfigurationContainer_1, diff --git a/vanetza/asn1/its/RoadConfigurationContainer.h b/vanetza/asn1/its1/RoadConfigurationContainer.h similarity index 100% rename from vanetza/asn1/its/RoadConfigurationContainer.h rename to vanetza/asn1/its1/RoadConfigurationContainer.h diff --git a/vanetza/asn1/its/RoadLaneSetList.c b/vanetza/asn1/its1/RoadLaneSetList.c similarity index 93% rename from vanetza/asn1/its/RoadLaneSetList.c rename to vanetza/asn1/its1/RoadLaneSetList.c index 6020a8408..1c26ae19e 100644 --- a/vanetza/asn1/its/RoadLaneSetList.c +++ b/vanetza/asn1/its1/RoadLaneSetList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_RoadLaneSetList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_RoadLaneSetList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_RoadLaneSetList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_RoadLaneSetList_1, diff --git a/vanetza/asn1/its/RoadLaneSetList.h b/vanetza/asn1/its1/RoadLaneSetList.h similarity index 100% rename from vanetza/asn1/its/RoadLaneSetList.h rename to vanetza/asn1/its1/RoadLaneSetList.h diff --git a/vanetza/asn1/its/RoadRegulatorID.c b/vanetza/asn1/its1/RoadRegulatorID.c similarity index 96% rename from vanetza/asn1/its/RoadRegulatorID.c rename to vanetza/asn1/its1/RoadRegulatorID.c index eb2a28596..c197ee5e2 100644 --- a/vanetza/asn1/its/RoadRegulatorID.c +++ b/vanetza/asn1/its1/RoadRegulatorID.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_RoadRegulatorID = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_RoadRegulatorID_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ RoadRegulatorID_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/RoadRegulatorID.h b/vanetza/asn1/its1/RoadRegulatorID.h similarity index 100% rename from vanetza/asn1/its/RoadRegulatorID.h rename to vanetza/asn1/its1/RoadRegulatorID.h diff --git a/vanetza/asn1/its/RoadSegment.c b/vanetza/asn1/its1/RoadSegment.c similarity index 90% rename from vanetza/asn1/its/RoadSegment.c rename to vanetza/asn1/its1/RoadSegment.c index 972a681b3..a2016c1c4 100644 --- a/vanetza/asn1/its/RoadSegment.c +++ b/vanetza/asn1/its1/RoadSegment.c @@ -70,6 +70,9 @@ static asn_TYPE_member_t asn_MBR_regional_9[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -103,6 +106,9 @@ asn_TYPE_descriptor_t asn_DEF_regional_9 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_regional_constr_9, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_regional_9, @@ -123,6 +129,9 @@ asn_TYPE_member_t asn_MBR_RoadSegment_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -140,6 +149,9 @@ asn_TYPE_member_t asn_MBR_RoadSegment_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -157,6 +169,9 @@ asn_TYPE_member_t asn_MBR_RoadSegment_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -174,6 +189,9 @@ asn_TYPE_member_t asn_MBR_RoadSegment_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -191,6 +209,9 @@ asn_TYPE_member_t asn_MBR_RoadSegment_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -208,6 +229,9 @@ asn_TYPE_member_t asn_MBR_RoadSegment_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -225,6 +249,9 @@ asn_TYPE_member_t asn_MBR_RoadSegment_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -242,6 +269,9 @@ asn_TYPE_member_t asn_MBR_RoadSegment_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regional_constr_9, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regional_constraint_1 }, 0, 0, /* No default value */ @@ -288,6 +318,9 @@ asn_TYPE_descriptor_t asn_DEF_RoadSegment = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_RoadSegment_1, diff --git a/vanetza/asn1/its/RoadSegment.h b/vanetza/asn1/its1/RoadSegment.h similarity index 100% rename from vanetza/asn1/its/RoadSegment.h rename to vanetza/asn1/its1/RoadSegment.h diff --git a/vanetza/asn1/its/RoadSegmentID.c b/vanetza/asn1/its1/RoadSegmentID.c similarity index 96% rename from vanetza/asn1/its/RoadSegmentID.c rename to vanetza/asn1/its1/RoadSegmentID.c index fe23ccc79..007fc627b 100644 --- a/vanetza/asn1/its/RoadSegmentID.c +++ b/vanetza/asn1/its1/RoadSegmentID.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_RoadSegmentID = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_RoadSegmentID_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ RoadSegmentID_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/RoadSegmentID.h b/vanetza/asn1/its1/RoadSegmentID.h similarity index 100% rename from vanetza/asn1/its/RoadSegmentID.h rename to vanetza/asn1/its1/RoadSegmentID.h diff --git a/vanetza/asn1/its/RoadSegmentList.c b/vanetza/asn1/its1/RoadSegmentList.c similarity index 93% rename from vanetza/asn1/its/RoadSegmentList.c rename to vanetza/asn1/its1/RoadSegmentList.c index 29b3bf52a..20a1e1d50 100644 --- a/vanetza/asn1/its/RoadSegmentList.c +++ b/vanetza/asn1/its1/RoadSegmentList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_RoadSegmentList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_RoadSegmentList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_RoadSegmentList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_RoadSegmentList_1, diff --git a/vanetza/asn1/its/RoadSegmentList.h b/vanetza/asn1/its1/RoadSegmentList.h similarity index 100% rename from vanetza/asn1/its/RoadSegmentList.h rename to vanetza/asn1/its1/RoadSegmentList.h diff --git a/vanetza/asn1/its/RoadSegmentReferenceID.c b/vanetza/asn1/its1/RoadSegmentReferenceID.c similarity index 91% rename from vanetza/asn1/its/RoadSegmentReferenceID.c rename to vanetza/asn1/its1/RoadSegmentReferenceID.c index 01258be0e..cd6bea312 100644 --- a/vanetza/asn1/its/RoadSegmentReferenceID.c +++ b/vanetza/asn1/its1/RoadSegmentReferenceID.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_RoadSegmentReferenceID_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_RoadSegmentReferenceID_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -77,6 +83,9 @@ asn_TYPE_descriptor_t asn_DEF_RoadSegmentReferenceID = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_RoadSegmentReferenceID_1, diff --git a/vanetza/asn1/its/RoadSegmentReferenceID.h b/vanetza/asn1/its1/RoadSegmentReferenceID.h similarity index 100% rename from vanetza/asn1/its/RoadSegmentReferenceID.h rename to vanetza/asn1/its1/RoadSegmentReferenceID.h diff --git a/vanetza/asn1/its/RoadSignCodes.c b/vanetza/asn1/its1/RoadSignCodes.c similarity index 92% rename from vanetza/asn1/its/RoadSignCodes.c rename to vanetza/asn1/its1/RoadSignCodes.c index c5d2d8500..7a0f6717a 100644 --- a/vanetza/asn1/its/RoadSignCodes.c +++ b/vanetza/asn1/its1/RoadSignCodes.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_RoadSignCodes_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_RoadSignCodes = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_RoadSignCodes_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_RoadSignCodes_1, diff --git a/vanetza/asn1/its/RoadSignCodes.h b/vanetza/asn1/its1/RoadSignCodes.h similarity index 100% rename from vanetza/asn1/its/RoadSignCodes.h rename to vanetza/asn1/its1/RoadSignCodes.h diff --git a/vanetza/asn1/its/RoadSurfaceContainer.c b/vanetza/asn1/its1/RoadSurfaceContainer.c similarity index 93% rename from vanetza/asn1/its/RoadSurfaceContainer.c rename to vanetza/asn1/its1/RoadSurfaceContainer.c index a7d3a19b0..2cf0ea38a 100644 --- a/vanetza/asn1/its/RoadSurfaceContainer.c +++ b/vanetza/asn1/its1/RoadSurfaceContainer.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_RoadSurfaceContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_RoadSurfaceContainer = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_RoadSurfaceContainer_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_RoadSurfaceContainer_1, diff --git a/vanetza/asn1/its/RoadSurfaceContainer.h b/vanetza/asn1/its1/RoadSurfaceContainer.h similarity index 100% rename from vanetza/asn1/its/RoadSurfaceContainer.h rename to vanetza/asn1/its1/RoadSurfaceContainer.h diff --git a/vanetza/asn1/its/RoadSurfaceDynamicCharacteristics.c b/vanetza/asn1/its1/RoadSurfaceDynamicCharacteristics.c similarity index 90% rename from vanetza/asn1/its/RoadSurfaceDynamicCharacteristics.c rename to vanetza/asn1/its1/RoadSurfaceDynamicCharacteristics.c index 1c645a9f1..cfad31ac7 100644 --- a/vanetza/asn1/its/RoadSurfaceDynamicCharacteristics.c +++ b/vanetza/asn1/its1/RoadSurfaceDynamicCharacteristics.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_RoadSurfaceDynamicCharacteristics_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_RoadSurfaceDynamicCharacteristics_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_RoadSurfaceDynamicCharacteristics_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -71,6 +80,9 @@ asn_TYPE_member_t asn_MBR_RoadSurfaceDynamicCharacteristics_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -111,6 +123,9 @@ asn_TYPE_descriptor_t asn_DEF_RoadSurfaceDynamicCharacteristics = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_RoadSurfaceDynamicCharacteristics_1, diff --git a/vanetza/asn1/its/RoadSurfaceDynamicCharacteristics.h b/vanetza/asn1/its1/RoadSurfaceDynamicCharacteristics.h similarity index 100% rename from vanetza/asn1/its/RoadSurfaceDynamicCharacteristics.h rename to vanetza/asn1/its1/RoadSurfaceDynamicCharacteristics.h diff --git a/vanetza/asn1/its/RoadSurfaceStaticCharacteristics.c b/vanetza/asn1/its1/RoadSurfaceStaticCharacteristics.c similarity index 90% rename from vanetza/asn1/its/RoadSurfaceStaticCharacteristics.c rename to vanetza/asn1/its1/RoadSurfaceStaticCharacteristics.c index e40cb6f50..ac0276f43 100644 --- a/vanetza/asn1/its/RoadSurfaceStaticCharacteristics.c +++ b/vanetza/asn1/its1/RoadSurfaceStaticCharacteristics.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_RoadSurfaceStaticCharacteristics_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_RoadSurfaceStaticCharacteristics_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_RoadSurfaceStaticCharacteristics_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -71,6 +80,9 @@ asn_TYPE_member_t asn_MBR_RoadSurfaceStaticCharacteristics_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -111,6 +123,9 @@ asn_TYPE_descriptor_t asn_DEF_RoadSurfaceStaticCharacteristics = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_RoadSurfaceStaticCharacteristics_1, diff --git a/vanetza/asn1/its/RoadSurfaceStaticCharacteristics.h b/vanetza/asn1/its1/RoadSurfaceStaticCharacteristics.h similarity index 100% rename from vanetza/asn1/its/RoadSurfaceStaticCharacteristics.h rename to vanetza/asn1/its1/RoadSurfaceStaticCharacteristics.h diff --git a/vanetza/asn1/its1/RoadType.c b/vanetza/asn1/its1/RoadType.c new file mode 100644 index 000000000..239331780 --- /dev/null +++ b/vanetza/asn1/its1/RoadType.c @@ -0,0 +1,75 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RoadType.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_RoadType_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_RoadType_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) */ +static const asn_INTEGER_enum_map_t asn_MAP_RoadType_value2enum_1[] = { + { 0, 43, "urban-NoStructuralSeparationToOppositeLanes" }, + { 1, 45, "urban-WithStructuralSeparationToOppositeLanes" }, + { 2, 46, "nonUrban-NoStructuralSeparationToOppositeLanes" }, + { 3, 48, "nonUrban-WithStructuralSeparationToOppositeLanes" } +}; +static const unsigned int asn_MAP_RoadType_enum2value_1[] = { + 2, /* nonUrban-NoStructuralSeparationToOppositeLanes(2) */ + 3, /* nonUrban-WithStructuralSeparationToOppositeLanes(3) */ + 0, /* urban-NoStructuralSeparationToOppositeLanes(0) */ + 1 /* urban-WithStructuralSeparationToOppositeLanes(1) */ +}; +const asn_INTEGER_specifics_t asn_SPC_RoadType_specs_1 = { + asn_MAP_RoadType_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_RoadType_enum2value_1, /* 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_RoadType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_RoadType = { + "RoadType", + "RoadType", + &asn_OP_NativeEnumerated, + asn_DEF_RoadType_tags_1, + sizeof(asn_DEF_RoadType_tags_1) + /sizeof(asn_DEF_RoadType_tags_1[0]), /* 1 */ + asn_DEF_RoadType_tags_1, /* Same as above */ + sizeof(asn_DEF_RoadType_tags_1) + /sizeof(asn_DEF_RoadType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_RoadType_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_RoadType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_RoadType_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/RoadType.h b/vanetza/asn1/its1/RoadType.h similarity index 100% rename from vanetza/asn1/its/RoadType.h rename to vanetza/asn1/its1/RoadType.h diff --git a/vanetza/asn1/its1/RoadWorksContainerBasic.c b/vanetza/asn1/its1/RoadWorksContainerBasic.c new file mode 100644 index 000000000..94ab3e2da --- /dev/null +++ b/vanetza/asn1/its1/RoadWorksContainerBasic.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/EN302637-2v141-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RoadWorksContainerBasic.h" + +asn_TYPE_member_t asn_MBR_RoadWorksContainerBasic_1[] = { + { ATF_POINTER, 1, offsetof(struct RoadWorksContainerBasic, roadworksSubCauseCode), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RoadworksSubCauseCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "roadworksSubCauseCode" + }, + { ATF_NOFLAGS, 0, offsetof(struct RoadWorksContainerBasic, lightBarSirenInUse), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LightBarSirenInUse, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lightBarSirenInUse" + }, + { ATF_POINTER, 1, offsetof(struct RoadWorksContainerBasic, closedLanes), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ClosedLanes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "closedLanes" + }, +}; +static const int asn_MAP_RoadWorksContainerBasic_oms_1[] = { 0, 2 }; +static const ber_tlv_tag_t asn_DEF_RoadWorksContainerBasic_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RoadWorksContainerBasic_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* roadworksSubCauseCode */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* lightBarSirenInUse */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* closedLanes */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RoadWorksContainerBasic_specs_1 = { + sizeof(struct RoadWorksContainerBasic), + offsetof(struct RoadWorksContainerBasic, _asn_ctx), + asn_MAP_RoadWorksContainerBasic_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_RoadWorksContainerBasic_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_RoadWorksContainerBasic = { + "RoadWorksContainerBasic", + "RoadWorksContainerBasic", + &asn_OP_SEQUENCE, + asn_DEF_RoadWorksContainerBasic_tags_1, + sizeof(asn_DEF_RoadWorksContainerBasic_tags_1) + /sizeof(asn_DEF_RoadWorksContainerBasic_tags_1[0]), /* 1 */ + asn_DEF_RoadWorksContainerBasic_tags_1, /* Same as above */ + sizeof(asn_DEF_RoadWorksContainerBasic_tags_1) + /sizeof(asn_DEF_RoadWorksContainerBasic_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RoadWorksContainerBasic_1, + 3, /* Elements count */ + &asn_SPC_RoadWorksContainerBasic_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/RoadWorksContainerBasic.h b/vanetza/asn1/its1/RoadWorksContainerBasic.h similarity index 100% rename from vanetza/asn1/its/RoadWorksContainerBasic.h rename to vanetza/asn1/its1/RoadWorksContainerBasic.h diff --git a/vanetza/asn1/its1/RoadWorksContainerExtended.c b/vanetza/asn1/its1/RoadWorksContainerExtended.c new file mode 100644 index 000000000..f268034a6 --- /dev/null +++ b/vanetza/asn1/its1/RoadWorksContainerExtended.c @@ -0,0 +1,242 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "DENM-PDU-Descriptions" + * found in "asn1/EN302637-3v131-DENM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RoadWorksContainerExtended.h" + +asn_TYPE_member_t asn_MBR_RoadWorksContainerExtended_1[] = { + { ATF_POINTER, 9, offsetof(struct RoadWorksContainerExtended, lightBarSirenInUse), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LightBarSirenInUse, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lightBarSirenInUse" + }, + { ATF_POINTER, 8, offsetof(struct RoadWorksContainerExtended, closedLanes), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ClosedLanes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "closedLanes" + }, + { ATF_POINTER, 7, offsetof(struct RoadWorksContainerExtended, restriction), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RestrictedTypes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "restriction" + }, + { ATF_POINTER, 6, offsetof(struct RoadWorksContainerExtended, speedLimit), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SpeedLimit, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "speedLimit" + }, + { ATF_POINTER, 5, offsetof(struct RoadWorksContainerExtended, incidentIndication), + (ASN_TAG_CLASS_CONTEXT | (4 << 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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "incidentIndication" + }, + { ATF_POINTER, 4, offsetof(struct RoadWorksContainerExtended, recommendedPath), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ItineraryPath, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "recommendedPath" + }, + { ATF_POINTER, 3, offsetof(struct RoadWorksContainerExtended, startingPointSpeedLimit), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DeltaReferencePosition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "startingPointSpeedLimit" + }, + { ATF_POINTER, 2, offsetof(struct RoadWorksContainerExtended, trafficFlowRule), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TrafficRule, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "trafficFlowRule" + }, + { ATF_POINTER, 1, offsetof(struct RoadWorksContainerExtended, referenceDenms), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ReferenceDenms, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "referenceDenms" + }, +}; +static const int asn_MAP_RoadWorksContainerExtended_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8 }; +static const ber_tlv_tag_t asn_DEF_RoadWorksContainerExtended_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RoadWorksContainerExtended_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* lightBarSirenInUse */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* closedLanes */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* restriction */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* speedLimit */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* incidentIndication */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* recommendedPath */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* startingPointSpeedLimit */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* trafficFlowRule */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* referenceDenms */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RoadWorksContainerExtended_specs_1 = { + sizeof(struct RoadWorksContainerExtended), + offsetof(struct RoadWorksContainerExtended, _asn_ctx), + asn_MAP_RoadWorksContainerExtended_tag2el_1, + 9, /* Count of tags in the map */ + asn_MAP_RoadWorksContainerExtended_oms_1, /* Optional members */ + 9, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_RoadWorksContainerExtended = { + "RoadWorksContainerExtended", + "RoadWorksContainerExtended", + &asn_OP_SEQUENCE, + asn_DEF_RoadWorksContainerExtended_tags_1, + sizeof(asn_DEF_RoadWorksContainerExtended_tags_1) + /sizeof(asn_DEF_RoadWorksContainerExtended_tags_1[0]), /* 1 */ + asn_DEF_RoadWorksContainerExtended_tags_1, /* Same as above */ + sizeof(asn_DEF_RoadWorksContainerExtended_tags_1) + /sizeof(asn_DEF_RoadWorksContainerExtended_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RoadWorksContainerExtended_1, + 9, /* Elements count */ + &asn_SPC_RoadWorksContainerExtended_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/RoadWorksContainerExtended.h b/vanetza/asn1/its1/RoadWorksContainerExtended.h similarity index 100% rename from vanetza/asn1/its/RoadWorksContainerExtended.h rename to vanetza/asn1/its1/RoadWorksContainerExtended.h diff --git a/vanetza/asn1/its/RoadwayCrownAngle.c b/vanetza/asn1/its1/RoadwayCrownAngle.c similarity index 96% rename from vanetza/asn1/its/RoadwayCrownAngle.c rename to vanetza/asn1/its1/RoadwayCrownAngle.c index db7913d15..cbcb00e4a 100644 --- a/vanetza/asn1/its/RoadwayCrownAngle.c +++ b/vanetza/asn1/its1/RoadwayCrownAngle.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_RoadwayCrownAngle = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_RoadwayCrownAngle_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ RoadwayCrownAngle_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/RoadwayCrownAngle.h b/vanetza/asn1/its1/RoadwayCrownAngle.h similarity index 100% rename from vanetza/asn1/its/RoadwayCrownAngle.h rename to vanetza/asn1/its1/RoadwayCrownAngle.h diff --git a/vanetza/asn1/its1/RoadworksSubCauseCode.c b/vanetza/asn1/its1/RoadworksSubCauseCode.c new file mode 100644 index 000000000..8fd903fef --- /dev/null +++ b/vanetza/asn1/its1/RoadworksSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RoadworksSubCauseCode.h" + +int +RoadworksSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_RoadworksSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_RoadworksSubCauseCode_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_RoadworksSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_RoadworksSubCauseCode = { + "RoadworksSubCauseCode", + "RoadworksSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_RoadworksSubCauseCode_tags_1, + sizeof(asn_DEF_RoadworksSubCauseCode_tags_1) + /sizeof(asn_DEF_RoadworksSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_RoadworksSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_RoadworksSubCauseCode_tags_1) + /sizeof(asn_DEF_RoadworksSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_RoadworksSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_RoadworksSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + RoadworksSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/RoadworksSubCauseCode.h b/vanetza/asn1/its1/RoadworksSubCauseCode.h similarity index 100% rename from vanetza/asn1/its/RoadworksSubCauseCode.h rename to vanetza/asn1/its1/RoadworksSubCauseCode.h diff --git a/vanetza/asn1/its/RscPart.c b/vanetza/asn1/its1/RscPart.c similarity index 90% rename from vanetza/asn1/its/RscPart.c rename to vanetza/asn1/its1/RscPart.c index 540b6ecf7..d138d1545 100644 --- a/vanetza/asn1/its/RscPart.c +++ b/vanetza/asn1/its1/RscPart.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_RscPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_RscPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -66,6 +72,9 @@ asn_TYPE_member_t asn_MBR_RscPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -83,6 +92,9 @@ asn_TYPE_member_t asn_MBR_RscPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -100,6 +112,9 @@ asn_TYPE_member_t asn_MBR_RscPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -143,6 +158,9 @@ asn_TYPE_descriptor_t asn_DEF_RscPart = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_RscPart_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_RscPart_1, diff --git a/vanetza/asn1/its/RscPart.h b/vanetza/asn1/its1/RscPart.h similarity index 100% rename from vanetza/asn1/its/RscPart.h rename to vanetza/asn1/its1/RscPart.h diff --git a/vanetza/asn1/its/SPAT.c b/vanetza/asn1/its1/SPAT.c similarity index 91% rename from vanetza/asn1/its/SPAT.c rename to vanetza/asn1/its1/SPAT.c index e147bda0e..ff7a451db 100644 --- a/vanetza/asn1/its/SPAT.c +++ b/vanetza/asn1/its1/SPAT.c @@ -70,6 +70,9 @@ static asn_TYPE_member_t asn_MBR_regional_5[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -103,6 +106,9 @@ asn_TYPE_descriptor_t asn_DEF_regional_5 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_regional_constr_5, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_regional_5, @@ -123,6 +129,9 @@ asn_TYPE_member_t asn_MBR_SPAT_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -140,6 +149,9 @@ asn_TYPE_member_t asn_MBR_SPAT_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -157,6 +169,9 @@ asn_TYPE_member_t asn_MBR_SPAT_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -174,6 +189,9 @@ asn_TYPE_member_t asn_MBR_SPAT_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regional_constr_5, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regional_constraint_1 }, 0, 0, /* No default value */ @@ -216,6 +234,9 @@ asn_TYPE_descriptor_t asn_DEF_SPAT = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_SPAT_1, diff --git a/vanetza/asn1/its/SPAT.h b/vanetza/asn1/its1/SPAT.h similarity index 100% rename from vanetza/asn1/its/SPAT.h rename to vanetza/asn1/its1/SPAT.h diff --git a/vanetza/asn1/its/SPATEM.c b/vanetza/asn1/its1/SPATEM.c similarity index 90% rename from vanetza/asn1/its/SPATEM.c rename to vanetza/asn1/its1/SPATEM.c index c29d6a740..78bfe51a2 100644 --- a/vanetza/asn1/its/SPATEM.c +++ b/vanetza/asn1/its1/SPATEM.c @@ -20,6 +20,9 @@ static asn_TYPE_member_t asn_MBR_SPATEM_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ static asn_TYPE_member_t asn_MBR_SPATEM_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_SPATEM = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_SPATEM_1, diff --git a/vanetza/asn1/its/SPATEM.h b/vanetza/asn1/its1/SPATEM.h similarity index 100% rename from vanetza/asn1/its/SPATEM.h rename to vanetza/asn1/its1/SPATEM.h diff --git a/vanetza/asn1/its/SREM.c b/vanetza/asn1/its1/SREM.c similarity index 89% rename from vanetza/asn1/its/SREM.c rename to vanetza/asn1/its1/SREM.c index f8f5a81df..26d9d2f8d 100644 --- a/vanetza/asn1/its/SREM.c +++ b/vanetza/asn1/its1/SREM.c @@ -20,6 +20,9 @@ static asn_TYPE_member_t asn_MBR_SREM_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ static asn_TYPE_member_t asn_MBR_SREM_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_SREM = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_SREM_1, diff --git a/vanetza/asn1/its/SREM.h b/vanetza/asn1/its1/SREM.h similarity index 100% rename from vanetza/asn1/its/SREM.h rename to vanetza/asn1/its1/SREM.h diff --git a/vanetza/asn1/its/SSEM.c b/vanetza/asn1/its1/SSEM.c similarity index 89% rename from vanetza/asn1/its/SSEM.c rename to vanetza/asn1/its1/SSEM.c index af793dd57..816593fb2 100644 --- a/vanetza/asn1/its/SSEM.c +++ b/vanetza/asn1/its1/SSEM.c @@ -20,6 +20,9 @@ static asn_TYPE_member_t asn_MBR_SSEM_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ static asn_TYPE_member_t asn_MBR_SSEM_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_SSEM = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_SSEM_1, diff --git a/vanetza/asn1/its/SSEM.h b/vanetza/asn1/its1/SSEM.h similarity index 100% rename from vanetza/asn1/its/SSEM.h rename to vanetza/asn1/its1/SSEM.h diff --git a/vanetza/asn1/its/SaeAutomationLevel.c b/vanetza/asn1/its1/SaeAutomationLevel.c similarity index 96% rename from vanetza/asn1/its/SaeAutomationLevel.c rename to vanetza/asn1/its1/SaeAutomationLevel.c index 6ba342212..66f99b00c 100644 --- a/vanetza/asn1/its/SaeAutomationLevel.c +++ b/vanetza/asn1/its1/SaeAutomationLevel.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_SaeAutomationLevel = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_SaeAutomationLevel_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SaeAutomationLevel_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/SaeAutomationLevel.h b/vanetza/asn1/its1/SaeAutomationLevel.h similarity index 100% rename from vanetza/asn1/its/SaeAutomationLevel.h rename to vanetza/asn1/its1/SaeAutomationLevel.h diff --git a/vanetza/asn1/its/SaeAutomationLevels.c b/vanetza/asn1/its1/SaeAutomationLevels.c similarity index 93% rename from vanetza/asn1/its/SaeAutomationLevels.c rename to vanetza/asn1/its1/SaeAutomationLevels.c index 34f30b0d8..490870138 100644 --- a/vanetza/asn1/its/SaeAutomationLevels.c +++ b/vanetza/asn1/its1/SaeAutomationLevels.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_SaeAutomationLevels_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_SaeAutomationLevels = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_SaeAutomationLevels_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_SaeAutomationLevels_1, diff --git a/vanetza/asn1/its/SaeAutomationLevels.h b/vanetza/asn1/its1/SaeAutomationLevels.h similarity index 100% rename from vanetza/asn1/its/SaeAutomationLevels.h rename to vanetza/asn1/its1/SaeAutomationLevels.h diff --git a/vanetza/asn1/its1/SafetyCarContainer.c b/vanetza/asn1/its1/SafetyCarContainer.c new file mode 100644 index 000000000..df3f97e07 --- /dev/null +++ b/vanetza/asn1/its1/SafetyCarContainer.c @@ -0,0 +1,137 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/EN302637-2v141-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SafetyCarContainer.h" + +asn_TYPE_member_t asn_MBR_SafetyCarContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SafetyCarContainer, lightBarSirenInUse), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LightBarSirenInUse, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lightBarSirenInUse" + }, + { ATF_POINTER, 3, offsetof(struct SafetyCarContainer, incidentIndication), + (ASN_TAG_CLASS_CONTEXT | (1 << 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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "incidentIndication" + }, + { ATF_POINTER, 2, offsetof(struct SafetyCarContainer, trafficRule), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TrafficRule, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "trafficRule" + }, + { ATF_POINTER, 1, offsetof(struct SafetyCarContainer, speedLimit), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SpeedLimit, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "speedLimit" + }, +}; +static const int asn_MAP_SafetyCarContainer_oms_1[] = { 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_SafetyCarContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SafetyCarContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* lightBarSirenInUse */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* incidentIndication */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* trafficRule */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* speedLimit */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SafetyCarContainer_specs_1 = { + sizeof(struct SafetyCarContainer), + offsetof(struct SafetyCarContainer, _asn_ctx), + asn_MAP_SafetyCarContainer_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_SafetyCarContainer_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SafetyCarContainer = { + "SafetyCarContainer", + "SafetyCarContainer", + &asn_OP_SEQUENCE, + asn_DEF_SafetyCarContainer_tags_1, + sizeof(asn_DEF_SafetyCarContainer_tags_1) + /sizeof(asn_DEF_SafetyCarContainer_tags_1[0]), /* 1 */ + asn_DEF_SafetyCarContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_SafetyCarContainer_tags_1) + /sizeof(asn_DEF_SafetyCarContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SafetyCarContainer_1, + 4, /* Elements count */ + &asn_SPC_SafetyCarContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/SafetyCarContainer.h b/vanetza/asn1/its1/SafetyCarContainer.h similarity index 100% rename from vanetza/asn1/its/SafetyCarContainer.h rename to vanetza/asn1/its1/SafetyCarContainer.h diff --git a/vanetza/asn1/its/Scale-B12.c b/vanetza/asn1/its1/Scale-B12.c similarity index 96% rename from vanetza/asn1/its/Scale-B12.c rename to vanetza/asn1/its1/Scale-B12.c index e8f56b561..ba859d8cc 100644 --- a/vanetza/asn1/its/Scale-B12.c +++ b/vanetza/asn1/its1/Scale-B12.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Scale_B12 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Scale_B12_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Scale_B12_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/Scale-B12.h b/vanetza/asn1/its1/Scale-B12.h similarity index 100% rename from vanetza/asn1/its/Scale-B12.h rename to vanetza/asn1/its1/Scale-B12.h diff --git a/vanetza/asn1/its/Segment.c b/vanetza/asn1/its1/Segment.c similarity index 90% rename from vanetza/asn1/its/Segment.c rename to vanetza/asn1/its1/Segment.c index c8900ec28..b6d9396ac 100644 --- a/vanetza/asn1/its/Segment.c +++ b/vanetza/asn1/its1/Segment.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Segment_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Segment_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -77,6 +83,9 @@ asn_TYPE_descriptor_t asn_DEF_Segment = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Segment_1, diff --git a/vanetza/asn1/its/Segment.h b/vanetza/asn1/its1/Segment.h similarity index 100% rename from vanetza/asn1/its/Segment.h rename to vanetza/asn1/its1/Segment.h diff --git a/vanetza/asn1/its/SegmentAttributeXY.c b/vanetza/asn1/its1/SegmentAttributeXY.c similarity index 98% rename from vanetza/asn1/its/SegmentAttributeXY.c rename to vanetza/asn1/its1/SegmentAttributeXY.c index a65485096..b26ec2500 100644 --- a/vanetza/asn1/its/SegmentAttributeXY.c +++ b/vanetza/asn1/its1/SegmentAttributeXY.c @@ -134,6 +134,9 @@ asn_TYPE_descriptor_t asn_DEF_SegmentAttributeXY = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_SegmentAttributeXY_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/SegmentAttributeXY.h b/vanetza/asn1/its1/SegmentAttributeXY.h similarity index 100% rename from vanetza/asn1/its/SegmentAttributeXY.h rename to vanetza/asn1/its1/SegmentAttributeXY.h diff --git a/vanetza/asn1/its/SegmentAttributeXYList.c b/vanetza/asn1/its1/SegmentAttributeXYList.c similarity index 93% rename from vanetza/asn1/its/SegmentAttributeXYList.c rename to vanetza/asn1/its1/SegmentAttributeXYList.c index c0fc2ee47..7f8707052 100644 --- a/vanetza/asn1/its/SegmentAttributeXYList.c +++ b/vanetza/asn1/its1/SegmentAttributeXYList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_SegmentAttributeXYList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_SegmentAttributeXYList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_SegmentAttributeXYList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_SegmentAttributeXYList_1, diff --git a/vanetza/asn1/its/SegmentAttributeXYList.h b/vanetza/asn1/its1/SegmentAttributeXYList.h similarity index 100% rename from vanetza/asn1/its/SegmentAttributeXYList.h rename to vanetza/asn1/its1/SegmentAttributeXYList.h diff --git a/vanetza/asn1/its/SegmentCount.c b/vanetza/asn1/its1/SegmentCount.c similarity index 96% rename from vanetza/asn1/its/SegmentCount.c rename to vanetza/asn1/its1/SegmentCount.c index dbfa24f69..63822f5e6 100644 --- a/vanetza/asn1/its/SegmentCount.c +++ b/vanetza/asn1/its1/SegmentCount.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_SegmentCount = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_SegmentCount_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SegmentCount_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/SegmentCount.h b/vanetza/asn1/its1/SegmentCount.h similarity index 100% rename from vanetza/asn1/its/SegmentCount.h rename to vanetza/asn1/its1/SegmentCount.h diff --git a/vanetza/asn1/its1/SemiAxisLength.c b/vanetza/asn1/its1/SemiAxisLength.c new file mode 100644 index 000000000..8bbd642ec --- /dev/null +++ b/vanetza/asn1/its1/SemiAxisLength.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SemiAxisLength.h" + +int +SemiAxisLength_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 <= 4095L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SemiAxisLength_constr_1 CC_NOTUSED = { + { 2, 1 } /* (0..4095) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SemiAxisLength_constr_1 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 ber_tlv_tag_t asn_DEF_SemiAxisLength_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_SemiAxisLength = { + "SemiAxisLength", + "SemiAxisLength", + &asn_OP_NativeInteger, + asn_DEF_SemiAxisLength_tags_1, + sizeof(asn_DEF_SemiAxisLength_tags_1) + /sizeof(asn_DEF_SemiAxisLength_tags_1[0]), /* 1 */ + asn_DEF_SemiAxisLength_tags_1, /* Same as above */ + sizeof(asn_DEF_SemiAxisLength_tags_1) + /sizeof(asn_DEF_SemiAxisLength_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_SemiAxisLength_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SemiAxisLength_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SemiAxisLength_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/SemiAxisLength.h b/vanetza/asn1/its1/SemiAxisLength.h similarity index 100% rename from vanetza/asn1/its/SemiAxisLength.h rename to vanetza/asn1/its1/SemiAxisLength.h diff --git a/vanetza/asn1/its/SemiMajorAxisAccuracy.c b/vanetza/asn1/its1/SemiMajorAxisAccuracy.c similarity index 96% rename from vanetza/asn1/its/SemiMajorAxisAccuracy.c rename to vanetza/asn1/its1/SemiMajorAxisAccuracy.c index 246f1447e..d422983d4 100644 --- a/vanetza/asn1/its/SemiMajorAxisAccuracy.c +++ b/vanetza/asn1/its1/SemiMajorAxisAccuracy.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_SemiMajorAxisAccuracy = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_SemiMajorAxisAccuracy_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SemiMajorAxisAccuracy_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/SemiMajorAxisAccuracy.h b/vanetza/asn1/its1/SemiMajorAxisAccuracy.h similarity index 100% rename from vanetza/asn1/its/SemiMajorAxisAccuracy.h rename to vanetza/asn1/its1/SemiMajorAxisAccuracy.h diff --git a/vanetza/asn1/its/SemiMajorAxisOrientation.c b/vanetza/asn1/its1/SemiMajorAxisOrientation.c similarity index 96% rename from vanetza/asn1/its/SemiMajorAxisOrientation.c rename to vanetza/asn1/its1/SemiMajorAxisOrientation.c index da33c3647..227606d84 100644 --- a/vanetza/asn1/its/SemiMajorAxisOrientation.c +++ b/vanetza/asn1/its1/SemiMajorAxisOrientation.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_SemiMajorAxisOrientation = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_SemiMajorAxisOrientation_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SemiMajorAxisOrientation_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/SemiMajorAxisOrientation.h b/vanetza/asn1/its1/SemiMajorAxisOrientation.h similarity index 100% rename from vanetza/asn1/its/SemiMajorAxisOrientation.h rename to vanetza/asn1/its1/SemiMajorAxisOrientation.h diff --git a/vanetza/asn1/its/SemiMinorAxisAccuracy.c b/vanetza/asn1/its1/SemiMinorAxisAccuracy.c similarity index 96% rename from vanetza/asn1/its/SemiMinorAxisAccuracy.c rename to vanetza/asn1/its1/SemiMinorAxisAccuracy.c index d26a29acb..9ec8f96ad 100644 --- a/vanetza/asn1/its/SemiMinorAxisAccuracy.c +++ b/vanetza/asn1/its1/SemiMinorAxisAccuracy.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_SemiMinorAxisAccuracy = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_SemiMinorAxisAccuracy_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SemiMinorAxisAccuracy_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/SemiMinorAxisAccuracy.h b/vanetza/asn1/its1/SemiMinorAxisAccuracy.h similarity index 100% rename from vanetza/asn1/its/SemiMinorAxisAccuracy.h rename to vanetza/asn1/its1/SemiMinorAxisAccuracy.h diff --git a/vanetza/asn1/its/SemiRangeLength.c b/vanetza/asn1/its1/SemiRangeLength.c similarity index 96% rename from vanetza/asn1/its/SemiRangeLength.c rename to vanetza/asn1/its1/SemiRangeLength.c index 9b36eea5e..2ee785d49 100644 --- a/vanetza/asn1/its/SemiRangeLength.c +++ b/vanetza/asn1/its1/SemiRangeLength.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_SemiRangeLength = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_SemiRangeLength_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SemiRangeLength_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/SemiRangeLength.h b/vanetza/asn1/its1/SemiRangeLength.h similarity index 100% rename from vanetza/asn1/its/SemiRangeLength.h rename to vanetza/asn1/its1/SemiRangeLength.h diff --git a/vanetza/asn1/its/SensorHeight.c b/vanetza/asn1/its1/SensorHeight.c similarity index 96% rename from vanetza/asn1/its/SensorHeight.c rename to vanetza/asn1/its1/SensorHeight.c index 7c0d6a107..2e9f41e3a 100644 --- a/vanetza/asn1/its/SensorHeight.c +++ b/vanetza/asn1/its1/SensorHeight.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_SensorHeight = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_SensorHeight_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SensorHeight_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/SensorHeight.h b/vanetza/asn1/its1/SensorHeight.h similarity index 100% rename from vanetza/asn1/its/SensorHeight.h rename to vanetza/asn1/its1/SensorHeight.h diff --git a/vanetza/asn1/its/SensorIdList.c b/vanetza/asn1/its1/SensorIdList.c similarity index 92% rename from vanetza/asn1/its/SensorIdList.c rename to vanetza/asn1/its1/SensorIdList.c index 76ffb5065..7b30fbac1 100644 --- a/vanetza/asn1/its/SensorIdList.c +++ b/vanetza/asn1/its1/SensorIdList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_SensorIdList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_SensorIdList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_SensorIdList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_SensorIdList_1, diff --git a/vanetza/asn1/its/SensorIdList.h b/vanetza/asn1/its1/SensorIdList.h similarity index 100% rename from vanetza/asn1/its/SensorIdList.h rename to vanetza/asn1/its1/SensorIdList.h diff --git a/vanetza/asn1/its1/SensorInformation.c b/vanetza/asn1/its1/SensorInformation.c new file mode 100644 index 000000000..f36e4a9ce --- /dev/null +++ b/vanetza/asn1/its1/SensorInformation.c @@ -0,0 +1,137 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TR103562v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SensorInformation.h" + +asn_TYPE_member_t asn_MBR_SensorInformation_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SensorInformation, sensorID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sensorID" + }, + { ATF_NOFLAGS, 0, offsetof(struct SensorInformation, type), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SensorType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "type" + }, + { ATF_NOFLAGS, 0, offsetof(struct SensorInformation, detectionArea), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_DetectionArea, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "detectionArea" + }, + { ATF_POINTER, 1, offsetof(struct SensorInformation, freeSpaceConfidence), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_FreeSpaceConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "freeSpaceConfidence" + }, +}; +static const int asn_MAP_SensorInformation_oms_1[] = { 3 }; +static const ber_tlv_tag_t asn_DEF_SensorInformation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SensorInformation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sensorID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* type */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* detectionArea */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* freeSpaceConfidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SensorInformation_specs_1 = { + sizeof(struct SensorInformation), + offsetof(struct SensorInformation, _asn_ctx), + asn_MAP_SensorInformation_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_SensorInformation_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SensorInformation = { + "SensorInformation", + "SensorInformation", + &asn_OP_SEQUENCE, + asn_DEF_SensorInformation_tags_1, + sizeof(asn_DEF_SensorInformation_tags_1) + /sizeof(asn_DEF_SensorInformation_tags_1[0]), /* 1 */ + asn_DEF_SensorInformation_tags_1, /* Same as above */ + sizeof(asn_DEF_SensorInformation_tags_1) + /sizeof(asn_DEF_SensorInformation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SensorInformation_1, + 4, /* Elements count */ + &asn_SPC_SensorInformation_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/SensorInformation.h b/vanetza/asn1/its1/SensorInformation.h similarity index 100% rename from vanetza/asn1/its/SensorInformation.h rename to vanetza/asn1/its1/SensorInformation.h diff --git a/vanetza/asn1/its1/SensorInformationContainer.c b/vanetza/asn1/its1/SensorInformationContainer.c new file mode 100644 index 000000000..d832388fe --- /dev/null +++ b/vanetza/asn1/its1/SensorInformationContainer.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TR103562v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SensorInformationContainer.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SensorInformationContainer_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SensorInformationContainer_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 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_SensorInformationContainer_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_SensorInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_SensorInformationContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_SensorInformationContainer_specs_1 = { + sizeof(struct SensorInformationContainer), + offsetof(struct SensorInformationContainer, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_SensorInformationContainer = { + "SensorInformationContainer", + "SensorInformationContainer", + &asn_OP_SEQUENCE_OF, + asn_DEF_SensorInformationContainer_tags_1, + sizeof(asn_DEF_SensorInformationContainer_tags_1) + /sizeof(asn_DEF_SensorInformationContainer_tags_1[0]), /* 1 */ + asn_DEF_SensorInformationContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_SensorInformationContainer_tags_1) + /sizeof(asn_DEF_SensorInformationContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_SensorInformationContainer_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SensorInformationContainer_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_SensorInformationContainer_1, + 1, /* Single element */ + &asn_SPC_SensorInformationContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/SensorInformationContainer.h b/vanetza/asn1/its1/SensorInformationContainer.h similarity index 100% rename from vanetza/asn1/its/SensorInformationContainer.h rename to vanetza/asn1/its1/SensorInformationContainer.h diff --git a/vanetza/asn1/its1/SensorType.c b/vanetza/asn1/its1/SensorType.c new file mode 100644 index 000000000..9580b2c4e --- /dev/null +++ b/vanetza/asn1/its1/SensorType.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TR103562v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SensorType.h" + +int +SensorType_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 <= 15L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SensorType_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..15) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SensorType_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 ber_tlv_tag_t asn_DEF_SensorType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_SensorType = { + "SensorType", + "SensorType", + &asn_OP_NativeInteger, + asn_DEF_SensorType_tags_1, + sizeof(asn_DEF_SensorType_tags_1) + /sizeof(asn_DEF_SensorType_tags_1[0]), /* 1 */ + asn_DEF_SensorType_tags_1, /* Same as above */ + sizeof(asn_DEF_SensorType_tags_1) + /sizeof(asn_DEF_SensorType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_SensorType_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SensorType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SensorType_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/SensorType.h b/vanetza/asn1/its1/SensorType.h similarity index 100% rename from vanetza/asn1/its/SensorType.h rename to vanetza/asn1/its1/SensorType.h diff --git a/vanetza/asn1/its1/SequenceNumber.c b/vanetza/asn1/its1/SequenceNumber.c new file mode 100644 index 000000000..f1c271bb1 --- /dev/null +++ b/vanetza/asn1/its1/SequenceNumber.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#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 <= 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SequenceNumber_constr_1 CC_NOTUSED = { + { 2, 1 } /* (0..65535) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#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, 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_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) + &asn_OER_type_SequenceNumber_constr_1, +#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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SequenceNumber_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/SequenceNumber.h b/vanetza/asn1/its1/SequenceNumber.h similarity index 100% rename from vanetza/asn1/its/SequenceNumber.h rename to vanetza/asn1/its1/SequenceNumber.h diff --git a/vanetza/asn1/its/ServiceApplicationLimit.c b/vanetza/asn1/its1/ServiceApplicationLimit.c similarity index 89% rename from vanetza/asn1/its/ServiceApplicationLimit.c rename to vanetza/asn1/its1/ServiceApplicationLimit.c index 9f70f90d5..f67b0e3aa 100644 --- a/vanetza/asn1/its/ServiceApplicationLimit.c +++ b/vanetza/asn1/its1/ServiceApplicationLimit.c @@ -54,6 +54,10 @@ asn_per_constraints_t asn_PER_type_ServiceApplicationLimit_constr_1 CC_NOTUSED = 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_ServiceApplicationLimit_constr_1 CC_NOTUSED = { + 8}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_ServiceApplicationLimit_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) }; @@ -74,6 +78,9 @@ asn_TYPE_descriptor_t asn_DEF_ServiceApplicationLimit = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ServiceApplicationLimit_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_ServiceApplicationLimit_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ ServiceApplicationLimit_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/ServiceApplicationLimit.h b/vanetza/asn1/its1/ServiceApplicationLimit.h similarity index 100% rename from vanetza/asn1/its/ServiceApplicationLimit.h rename to vanetza/asn1/its1/ServiceApplicationLimit.h diff --git a/vanetza/asn1/its/ServiceNumber.c b/vanetza/asn1/its1/ServiceNumber.c similarity index 89% rename from vanetza/asn1/its/ServiceNumber.c rename to vanetza/asn1/its1/ServiceNumber.c index 427c85ac4..442f915ee 100644 --- a/vanetza/asn1/its/ServiceNumber.c +++ b/vanetza/asn1/its1/ServiceNumber.c @@ -54,6 +54,10 @@ asn_per_constraints_t asn_PER_type_ServiceNumber_constr_1 CC_NOTUSED = { 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_ServiceNumber_constr_1 CC_NOTUSED = { + 32}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_ServiceNumber_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) }; @@ -74,6 +78,9 @@ asn_TYPE_descriptor_t asn_DEF_ServiceNumber = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ServiceNumber_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_ServiceNumber_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ ServiceNumber_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/ServiceNumber.h b/vanetza/asn1/its1/ServiceNumber.h similarity index 100% rename from vanetza/asn1/its/ServiceNumber.h rename to vanetza/asn1/its1/ServiceNumber.h diff --git a/vanetza/asn1/its/SessionClass.c b/vanetza/asn1/its1/SessionClass.c similarity index 90% rename from vanetza/asn1/its/SessionClass.c rename to vanetza/asn1/its1/SessionClass.c index 754da08c5..4343aa2b7 100644 --- a/vanetza/asn1/its/SessionClass.c +++ b/vanetza/asn1/its1/SessionClass.c @@ -20,6 +20,9 @@ static asn_TYPE_member_t asn_MBR_SessionClass_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ static asn_TYPE_member_t asn_MBR_SessionClass_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_SessionClass = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_SessionClass_1, diff --git a/vanetza/asn1/its/SessionClass.h b/vanetza/asn1/its1/SessionClass.h similarity index 100% rename from vanetza/asn1/its/SessionClass.h rename to vanetza/asn1/its1/SessionClass.h diff --git a/vanetza/asn1/its/SessionLocation.c b/vanetza/asn1/its1/SessionLocation.c similarity index 93% rename from vanetza/asn1/its/SessionLocation.c rename to vanetza/asn1/its1/SessionLocation.c index 9d0d414aa..a9dfa1945 100644 --- a/vanetza/asn1/its/SessionLocation.c +++ b/vanetza/asn1/its1/SessionLocation.c @@ -57,6 +57,9 @@ asn_TYPE_member_t asn_MBR_SessionLocation_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -74,6 +77,9 @@ asn_TYPE_member_t asn_MBR_SessionLocation_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_laneCodeNumber_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_laneCodeNumber_constraint_1 }, 0, 0, /* No default value */ @@ -112,6 +118,9 @@ asn_TYPE_descriptor_t asn_DEF_SessionLocation = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_SessionLocation_1, diff --git a/vanetza/asn1/its/SessionLocation.h b/vanetza/asn1/its1/SessionLocation.h similarity index 100% rename from vanetza/asn1/its/SessionLocation.h rename to vanetza/asn1/its1/SessionLocation.h diff --git a/vanetza/asn1/its/SetInstanceRq.c b/vanetza/asn1/its1/SetInstanceRq.c similarity index 100% rename from vanetza/asn1/its/SetInstanceRq.c rename to vanetza/asn1/its1/SetInstanceRq.c diff --git a/vanetza/asn1/its/SetInstanceRq.h b/vanetza/asn1/its1/SetInstanceRq.h similarity index 100% rename from vanetza/asn1/its/SetInstanceRq.h rename to vanetza/asn1/its1/SetInstanceRq.h diff --git a/vanetza/asn1/its/SetMMIRq.c b/vanetza/asn1/its1/SetMMIRq.c similarity index 96% rename from vanetza/asn1/its/SetMMIRq.c rename to vanetza/asn1/its1/SetMMIRq.c index 9f9771440..610762631 100644 --- a/vanetza/asn1/its/SetMMIRq.c +++ b/vanetza/asn1/its1/SetMMIRq.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_SetMMIRq = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_SetMMIRq_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SetMMIRq_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/SetMMIRq.h b/vanetza/asn1/its1/SetMMIRq.h similarity index 100% rename from vanetza/asn1/its/SetMMIRq.h rename to vanetza/asn1/its1/SetMMIRq.h diff --git a/vanetza/asn1/its/SetStampedRq.c b/vanetza/asn1/its1/SetStampedRq.c similarity index 100% rename from vanetza/asn1/its/SetStampedRq.c rename to vanetza/asn1/its1/SetStampedRq.c diff --git a/vanetza/asn1/its/SetStampedRq.h b/vanetza/asn1/its1/SetStampedRq.h similarity index 100% rename from vanetza/asn1/its/SetStampedRq.h rename to vanetza/asn1/its1/SetStampedRq.h diff --git a/vanetza/asn1/its/ShadowingApplies.c b/vanetza/asn1/its1/ShadowingApplies.c similarity index 92% rename from vanetza/asn1/its/ShadowingApplies.c rename to vanetza/asn1/its1/ShadowingApplies.c index 9178efe43..218bf3426 100644 --- a/vanetza/asn1/its/ShadowingApplies.c +++ b/vanetza/asn1/its1/ShadowingApplies.c @@ -31,6 +31,9 @@ asn_TYPE_descriptor_t asn_DEF_ShadowingApplies = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ BOOLEAN_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/ShadowingApplies.h b/vanetza/asn1/its1/ShadowingApplies.h similarity index 100% rename from vanetza/asn1/its/ShadowingApplies.h rename to vanetza/asn1/its1/ShadowingApplies.h diff --git a/vanetza/asn1/its/SignalControlZone.c b/vanetza/asn1/its1/SignalControlZone.c similarity index 92% rename from vanetza/asn1/its/SignalControlZone.c rename to vanetza/asn1/its1/SignalControlZone.c index 107f27b41..0b18872b8 100644 --- a/vanetza/asn1/its/SignalControlZone.c +++ b/vanetza/asn1/its1/SignalControlZone.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_SignalControlZone_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -57,6 +60,9 @@ asn_TYPE_descriptor_t asn_DEF_SignalControlZone = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_SignalControlZone_1, diff --git a/vanetza/asn1/its/SignalControlZone.h b/vanetza/asn1/its1/SignalControlZone.h similarity index 100% rename from vanetza/asn1/its/SignalControlZone.h rename to vanetza/asn1/its1/SignalControlZone.h diff --git a/vanetza/asn1/its/SignalGroupID.c b/vanetza/asn1/its1/SignalGroupID.c similarity index 96% rename from vanetza/asn1/its/SignalGroupID.c rename to vanetza/asn1/its1/SignalGroupID.c index 796fb71c1..74cecb243 100644 --- a/vanetza/asn1/its/SignalGroupID.c +++ b/vanetza/asn1/its1/SignalGroupID.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_SignalGroupID = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_SignalGroupID_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SignalGroupID_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/SignalGroupID.h b/vanetza/asn1/its1/SignalGroupID.h similarity index 100% rename from vanetza/asn1/its/SignalGroupID.h rename to vanetza/asn1/its1/SignalGroupID.h diff --git a/vanetza/asn1/its/SignalHeadLocation.c b/vanetza/asn1/its1/SignalHeadLocation.c similarity index 90% rename from vanetza/asn1/its/SignalHeadLocation.c rename to vanetza/asn1/its1/SignalHeadLocation.c index daf13cbcd..d0538013b 100644 --- a/vanetza/asn1/its/SignalHeadLocation.c +++ b/vanetza/asn1/its1/SignalHeadLocation.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_SignalHeadLocation_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_SignalHeadLocation_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_SignalHeadLocation_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -93,6 +102,9 @@ asn_TYPE_descriptor_t asn_DEF_SignalHeadLocation = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_SignalHeadLocation_1, diff --git a/vanetza/asn1/its/SignalHeadLocation.h b/vanetza/asn1/its1/SignalHeadLocation.h similarity index 100% rename from vanetza/asn1/its/SignalHeadLocation.h rename to vanetza/asn1/its1/SignalHeadLocation.h diff --git a/vanetza/asn1/its/SignalHeadLocationList.c b/vanetza/asn1/its1/SignalHeadLocationList.c similarity index 93% rename from vanetza/asn1/its/SignalHeadLocationList.c rename to vanetza/asn1/its1/SignalHeadLocationList.c index 2f9e020c5..29f34780c 100644 --- a/vanetza/asn1/its/SignalHeadLocationList.c +++ b/vanetza/asn1/its1/SignalHeadLocationList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_SignalHeadLocationList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_SignalHeadLocationList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_SignalHeadLocationList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_SignalHeadLocationList_1, diff --git a/vanetza/asn1/its/SignalHeadLocationList.h b/vanetza/asn1/its1/SignalHeadLocationList.h similarity index 100% rename from vanetza/asn1/its/SignalHeadLocationList.h rename to vanetza/asn1/its1/SignalHeadLocationList.h diff --git a/vanetza/asn1/its/SignalRequest.c b/vanetza/asn1/its1/SignalRequest.c similarity index 91% rename from vanetza/asn1/its/SignalRequest.c rename to vanetza/asn1/its1/SignalRequest.c index 4b73dcb6c..0e22fcd95 100644 --- a/vanetza/asn1/its/SignalRequest.c +++ b/vanetza/asn1/its1/SignalRequest.c @@ -70,6 +70,9 @@ static asn_TYPE_member_t asn_MBR_regional_7[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -103,6 +106,9 @@ asn_TYPE_descriptor_t asn_DEF_regional_7 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_regional_constr_7, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_regional_7, @@ -123,6 +129,9 @@ asn_TYPE_member_t asn_MBR_SignalRequest_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -140,6 +149,9 @@ asn_TYPE_member_t asn_MBR_SignalRequest_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -157,6 +169,9 @@ asn_TYPE_member_t asn_MBR_SignalRequest_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -174,6 +189,9 @@ asn_TYPE_member_t asn_MBR_SignalRequest_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -191,6 +209,9 @@ asn_TYPE_member_t asn_MBR_SignalRequest_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -208,6 +229,9 @@ asn_TYPE_member_t asn_MBR_SignalRequest_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regional_constr_7, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regional_constraint_1 }, 0, 0, /* No default value */ @@ -252,6 +276,9 @@ asn_TYPE_descriptor_t asn_DEF_SignalRequest = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_SignalRequest_1, diff --git a/vanetza/asn1/its/SignalRequest.h b/vanetza/asn1/its1/SignalRequest.h similarity index 100% rename from vanetza/asn1/its/SignalRequest.h rename to vanetza/asn1/its1/SignalRequest.h diff --git a/vanetza/asn1/its/SignalRequestList.c b/vanetza/asn1/its1/SignalRequestList.c similarity index 93% rename from vanetza/asn1/its/SignalRequestList.c rename to vanetza/asn1/its1/SignalRequestList.c index 1d863e091..fdf810c5a 100644 --- a/vanetza/asn1/its/SignalRequestList.c +++ b/vanetza/asn1/its1/SignalRequestList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_SignalRequestList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_SignalRequestList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_SignalRequestList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_SignalRequestList_1, diff --git a/vanetza/asn1/its/SignalRequestList.h b/vanetza/asn1/its1/SignalRequestList.h similarity index 100% rename from vanetza/asn1/its/SignalRequestList.h rename to vanetza/asn1/its1/SignalRequestList.h diff --git a/vanetza/asn1/its/SignalRequestMessage.c b/vanetza/asn1/its1/SignalRequestMessage.c similarity index 91% rename from vanetza/asn1/its/SignalRequestMessage.c rename to vanetza/asn1/its1/SignalRequestMessage.c index 2d60e32ed..8302cd839 100644 --- a/vanetza/asn1/its/SignalRequestMessage.c +++ b/vanetza/asn1/its1/SignalRequestMessage.c @@ -70,6 +70,9 @@ static asn_TYPE_member_t asn_MBR_regional_7[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -103,6 +106,9 @@ asn_TYPE_descriptor_t asn_DEF_regional_7 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_regional_constr_7, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_regional_7, @@ -123,6 +129,9 @@ asn_TYPE_member_t asn_MBR_SignalRequestMessage_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -140,6 +149,9 @@ asn_TYPE_member_t asn_MBR_SignalRequestMessage_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -157,6 +169,9 @@ asn_TYPE_member_t asn_MBR_SignalRequestMessage_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -174,6 +189,9 @@ asn_TYPE_member_t asn_MBR_SignalRequestMessage_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -191,6 +209,9 @@ asn_TYPE_member_t asn_MBR_SignalRequestMessage_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -208,6 +229,9 @@ asn_TYPE_member_t asn_MBR_SignalRequestMessage_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regional_constr_7, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regional_constraint_1 }, 0, 0, /* No default value */ @@ -252,6 +276,9 @@ asn_TYPE_descriptor_t asn_DEF_SignalRequestMessage = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_SignalRequestMessage_1, diff --git a/vanetza/asn1/its/SignalRequestMessage.h b/vanetza/asn1/its1/SignalRequestMessage.h similarity index 100% rename from vanetza/asn1/its/SignalRequestMessage.h rename to vanetza/asn1/its1/SignalRequestMessage.h diff --git a/vanetza/asn1/its/SignalRequestPackage.c b/vanetza/asn1/its1/SignalRequestPackage.c similarity index 91% rename from vanetza/asn1/its/SignalRequestPackage.c rename to vanetza/asn1/its1/SignalRequestPackage.c index 09ba487b3..53fbd2332 100644 --- a/vanetza/asn1/its/SignalRequestPackage.c +++ b/vanetza/asn1/its1/SignalRequestPackage.c @@ -70,6 +70,9 @@ static asn_TYPE_member_t asn_MBR_regional_6[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -103,6 +106,9 @@ asn_TYPE_descriptor_t asn_DEF_regional_6 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_regional_constr_6, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_regional_6, @@ -123,6 +129,9 @@ asn_TYPE_member_t asn_MBR_SignalRequestPackage_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -140,6 +149,9 @@ asn_TYPE_member_t asn_MBR_SignalRequestPackage_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -157,6 +169,9 @@ asn_TYPE_member_t asn_MBR_SignalRequestPackage_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -174,6 +189,9 @@ asn_TYPE_member_t asn_MBR_SignalRequestPackage_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -191,6 +209,9 @@ asn_TYPE_member_t asn_MBR_SignalRequestPackage_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regional_constr_6, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regional_constraint_1 }, 0, 0, /* No default value */ @@ -234,6 +255,9 @@ asn_TYPE_descriptor_t asn_DEF_SignalRequestPackage = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_SignalRequestPackage_1, diff --git a/vanetza/asn1/its/SignalRequestPackage.h b/vanetza/asn1/its1/SignalRequestPackage.h similarity index 100% rename from vanetza/asn1/its/SignalRequestPackage.h rename to vanetza/asn1/its1/SignalRequestPackage.h diff --git a/vanetza/asn1/its/SignalRequesterInfo.c b/vanetza/asn1/its1/SignalRequesterInfo.c similarity index 89% rename from vanetza/asn1/its/SignalRequesterInfo.c rename to vanetza/asn1/its1/SignalRequesterInfo.c index 331c77e1b..8abe0bbd4 100644 --- a/vanetza/asn1/its/SignalRequesterInfo.c +++ b/vanetza/asn1/its1/SignalRequesterInfo.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_SignalRequesterInfo_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_SignalRequesterInfo_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_SignalRequesterInfo_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -71,6 +80,9 @@ asn_TYPE_member_t asn_MBR_SignalRequesterInfo_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -88,6 +100,9 @@ asn_TYPE_member_t asn_MBR_SignalRequesterInfo_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -131,6 +146,9 @@ asn_TYPE_descriptor_t asn_DEF_SignalRequesterInfo = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_SignalRequesterInfo_1, diff --git a/vanetza/asn1/its/SignalRequesterInfo.h b/vanetza/asn1/its1/SignalRequesterInfo.h similarity index 100% rename from vanetza/asn1/its/SignalRequesterInfo.h rename to vanetza/asn1/its1/SignalRequesterInfo.h diff --git a/vanetza/asn1/its/SignalStatus.c b/vanetza/asn1/its1/SignalStatus.c similarity index 91% rename from vanetza/asn1/its/SignalStatus.c rename to vanetza/asn1/its1/SignalStatus.c index c3a62a117..34e39597f 100644 --- a/vanetza/asn1/its/SignalStatus.c +++ b/vanetza/asn1/its1/SignalStatus.c @@ -70,6 +70,9 @@ static asn_TYPE_member_t asn_MBR_regional_5[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -103,6 +106,9 @@ asn_TYPE_descriptor_t asn_DEF_regional_5 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_regional_constr_5, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_regional_5, @@ -123,6 +129,9 @@ asn_TYPE_member_t asn_MBR_SignalStatus_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -140,6 +149,9 @@ asn_TYPE_member_t asn_MBR_SignalStatus_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -157,6 +169,9 @@ asn_TYPE_member_t asn_MBR_SignalStatus_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -174,6 +189,9 @@ asn_TYPE_member_t asn_MBR_SignalStatus_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regional_constr_5, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regional_constraint_1 }, 0, 0, /* No default value */ @@ -216,6 +234,9 @@ asn_TYPE_descriptor_t asn_DEF_SignalStatus = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_SignalStatus_1, diff --git a/vanetza/asn1/its/SignalStatus.h b/vanetza/asn1/its1/SignalStatus.h similarity index 100% rename from vanetza/asn1/its/SignalStatus.h rename to vanetza/asn1/its1/SignalStatus.h diff --git a/vanetza/asn1/its/SignalStatusList.c b/vanetza/asn1/its1/SignalStatusList.c similarity index 93% rename from vanetza/asn1/its/SignalStatusList.c rename to vanetza/asn1/its1/SignalStatusList.c index b9ddc83fa..7751ab112 100644 --- a/vanetza/asn1/its/SignalStatusList.c +++ b/vanetza/asn1/its1/SignalStatusList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_SignalStatusList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_SignalStatusList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_SignalStatusList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_SignalStatusList_1, diff --git a/vanetza/asn1/its/SignalStatusList.h b/vanetza/asn1/its1/SignalStatusList.h similarity index 100% rename from vanetza/asn1/its/SignalStatusList.h rename to vanetza/asn1/its1/SignalStatusList.h diff --git a/vanetza/asn1/its/SignalStatusMessage.c b/vanetza/asn1/its1/SignalStatusMessage.c similarity index 91% rename from vanetza/asn1/its/SignalStatusMessage.c rename to vanetza/asn1/its1/SignalStatusMessage.c index 3cdcb7ec7..552b25d9f 100644 --- a/vanetza/asn1/its/SignalStatusMessage.c +++ b/vanetza/asn1/its1/SignalStatusMessage.c @@ -70,6 +70,9 @@ static asn_TYPE_member_t asn_MBR_regional_6[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -103,6 +106,9 @@ asn_TYPE_descriptor_t asn_DEF_regional_6 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_regional_constr_6, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_regional_6, @@ -123,6 +129,9 @@ asn_TYPE_member_t asn_MBR_SignalStatusMessage_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -140,6 +149,9 @@ asn_TYPE_member_t asn_MBR_SignalStatusMessage_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -157,6 +169,9 @@ asn_TYPE_member_t asn_MBR_SignalStatusMessage_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -174,6 +189,9 @@ asn_TYPE_member_t asn_MBR_SignalStatusMessage_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -191,6 +209,9 @@ asn_TYPE_member_t asn_MBR_SignalStatusMessage_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regional_constr_6, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regional_constraint_1 }, 0, 0, /* No default value */ @@ -234,6 +255,9 @@ asn_TYPE_descriptor_t asn_DEF_SignalStatusMessage = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_SignalStatusMessage_1, diff --git a/vanetza/asn1/its/SignalStatusMessage.h b/vanetza/asn1/its1/SignalStatusMessage.h similarity index 100% rename from vanetza/asn1/its/SignalStatusMessage.h rename to vanetza/asn1/its1/SignalStatusMessage.h diff --git a/vanetza/asn1/its/SignalStatusPackage-addGrpC.c b/vanetza/asn1/its1/SignalStatusPackage-addGrpC.c similarity index 91% rename from vanetza/asn1/its/SignalStatusPackage-addGrpC.c rename to vanetza/asn1/its1/SignalStatusPackage-addGrpC.c index 930333958..56d496225 100644 --- a/vanetza/asn1/its/SignalStatusPackage-addGrpC.c +++ b/vanetza/asn1/its1/SignalStatusPackage-addGrpC.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_SignalStatusPackage_addGrpC_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_SignalStatusPackage_addGrpC_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -77,6 +83,9 @@ asn_TYPE_descriptor_t asn_DEF_SignalStatusPackage_addGrpC = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_SignalStatusPackage_addGrpC_1, diff --git a/vanetza/asn1/its/SignalStatusPackage-addGrpC.h b/vanetza/asn1/its1/SignalStatusPackage-addGrpC.h similarity index 100% rename from vanetza/asn1/its/SignalStatusPackage-addGrpC.h rename to vanetza/asn1/its1/SignalStatusPackage-addGrpC.h diff --git a/vanetza/asn1/its/SignalStatusPackage.c b/vanetza/asn1/its1/SignalStatusPackage.c similarity index 90% rename from vanetza/asn1/its/SignalStatusPackage.c rename to vanetza/asn1/its1/SignalStatusPackage.c index 771f6dfee..a6651c79a 100644 --- a/vanetza/asn1/its/SignalStatusPackage.c +++ b/vanetza/asn1/its1/SignalStatusPackage.c @@ -70,6 +70,9 @@ static asn_TYPE_member_t asn_MBR_regional_9[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -103,6 +106,9 @@ asn_TYPE_descriptor_t asn_DEF_regional_9 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_regional_constr_9, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_regional_9, @@ -123,6 +129,9 @@ asn_TYPE_member_t asn_MBR_SignalStatusPackage_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -140,6 +149,9 @@ asn_TYPE_member_t asn_MBR_SignalStatusPackage_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -157,6 +169,9 @@ asn_TYPE_member_t asn_MBR_SignalStatusPackage_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -174,6 +189,9 @@ asn_TYPE_member_t asn_MBR_SignalStatusPackage_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -191,6 +209,9 @@ asn_TYPE_member_t asn_MBR_SignalStatusPackage_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -208,6 +229,9 @@ asn_TYPE_member_t asn_MBR_SignalStatusPackage_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -225,6 +249,9 @@ asn_TYPE_member_t asn_MBR_SignalStatusPackage_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -242,6 +269,9 @@ asn_TYPE_member_t asn_MBR_SignalStatusPackage_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_regional_constr_9, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_regional_constraint_1 }, 0, 0, /* No default value */ @@ -288,6 +318,9 @@ asn_TYPE_descriptor_t asn_DEF_SignalStatusPackage = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_SignalStatusPackage_1, diff --git a/vanetza/asn1/its/SignalStatusPackage.h b/vanetza/asn1/its1/SignalStatusPackage.h similarity index 100% rename from vanetza/asn1/its/SignalStatusPackage.h rename to vanetza/asn1/its1/SignalStatusPackage.h diff --git a/vanetza/asn1/its/SignalStatusPackageList.c b/vanetza/asn1/its1/SignalStatusPackageList.c similarity index 93% rename from vanetza/asn1/its/SignalStatusPackageList.c rename to vanetza/asn1/its1/SignalStatusPackageList.c index 6abe5c193..ef28b1b26 100644 --- a/vanetza/asn1/its/SignalStatusPackageList.c +++ b/vanetza/asn1/its1/SignalStatusPackageList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_SignalStatusPackageList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_SignalStatusPackageList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_SignalStatusPackageList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_SignalStatusPackageList_1, diff --git a/vanetza/asn1/its/SignalStatusPackageList.h b/vanetza/asn1/its1/SignalStatusPackageList.h similarity index 100% rename from vanetza/asn1/its/SignalStatusPackageList.h rename to vanetza/asn1/its1/SignalStatusPackageList.h diff --git a/vanetza/asn1/its1/SignalViolationSubCauseCode.c b/vanetza/asn1/its1/SignalViolationSubCauseCode.c new file mode 100644 index 000000000..305fc320f --- /dev/null +++ b/vanetza/asn1/its1/SignalViolationSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SignalViolationSubCauseCode.h" + +int +SignalViolationSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SignalViolationSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_SignalViolationSubCauseCode_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_SignalViolationSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_SignalViolationSubCauseCode = { + "SignalViolationSubCauseCode", + "SignalViolationSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_SignalViolationSubCauseCode_tags_1, + sizeof(asn_DEF_SignalViolationSubCauseCode_tags_1) + /sizeof(asn_DEF_SignalViolationSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_SignalViolationSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_SignalViolationSubCauseCode_tags_1) + /sizeof(asn_DEF_SignalViolationSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_SignalViolationSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SignalViolationSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SignalViolationSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/SignalViolationSubCauseCode.h b/vanetza/asn1/its1/SignalViolationSubCauseCode.h similarity index 100% rename from vanetza/asn1/its/SignalViolationSubCauseCode.h rename to vanetza/asn1/its1/SignalViolationSubCauseCode.h diff --git a/vanetza/asn1/its/SignedValue.c b/vanetza/asn1/its1/SignedValue.c similarity index 95% rename from vanetza/asn1/its/SignedValue.c rename to vanetza/asn1/its1/SignedValue.c index 69855bbb2..ff68660ec 100644 --- a/vanetza/asn1/its/SignedValue.c +++ b/vanetza/asn1/its1/SignedValue.c @@ -106,6 +106,9 @@ asn_TYPE_member_t asn_MBR_SignedValue_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_positive_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_positive_constraint_1 }, 0, 0, /* No default value */ @@ -123,6 +126,9 @@ asn_TYPE_member_t asn_MBR_SignedValue_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_negative_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_negative_constraint_1 }, 0, 0, /* No default value */ @@ -158,6 +164,9 @@ asn_TYPE_descriptor_t asn_DEF_SignedValue = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_SignedValue_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_SignedValue_1, diff --git a/vanetza/asn1/its/SignedValue.h b/vanetza/asn1/its1/SignedValue.h similarity index 100% rename from vanetza/asn1/its/SignedValue.h rename to vanetza/asn1/its1/SignedValue.h diff --git a/vanetza/asn1/its1/SituationContainer.c b/vanetza/asn1/its1/SituationContainer.c new file mode 100644 index 000000000..be814605d --- /dev/null +++ b/vanetza/asn1/its1/SituationContainer.c @@ -0,0 +1,137 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "DENM-PDU-Descriptions" + * found in "asn1/EN302637-3v131-DENM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SituationContainer.h" + +asn_TYPE_member_t asn_MBR_SituationContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SituationContainer, informationQuality), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_InformationQuality, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "informationQuality" + }, + { ATF_NOFLAGS, 0, offsetof(struct SituationContainer, eventType), + (ASN_TAG_CLASS_CONTEXT | (1 << 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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "eventType" + }, + { ATF_POINTER, 2, offsetof(struct SituationContainer, linkedCause), + (ASN_TAG_CLASS_CONTEXT | (2 << 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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "linkedCause" + }, + { ATF_POINTER, 1, offsetof(struct SituationContainer, eventHistory), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EventHistory, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "eventHistory" + }, +}; +static const int asn_MAP_SituationContainer_oms_1[] = { 2, 3 }; +static const ber_tlv_tag_t asn_DEF_SituationContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SituationContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* informationQuality */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* eventType */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* linkedCause */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* eventHistory */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SituationContainer_specs_1 = { + sizeof(struct SituationContainer), + offsetof(struct SituationContainer, _asn_ctx), + asn_MAP_SituationContainer_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_SituationContainer_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SituationContainer = { + "SituationContainer", + "SituationContainer", + &asn_OP_SEQUENCE, + asn_DEF_SituationContainer_tags_1, + sizeof(asn_DEF_SituationContainer_tags_1) + /sizeof(asn_DEF_SituationContainer_tags_1[0]), /* 1 */ + asn_DEF_SituationContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_SituationContainer_tags_1) + /sizeof(asn_DEF_SituationContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SituationContainer_1, + 4, /* Elements count */ + &asn_SPC_SituationContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/SituationContainer.h b/vanetza/asn1/its1/SituationContainer.h similarity index 100% rename from vanetza/asn1/its/SituationContainer.h rename to vanetza/asn1/its1/SituationContainer.h diff --git a/vanetza/asn1/its1/SlowVehicleSubCauseCode.c b/vanetza/asn1/its1/SlowVehicleSubCauseCode.c new file mode 100644 index 000000000..dbfd36404 --- /dev/null +++ b/vanetza/asn1/its1/SlowVehicleSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SlowVehicleSubCauseCode.h" + +int +SlowVehicleSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SlowVehicleSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_SlowVehicleSubCauseCode_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_SlowVehicleSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_SlowVehicleSubCauseCode = { + "SlowVehicleSubCauseCode", + "SlowVehicleSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_SlowVehicleSubCauseCode_tags_1, + sizeof(asn_DEF_SlowVehicleSubCauseCode_tags_1) + /sizeof(asn_DEF_SlowVehicleSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_SlowVehicleSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_SlowVehicleSubCauseCode_tags_1) + /sizeof(asn_DEF_SlowVehicleSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_SlowVehicleSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SlowVehicleSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SlowVehicleSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/SlowVehicleSubCauseCode.h b/vanetza/asn1/its1/SlowVehicleSubCauseCode.h similarity index 100% rename from vanetza/asn1/its/SlowVehicleSubCauseCode.h rename to vanetza/asn1/its1/SlowVehicleSubCauseCode.h diff --git a/vanetza/asn1/its/SoundLevel.c b/vanetza/asn1/its1/SoundLevel.c similarity index 90% rename from vanetza/asn1/its/SoundLevel.c rename to vanetza/asn1/its1/SoundLevel.c index e1026cf6a..b957b8c59 100644 --- a/vanetza/asn1/its/SoundLevel.c +++ b/vanetza/asn1/its1/SoundLevel.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_SoundLevel_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_SoundLevel_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_SoundLevel = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_SoundLevel_1, diff --git a/vanetza/asn1/its/SoundLevel.h b/vanetza/asn1/its1/SoundLevel.h similarity index 100% rename from vanetza/asn1/its/SoundLevel.h rename to vanetza/asn1/its1/SoundLevel.h diff --git a/vanetza/asn1/its1/SpecialTransportContainer.c b/vanetza/asn1/its1/SpecialTransportContainer.c new file mode 100644 index 000000000..3d3230551 --- /dev/null +++ b/vanetza/asn1/its1/SpecialTransportContainer.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/EN302637-2v141-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SpecialTransportContainer.h" + +asn_TYPE_member_t asn_MBR_SpecialTransportContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SpecialTransportContainer, specialTransportType), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SpecialTransportType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "specialTransportType" + }, + { ATF_NOFLAGS, 0, offsetof(struct SpecialTransportContainer, lightBarSirenInUse), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LightBarSirenInUse, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lightBarSirenInUse" + }, +}; +static const ber_tlv_tag_t asn_DEF_SpecialTransportContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SpecialTransportContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* specialTransportType */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* lightBarSirenInUse */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SpecialTransportContainer_specs_1 = { + sizeof(struct SpecialTransportContainer), + offsetof(struct SpecialTransportContainer, _asn_ctx), + asn_MAP_SpecialTransportContainer_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_SpecialTransportContainer = { + "SpecialTransportContainer", + "SpecialTransportContainer", + &asn_OP_SEQUENCE, + asn_DEF_SpecialTransportContainer_tags_1, + sizeof(asn_DEF_SpecialTransportContainer_tags_1) + /sizeof(asn_DEF_SpecialTransportContainer_tags_1[0]), /* 1 */ + asn_DEF_SpecialTransportContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_SpecialTransportContainer_tags_1) + /sizeof(asn_DEF_SpecialTransportContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SpecialTransportContainer_1, + 2, /* Elements count */ + &asn_SPC_SpecialTransportContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/SpecialTransportContainer.h b/vanetza/asn1/its1/SpecialTransportContainer.h similarity index 100% rename from vanetza/asn1/its/SpecialTransportContainer.h rename to vanetza/asn1/its1/SpecialTransportContainer.h diff --git a/vanetza/asn1/its1/SpecialTransportType.c b/vanetza/asn1/its1/SpecialTransportType.c new file mode 100644 index 000000000..cde711c9d --- /dev/null +++ b/vanetza/asn1/its1/SpecialTransportType.c @@ -0,0 +1,89 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SpecialTransportType.h" + +int +SpecialTransportType_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 == 4UL)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SpecialTransportType_constr_1 CC_NOTUSED = { + { 0, 0 }, + 4 /* (SIZE(4..4)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SpecialTransportType_constr_1 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_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_SpecialTransportType_constr_1 CC_NOTUSED = { + 4}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_SpecialTransportType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_SpecialTransportType = { + "SpecialTransportType", + "SpecialTransportType", + &asn_OP_BIT_STRING, + asn_DEF_SpecialTransportType_tags_1, + sizeof(asn_DEF_SpecialTransportType_tags_1) + /sizeof(asn_DEF_SpecialTransportType_tags_1[0]), /* 1 */ + asn_DEF_SpecialTransportType_tags_1, /* Same as above */ + sizeof(asn_DEF_SpecialTransportType_tags_1) + /sizeof(asn_DEF_SpecialTransportType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_SpecialTransportType_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SpecialTransportType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_SpecialTransportType_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SpecialTransportType_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/SpecialTransportType.h b/vanetza/asn1/its1/SpecialTransportType.h similarity index 100% rename from vanetza/asn1/its/SpecialTransportType.h rename to vanetza/asn1/its1/SpecialTransportType.h diff --git a/vanetza/asn1/its1/SpecialVehicleContainer.c b/vanetza/asn1/its1/SpecialVehicleContainer.c new file mode 100644 index 000000000..df86ba2f7 --- /dev/null +++ b/vanetza/asn1/its1/SpecialVehicleContainer.c @@ -0,0 +1,207 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/EN302637-2v141-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SpecialVehicleContainer.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SpecialVehicleContainer_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SpecialVehicleContainer_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_SpecialVehicleContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SpecialVehicleContainer, choice.publicTransportContainer), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PublicTransportContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "publicTransportContainer" + }, + { ATF_NOFLAGS, 0, offsetof(struct SpecialVehicleContainer, choice.specialTransportContainer), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SpecialTransportContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "specialTransportContainer" + }, + { ATF_NOFLAGS, 0, offsetof(struct SpecialVehicleContainer, choice.dangerousGoodsContainer), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DangerousGoodsContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dangerousGoodsContainer" + }, + { ATF_NOFLAGS, 0, offsetof(struct SpecialVehicleContainer, choice.roadWorksContainerBasic), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RoadWorksContainerBasic, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "roadWorksContainerBasic" + }, + { ATF_NOFLAGS, 0, offsetof(struct SpecialVehicleContainer, choice.rescueContainer), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RescueContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rescueContainer" + }, + { ATF_NOFLAGS, 0, offsetof(struct SpecialVehicleContainer, choice.emergencyContainer), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EmergencyContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "emergencyContainer" + }, + { ATF_NOFLAGS, 0, offsetof(struct SpecialVehicleContainer, choice.safetyCarContainer), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SafetyCarContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "safetyCarContainer" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_SpecialVehicleContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* publicTransportContainer */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* specialTransportContainer */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* dangerousGoodsContainer */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* roadWorksContainerBasic */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* rescueContainer */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* emergencyContainer */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* safetyCarContainer */ +}; +asn_CHOICE_specifics_t asn_SPC_SpecialVehicleContainer_specs_1 = { + sizeof(struct SpecialVehicleContainer), + offsetof(struct SpecialVehicleContainer, _asn_ctx), + offsetof(struct SpecialVehicleContainer, present), + sizeof(((struct SpecialVehicleContainer *)0)->present), + asn_MAP_SpecialVehicleContainer_tag2el_1, + 7, /* Count of tags in the map */ + 0, 0, + 7 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_SpecialVehicleContainer = { + "SpecialVehicleContainer", + "SpecialVehicleContainer", + &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) + &asn_OER_type_SpecialVehicleContainer_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SpecialVehicleContainer_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_SpecialVehicleContainer_1, + 7, /* Elements count */ + &asn_SPC_SpecialVehicleContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/SpecialVehicleContainer.h b/vanetza/asn1/its1/SpecialVehicleContainer.h similarity index 100% rename from vanetza/asn1/its/SpecialVehicleContainer.h rename to vanetza/asn1/its1/SpecialVehicleContainer.h diff --git a/vanetza/asn1/its1/Speed.c b/vanetza/asn1/its1/Speed.c new file mode 100644 index 000000000..71af042e5 --- /dev/null +++ b/vanetza/asn1/its1/Speed.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Speed.h" + +asn_TYPE_member_t asn_MBR_Speed_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Speed, speedValue), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SpeedValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "speedValue" + }, + { ATF_NOFLAGS, 0, offsetof(struct Speed, speedConfidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SpeedConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "speedConfidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_Speed_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Speed_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* speedValue */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* speedConfidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Speed_specs_1 = { + sizeof(struct Speed), + offsetof(struct Speed, _asn_ctx), + asn_MAP_Speed_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_Speed = { + "Speed", + "Speed", + &asn_OP_SEQUENCE, + asn_DEF_Speed_tags_1, + sizeof(asn_DEF_Speed_tags_1) + /sizeof(asn_DEF_Speed_tags_1[0]), /* 1 */ + asn_DEF_Speed_tags_1, /* Same as above */ + sizeof(asn_DEF_Speed_tags_1) + /sizeof(asn_DEF_Speed_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Speed_1, + 2, /* Elements count */ + &asn_SPC_Speed_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/Speed.h b/vanetza/asn1/its1/Speed.h similarity index 100% rename from vanetza/asn1/its/Speed.h rename to vanetza/asn1/its1/Speed.h diff --git a/vanetza/asn1/its/SpeedAdvice.c b/vanetza/asn1/its1/SpeedAdvice.c similarity index 96% rename from vanetza/asn1/its/SpeedAdvice.c rename to vanetza/asn1/its1/SpeedAdvice.c index 671166e3a..2c51dcff3 100644 --- a/vanetza/asn1/its/SpeedAdvice.c +++ b/vanetza/asn1/its1/SpeedAdvice.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_SpeedAdvice = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_SpeedAdvice_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SpeedAdvice_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/SpeedAdvice.h b/vanetza/asn1/its1/SpeedAdvice.h similarity index 100% rename from vanetza/asn1/its/SpeedAdvice.h rename to vanetza/asn1/its1/SpeedAdvice.h diff --git a/vanetza/asn1/its1/SpeedConfidence.c b/vanetza/asn1/its1/SpeedConfidence.c new file mode 100644 index 000000000..d6943aaf9 --- /dev/null +++ b/vanetza/asn1/its1/SpeedConfidence.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SpeedConfidence.h" + +int +SpeedConfidence_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 <= 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SpeedConfidence_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..127) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SpeedConfidence_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 1, 127 } /* (1..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_SpeedConfidence_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_SpeedConfidence = { + "SpeedConfidence", + "SpeedConfidence", + &asn_OP_NativeInteger, + asn_DEF_SpeedConfidence_tags_1, + sizeof(asn_DEF_SpeedConfidence_tags_1) + /sizeof(asn_DEF_SpeedConfidence_tags_1[0]), /* 1 */ + asn_DEF_SpeedConfidence_tags_1, /* Same as above */ + sizeof(asn_DEF_SpeedConfidence_tags_1) + /sizeof(asn_DEF_SpeedConfidence_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_SpeedConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SpeedConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SpeedConfidence_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/SpeedConfidence.h b/vanetza/asn1/its1/SpeedConfidence.h similarity index 100% rename from vanetza/asn1/its/SpeedConfidence.h rename to vanetza/asn1/its1/SpeedConfidence.h diff --git a/vanetza/asn1/its/SpeedConfidenceIso.c b/vanetza/asn1/its1/SpeedConfidenceIso.c similarity index 96% rename from vanetza/asn1/its/SpeedConfidenceIso.c rename to vanetza/asn1/its1/SpeedConfidenceIso.c index c7a621314..971ee476a 100644 --- a/vanetza/asn1/its/SpeedConfidenceIso.c +++ b/vanetza/asn1/its1/SpeedConfidenceIso.c @@ -72,6 +72,9 @@ asn_TYPE_descriptor_t asn_DEF_SpeedConfidenceIso = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_SpeedConfidenceIso_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/SpeedConfidenceIso.h b/vanetza/asn1/its1/SpeedConfidenceIso.h similarity index 100% rename from vanetza/asn1/its/SpeedConfidenceIso.h rename to vanetza/asn1/its1/SpeedConfidenceIso.h diff --git a/vanetza/asn1/its/SpeedExtended.c b/vanetza/asn1/its1/SpeedExtended.c similarity index 90% rename from vanetza/asn1/its/SpeedExtended.c rename to vanetza/asn1/its1/SpeedExtended.c index 8507b537e..cf0c7366d 100644 --- a/vanetza/asn1/its/SpeedExtended.c +++ b/vanetza/asn1/its1/SpeedExtended.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_SpeedExtended_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_SpeedExtended_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_SpeedExtended = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_SpeedExtended_1, diff --git a/vanetza/asn1/its/SpeedExtended.h b/vanetza/asn1/its1/SpeedExtended.h similarity index 100% rename from vanetza/asn1/its/SpeedExtended.h rename to vanetza/asn1/its1/SpeedExtended.h diff --git a/vanetza/asn1/its1/SpeedLimit.c b/vanetza/asn1/its1/SpeedLimit.c new file mode 100644 index 000000000..4659144b6 --- /dev/null +++ b/vanetza/asn1/its1/SpeedLimit.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SpeedLimit.h" + +int +SpeedLimit_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 <= 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SpeedLimit_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SpeedLimit_constr_1 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) */ +static const ber_tlv_tag_t asn_DEF_SpeedLimit_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_SpeedLimit = { + "SpeedLimit", + "SpeedLimit", + &asn_OP_NativeInteger, + asn_DEF_SpeedLimit_tags_1, + sizeof(asn_DEF_SpeedLimit_tags_1) + /sizeof(asn_DEF_SpeedLimit_tags_1[0]), /* 1 */ + asn_DEF_SpeedLimit_tags_1, /* Same as above */ + sizeof(asn_DEF_SpeedLimit_tags_1) + /sizeof(asn_DEF_SpeedLimit_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_SpeedLimit_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SpeedLimit_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SpeedLimit_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/SpeedLimit.h b/vanetza/asn1/its1/SpeedLimit.h similarity index 100% rename from vanetza/asn1/its/SpeedLimit.h rename to vanetza/asn1/its1/SpeedLimit.h diff --git a/vanetza/asn1/its/SpeedLimitList.c b/vanetza/asn1/its1/SpeedLimitList.c similarity index 92% rename from vanetza/asn1/its/SpeedLimitList.c rename to vanetza/asn1/its1/SpeedLimitList.c index ac2132096..a3debace6 100644 --- a/vanetza/asn1/its/SpeedLimitList.c +++ b/vanetza/asn1/its1/SpeedLimitList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_SpeedLimitList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_SpeedLimitList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_SpeedLimitList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_SpeedLimitList_1, diff --git a/vanetza/asn1/its/SpeedLimitList.h b/vanetza/asn1/its1/SpeedLimitList.h similarity index 100% rename from vanetza/asn1/its/SpeedLimitList.h rename to vanetza/asn1/its1/SpeedLimitList.h diff --git a/vanetza/asn1/its/SpeedLimitType.c b/vanetza/asn1/its1/SpeedLimitType.c similarity index 97% rename from vanetza/asn1/its/SpeedLimitType.c rename to vanetza/asn1/its1/SpeedLimitType.c index e61986963..c100eebb9 100644 --- a/vanetza/asn1/its/SpeedLimitType.c +++ b/vanetza/asn1/its1/SpeedLimitType.c @@ -84,6 +84,9 @@ asn_TYPE_descriptor_t asn_DEF_SpeedLimitType = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_SpeedLimitType_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/SpeedLimitType.h b/vanetza/asn1/its1/SpeedLimitType.h similarity index 100% rename from vanetza/asn1/its/SpeedLimitType.h rename to vanetza/asn1/its1/SpeedLimitType.h diff --git a/vanetza/asn1/its1/SpeedValue.c b/vanetza/asn1/its1/SpeedValue.c new file mode 100644 index 000000000..675daac31 --- /dev/null +++ b/vanetza/asn1/its1/SpeedValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SpeedValue.h" + +int +SpeedValue_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SpeedValue_constr_1 CC_NOTUSED = { + { 2, 1 } /* (0..16383) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SpeedValue_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_SpeedValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_SpeedValue = { + "SpeedValue", + "SpeedValue", + &asn_OP_NativeInteger, + asn_DEF_SpeedValue_tags_1, + sizeof(asn_DEF_SpeedValue_tags_1) + /sizeof(asn_DEF_SpeedValue_tags_1[0]), /* 1 */ + asn_DEF_SpeedValue_tags_1, /* Same as above */ + sizeof(asn_DEF_SpeedValue_tags_1) + /sizeof(asn_DEF_SpeedValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_SpeedValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SpeedValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SpeedValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/SpeedValue.h b/vanetza/asn1/its1/SpeedValue.h similarity index 100% rename from vanetza/asn1/its/SpeedValue.h rename to vanetza/asn1/its1/SpeedValue.h diff --git a/vanetza/asn1/its/SpeedValueExtended.c b/vanetza/asn1/its1/SpeedValueExtended.c similarity index 96% rename from vanetza/asn1/its/SpeedValueExtended.c rename to vanetza/asn1/its1/SpeedValueExtended.c index bf3a4591c..f4c6f332d 100644 --- a/vanetza/asn1/its/SpeedValueExtended.c +++ b/vanetza/asn1/its1/SpeedValueExtended.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_SpeedValueExtended = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_SpeedValueExtended_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SpeedValueExtended_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/SpeedValueExtended.h b/vanetza/asn1/its1/SpeedValueExtended.h similarity index 100% rename from vanetza/asn1/its/SpeedValueExtended.h rename to vanetza/asn1/its1/SpeedValueExtended.h diff --git a/vanetza/asn1/its/SpeedandHeadingIsoandThrottleConfidence.c b/vanetza/asn1/its1/SpeedandHeadingIsoandThrottleConfidence.c similarity index 91% rename from vanetza/asn1/its/SpeedandHeadingIsoandThrottleConfidence.c rename to vanetza/asn1/its1/SpeedandHeadingIsoandThrottleConfidence.c index 7babc4c29..bce7845a5 100644 --- a/vanetza/asn1/its/SpeedandHeadingIsoandThrottleConfidence.c +++ b/vanetza/asn1/its1/SpeedandHeadingIsoandThrottleConfidence.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_SpeedandHeadingIsoandThrottleConfidence_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_SpeedandHeadingIsoandThrottleConfidence_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_SpeedandHeadingIsoandThrottleConfidence_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -93,6 +102,9 @@ asn_TYPE_descriptor_t asn_DEF_SpeedandHeadingIsoandThrottleConfidence = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_SpeedandHeadingIsoandThrottleConfidence_1, diff --git a/vanetza/asn1/its/SpeedandHeadingIsoandThrottleConfidence.h b/vanetza/asn1/its1/SpeedandHeadingIsoandThrottleConfidence.h similarity index 100% rename from vanetza/asn1/its/SpeedandHeadingIsoandThrottleConfidence.h rename to vanetza/asn1/its1/SpeedandHeadingIsoandThrottleConfidence.h diff --git a/vanetza/asn1/its/StartTime.c b/vanetza/asn1/its1/StartTime.c similarity index 96% rename from vanetza/asn1/its/StartTime.c rename to vanetza/asn1/its1/StartTime.c index cffaf4a1c..67c679b73 100644 --- a/vanetza/asn1/its/StartTime.c +++ b/vanetza/asn1/its1/StartTime.c @@ -69,6 +69,9 @@ asn_TYPE_descriptor_t asn_DEF_StartTime = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_StartTime_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ StartTime_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/StartTime.h b/vanetza/asn1/its1/StartTime.h similarity index 100% rename from vanetza/asn1/its/StartTime.h rename to vanetza/asn1/its1/StartTime.h diff --git a/vanetza/asn1/its/StationDataContainer.c b/vanetza/asn1/its1/StationDataContainer.c similarity index 92% rename from vanetza/asn1/its/StationDataContainer.c rename to vanetza/asn1/its1/StationDataContainer.c index 2f3876bca..10772d960 100644 --- a/vanetza/asn1/its/StationDataContainer.c +++ b/vanetza/asn1/its1/StationDataContainer.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_StationDataContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_StationDataContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -84,6 +90,9 @@ asn_TYPE_descriptor_t asn_DEF_StationDataContainer = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_StationDataContainer_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_StationDataContainer_1, diff --git a/vanetza/asn1/its/StationDataContainer.h b/vanetza/asn1/its1/StationDataContainer.h similarity index 100% rename from vanetza/asn1/its/StationDataContainer.h rename to vanetza/asn1/its1/StationDataContainer.h diff --git a/vanetza/asn1/its1/StationID.c b/vanetza/asn1/its1/StationID.c new file mode 100644 index 000000000..e04f8208b --- /dev/null +++ b/vanetza/asn1/its1/StationID.c @@ -0,0 +1,75 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "StationID.h" + +int +StationID_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. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_StationID_constr_1 CC_NOTUSED = { + { 4, 1 } /* (0..4294967295) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_StationID_constr_1 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) */ +const asn_INTEGER_specifics_t asn_SPC_StationID_specs_1 = { + 0, 0, 0, 0, 0, + 0, /* Native long size */ + 1 /* Unsigned representation */ +}; +static const ber_tlv_tag_t asn_DEF_StationID_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_StationID = { + "StationID", + "StationID", + &asn_OP_NativeInteger, + asn_DEF_StationID_tags_1, + sizeof(asn_DEF_StationID_tags_1) + /sizeof(asn_DEF_StationID_tags_1[0]), /* 1 */ + asn_DEF_StationID_tags_1, /* Same as above */ + sizeof(asn_DEF_StationID_tags_1) + /sizeof(asn_DEF_StationID_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_StationID_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_StationID_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + StationID_constraint + }, + 0, 0, /* No members */ + &asn_SPC_StationID_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/StationID.h b/vanetza/asn1/its1/StationID.h similarity index 100% rename from vanetza/asn1/its/StationID.h rename to vanetza/asn1/its1/StationID.h diff --git a/vanetza/asn1/its1/StationType.c b/vanetza/asn1/its1/StationType.c new file mode 100644 index 000000000..fec2a6a6f --- /dev/null +++ b/vanetza/asn1/its1/StationType.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "StationType.h" + +int +StationType_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_StationType_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_StationType_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_StationType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_StationType = { + "StationType", + "StationType", + &asn_OP_NativeInteger, + asn_DEF_StationType_tags_1, + sizeof(asn_DEF_StationType_tags_1) + /sizeof(asn_DEF_StationType_tags_1[0]), /* 1 */ + asn_DEF_StationType_tags_1, /* Same as above */ + sizeof(asn_DEF_StationType_tags_1) + /sizeof(asn_DEF_StationType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_StationType_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_StationType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + StationType_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/StationType.h b/vanetza/asn1/its1/StationType.h similarity index 100% rename from vanetza/asn1/its/StationType.h rename to vanetza/asn1/its1/StationType.h diff --git a/vanetza/asn1/its/StationTypeIso.c b/vanetza/asn1/its1/StationTypeIso.c similarity index 97% rename from vanetza/asn1/its/StationTypeIso.c rename to vanetza/asn1/its1/StationTypeIso.c index 8b30ff4a8..d1029d401 100644 --- a/vanetza/asn1/its/StationTypeIso.c +++ b/vanetza/asn1/its1/StationTypeIso.c @@ -88,6 +88,9 @@ asn_TYPE_descriptor_t asn_DEF_StationTypeIso = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_StationTypeIso_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/StationTypeIso.h b/vanetza/asn1/its1/StationTypeIso.h similarity index 100% rename from vanetza/asn1/its/StationTypeIso.h rename to vanetza/asn1/its1/StationTypeIso.h diff --git a/vanetza/asn1/its1/StationarySince.c b/vanetza/asn1/its1/StationarySince.c new file mode 100644 index 000000000..17c52faca --- /dev/null +++ b/vanetza/asn1/its1/StationarySince.c @@ -0,0 +1,75 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "StationarySince.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_StationarySince_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_StationarySince_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) */ +static const asn_INTEGER_enum_map_t asn_MAP_StationarySince_value2enum_1[] = { + { 0, 15, "lessThan1Minute" }, + { 1, 16, "lessThan2Minutes" }, + { 2, 17, "lessThan15Minutes" }, + { 3, 23, "equalOrGreater15Minutes" } +}; +static const unsigned int asn_MAP_StationarySince_enum2value_1[] = { + 3, /* equalOrGreater15Minutes(3) */ + 2, /* lessThan15Minutes(2) */ + 0, /* lessThan1Minute(0) */ + 1 /* lessThan2Minutes(1) */ +}; +const asn_INTEGER_specifics_t asn_SPC_StationarySince_specs_1 = { + asn_MAP_StationarySince_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_StationarySince_enum2value_1, /* 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_StationarySince_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_StationarySince = { + "StationarySince", + "StationarySince", + &asn_OP_NativeEnumerated, + asn_DEF_StationarySince_tags_1, + sizeof(asn_DEF_StationarySince_tags_1) + /sizeof(asn_DEF_StationarySince_tags_1[0]), /* 1 */ + asn_DEF_StationarySince_tags_1, /* Same as above */ + sizeof(asn_DEF_StationarySince_tags_1) + /sizeof(asn_DEF_StationarySince_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_StationarySince_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_StationarySince_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_StationarySince_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/StationarySince.h b/vanetza/asn1/its1/StationarySince.h similarity index 100% rename from vanetza/asn1/its/StationarySince.h rename to vanetza/asn1/its1/StationarySince.h diff --git a/vanetza/asn1/its1/StationaryVehicleContainer.c b/vanetza/asn1/its1/StationaryVehicleContainer.c new file mode 100644 index 000000000..1eb608b5f --- /dev/null +++ b/vanetza/asn1/its1/StationaryVehicleContainer.c @@ -0,0 +1,179 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "DENM-PDU-Descriptions" + * found in "asn1/EN302637-3v131-DENM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "StationaryVehicleContainer.h" + +asn_TYPE_member_t asn_MBR_StationaryVehicleContainer_1[] = { + { ATF_POINTER, 6, offsetof(struct StationaryVehicleContainer, stationarySince), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StationarySince, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "stationarySince" + }, + { ATF_POINTER, 5, offsetof(struct StationaryVehicleContainer, stationaryCause), + (ASN_TAG_CLASS_CONTEXT | (1 << 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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "stationaryCause" + }, + { ATF_POINTER, 4, offsetof(struct StationaryVehicleContainer, carryingDangerousGoods), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DangerousGoodsExtended, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "carryingDangerousGoods" + }, + { ATF_POINTER, 3, offsetof(struct StationaryVehicleContainer, numberOfOccupants), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NumberOfOccupants, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "numberOfOccupants" + }, + { ATF_POINTER, 2, offsetof(struct StationaryVehicleContainer, vehicleIdentification), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VehicleIdentification, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vehicleIdentification" + }, + { ATF_POINTER, 1, offsetof(struct StationaryVehicleContainer, energyStorageType), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EnergyStorageType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "energyStorageType" + }, +}; +static const int asn_MAP_StationaryVehicleContainer_oms_1[] = { 0, 1, 2, 3, 4, 5 }; +static const ber_tlv_tag_t asn_DEF_StationaryVehicleContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_StationaryVehicleContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* stationarySince */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* stationaryCause */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* carryingDangerousGoods */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* numberOfOccupants */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* vehicleIdentification */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* energyStorageType */ +}; +asn_SEQUENCE_specifics_t asn_SPC_StationaryVehicleContainer_specs_1 = { + sizeof(struct StationaryVehicleContainer), + offsetof(struct StationaryVehicleContainer, _asn_ctx), + asn_MAP_StationaryVehicleContainer_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_StationaryVehicleContainer_oms_1, /* Optional members */ + 6, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_StationaryVehicleContainer = { + "StationaryVehicleContainer", + "StationaryVehicleContainer", + &asn_OP_SEQUENCE, + asn_DEF_StationaryVehicleContainer_tags_1, + sizeof(asn_DEF_StationaryVehicleContainer_tags_1) + /sizeof(asn_DEF_StationaryVehicleContainer_tags_1[0]), /* 1 */ + asn_DEF_StationaryVehicleContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_StationaryVehicleContainer_tags_1) + /sizeof(asn_DEF_StationaryVehicleContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_StationaryVehicleContainer_1, + 6, /* Elements count */ + &asn_SPC_StationaryVehicleContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/StationaryVehicleContainer.h b/vanetza/asn1/its1/StationaryVehicleContainer.h similarity index 100% rename from vanetza/asn1/its/StationaryVehicleContainer.h rename to vanetza/asn1/its1/StationaryVehicleContainer.h diff --git a/vanetza/asn1/its1/StationaryVehicleSubCauseCode.c b/vanetza/asn1/its1/StationaryVehicleSubCauseCode.c new file mode 100644 index 000000000..02827ca72 --- /dev/null +++ b/vanetza/asn1/its1/StationaryVehicleSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "StationaryVehicleSubCauseCode.h" + +int +StationaryVehicleSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_StationaryVehicleSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_StationaryVehicleSubCauseCode_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_StationaryVehicleSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_StationaryVehicleSubCauseCode = { + "StationaryVehicleSubCauseCode", + "StationaryVehicleSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_StationaryVehicleSubCauseCode_tags_1, + sizeof(asn_DEF_StationaryVehicleSubCauseCode_tags_1) + /sizeof(asn_DEF_StationaryVehicleSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_StationaryVehicleSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_StationaryVehicleSubCauseCode_tags_1) + /sizeof(asn_DEF_StationaryVehicleSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_StationaryVehicleSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_StationaryVehicleSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + StationaryVehicleSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/StationaryVehicleSubCauseCode.h b/vanetza/asn1/its1/StationaryVehicleSubCauseCode.h similarity index 100% rename from vanetza/asn1/its/StationaryVehicleSubCauseCode.h rename to vanetza/asn1/its1/StationaryVehicleSubCauseCode.h diff --git a/vanetza/asn1/its1/SteeringWheelAngle.c b/vanetza/asn1/its1/SteeringWheelAngle.c new file mode 100644 index 000000000..ca0488f5e --- /dev/null +++ b/vanetza/asn1/its1/SteeringWheelAngle.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SteeringWheelAngle.h" + +asn_TYPE_member_t asn_MBR_SteeringWheelAngle_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SteeringWheelAngle, steeringWheelAngleValue), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SteeringWheelAngleValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "steeringWheelAngleValue" + }, + { ATF_NOFLAGS, 0, offsetof(struct SteeringWheelAngle, steeringWheelAngleConfidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SteeringWheelAngleConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "steeringWheelAngleConfidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_SteeringWheelAngle_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SteeringWheelAngle_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* steeringWheelAngleValue */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* steeringWheelAngleConfidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SteeringWheelAngle_specs_1 = { + sizeof(struct SteeringWheelAngle), + offsetof(struct SteeringWheelAngle, _asn_ctx), + asn_MAP_SteeringWheelAngle_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_SteeringWheelAngle = { + "SteeringWheelAngle", + "SteeringWheelAngle", + &asn_OP_SEQUENCE, + asn_DEF_SteeringWheelAngle_tags_1, + sizeof(asn_DEF_SteeringWheelAngle_tags_1) + /sizeof(asn_DEF_SteeringWheelAngle_tags_1[0]), /* 1 */ + asn_DEF_SteeringWheelAngle_tags_1, /* Same as above */ + sizeof(asn_DEF_SteeringWheelAngle_tags_1) + /sizeof(asn_DEF_SteeringWheelAngle_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SteeringWheelAngle_1, + 2, /* Elements count */ + &asn_SPC_SteeringWheelAngle_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/SteeringWheelAngle.h b/vanetza/asn1/its1/SteeringWheelAngle.h similarity index 100% rename from vanetza/asn1/its/SteeringWheelAngle.h rename to vanetza/asn1/its1/SteeringWheelAngle.h diff --git a/vanetza/asn1/its1/SteeringWheelAngleConfidence.c b/vanetza/asn1/its1/SteeringWheelAngleConfidence.c new file mode 100644 index 000000000..9c6a90adf --- /dev/null +++ b/vanetza/asn1/its1/SteeringWheelAngleConfidence.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SteeringWheelAngleConfidence.h" + +int +SteeringWheelAngleConfidence_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 <= 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SteeringWheelAngleConfidence_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..127) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SteeringWheelAngleConfidence_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 1, 127 } /* (1..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_SteeringWheelAngleConfidence_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_SteeringWheelAngleConfidence = { + "SteeringWheelAngleConfidence", + "SteeringWheelAngleConfidence", + &asn_OP_NativeInteger, + asn_DEF_SteeringWheelAngleConfidence_tags_1, + sizeof(asn_DEF_SteeringWheelAngleConfidence_tags_1) + /sizeof(asn_DEF_SteeringWheelAngleConfidence_tags_1[0]), /* 1 */ + asn_DEF_SteeringWheelAngleConfidence_tags_1, /* Same as above */ + sizeof(asn_DEF_SteeringWheelAngleConfidence_tags_1) + /sizeof(asn_DEF_SteeringWheelAngleConfidence_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_SteeringWheelAngleConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SteeringWheelAngleConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SteeringWheelAngleConfidence_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/SteeringWheelAngleConfidence.h b/vanetza/asn1/its1/SteeringWheelAngleConfidence.h similarity index 100% rename from vanetza/asn1/its/SteeringWheelAngleConfidence.h rename to vanetza/asn1/its1/SteeringWheelAngleConfidence.h diff --git a/vanetza/asn1/its1/SteeringWheelAngleValue.c b/vanetza/asn1/its1/SteeringWheelAngleValue.c new file mode 100644 index 000000000..90b69118a --- /dev/null +++ b/vanetza/asn1/its1/SteeringWheelAngleValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SteeringWheelAngleValue.h" + +int +SteeringWheelAngleValue_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 >= -511L && 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; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SteeringWheelAngleValue_constr_1 CC_NOTUSED = { + { 2, 0 } /* (-511..512) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SteeringWheelAngleValue_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, -511, 512 } /* (-511..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 ber_tlv_tag_t asn_DEF_SteeringWheelAngleValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_SteeringWheelAngleValue = { + "SteeringWheelAngleValue", + "SteeringWheelAngleValue", + &asn_OP_NativeInteger, + asn_DEF_SteeringWheelAngleValue_tags_1, + sizeof(asn_DEF_SteeringWheelAngleValue_tags_1) + /sizeof(asn_DEF_SteeringWheelAngleValue_tags_1[0]), /* 1 */ + asn_DEF_SteeringWheelAngleValue_tags_1, /* Same as above */ + sizeof(asn_DEF_SteeringWheelAngleValue_tags_1) + /sizeof(asn_DEF_SteeringWheelAngleValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_SteeringWheelAngleValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SteeringWheelAngleValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SteeringWheelAngleValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/SteeringWheelAngleValue.h b/vanetza/asn1/its1/SteeringWheelAngleValue.h similarity index 100% rename from vanetza/asn1/its/SteeringWheelAngleValue.h rename to vanetza/asn1/its1/SteeringWheelAngleValue.h diff --git a/vanetza/asn1/its/StopTime.c b/vanetza/asn1/its1/StopTime.c similarity index 96% rename from vanetza/asn1/its/StopTime.c rename to vanetza/asn1/its1/StopTime.c index dfcd07739..18b4027e4 100644 --- a/vanetza/asn1/its/StopTime.c +++ b/vanetza/asn1/its1/StopTime.c @@ -69,6 +69,9 @@ asn_TYPE_descriptor_t asn_DEF_StopTime = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_StopTime_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ StopTime_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/StopTime.h b/vanetza/asn1/its1/StopTime.h similarity index 100% rename from vanetza/asn1/its/StopTime.h rename to vanetza/asn1/its1/StopTime.h diff --git a/vanetza/asn1/its1/SubCauseCodeType.c b/vanetza/asn1/its1/SubCauseCodeType.c new file mode 100644 index 000000000..448361498 --- /dev/null +++ b/vanetza/asn1/its1/SubCauseCodeType.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SubCauseCodeType.h" + +int +SubCauseCodeType_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SubCauseCodeType_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SubCauseCodeType_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_SubCauseCodeType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_SubCauseCodeType = { + "SubCauseCodeType", + "SubCauseCodeType", + &asn_OP_NativeInteger, + asn_DEF_SubCauseCodeType_tags_1, + sizeof(asn_DEF_SubCauseCodeType_tags_1) + /sizeof(asn_DEF_SubCauseCodeType_tags_1[0]), /* 1 */ + asn_DEF_SubCauseCodeType_tags_1, /* Same as above */ + sizeof(asn_DEF_SubCauseCodeType_tags_1) + /sizeof(asn_DEF_SubCauseCodeType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_SubCauseCodeType_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SubCauseCodeType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SubCauseCodeType_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/SubCauseCodeType.h b/vanetza/asn1/its1/SubCauseCodeType.h similarity index 100% rename from vanetza/asn1/its/SubCauseCodeType.h rename to vanetza/asn1/its1/SubCauseCodeType.h diff --git a/vanetza/asn1/its/SubRq.c b/vanetza/asn1/its1/SubRq.c similarity index 93% rename from vanetza/asn1/its/SubRq.c rename to vanetza/asn1/its1/SubRq.c index 04bb1cb8d..ae6fb8157 100644 --- a/vanetza/asn1/its/SubRq.c +++ b/vanetza/asn1/its1/SubRq.c @@ -57,6 +57,9 @@ static asn_TYPE_member_t asn_MBR_SubRq_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_attributeId_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_attributeId_constraint_1 }, 0, 0, /* No default value */ @@ -74,6 +77,9 @@ static asn_TYPE_member_t asn_MBR_SubRq_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -112,6 +118,9 @@ asn_TYPE_descriptor_t asn_DEF_SubRq = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_SubRq_1, diff --git a/vanetza/asn1/its/SubRq.h b/vanetza/asn1/its1/SubRq.h similarity index 100% rename from vanetza/asn1/its/SubRq.h rename to vanetza/asn1/its1/SubRq.h diff --git a/vanetza/asn1/its/TaxCode.c b/vanetza/asn1/its1/TaxCode.c similarity index 92% rename from vanetza/asn1/its/TaxCode.c rename to vanetza/asn1/its1/TaxCode.c index 64ce58820..af4a3d461 100644 --- a/vanetza/asn1/its/TaxCode.c +++ b/vanetza/asn1/its1/TaxCode.c @@ -31,6 +31,9 @@ asn_TYPE_descriptor_t asn_DEF_TaxCode = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OCTET_STRING_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/TaxCode.h b/vanetza/asn1/its1/TaxCode.h similarity index 100% rename from vanetza/asn1/its/TaxCode.h rename to vanetza/asn1/its1/TaxCode.h diff --git a/vanetza/asn1/its/TcPart.c b/vanetza/asn1/its1/TcPart.c similarity index 90% rename from vanetza/asn1/its/TcPart.c rename to vanetza/asn1/its1/TcPart.c index 5b749beca..322471b60 100644 --- a/vanetza/asn1/its/TcPart.c +++ b/vanetza/asn1/its1/TcPart.c @@ -131,6 +131,9 @@ static asn_TYPE_member_t asn_MBR_ext1_13[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -148,6 +151,9 @@ static asn_TYPE_member_t asn_MBR_ext1_13[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -165,6 +171,9 @@ static asn_TYPE_member_t asn_MBR_ext1_13[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -208,6 +217,9 @@ asn_TYPE_descriptor_t asn_DEF_ext1_13 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_ext1_13, @@ -228,6 +240,9 @@ asn_TYPE_member_t asn_MBR_TcPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -245,6 +260,9 @@ asn_TYPE_member_t asn_MBR_TcPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -262,6 +280,9 @@ asn_TYPE_member_t asn_MBR_TcPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -279,6 +300,9 @@ asn_TYPE_member_t asn_MBR_TcPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -296,6 +320,9 @@ asn_TYPE_member_t asn_MBR_TcPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_minimumAwarenessTime_constr_6, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_minimumAwarenessTime_constraint_1 }, 0, 0, /* No default value */ @@ -313,6 +340,9 @@ asn_TYPE_member_t asn_MBR_TcPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -330,6 +360,9 @@ asn_TYPE_member_t asn_MBR_TcPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_layoutId_constr_8, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_layoutId_constraint_1 }, 0, 0, /* No default value */ @@ -347,6 +380,9 @@ asn_TYPE_member_t asn_MBR_TcPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_preStoredlayoutId_constr_9, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_preStoredlayoutId_constraint_1 }, 0, 0, /* No default value */ @@ -364,6 +400,9 @@ asn_TYPE_member_t asn_MBR_TcPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -381,6 +420,9 @@ asn_TYPE_member_t asn_MBR_TcPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -398,6 +440,9 @@ asn_TYPE_member_t asn_MBR_TcPart_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -447,6 +492,9 @@ asn_TYPE_descriptor_t asn_DEF_TcPart = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_TcPart_1, diff --git a/vanetza/asn1/its/TcPart.h b/vanetza/asn1/its1/TcPart.h similarity index 100% rename from vanetza/asn1/its/TcPart.h rename to vanetza/asn1/its1/TcPart.h diff --git a/vanetza/asn1/its/TemporaryID.c b/vanetza/asn1/its1/TemporaryID.c similarity index 96% rename from vanetza/asn1/its/TemporaryID.c rename to vanetza/asn1/its1/TemporaryID.c index eaf7ded2a..06474b4e2 100644 --- a/vanetza/asn1/its/TemporaryID.c +++ b/vanetza/asn1/its1/TemporaryID.c @@ -69,6 +69,9 @@ asn_TYPE_descriptor_t asn_DEF_TemporaryID = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_TemporaryID_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ TemporaryID_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/TemporaryID.h b/vanetza/asn1/its1/TemporaryID.h similarity index 100% rename from vanetza/asn1/its/TemporaryID.h rename to vanetza/asn1/its1/TemporaryID.h diff --git a/vanetza/asn1/its1/Termination.c b/vanetza/asn1/its1/Termination.c new file mode 100644 index 000000000..0f039a02a --- /dev/null +++ b/vanetza/asn1/its1/Termination.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "DENM-PDU-Descriptions" + * found in "asn1/EN302637-3v131-DENM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Termination.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_Termination_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Termination_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_Termination_value2enum_1[] = { + { 0, 14, "isCancellation" }, + { 1, 10, "isNegation" } +}; +static const unsigned int asn_MAP_Termination_enum2value_1[] = { + 0, /* isCancellation(0) */ + 1 /* isNegation(1) */ +}; +const asn_INTEGER_specifics_t asn_SPC_Termination_specs_1 = { + asn_MAP_Termination_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_Termination_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_Termination_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_Termination = { + "Termination", + "Termination", + &asn_OP_NativeEnumerated, + asn_DEF_Termination_tags_1, + sizeof(asn_DEF_Termination_tags_1) + /sizeof(asn_DEF_Termination_tags_1[0]), /* 1 */ + asn_DEF_Termination_tags_1, /* Same as above */ + sizeof(asn_DEF_Termination_tags_1) + /sizeof(asn_DEF_Termination_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_Termination_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Termination_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_Termination_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/Termination.h b/vanetza/asn1/its1/Termination.h similarity index 100% rename from vanetza/asn1/its/Termination.h rename to vanetza/asn1/its1/Termination.h diff --git a/vanetza/asn1/its/Text.c b/vanetza/asn1/its1/Text.c similarity index 90% rename from vanetza/asn1/its/Text.c rename to vanetza/asn1/its1/Text.c index 3c4362082..5f7051324 100644 --- a/vanetza/asn1/its/Text.c +++ b/vanetza/asn1/its1/Text.c @@ -87,6 +87,10 @@ static asn_per_constraints_t asn_PER_memb_language_constr_3 CC_NOTUSED = { 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_memb_language_constr_3 CC_NOTUSED = { + 10}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ asn_TYPE_member_t asn_MBR_Text_1[] = { { ATF_POINTER, 1, offsetof(struct Text, layoutComponentId), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), @@ -100,6 +104,9 @@ asn_TYPE_member_t asn_MBR_Text_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_layoutComponentId_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_layoutComponentId_constraint_1 }, 0, 0, /* No default value */ @@ -117,6 +124,9 @@ asn_TYPE_member_t asn_MBR_Text_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_language_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_memb_language_constr_3, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_language_constraint_1 }, 0, 0, /* No default value */ @@ -134,6 +144,9 @@ asn_TYPE_member_t asn_MBR_Text_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -175,6 +188,9 @@ asn_TYPE_descriptor_t asn_DEF_Text = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Text_1, diff --git a/vanetza/asn1/its/Text.h b/vanetza/asn1/its1/Text.h similarity index 100% rename from vanetza/asn1/its/Text.h rename to vanetza/asn1/its1/Text.h diff --git a/vanetza/asn1/its/TextContainer.c b/vanetza/asn1/its1/TextContainer.c similarity index 92% rename from vanetza/asn1/its/TextContainer.c rename to vanetza/asn1/its1/TextContainer.c index 31b64a159..c72ed5e8c 100644 --- a/vanetza/asn1/its/TextContainer.c +++ b/vanetza/asn1/its1/TextContainer.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_TextContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_TextContainer = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_TextContainer_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_TextContainer_1, diff --git a/vanetza/asn1/its/TextContainer.h b/vanetza/asn1/its1/TextContainer.h similarity index 100% rename from vanetza/asn1/its/TextContainer.h rename to vanetza/asn1/its1/TextContainer.h diff --git a/vanetza/asn1/its/TextLines.c b/vanetza/asn1/its1/TextLines.c similarity index 92% rename from vanetza/asn1/its/TextLines.c rename to vanetza/asn1/its1/TextLines.c index 1b2de4c77..1ab472360 100644 --- a/vanetza/asn1/its/TextLines.c +++ b/vanetza/asn1/its1/TextLines.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_TextLines_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_TextLines = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_TextLines_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_TextLines_1, diff --git a/vanetza/asn1/its/TextLines.h b/vanetza/asn1/its1/TextLines.h similarity index 100% rename from vanetza/asn1/its/TextLines.h rename to vanetza/asn1/its1/TextLines.h diff --git a/vanetza/asn1/its/ThrottleConfidence.c b/vanetza/asn1/its1/ThrottleConfidence.c similarity index 96% rename from vanetza/asn1/its/ThrottleConfidence.c rename to vanetza/asn1/its1/ThrottleConfidence.c index f042b4d04..e4fae5d53 100644 --- a/vanetza/asn1/its/ThrottleConfidence.c +++ b/vanetza/asn1/its1/ThrottleConfidence.c @@ -64,6 +64,9 @@ asn_TYPE_descriptor_t asn_DEF_ThrottleConfidence = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ThrottleConfidence_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/ThrottleConfidence.h b/vanetza/asn1/its1/ThrottleConfidence.h similarity index 100% rename from vanetza/asn1/its/ThrottleConfidence.h rename to vanetza/asn1/its1/ThrottleConfidence.h diff --git a/vanetza/asn1/its/TimeChangeDetails.c b/vanetza/asn1/its1/TimeChangeDetails.c similarity index 88% rename from vanetza/asn1/its/TimeChangeDetails.c rename to vanetza/asn1/its1/TimeChangeDetails.c index 07fbf7c4d..3dca87278 100644 --- a/vanetza/asn1/its/TimeChangeDetails.c +++ b/vanetza/asn1/its1/TimeChangeDetails.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_TimeChangeDetails_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_TimeChangeDetails_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_TimeChangeDetails_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -71,6 +80,9 @@ asn_TYPE_member_t asn_MBR_TimeChangeDetails_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -88,6 +100,9 @@ asn_TYPE_member_t asn_MBR_TimeChangeDetails_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -105,6 +120,9 @@ asn_TYPE_member_t asn_MBR_TimeChangeDetails_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -149,6 +167,9 @@ asn_TYPE_descriptor_t asn_DEF_TimeChangeDetails = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_TimeChangeDetails_1, diff --git a/vanetza/asn1/its/TimeChangeDetails.h b/vanetza/asn1/its1/TimeChangeDetails.h similarity index 100% rename from vanetza/asn1/its/TimeChangeDetails.h rename to vanetza/asn1/its1/TimeChangeDetails.h diff --git a/vanetza/asn1/its/TimeConfidence.c b/vanetza/asn1/its1/TimeConfidence.c similarity index 98% rename from vanetza/asn1/its/TimeConfidence.c rename to vanetza/asn1/its1/TimeConfidence.c index e38ed9f57..6ca2754a0 100644 --- a/vanetza/asn1/its/TimeConfidence.c +++ b/vanetza/asn1/its1/TimeConfidence.c @@ -136,6 +136,9 @@ asn_TYPE_descriptor_t asn_DEF_TimeConfidence = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_TimeConfidence_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/TimeConfidence.h b/vanetza/asn1/its1/TimeConfidence.h similarity index 100% rename from vanetza/asn1/its/TimeConfidence.h rename to vanetza/asn1/its1/TimeConfidence.h diff --git a/vanetza/asn1/its/TimeIntervalConfidence.c b/vanetza/asn1/its1/TimeIntervalConfidence.c similarity index 96% rename from vanetza/asn1/its/TimeIntervalConfidence.c rename to vanetza/asn1/its1/TimeIntervalConfidence.c index 361be5df3..bf0a5e5d9 100644 --- a/vanetza/asn1/its/TimeIntervalConfidence.c +++ b/vanetza/asn1/its1/TimeIntervalConfidence.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_TimeIntervalConfidence = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_TimeIntervalConfidence_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ TimeIntervalConfidence_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/TimeIntervalConfidence.h b/vanetza/asn1/its1/TimeIntervalConfidence.h similarity index 100% rename from vanetza/asn1/its/TimeIntervalConfidence.h rename to vanetza/asn1/its1/TimeIntervalConfidence.h diff --git a/vanetza/asn1/its/TimeMark.c b/vanetza/asn1/its1/TimeMark.c similarity index 96% rename from vanetza/asn1/its/TimeMark.c rename to vanetza/asn1/its1/TimeMark.c index 7950d0eb0..ed0b890cf 100644 --- a/vanetza/asn1/its/TimeMark.c +++ b/vanetza/asn1/its1/TimeMark.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_TimeMark = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_TimeMark_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ TimeMark_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/TimeMark.h b/vanetza/asn1/its1/TimeMark.h similarity index 100% rename from vanetza/asn1/its/TimeMark.h rename to vanetza/asn1/its1/TimeMark.h diff --git a/vanetza/asn1/its/TimeOfMeasurement.c b/vanetza/asn1/its1/TimeOfMeasurement.c similarity index 96% rename from vanetza/asn1/its/TimeOfMeasurement.c rename to vanetza/asn1/its1/TimeOfMeasurement.c index 2a12064a6..7e550463a 100644 --- a/vanetza/asn1/its/TimeOfMeasurement.c +++ b/vanetza/asn1/its1/TimeOfMeasurement.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_TimeOfMeasurement = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_TimeOfMeasurement_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ TimeOfMeasurement_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/TimeOfMeasurement.h b/vanetza/asn1/its1/TimeOfMeasurement.h similarity index 100% rename from vanetza/asn1/its/TimeOfMeasurement.h rename to vanetza/asn1/its1/TimeOfMeasurement.h diff --git a/vanetza/asn1/its/TimeReference.c b/vanetza/asn1/its1/TimeReference.c similarity index 96% rename from vanetza/asn1/its/TimeReference.c rename to vanetza/asn1/its1/TimeReference.c index 1ac94a655..46bedecaf 100644 --- a/vanetza/asn1/its/TimeReference.c +++ b/vanetza/asn1/its1/TimeReference.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_TimeReference = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_TimeReference_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ TimeReference_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/TimeReference.h b/vanetza/asn1/its1/TimeReference.h similarity index 100% rename from vanetza/asn1/its/TimeReference.h rename to vanetza/asn1/its1/TimeReference.h diff --git a/vanetza/asn1/its1/TimestampIts.c b/vanetza/asn1/its1/TimestampIts.c new file mode 100644 index 000000000..ffe9038a9 --- /dev/null +++ b/vanetza/asn1/its1/TimestampIts.c @@ -0,0 +1,85 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "TimestampIts.h" + +int +TimestampIts_constraint(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 <= 4398046511103L)) { + /* 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 INTEGER, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_TimestampIts_constr_1 CC_NOTUSED = { + { 8, 1 } /* (0..4398046511103) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_TimestampIts_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 42, -1, 0, 4398046511103 } /* (0..4398046511103) */, + { 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_TimestampIts_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_TimestampIts = { + "TimestampIts", + "TimestampIts", + &asn_OP_INTEGER, + asn_DEF_TimestampIts_tags_1, + sizeof(asn_DEF_TimestampIts_tags_1) + /sizeof(asn_DEF_TimestampIts_tags_1[0]), /* 1 */ + asn_DEF_TimestampIts_tags_1, /* Same as above */ + sizeof(asn_DEF_TimestampIts_tags_1) + /sizeof(asn_DEF_TimestampIts_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_TimestampIts_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_TimestampIts_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + TimestampIts_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/TimestampIts.h b/vanetza/asn1/its1/TimestampIts.h similarity index 100% rename from vanetza/asn1/its/TimestampIts.h rename to vanetza/asn1/its1/TimestampIts.h diff --git a/vanetza/asn1/its1/Traces.c b/vanetza/asn1/its1/Traces.c new file mode 100644 index 000000000..4d74a5e7d --- /dev/null +++ b/vanetza/asn1/its1/Traces.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Traces.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_Traces_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..7)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Traces_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_Traces_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_PathHistory, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_Traces_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_Traces_specs_1 = { + sizeof(struct Traces), + offsetof(struct Traces, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_Traces = { + "Traces", + "Traces", + &asn_OP_SEQUENCE_OF, + asn_DEF_Traces_tags_1, + sizeof(asn_DEF_Traces_tags_1) + /sizeof(asn_DEF_Traces_tags_1[0]), /* 1 */ + asn_DEF_Traces_tags_1, /* Same as above */ + sizeof(asn_DEF_Traces_tags_1) + /sizeof(asn_DEF_Traces_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_Traces_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Traces_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_Traces_1, + 1, /* Single element */ + &asn_SPC_Traces_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/Traces.h b/vanetza/asn1/its1/Traces.h similarity index 100% rename from vanetza/asn1/its/Traces.h rename to vanetza/asn1/its1/Traces.h diff --git a/vanetza/asn1/its/TractorAxles.c b/vanetza/asn1/its1/TractorAxles.c similarity index 96% rename from vanetza/asn1/its/TractorAxles.c rename to vanetza/asn1/its1/TractorAxles.c index 7a53d0ec7..6954065cf 100644 --- a/vanetza/asn1/its/TractorAxles.c +++ b/vanetza/asn1/its1/TractorAxles.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_TractorAxles = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_TractorAxles_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ TractorAxles_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/TractorAxles.h b/vanetza/asn1/its1/TractorAxles.h similarity index 100% rename from vanetza/asn1/its/TractorAxles.h rename to vanetza/asn1/its1/TractorAxles.h diff --git a/vanetza/asn1/its/TractorCharacteristics.c b/vanetza/asn1/its1/TractorCharacteristics.c similarity index 90% rename from vanetza/asn1/its/TractorCharacteristics.c rename to vanetza/asn1/its1/TractorCharacteristics.c index 27bdda484..02c0c0723 100644 --- a/vanetza/asn1/its/TractorCharacteristics.c +++ b/vanetza/asn1/its1/TractorCharacteristics.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_TractorCharacteristics_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_TractorCharacteristics_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_TractorCharacteristics_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -95,6 +104,9 @@ asn_TYPE_descriptor_t asn_DEF_TractorCharacteristics = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_TractorCharacteristics_1, diff --git a/vanetza/asn1/its/TractorCharacteristics.h b/vanetza/asn1/its1/TractorCharacteristics.h similarity index 100% rename from vanetza/asn1/its/TractorCharacteristics.h rename to vanetza/asn1/its1/TractorCharacteristics.h diff --git a/vanetza/asn1/its1/TrafficConditionSubCauseCode.c b/vanetza/asn1/its1/TrafficConditionSubCauseCode.c new file mode 100644 index 000000000..8d101d30b --- /dev/null +++ b/vanetza/asn1/its1/TrafficConditionSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "TrafficConditionSubCauseCode.h" + +int +TrafficConditionSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_TrafficConditionSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_TrafficConditionSubCauseCode_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_TrafficConditionSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_TrafficConditionSubCauseCode = { + "TrafficConditionSubCauseCode", + "TrafficConditionSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_TrafficConditionSubCauseCode_tags_1, + sizeof(asn_DEF_TrafficConditionSubCauseCode_tags_1) + /sizeof(asn_DEF_TrafficConditionSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_TrafficConditionSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_TrafficConditionSubCauseCode_tags_1) + /sizeof(asn_DEF_TrafficConditionSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_TrafficConditionSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_TrafficConditionSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + TrafficConditionSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/TrafficConditionSubCauseCode.h b/vanetza/asn1/its1/TrafficConditionSubCauseCode.h similarity index 100% rename from vanetza/asn1/its/TrafficConditionSubCauseCode.h rename to vanetza/asn1/its1/TrafficConditionSubCauseCode.h diff --git a/vanetza/asn1/its1/TrafficRule.c b/vanetza/asn1/its1/TrafficRule.c new file mode 100644 index 000000000..00963387d --- /dev/null +++ b/vanetza/asn1/its1/TrafficRule.c @@ -0,0 +1,77 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "TrafficRule.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_TrafficRule_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_TrafficRule_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_TrafficRule_value2enum_1[] = { + { 0, 9, "noPassing" }, + { 1, 18, "noPassingForTrucks" }, + { 2, 11, "passToRight" }, + { 3, 10, "passToLeft" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_TrafficRule_enum2value_1[] = { + 0, /* noPassing(0) */ + 1, /* noPassingForTrucks(1) */ + 3, /* passToLeft(3) */ + 2 /* passToRight(2) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_TrafficRule_specs_1 = { + asn_MAP_TrafficRule_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_TrafficRule_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_TrafficRule_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_TrafficRule = { + "TrafficRule", + "TrafficRule", + &asn_OP_NativeEnumerated, + asn_DEF_TrafficRule_tags_1, + sizeof(asn_DEF_TrafficRule_tags_1) + /sizeof(asn_DEF_TrafficRule_tags_1[0]), /* 1 */ + asn_DEF_TrafficRule_tags_1, /* Same as above */ + sizeof(asn_DEF_TrafficRule_tags_1) + /sizeof(asn_DEF_TrafficRule_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_TrafficRule_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_TrafficRule_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_TrafficRule_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/TrafficRule.h b/vanetza/asn1/its1/TrafficRule.h similarity index 100% rename from vanetza/asn1/its/TrafficRule.h rename to vanetza/asn1/its1/TrafficRule.h diff --git a/vanetza/asn1/its/TrailerAxles.c b/vanetza/asn1/its1/TrailerAxles.c similarity index 96% rename from vanetza/asn1/its/TrailerAxles.c rename to vanetza/asn1/its1/TrailerAxles.c index b55ed17af..e415d6b1f 100644 --- a/vanetza/asn1/its/TrailerAxles.c +++ b/vanetza/asn1/its1/TrailerAxles.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_TrailerAxles = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_TrailerAxles_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ TrailerAxles_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/TrailerAxles.h b/vanetza/asn1/its1/TrailerAxles.h similarity index 100% rename from vanetza/asn1/its/TrailerAxles.h rename to vanetza/asn1/its1/TrailerAxles.h diff --git a/vanetza/asn1/its/TrailerCharacteristicsFixValuesList.c b/vanetza/asn1/its1/TrailerCharacteristicsFixValuesList.c similarity index 95% rename from vanetza/asn1/its/TrailerCharacteristicsFixValuesList.c rename to vanetza/asn1/its1/TrailerCharacteristicsFixValuesList.c index 2604c13fd..987ef34c0 100644 --- a/vanetza/asn1/its/TrailerCharacteristicsFixValuesList.c +++ b/vanetza/asn1/its1/TrailerCharacteristicsFixValuesList.c @@ -63,6 +63,9 @@ asn_TYPE_member_t asn_MBR_TrailerCharacteristicsFixValuesList_1[] = { #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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_VehicleCharacteristicsFixValues_constraint_1 }, 0, 0, /* No default value */ @@ -94,6 +97,9 @@ asn_TYPE_descriptor_t asn_DEF_TrailerCharacteristicsFixValuesList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_TrailerCharacteristicsFixValuesList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_TrailerCharacteristicsFixValuesList_1, diff --git a/vanetza/asn1/its/TrailerCharacteristicsFixValuesList.h b/vanetza/asn1/its1/TrailerCharacteristicsFixValuesList.h similarity index 100% rename from vanetza/asn1/its/TrailerCharacteristicsFixValuesList.h rename to vanetza/asn1/its1/TrailerCharacteristicsFixValuesList.h diff --git a/vanetza/asn1/its/TrailerCharacteristicsList.c b/vanetza/asn1/its1/TrailerCharacteristicsList.c similarity index 93% rename from vanetza/asn1/its/TrailerCharacteristicsList.c rename to vanetza/asn1/its1/TrailerCharacteristicsList.c index d3cf2dc08..ea818dbc7 100644 --- a/vanetza/asn1/its/TrailerCharacteristicsList.c +++ b/vanetza/asn1/its1/TrailerCharacteristicsList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_TrailerCharacteristicsList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_TrailerCharacteristicsList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_TrailerCharacteristicsList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_TrailerCharacteristicsList_1, diff --git a/vanetza/asn1/its/TrailerCharacteristicsList.h b/vanetza/asn1/its1/TrailerCharacteristicsList.h similarity index 100% rename from vanetza/asn1/its/TrailerCharacteristicsList.h rename to vanetza/asn1/its1/TrailerCharacteristicsList.h diff --git a/vanetza/asn1/its/TrailerCharacteristicsRangesList.c b/vanetza/asn1/its1/TrailerCharacteristicsRangesList.c similarity index 95% rename from vanetza/asn1/its/TrailerCharacteristicsRangesList.c rename to vanetza/asn1/its1/TrailerCharacteristicsRangesList.c index c0a52b183..c617e7c53 100644 --- a/vanetza/asn1/its/TrailerCharacteristicsRangesList.c +++ b/vanetza/asn1/its1/TrailerCharacteristicsRangesList.c @@ -63,6 +63,9 @@ asn_TYPE_member_t asn_MBR_TrailerCharacteristicsRangesList_1[] = { #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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_VehicleCharacteristicsRanges_constraint_1 }, 0, 0, /* No default value */ @@ -94,6 +97,9 @@ asn_TYPE_descriptor_t asn_DEF_TrailerCharacteristicsRangesList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_TrailerCharacteristicsRangesList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_TrailerCharacteristicsRangesList_1, diff --git a/vanetza/asn1/its/TrailerCharacteristicsRangesList.h b/vanetza/asn1/its1/TrailerCharacteristicsRangesList.h similarity index 100% rename from vanetza/asn1/its/TrailerCharacteristicsRangesList.h rename to vanetza/asn1/its1/TrailerCharacteristicsRangesList.h diff --git a/vanetza/asn1/its1/TrailerData.c b/vanetza/asn1/its1/TrailerData.c new file mode 100644 index 000000000..502f29792 --- /dev/null +++ b/vanetza/asn1/its1/TrailerData.c @@ -0,0 +1,179 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TR103562v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "TrailerData.h" + +asn_TYPE_member_t asn_MBR_TrailerData_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct TrailerData, refPointId), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RefPointId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "refPointId" + }, + { ATF_NOFLAGS, 0, offsetof(struct TrailerData, hitchPointOffset), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HitchPointOffset, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "hitchPointOffset" + }, + { ATF_NOFLAGS, 0, offsetof(struct TrailerData, frontOverhang), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_FrontOverhang, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "frontOverhang" + }, + { ATF_NOFLAGS, 0, offsetof(struct TrailerData, rearOverhang), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RearOverhang, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rearOverhang" + }, + { ATF_POINTER, 2, offsetof(struct TrailerData, trailerWidth), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VehicleWidth, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "trailerWidth" + }, + { ATF_POINTER, 1, offsetof(struct TrailerData, hitchAngle), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianAngle, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "hitchAngle" + }, +}; +static const int asn_MAP_TrailerData_oms_1[] = { 4, 5 }; +static const ber_tlv_tag_t asn_DEF_TrailerData_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_TrailerData_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refPointId */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* hitchPointOffset */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* frontOverhang */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* rearOverhang */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* trailerWidth */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* hitchAngle */ +}; +asn_SEQUENCE_specifics_t asn_SPC_TrailerData_specs_1 = { + sizeof(struct TrailerData), + offsetof(struct TrailerData, _asn_ctx), + asn_MAP_TrailerData_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_TrailerData_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_TrailerData = { + "TrailerData", + "TrailerData", + &asn_OP_SEQUENCE, + asn_DEF_TrailerData_tags_1, + sizeof(asn_DEF_TrailerData_tags_1) + /sizeof(asn_DEF_TrailerData_tags_1[0]), /* 1 */ + asn_DEF_TrailerData_tags_1, /* Same as above */ + sizeof(asn_DEF_TrailerData_tags_1) + /sizeof(asn_DEF_TrailerData_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_TrailerData_1, + 6, /* Elements count */ + &asn_SPC_TrailerData_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/TrailerData.h b/vanetza/asn1/its1/TrailerData.h similarity index 100% rename from vanetza/asn1/its/TrailerData.h rename to vanetza/asn1/its1/TrailerData.h diff --git a/vanetza/asn1/its/TrailerDataContainer.c b/vanetza/asn1/its1/TrailerDataContainer.c similarity index 93% rename from vanetza/asn1/its/TrailerDataContainer.c rename to vanetza/asn1/its1/TrailerDataContainer.c index af2b7b47a..f933ff5b0 100644 --- a/vanetza/asn1/its/TrailerDataContainer.c +++ b/vanetza/asn1/its1/TrailerDataContainer.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_TrailerDataContainer_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_TrailerDataContainer = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_TrailerDataContainer_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_TrailerDataContainer_1, diff --git a/vanetza/asn1/its/TrailerDataContainer.h b/vanetza/asn1/its1/TrailerDataContainer.h similarity index 100% rename from vanetza/asn1/its/TrailerDataContainer.h rename to vanetza/asn1/its1/TrailerDataContainer.h diff --git a/vanetza/asn1/its/TrailerDetails.c b/vanetza/asn1/its1/TrailerDetails.c similarity index 93% rename from vanetza/asn1/its/TrailerDetails.c rename to vanetza/asn1/its1/TrailerDetails.c index 88c1eb738..31eb4f2f0 100644 --- a/vanetza/asn1/its/TrailerDetails.c +++ b/vanetza/asn1/its1/TrailerDetails.c @@ -57,6 +57,9 @@ asn_TYPE_member_t asn_MBR_TrailerDetails_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_trailerType_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_trailerType_constraint_1 }, 0, 0, /* No default value */ @@ -74,6 +77,9 @@ asn_TYPE_member_t asn_MBR_TrailerDetails_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -112,6 +118,9 @@ asn_TYPE_descriptor_t asn_DEF_TrailerDetails = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_TrailerDetails_1, diff --git a/vanetza/asn1/its/TrailerDetails.h b/vanetza/asn1/its1/TrailerDetails.h similarity index 100% rename from vanetza/asn1/its/TrailerDetails.h rename to vanetza/asn1/its1/TrailerDetails.h diff --git a/vanetza/asn1/its/TrailerLicencePlateNumber.c b/vanetza/asn1/its1/TrailerLicencePlateNumber.c similarity index 93% rename from vanetza/asn1/its/TrailerLicencePlateNumber.c rename to vanetza/asn1/its1/TrailerLicencePlateNumber.c index 276818c4b..55d6d68b0 100644 --- a/vanetza/asn1/its/TrailerLicencePlateNumber.c +++ b/vanetza/asn1/its1/TrailerLicencePlateNumber.c @@ -31,6 +31,9 @@ asn_TYPE_descriptor_t asn_DEF_TrailerLicencePlateNumber = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_LPN_1, diff --git a/vanetza/asn1/its/TrailerLicencePlateNumber.h b/vanetza/asn1/its1/TrailerLicencePlateNumber.h similarity index 100% rename from vanetza/asn1/its/TrailerLicencePlateNumber.h rename to vanetza/asn1/its1/TrailerLicencePlateNumber.h diff --git a/vanetza/asn1/its/TrainCharacteristics.c b/vanetza/asn1/its1/TrainCharacteristics.c similarity index 93% rename from vanetza/asn1/its/TrainCharacteristics.c rename to vanetza/asn1/its1/TrainCharacteristics.c index 3984dc849..96e852417 100644 --- a/vanetza/asn1/its/TrainCharacteristics.c +++ b/vanetza/asn1/its1/TrainCharacteristics.c @@ -31,6 +31,9 @@ asn_TYPE_descriptor_t asn_DEF_TrainCharacteristics = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_TractorCharacteristics_1, diff --git a/vanetza/asn1/its/TrainCharacteristics.h b/vanetza/asn1/its1/TrainCharacteristics.h similarity index 100% rename from vanetza/asn1/its/TrainCharacteristics.h rename to vanetza/asn1/its1/TrainCharacteristics.h diff --git a/vanetza/asn1/its/TransitVehicleOccupancy.c b/vanetza/asn1/its1/TransitVehicleOccupancy.c similarity index 97% rename from vanetza/asn1/its/TransitVehicleOccupancy.c rename to vanetza/asn1/its1/TransitVehicleOccupancy.c index 91acf4977..f27cf5599 100644 --- a/vanetza/asn1/its/TransitVehicleOccupancy.c +++ b/vanetza/asn1/its1/TransitVehicleOccupancy.c @@ -72,6 +72,9 @@ asn_TYPE_descriptor_t asn_DEF_TransitVehicleOccupancy = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_TransitVehicleOccupancy_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/TransitVehicleOccupancy.h b/vanetza/asn1/its1/TransitVehicleOccupancy.h similarity index 100% rename from vanetza/asn1/its/TransitVehicleOccupancy.h rename to vanetza/asn1/its1/TransitVehicleOccupancy.h diff --git a/vanetza/asn1/its/TransitVehicleStatus.c b/vanetza/asn1/its1/TransitVehicleStatus.c similarity index 89% rename from vanetza/asn1/its/TransitVehicleStatus.c rename to vanetza/asn1/its1/TransitVehicleStatus.c index 4b8fc9412..72754d934 100644 --- a/vanetza/asn1/its/TransitVehicleStatus.c +++ b/vanetza/asn1/its1/TransitVehicleStatus.c @@ -54,6 +54,10 @@ asn_per_constraints_t asn_PER_type_TransitVehicleStatus_constr_1 CC_NOTUSED = { 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_TransitVehicleStatus_constr_1 CC_NOTUSED = { + 8}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_TransitVehicleStatus_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) }; @@ -74,6 +78,9 @@ asn_TYPE_descriptor_t asn_DEF_TransitVehicleStatus = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_TransitVehicleStatus_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_TransitVehicleStatus_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ TransitVehicleStatus_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/TransitVehicleStatus.h b/vanetza/asn1/its1/TransitVehicleStatus.h similarity index 100% rename from vanetza/asn1/its/TransitVehicleStatus.h rename to vanetza/asn1/its1/TransitVehicleStatus.h diff --git a/vanetza/asn1/its/TransmissionAndSpeed.c b/vanetza/asn1/its1/TransmissionAndSpeed.c similarity index 91% rename from vanetza/asn1/its/TransmissionAndSpeed.c rename to vanetza/asn1/its1/TransmissionAndSpeed.c index 7b48131bc..9fbd07f82 100644 --- a/vanetza/asn1/its/TransmissionAndSpeed.c +++ b/vanetza/asn1/its1/TransmissionAndSpeed.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_TransmissionAndSpeed_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_TransmissionAndSpeed_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_TransmissionAndSpeed = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_TransmissionAndSpeed_1, diff --git a/vanetza/asn1/its/TransmissionAndSpeed.h b/vanetza/asn1/its1/TransmissionAndSpeed.h similarity index 100% rename from vanetza/asn1/its/TransmissionAndSpeed.h rename to vanetza/asn1/its1/TransmissionAndSpeed.h diff --git a/vanetza/asn1/its1/TransmissionInterval.c b/vanetza/asn1/its1/TransmissionInterval.c new file mode 100644 index 000000000..cf114b43e --- /dev/null +++ b/vanetza/asn1/its1/TransmissionInterval.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "TransmissionInterval.h" + +int +TransmissionInterval_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 <= 10000L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_TransmissionInterval_constr_1 CC_NOTUSED = { + { 2, 1 } /* (1..10000) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_TransmissionInterval_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 1, 10000 } /* (1..10000) */, + { 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_TransmissionInterval_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_TransmissionInterval = { + "TransmissionInterval", + "TransmissionInterval", + &asn_OP_NativeInteger, + asn_DEF_TransmissionInterval_tags_1, + sizeof(asn_DEF_TransmissionInterval_tags_1) + /sizeof(asn_DEF_TransmissionInterval_tags_1[0]), /* 1 */ + asn_DEF_TransmissionInterval_tags_1, /* Same as above */ + sizeof(asn_DEF_TransmissionInterval_tags_1) + /sizeof(asn_DEF_TransmissionInterval_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_TransmissionInterval_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_TransmissionInterval_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + TransmissionInterval_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/TransmissionInterval.h b/vanetza/asn1/its1/TransmissionInterval.h similarity index 100% rename from vanetza/asn1/its/TransmissionInterval.h rename to vanetza/asn1/its1/TransmissionInterval.h diff --git a/vanetza/asn1/its/TransmissionState.c b/vanetza/asn1/its1/TransmissionState.c similarity index 96% rename from vanetza/asn1/its/TransmissionState.c rename to vanetza/asn1/its1/TransmissionState.c index 12ec60045..d7f40943b 100644 --- a/vanetza/asn1/its/TransmissionState.c +++ b/vanetza/asn1/its1/TransmissionState.c @@ -72,6 +72,9 @@ asn_TYPE_descriptor_t asn_DEF_TransmissionState = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_TransmissionState_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/TransmissionState.h b/vanetza/asn1/its1/TransmissionState.h similarity index 100% rename from vanetza/asn1/its/TransmissionState.h rename to vanetza/asn1/its1/TransmissionState.h diff --git a/vanetza/asn1/its/TreatmentType.c b/vanetza/asn1/its1/TreatmentType.c similarity index 96% rename from vanetza/asn1/its/TreatmentType.c rename to vanetza/asn1/its1/TreatmentType.c index 62161b184..f8f981c9a 100644 --- a/vanetza/asn1/its/TreatmentType.c +++ b/vanetza/asn1/its1/TreatmentType.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_TreatmentType = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_TreatmentType_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ TreatmentType_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/TreatmentType.h b/vanetza/asn1/its1/TreatmentType.h similarity index 100% rename from vanetza/asn1/its/TreatmentType.h rename to vanetza/asn1/its1/TreatmentType.h diff --git a/vanetza/asn1/its1/TurningRadius.c b/vanetza/asn1/its1/TurningRadius.c new file mode 100644 index 000000000..2822fa3ec --- /dev/null +++ b/vanetza/asn1/its1/TurningRadius.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "TurningRadius.h" + +int +TurningRadius_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 <= 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_TurningRadius_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_TurningRadius_constr_1 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) */ +static const ber_tlv_tag_t asn_DEF_TurningRadius_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_TurningRadius = { + "TurningRadius", + "TurningRadius", + &asn_OP_NativeInteger, + asn_DEF_TurningRadius_tags_1, + sizeof(asn_DEF_TurningRadius_tags_1) + /sizeof(asn_DEF_TurningRadius_tags_1[0]), /* 1 */ + asn_DEF_TurningRadius_tags_1, /* Same as above */ + sizeof(asn_DEF_TurningRadius_tags_1) + /sizeof(asn_DEF_TurningRadius_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_TurningRadius_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_TurningRadius_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + TurningRadius_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/TurningRadius.h b/vanetza/asn1/its1/TurningRadius.h similarity index 100% rename from vanetza/asn1/its/TurningRadius.h rename to vanetza/asn1/its1/TurningRadius.h diff --git a/vanetza/asn1/its/UnitType.c b/vanetza/asn1/its1/UnitType.c similarity index 96% rename from vanetza/asn1/its/UnitType.c rename to vanetza/asn1/its1/UnitType.c index ba46462c9..88ef94a5a 100644 --- a/vanetza/asn1/its/UnitType.c +++ b/vanetza/asn1/its1/UnitType.c @@ -60,6 +60,9 @@ asn_TYPE_descriptor_t asn_DEF_UnitType = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_UnitType_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/UnitType.h b/vanetza/asn1/its1/UnitType.h similarity index 100% rename from vanetza/asn1/its/UnitType.h rename to vanetza/asn1/its1/UnitType.h diff --git a/vanetza/asn1/its1/VDS.c b/vanetza/asn1/its1/VDS.c new file mode 100644 index 000000000..601e327e6 --- /dev/null +++ b/vanetza/asn1/its1/VDS.c @@ -0,0 +1,94 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VDS.h" + +static int check_permitted_alphabet_1(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; +} + +int +VDS_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; + 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) + && !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 IA5String, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_VDS_constr_1 CC_NOTUSED = { + { 0, 0 }, + 6 /* (SIZE(6..6)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_VDS_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_CONSTRAINED, 0, 0, 6, 6 } /* (SIZE(6..6)) */, + 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_VDS_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_VDS = { + "VDS", + "VDS", + &asn_OP_IA5String, + asn_DEF_VDS_tags_1, + sizeof(asn_DEF_VDS_tags_1) + /sizeof(asn_DEF_VDS_tags_1[0]), /* 1 */ + asn_DEF_VDS_tags_1, /* Same as above */ + sizeof(asn_DEF_VDS_tags_1) + /sizeof(asn_DEF_VDS_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_VDS_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_VDS_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + VDS_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/VDS.h b/vanetza/asn1/its1/VDS.h similarity index 100% rename from vanetza/asn1/its/VDS.h rename to vanetza/asn1/its1/VDS.h diff --git a/vanetza/asn1/its1/ValidityDuration.c b/vanetza/asn1/its1/ValidityDuration.c new file mode 100644 index 000000000..960c344ff --- /dev/null +++ b/vanetza/asn1/its1/ValidityDuration.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ValidityDuration.h" + +int +ValidityDuration_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 <= 86400L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_ValidityDuration_constr_1 CC_NOTUSED = { + { 4, 1 } /* (0..86400) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ValidityDuration_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 17, -1, 0, 86400 } /* (0..86400) */, + { 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_ValidityDuration_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_ValidityDuration = { + "ValidityDuration", + "ValidityDuration", + &asn_OP_NativeInteger, + asn_DEF_ValidityDuration_tags_1, + sizeof(asn_DEF_ValidityDuration_tags_1) + /sizeof(asn_DEF_ValidityDuration_tags_1[0]), /* 1 */ + asn_DEF_ValidityDuration_tags_1, /* Same as above */ + sizeof(asn_DEF_ValidityDuration_tags_1) + /sizeof(asn_DEF_ValidityDuration_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_ValidityDuration_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ValidityDuration_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + ValidityDuration_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/ValidityDuration.h b/vanetza/asn1/its1/ValidityDuration.h similarity index 100% rename from vanetza/asn1/its/ValidityDuration.h rename to vanetza/asn1/its1/ValidityDuration.h diff --git a/vanetza/asn1/its/ValidityOfContract.c b/vanetza/asn1/its1/ValidityOfContract.c similarity index 93% rename from vanetza/asn1/its/ValidityOfContract.c rename to vanetza/asn1/its1/ValidityOfContract.c index a9095beed..f28449c40 100644 --- a/vanetza/asn1/its/ValidityOfContract.c +++ b/vanetza/asn1/its1/ValidityOfContract.c @@ -58,6 +58,9 @@ static asn_TYPE_member_t asn_MBR_ValidityOfContract_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_issuerRestrictions_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_issuerRestrictions_constraint_1 }, 0, 0, /* No default value */ @@ -75,6 +78,9 @@ static asn_TYPE_member_t asn_MBR_ValidityOfContract_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -113,6 +119,9 @@ asn_TYPE_descriptor_t asn_DEF_ValidityOfContract = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_ValidityOfContract_1, diff --git a/vanetza/asn1/its/ValidityOfContract.h b/vanetza/asn1/its1/ValidityOfContract.h similarity index 100% rename from vanetza/asn1/its/ValidityOfContract.h rename to vanetza/asn1/its1/ValidityOfContract.h diff --git a/vanetza/asn1/its/ValidityPeriods.c b/vanetza/asn1/its1/ValidityPeriods.c similarity index 93% rename from vanetza/asn1/its/ValidityPeriods.c rename to vanetza/asn1/its1/ValidityPeriods.c index 142126ca9..1817eeb2f 100644 --- a/vanetza/asn1/its/ValidityPeriods.c +++ b/vanetza/asn1/its1/ValidityPeriods.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_ValidityPeriods_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_ValidityPeriods = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ValidityPeriods_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_ValidityPeriods_1, diff --git a/vanetza/asn1/its/ValidityPeriods.h b/vanetza/asn1/its1/ValidityPeriods.h similarity index 100% rename from vanetza/asn1/its/ValidityPeriods.h rename to vanetza/asn1/its1/ValidityPeriods.h diff --git a/vanetza/asn1/its1/VanetzaTest.c b/vanetza/asn1/its1/VanetzaTest.c new file mode 100644 index 000000000..4aa9b7be4 --- /dev/null +++ b/vanetza/asn1/its1/VanetzaTest.c @@ -0,0 +1,130 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Test-Descriptions" + * found in "test.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VanetzaTest.h" + +static int +memb_field_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 321L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_field_constr_2 CC_NOTUSED = { + { 2, 1 } /* (0..321) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_field_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 321 } /* (0..321) */, + { 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_VanetzaTest_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct VanetzaTest, field), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_field_constr_2, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_field_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_field_constraint_1 + }, + 0, 0, /* No default value */ + "field" + }, + { ATF_NOFLAGS, 0, offsetof(struct VanetzaTest, string), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NumericString, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "string" + }, +}; +static const ber_tlv_tag_t asn_DEF_VanetzaTest_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_VanetzaTest_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* field */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* string */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_VanetzaTest_specs_1 = { + sizeof(struct VanetzaTest), + offsetof(struct VanetzaTest, _asn_ctx), + asn_MAP_VanetzaTest_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_VanetzaTest = { + "VanetzaTest", + "VanetzaTest", + &asn_OP_SEQUENCE, + asn_DEF_VanetzaTest_tags_1, + sizeof(asn_DEF_VanetzaTest_tags_1) + /sizeof(asn_DEF_VanetzaTest_tags_1[0]), /* 1 */ + asn_DEF_VanetzaTest_tags_1, /* Same as above */ + sizeof(asn_DEF_VanetzaTest_tags_1) + /sizeof(asn_DEF_VanetzaTest_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_VanetzaTest_1, + 2, /* Elements count */ + &asn_SPC_VanetzaTest_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/VanetzaTest.h b/vanetza/asn1/its1/VanetzaTest.h similarity index 100% rename from vanetza/asn1/its/VanetzaTest.h rename to vanetza/asn1/its1/VanetzaTest.h diff --git a/vanetza/asn1/its1/VarLengthNumber.c b/vanetza/asn1/its1/VarLengthNumber.c new file mode 100644 index 000000000..e60f700bf --- /dev/null +++ b/vanetza/asn1/its1/VarLengthNumber.c @@ -0,0 +1,139 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CITSapplMgmtIDs" + * found in "build.asn1/iso/ISO17419.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VarLengthNumber.h" + +static int +memb_content_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_content_constr_2 CC_NOTUSED = { + { 1, 1 } /* (0..127) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_content_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_VarLengthNumber_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_VarLengthNumber_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_VarLengthNumber_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct VarLengthNumber, choice.content), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_content_constr_2, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_content_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_content_constraint_1 + }, + 0, 0, /* No default value */ + "content" + }, + { ATF_NOFLAGS, 0, offsetof(struct VarLengthNumber, choice.extension), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_Ext1, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "extension" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_VarLengthNumber_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* content */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* extension */ +}; +asn_CHOICE_specifics_t asn_SPC_VarLengthNumber_specs_1 = { + sizeof(struct VarLengthNumber), + offsetof(struct VarLengthNumber, _asn_ctx), + offsetof(struct VarLengthNumber, present), + sizeof(((struct VarLengthNumber *)0)->present), + asn_MAP_VarLengthNumber_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_VarLengthNumber = { + "VarLengthNumber", + "VarLengthNumber", + &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) + &asn_OER_type_VarLengthNumber_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_VarLengthNumber_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_VarLengthNumber_1, + 2, /* Elements count */ + &asn_SPC_VarLengthNumber_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/VarLengthNumber.h b/vanetza/asn1/its1/VarLengthNumber.h similarity index 100% rename from vanetza/asn1/its/VarLengthNumber.h rename to vanetza/asn1/its1/VarLengthNumber.h diff --git a/vanetza/asn1/its/VcClass.c b/vanetza/asn1/its1/VcClass.c similarity index 96% rename from vanetza/asn1/its/VcClass.c rename to vanetza/asn1/its1/VcClass.c index 50192d480..4738d2adb 100644 --- a/vanetza/asn1/its/VcClass.c +++ b/vanetza/asn1/its1/VcClass.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_VcClass = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_VcClass_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ VcClass_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/VcClass.h b/vanetza/asn1/its1/VcClass.h similarity index 100% rename from vanetza/asn1/its/VcClass.h rename to vanetza/asn1/its1/VcClass.h diff --git a/vanetza/asn1/its/VcCode.c b/vanetza/asn1/its1/VcCode.c similarity index 91% rename from vanetza/asn1/its/VcCode.c rename to vanetza/asn1/its1/VcCode.c index ab7902128..5bffb90f1 100644 --- a/vanetza/asn1/its/VcCode.c +++ b/vanetza/asn1/its1/VcCode.c @@ -94,6 +94,9 @@ asn_TYPE_member_t asn_MBR_VcCode_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -111,6 +114,9 @@ asn_TYPE_member_t asn_MBR_VcCode_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_roadSignCode_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_roadSignCode_constraint_1 }, 0, 0, /* No default value */ @@ -128,6 +134,9 @@ asn_TYPE_member_t asn_MBR_VcCode_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -145,6 +154,9 @@ asn_TYPE_member_t asn_MBR_VcCode_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -162,6 +174,9 @@ asn_TYPE_member_t asn_MBR_VcCode_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_value_constr_6, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_value_constraint_1 }, 0, 0, /* No default value */ @@ -179,6 +194,9 @@ asn_TYPE_member_t asn_MBR_VcCode_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -223,6 +241,9 @@ asn_TYPE_descriptor_t asn_DEF_VcCode = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_VcCode_1, diff --git a/vanetza/asn1/its/VcCode.h b/vanetza/asn1/its1/VcCode.h similarity index 100% rename from vanetza/asn1/its/VcCode.h rename to vanetza/asn1/its1/VcCode.h diff --git a/vanetza/asn1/its/VcOption.c b/vanetza/asn1/its1/VcOption.c similarity index 96% rename from vanetza/asn1/its/VcOption.c rename to vanetza/asn1/its1/VcOption.c index fc12ec30f..c4d54d0ef 100644 --- a/vanetza/asn1/its/VcOption.c +++ b/vanetza/asn1/its1/VcOption.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_VcOption = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_VcOption_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ VcOption_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/VcOption.h b/vanetza/asn1/its1/VcOption.h similarity index 100% rename from vanetza/asn1/its/VcOption.h rename to vanetza/asn1/its1/VcOption.h diff --git a/vanetza/asn1/its/VehicleAuthenticator.c b/vanetza/asn1/its1/VehicleAuthenticator.c similarity index 93% rename from vanetza/asn1/its/VehicleAuthenticator.c rename to vanetza/asn1/its1/VehicleAuthenticator.c index c225542bb..eac0fcb18 100644 --- a/vanetza/asn1/its/VehicleAuthenticator.c +++ b/vanetza/asn1/its1/VehicleAuthenticator.c @@ -31,6 +31,9 @@ asn_TYPE_descriptor_t asn_DEF_VehicleAuthenticator = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OCTET_STRING_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/VehicleAuthenticator.h b/vanetza/asn1/its1/VehicleAuthenticator.h similarity index 100% rename from vanetza/asn1/its/VehicleAuthenticator.h rename to vanetza/asn1/its1/VehicleAuthenticator.h diff --git a/vanetza/asn1/its/VehicleAxles.c b/vanetza/asn1/its1/VehicleAxles.c similarity index 91% rename from vanetza/asn1/its/VehicleAxles.c rename to vanetza/asn1/its1/VehicleAxles.c index 16058156b..ebb66b4a4 100644 --- a/vanetza/asn1/its/VehicleAxles.c +++ b/vanetza/asn1/its1/VehicleAxles.c @@ -66,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_tyreType_4 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_tyreType_constr_4, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ @@ -85,6 +88,9 @@ static asn_TYPE_member_t asn_MBR_numberOfAxles_9[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -102,6 +108,9 @@ static asn_TYPE_member_t asn_MBR_numberOfAxles_9[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -142,6 +151,9 @@ asn_TYPE_descriptor_t asn_DEF_numberOfAxles_9 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_numberOfAxles_9, @@ -162,6 +174,9 @@ static asn_TYPE_member_t asn_MBR_vehicleAxlesNumber_3[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -179,6 +194,9 @@ static asn_TYPE_member_t asn_MBR_vehicleAxlesNumber_3[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -219,6 +237,9 @@ asn_TYPE_descriptor_t asn_DEF_vehicleAxlesNumber_3 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_vehicleAxlesNumber_3, @@ -239,6 +260,9 @@ static asn_TYPE_member_t asn_MBR_VehicleAxles_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -256,6 +280,9 @@ static asn_TYPE_member_t asn_MBR_VehicleAxles_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -294,6 +321,9 @@ asn_TYPE_descriptor_t asn_DEF_VehicleAxles = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_VehicleAxles_1, diff --git a/vanetza/asn1/its/VehicleAxles.h b/vanetza/asn1/its1/VehicleAxles.h similarity index 100% rename from vanetza/asn1/its/VehicleAxles.h rename to vanetza/asn1/its1/VehicleAxles.h diff --git a/vanetza/asn1/its1/VehicleBreakdownSubCauseCode.c b/vanetza/asn1/its1/VehicleBreakdownSubCauseCode.c new file mode 100644 index 000000000..55a4ee744 --- /dev/null +++ b/vanetza/asn1/its1/VehicleBreakdownSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VehicleBreakdownSubCauseCode.h" + +int +VehicleBreakdownSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_VehicleBreakdownSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_VehicleBreakdownSubCauseCode_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_VehicleBreakdownSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_VehicleBreakdownSubCauseCode = { + "VehicleBreakdownSubCauseCode", + "VehicleBreakdownSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_VehicleBreakdownSubCauseCode_tags_1, + sizeof(asn_DEF_VehicleBreakdownSubCauseCode_tags_1) + /sizeof(asn_DEF_VehicleBreakdownSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_VehicleBreakdownSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_VehicleBreakdownSubCauseCode_tags_1) + /sizeof(asn_DEF_VehicleBreakdownSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_VehicleBreakdownSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_VehicleBreakdownSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + VehicleBreakdownSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/VehicleBreakdownSubCauseCode.h b/vanetza/asn1/its1/VehicleBreakdownSubCauseCode.h similarity index 100% rename from vanetza/asn1/its/VehicleBreakdownSubCauseCode.h rename to vanetza/asn1/its1/VehicleBreakdownSubCauseCode.h diff --git a/vanetza/asn1/its/VehicleCharacteristicsFixValues.c b/vanetza/asn1/its1/VehicleCharacteristicsFixValues.c similarity index 89% rename from vanetza/asn1/its/VehicleCharacteristicsFixValues.c rename to vanetza/asn1/its1/VehicleCharacteristicsFixValues.c index 842e050e9..1b3380248 100644 --- a/vanetza/asn1/its/VehicleCharacteristicsFixValues.c +++ b/vanetza/asn1/its1/VehicleCharacteristicsFixValues.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_VehicleCharacteristicsFixValues_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_VehicleCharacteristicsFixValues_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -66,6 +72,9 @@ asn_TYPE_member_t asn_MBR_VehicleCharacteristicsFixValues_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -83,6 +92,9 @@ asn_TYPE_member_t asn_MBR_VehicleCharacteristicsFixValues_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -100,6 +112,9 @@ asn_TYPE_member_t asn_MBR_VehicleCharacteristicsFixValues_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -117,6 +132,9 @@ asn_TYPE_member_t asn_MBR_VehicleCharacteristicsFixValues_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -134,6 +152,9 @@ asn_TYPE_member_t asn_MBR_VehicleCharacteristicsFixValues_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -174,6 +195,9 @@ asn_TYPE_descriptor_t asn_DEF_VehicleCharacteristicsFixValues = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_VehicleCharacteristicsFixValues_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_VehicleCharacteristicsFixValues_1, diff --git a/vanetza/asn1/its/VehicleCharacteristicsFixValues.h b/vanetza/asn1/its1/VehicleCharacteristicsFixValues.h similarity index 100% rename from vanetza/asn1/its/VehicleCharacteristicsFixValues.h rename to vanetza/asn1/its1/VehicleCharacteristicsFixValues.h diff --git a/vanetza/asn1/its/VehicleCharacteristicsFixValuesList.c b/vanetza/asn1/its1/VehicleCharacteristicsFixValuesList.c similarity index 94% rename from vanetza/asn1/its/VehicleCharacteristicsFixValuesList.c rename to vanetza/asn1/its1/VehicleCharacteristicsFixValuesList.c index 9424cb351..b10743f0d 100644 --- a/vanetza/asn1/its/VehicleCharacteristicsFixValuesList.c +++ b/vanetza/asn1/its1/VehicleCharacteristicsFixValuesList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_VehicleCharacteristicsFixValuesList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_VehicleCharacteristicsFixValuesList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_VehicleCharacteristicsFixValuesList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_VehicleCharacteristicsFixValuesList_1, diff --git a/vanetza/asn1/its/VehicleCharacteristicsFixValuesList.h b/vanetza/asn1/its1/VehicleCharacteristicsFixValuesList.h similarity index 100% rename from vanetza/asn1/its/VehicleCharacteristicsFixValuesList.h rename to vanetza/asn1/its1/VehicleCharacteristicsFixValuesList.h diff --git a/vanetza/asn1/its/VehicleCharacteristicsList.c b/vanetza/asn1/its1/VehicleCharacteristicsList.c similarity index 93% rename from vanetza/asn1/its/VehicleCharacteristicsList.c rename to vanetza/asn1/its1/VehicleCharacteristicsList.c index 6f6458b7a..2009eaf2c 100644 --- a/vanetza/asn1/its/VehicleCharacteristicsList.c +++ b/vanetza/asn1/its1/VehicleCharacteristicsList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_VehicleCharacteristicsList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_VehicleCharacteristicsList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_VehicleCharacteristicsList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_VehicleCharacteristicsList_1, diff --git a/vanetza/asn1/its/VehicleCharacteristicsList.h b/vanetza/asn1/its1/VehicleCharacteristicsList.h similarity index 100% rename from vanetza/asn1/its/VehicleCharacteristicsList.h rename to vanetza/asn1/its1/VehicleCharacteristicsList.h diff --git a/vanetza/asn1/its/VehicleCharacteristicsRanges.c b/vanetza/asn1/its1/VehicleCharacteristicsRanges.c similarity index 90% rename from vanetza/asn1/its/VehicleCharacteristicsRanges.c rename to vanetza/asn1/its1/VehicleCharacteristicsRanges.c index 380e70199..d17f3937c 100644 --- a/vanetza/asn1/its/VehicleCharacteristicsRanges.c +++ b/vanetza/asn1/its1/VehicleCharacteristicsRanges.c @@ -69,6 +69,9 @@ static asn_TYPE_member_t asn_MBR_limits_3[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_numberOfAxles_constr_4, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_numberOfAxles_constraint_3 }, 0, 0, /* No default value */ @@ -86,6 +89,9 @@ static asn_TYPE_member_t asn_MBR_limits_3[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -103,6 +109,9 @@ static asn_TYPE_member_t asn_MBR_limits_3[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -120,6 +129,9 @@ static asn_TYPE_member_t asn_MBR_limits_3[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -137,6 +149,9 @@ static asn_TYPE_member_t asn_MBR_limits_3[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -154,6 +169,9 @@ static asn_TYPE_member_t asn_MBR_limits_3[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -171,6 +189,9 @@ static asn_TYPE_member_t asn_MBR_limits_3[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -188,6 +209,9 @@ static asn_TYPE_member_t asn_MBR_limits_3[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -230,6 +254,9 @@ asn_TYPE_descriptor_t asn_DEF_limits_3 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_limits_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_limits_3, @@ -250,6 +277,9 @@ asn_TYPE_member_t asn_MBR_VehicleCharacteristicsRanges_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -267,6 +297,9 @@ asn_TYPE_member_t asn_MBR_VehicleCharacteristicsRanges_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -305,6 +338,9 @@ asn_TYPE_descriptor_t asn_DEF_VehicleCharacteristicsRanges = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_VehicleCharacteristicsRanges_1, diff --git a/vanetza/asn1/its/VehicleCharacteristicsRanges.h b/vanetza/asn1/its1/VehicleCharacteristicsRanges.h similarity index 100% rename from vanetza/asn1/its/VehicleCharacteristicsRanges.h rename to vanetza/asn1/its1/VehicleCharacteristicsRanges.h diff --git a/vanetza/asn1/its/VehicleCharacteristicsRangesList.c b/vanetza/asn1/its1/VehicleCharacteristicsRangesList.c similarity index 93% rename from vanetza/asn1/its/VehicleCharacteristicsRangesList.c rename to vanetza/asn1/its1/VehicleCharacteristicsRangesList.c index a6e952a3f..91bf4d9ac 100644 --- a/vanetza/asn1/its/VehicleCharacteristicsRangesList.c +++ b/vanetza/asn1/its1/VehicleCharacteristicsRangesList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_VehicleCharacteristicsRangesList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_VehicleCharacteristicsRangesList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_VehicleCharacteristicsRangesList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_VehicleCharacteristicsRangesList_1, diff --git a/vanetza/asn1/its/VehicleCharacteristicsRangesList.h b/vanetza/asn1/its1/VehicleCharacteristicsRangesList.h similarity index 100% rename from vanetza/asn1/its/VehicleCharacteristicsRangesList.h rename to vanetza/asn1/its1/VehicleCharacteristicsRangesList.h diff --git a/vanetza/asn1/its/VehicleClass.c b/vanetza/asn1/its1/VehicleClass.c similarity index 96% rename from vanetza/asn1/its/VehicleClass.c rename to vanetza/asn1/its1/VehicleClass.c index 4083e5d5e..45b5f2e72 100644 --- a/vanetza/asn1/its/VehicleClass.c +++ b/vanetza/asn1/its1/VehicleClass.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_VehicleClass = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_VehicleClass_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ VehicleClass_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/VehicleClass.h b/vanetza/asn1/its1/VehicleClass.h similarity index 100% rename from vanetza/asn1/its/VehicleClass.h rename to vanetza/asn1/its1/VehicleClass.h diff --git a/vanetza/asn1/its/VehicleCurrentMaxTrainWeight.c b/vanetza/asn1/its1/VehicleCurrentMaxTrainWeight.c similarity index 96% rename from vanetza/asn1/its/VehicleCurrentMaxTrainWeight.c rename to vanetza/asn1/its1/VehicleCurrentMaxTrainWeight.c index 76bfc56d3..e664fdd4d 100644 --- a/vanetza/asn1/its/VehicleCurrentMaxTrainWeight.c +++ b/vanetza/asn1/its1/VehicleCurrentMaxTrainWeight.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_VehicleCurrentMaxTrainWeight = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_VehicleCurrentMaxTrainWeight_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ VehicleCurrentMaxTrainWeight_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/VehicleCurrentMaxTrainWeight.h b/vanetza/asn1/its1/VehicleCurrentMaxTrainWeight.h similarity index 100% rename from vanetza/asn1/its/VehicleCurrentMaxTrainWeight.h rename to vanetza/asn1/its1/VehicleCurrentMaxTrainWeight.h diff --git a/vanetza/asn1/its/VehicleDimensions.c b/vanetza/asn1/its1/VehicleDimensions.c similarity index 90% rename from vanetza/asn1/its/VehicleDimensions.c rename to vanetza/asn1/its1/VehicleDimensions.c index e5cd73e73..cd7a0c316 100644 --- a/vanetza/asn1/its/VehicleDimensions.c +++ b/vanetza/asn1/its1/VehicleDimensions.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_VehicleDimensions_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_VehicleDimensions_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_VehicleDimensions_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -93,6 +102,9 @@ asn_TYPE_descriptor_t asn_DEF_VehicleDimensions = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_VehicleDimensions_1, diff --git a/vanetza/asn1/its/VehicleDimensions.h b/vanetza/asn1/its1/VehicleDimensions.h similarity index 100% rename from vanetza/asn1/its/VehicleDimensions.h rename to vanetza/asn1/its1/VehicleDimensions.h diff --git a/vanetza/asn1/its1/VehicleHeight.c b/vanetza/asn1/its1/VehicleHeight.c new file mode 100644 index 000000000..9bee22d39 --- /dev/null +++ b/vanetza/asn1/its1/VehicleHeight.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "DSRC" + * found in "build.asn1/iso/ISO19091.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VehicleHeight.h" + +int +VehicleHeight_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_VehicleHeight_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..127) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_VehicleHeight_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_VehicleHeight_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_VehicleHeight = { + "VehicleHeight", + "VehicleHeight", + &asn_OP_NativeInteger, + asn_DEF_VehicleHeight_tags_1, + sizeof(asn_DEF_VehicleHeight_tags_1) + /sizeof(asn_DEF_VehicleHeight_tags_1[0]), /* 1 */ + asn_DEF_VehicleHeight_tags_1, /* Same as above */ + sizeof(asn_DEF_VehicleHeight_tags_1) + /sizeof(asn_DEF_VehicleHeight_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_VehicleHeight_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_VehicleHeight_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + VehicleHeight_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/VehicleHeight.h b/vanetza/asn1/its1/VehicleHeight.h similarity index 100% rename from vanetza/asn1/its/VehicleHeight.h rename to vanetza/asn1/its1/VehicleHeight.h diff --git a/vanetza/asn1/its/VehicleID.c b/vanetza/asn1/its1/VehicleID.c similarity index 91% rename from vanetza/asn1/its/VehicleID.c rename to vanetza/asn1/its1/VehicleID.c index cb3a04c39..3f668b0b0 100644 --- a/vanetza/asn1/its/VehicleID.c +++ b/vanetza/asn1/its1/VehicleID.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_VehicleID_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_VehicleID_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -84,6 +90,9 @@ asn_TYPE_descriptor_t asn_DEF_VehicleID = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_VehicleID_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_VehicleID_1, diff --git a/vanetza/asn1/its/VehicleID.h b/vanetza/asn1/its1/VehicleID.h similarity index 100% rename from vanetza/asn1/its/VehicleID.h rename to vanetza/asn1/its1/VehicleID.h diff --git a/vanetza/asn1/its1/VehicleIdentification.c b/vanetza/asn1/its1/VehicleIdentification.c new file mode 100644 index 000000000..2d10bdc2c --- /dev/null +++ b/vanetza/asn1/its1/VehicleIdentification.c @@ -0,0 +1,95 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VehicleIdentification.h" + +asn_TYPE_member_t asn_MBR_VehicleIdentification_1[] = { + { ATF_POINTER, 2, offsetof(struct VehicleIdentification, wMInumber), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_WMInumber, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wMInumber" + }, + { ATF_POINTER, 1, offsetof(struct VehicleIdentification, vDS), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VDS, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vDS" + }, +}; +static const int asn_MAP_VehicleIdentification_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_VehicleIdentification_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_VehicleIdentification_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* wMInumber */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* vDS */ +}; +asn_SEQUENCE_specifics_t asn_SPC_VehicleIdentification_specs_1 = { + sizeof(struct VehicleIdentification), + offsetof(struct VehicleIdentification, _asn_ctx), + asn_MAP_VehicleIdentification_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_VehicleIdentification_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_VehicleIdentification = { + "VehicleIdentification", + "VehicleIdentification", + &asn_OP_SEQUENCE, + asn_DEF_VehicleIdentification_tags_1, + sizeof(asn_DEF_VehicleIdentification_tags_1) + /sizeof(asn_DEF_VehicleIdentification_tags_1[0]), /* 1 */ + asn_DEF_VehicleIdentification_tags_1, /* Same as above */ + sizeof(asn_DEF_VehicleIdentification_tags_1) + /sizeof(asn_DEF_VehicleIdentification_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_VehicleIdentification_1, + 2, /* Elements count */ + &asn_SPC_VehicleIdentification_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/VehicleIdentification.h b/vanetza/asn1/its1/VehicleIdentification.h similarity index 100% rename from vanetza/asn1/its/VehicleIdentification.h rename to vanetza/asn1/its1/VehicleIdentification.h diff --git a/vanetza/asn1/its/VehicleIdentificationNumber.c b/vanetza/asn1/its1/VehicleIdentificationNumber.c similarity index 93% rename from vanetza/asn1/its/VehicleIdentificationNumber.c rename to vanetza/asn1/its1/VehicleIdentificationNumber.c index 50e9c98de..71c33e589 100644 --- a/vanetza/asn1/its/VehicleIdentificationNumber.c +++ b/vanetza/asn1/its1/VehicleIdentificationNumber.c @@ -31,6 +31,9 @@ asn_TYPE_descriptor_t asn_DEF_VehicleIdentificationNumber = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_CS5_1, diff --git a/vanetza/asn1/its/VehicleIdentificationNumber.h b/vanetza/asn1/its1/VehicleIdentificationNumber.h similarity index 100% rename from vanetza/asn1/its/VehicleIdentificationNumber.h rename to vanetza/asn1/its1/VehicleIdentificationNumber.h diff --git a/vanetza/asn1/its1/VehicleLength.c b/vanetza/asn1/its1/VehicleLength.c new file mode 100644 index 000000000..4c180c2fe --- /dev/null +++ b/vanetza/asn1/its1/VehicleLength.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VehicleLength.h" + +asn_TYPE_member_t asn_MBR_VehicleLength_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct VehicleLength, vehicleLengthValue), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VehicleLengthValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vehicleLengthValue" + }, + { ATF_NOFLAGS, 0, offsetof(struct VehicleLength, vehicleLengthConfidenceIndication), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VehicleLengthConfidenceIndication, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vehicleLengthConfidenceIndication" + }, +}; +static const ber_tlv_tag_t asn_DEF_VehicleLength_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_VehicleLength_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* vehicleLengthValue */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* vehicleLengthConfidenceIndication */ +}; +asn_SEQUENCE_specifics_t asn_SPC_VehicleLength_specs_1 = { + sizeof(struct VehicleLength), + offsetof(struct VehicleLength, _asn_ctx), + asn_MAP_VehicleLength_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_VehicleLength = { + "VehicleLength", + "VehicleLength", + &asn_OP_SEQUENCE, + asn_DEF_VehicleLength_tags_1, + sizeof(asn_DEF_VehicleLength_tags_1) + /sizeof(asn_DEF_VehicleLength_tags_1[0]), /* 1 */ + asn_DEF_VehicleLength_tags_1, /* Same as above */ + sizeof(asn_DEF_VehicleLength_tags_1) + /sizeof(asn_DEF_VehicleLength_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_VehicleLength_1, + 2, /* Elements count */ + &asn_SPC_VehicleLength_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/VehicleLength.h b/vanetza/asn1/its1/VehicleLength.h similarity index 100% rename from vanetza/asn1/its/VehicleLength.h rename to vanetza/asn1/its1/VehicleLength.h diff --git a/vanetza/asn1/its1/VehicleLengthConfidenceIndication.c b/vanetza/asn1/its1/VehicleLengthConfidenceIndication.c new file mode 100644 index 000000000..5575cb555 --- /dev/null +++ b/vanetza/asn1/its1/VehicleLengthConfidenceIndication.c @@ -0,0 +1,77 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VehicleLengthConfidenceIndication.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_VehicleLengthConfidenceIndication_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_VehicleLengthConfidenceIndication_constr_1 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_VehicleLengthConfidenceIndication_value2enum_1[] = { + { 0, 16, "noTrailerPresent" }, + { 1, 29, "trailerPresentWithKnownLength" }, + { 2, 31, "trailerPresentWithUnknownLength" }, + { 3, 24, "trailerPresenceIsUnknown" }, + { 4, 11, "unavailable" } +}; +static const unsigned int asn_MAP_VehicleLengthConfidenceIndication_enum2value_1[] = { + 0, /* noTrailerPresent(0) */ + 3, /* trailerPresenceIsUnknown(3) */ + 1, /* trailerPresentWithKnownLength(1) */ + 2, /* trailerPresentWithUnknownLength(2) */ + 4 /* unavailable(4) */ +}; +const asn_INTEGER_specifics_t asn_SPC_VehicleLengthConfidenceIndication_specs_1 = { + asn_MAP_VehicleLengthConfidenceIndication_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_VehicleLengthConfidenceIndication_enum2value_1, /* 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_VehicleLengthConfidenceIndication_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_VehicleLengthConfidenceIndication = { + "VehicleLengthConfidenceIndication", + "VehicleLengthConfidenceIndication", + &asn_OP_NativeEnumerated, + asn_DEF_VehicleLengthConfidenceIndication_tags_1, + sizeof(asn_DEF_VehicleLengthConfidenceIndication_tags_1) + /sizeof(asn_DEF_VehicleLengthConfidenceIndication_tags_1[0]), /* 1 */ + asn_DEF_VehicleLengthConfidenceIndication_tags_1, /* Same as above */ + sizeof(asn_DEF_VehicleLengthConfidenceIndication_tags_1) + /sizeof(asn_DEF_VehicleLengthConfidenceIndication_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_VehicleLengthConfidenceIndication_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_VehicleLengthConfidenceIndication_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_VehicleLengthConfidenceIndication_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/VehicleLengthConfidenceIndication.h b/vanetza/asn1/its1/VehicleLengthConfidenceIndication.h similarity index 100% rename from vanetza/asn1/its/VehicleLengthConfidenceIndication.h rename to vanetza/asn1/its1/VehicleLengthConfidenceIndication.h diff --git a/vanetza/asn1/its1/VehicleLengthValue.c b/vanetza/asn1/its1/VehicleLengthValue.c new file mode 100644 index 000000000..6b7fdf1a6 --- /dev/null +++ b/vanetza/asn1/its1/VehicleLengthValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VehicleLengthValue.h" + +int +VehicleLengthValue_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 <= 1023L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_VehicleLengthValue_constr_1 CC_NOTUSED = { + { 2, 1 } /* (1..1023) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_VehicleLengthValue_constr_1 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) */ +static const ber_tlv_tag_t asn_DEF_VehicleLengthValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_VehicleLengthValue = { + "VehicleLengthValue", + "VehicleLengthValue", + &asn_OP_NativeInteger, + asn_DEF_VehicleLengthValue_tags_1, + sizeof(asn_DEF_VehicleLengthValue_tags_1) + /sizeof(asn_DEF_VehicleLengthValue_tags_1[0]), /* 1 */ + asn_DEF_VehicleLengthValue_tags_1, /* Same as above */ + sizeof(asn_DEF_VehicleLengthValue_tags_1) + /sizeof(asn_DEF_VehicleLengthValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_VehicleLengthValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_VehicleLengthValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + VehicleLengthValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/VehicleLengthValue.h b/vanetza/asn1/its1/VehicleLengthValue.h similarity index 100% rename from vanetza/asn1/its/VehicleLengthValue.h rename to vanetza/asn1/its1/VehicleLengthValue.h diff --git a/vanetza/asn1/its/VehicleLicencePlateNumber.c b/vanetza/asn1/its1/VehicleLicencePlateNumber.c similarity index 93% rename from vanetza/asn1/its/VehicleLicencePlateNumber.c rename to vanetza/asn1/its1/VehicleLicencePlateNumber.c index 639939d42..7299a5cc8 100644 --- a/vanetza/asn1/its/VehicleLicencePlateNumber.c +++ b/vanetza/asn1/its1/VehicleLicencePlateNumber.c @@ -31,6 +31,9 @@ asn_TYPE_descriptor_t asn_DEF_VehicleLicencePlateNumber = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_LPN_1, diff --git a/vanetza/asn1/its/VehicleLicencePlateNumber.h b/vanetza/asn1/its1/VehicleLicencePlateNumber.h similarity index 100% rename from vanetza/asn1/its/VehicleLicencePlateNumber.h rename to vanetza/asn1/its1/VehicleLicencePlateNumber.h diff --git a/vanetza/asn1/its1/VehicleMass.c b/vanetza/asn1/its1/VehicleMass.c new file mode 100644 index 000000000..a2e6c33ca --- /dev/null +++ b/vanetza/asn1/its1/VehicleMass.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VehicleMass.h" + +int +VehicleMass_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_VehicleMass_constr_1 CC_NOTUSED = { + { 2, 1 } /* (1..1024) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_VehicleMass_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_VehicleMass_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_VehicleMass = { + "VehicleMass", + "VehicleMass", + &asn_OP_NativeInteger, + asn_DEF_VehicleMass_tags_1, + sizeof(asn_DEF_VehicleMass_tags_1) + /sizeof(asn_DEF_VehicleMass_tags_1[0]), /* 1 */ + asn_DEF_VehicleMass_tags_1, /* Same as above */ + sizeof(asn_DEF_VehicleMass_tags_1) + /sizeof(asn_DEF_VehicleMass_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_VehicleMass_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_VehicleMass_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + VehicleMass_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/VehicleMass.h b/vanetza/asn1/its1/VehicleMass.h similarity index 100% rename from vanetza/asn1/its/VehicleMass.h rename to vanetza/asn1/its1/VehicleMass.h diff --git a/vanetza/asn1/its1/VehicleRole.c b/vanetza/asn1/its1/VehicleRole.c new file mode 100644 index 000000000..0ce12f3a8 --- /dev/null +++ b/vanetza/asn1/its1/VehicleRole.c @@ -0,0 +1,99 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VehicleRole.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_VehicleRole_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_VehicleRole_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_VehicleRole_value2enum_1[] = { + { 0, 7, "default" }, + { 1, 15, "publicTransport" }, + { 2, 16, "specialTransport" }, + { 3, 14, "dangerousGoods" }, + { 4, 8, "roadWork" }, + { 5, 6, "rescue" }, + { 6, 9, "emergency" }, + { 7, 9, "safetyCar" }, + { 8, 11, "agriculture" }, + { 9, 10, "commercial" }, + { 10, 8, "military" }, + { 11, 12, "roadOperator" }, + { 12, 4, "taxi" }, + { 13, 9, "reserved1" }, + { 14, 9, "reserved2" }, + { 15, 9, "reserved3" } +}; +static const unsigned int asn_MAP_VehicleRole_enum2value_1[] = { + 8, /* agriculture(8) */ + 9, /* commercial(9) */ + 3, /* dangerousGoods(3) */ + 0, /* default(0) */ + 6, /* emergency(6) */ + 10, /* military(10) */ + 1, /* publicTransport(1) */ + 5, /* rescue(5) */ + 13, /* reserved1(13) */ + 14, /* reserved2(14) */ + 15, /* reserved3(15) */ + 11, /* roadOperator(11) */ + 4, /* roadWork(4) */ + 7, /* safetyCar(7) */ + 2, /* specialTransport(2) */ + 12 /* taxi(12) */ +}; +const asn_INTEGER_specifics_t asn_SPC_VehicleRole_specs_1 = { + asn_MAP_VehicleRole_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_VehicleRole_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_VehicleRole_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_VehicleRole = { + "VehicleRole", + "VehicleRole", + &asn_OP_NativeEnumerated, + asn_DEF_VehicleRole_tags_1, + sizeof(asn_DEF_VehicleRole_tags_1) + /sizeof(asn_DEF_VehicleRole_tags_1[0]), /* 1 */ + asn_DEF_VehicleRole_tags_1, /* Same as above */ + sizeof(asn_DEF_VehicleRole_tags_1) + /sizeof(asn_DEF_VehicleRole_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_VehicleRole_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_VehicleRole_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_VehicleRole_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/VehicleRole.h b/vanetza/asn1/its1/VehicleRole.h similarity index 100% rename from vanetza/asn1/its/VehicleRole.h rename to vanetza/asn1/its1/VehicleRole.h diff --git a/vanetza/asn1/its/VehicleSensor.c b/vanetza/asn1/its1/VehicleSensor.c similarity index 90% rename from vanetza/asn1/its/VehicleSensor.c rename to vanetza/asn1/its1/VehicleSensor.c index b1fe5d0ca..ce9991544 100644 --- a/vanetza/asn1/its/VehicleSensor.c +++ b/vanetza/asn1/its1/VehicleSensor.c @@ -42,6 +42,9 @@ asn_TYPE_member_t asn_MBR_VehicleSensor_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, &asn_DFL_2_cmp_0, /* Compare DEFAULT 0 */ @@ -60,6 +63,9 @@ asn_TYPE_member_t asn_MBR_VehicleSensor_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -77,6 +83,9 @@ asn_TYPE_member_t asn_MBR_VehicleSensor_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -94,6 +103,9 @@ asn_TYPE_member_t asn_MBR_VehicleSensor_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -111,6 +123,9 @@ asn_TYPE_member_t asn_MBR_VehicleSensor_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -154,6 +169,9 @@ asn_TYPE_descriptor_t asn_DEF_VehicleSensor = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_VehicleSensor_1, diff --git a/vanetza/asn1/its/VehicleSensor.h b/vanetza/asn1/its1/VehicleSensor.h similarity index 100% rename from vanetza/asn1/its/VehicleSensor.h rename to vanetza/asn1/its1/VehicleSensor.h diff --git a/vanetza/asn1/its/VehicleSensorProperties.c b/vanetza/asn1/its1/VehicleSensorProperties.c similarity index 89% rename from vanetza/asn1/its/VehicleSensorProperties.c rename to vanetza/asn1/its1/VehicleSensorProperties.c index 088344208..fc0d0b35b 100644 --- a/vanetza/asn1/its/VehicleSensorProperties.c +++ b/vanetza/asn1/its1/VehicleSensorProperties.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_VehicleSensorProperties_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_VehicleSensorProperties_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_VehicleSensorProperties_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -71,6 +80,9 @@ asn_TYPE_member_t asn_MBR_VehicleSensorProperties_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -88,6 +100,9 @@ asn_TYPE_member_t asn_MBR_VehicleSensorProperties_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -131,6 +146,9 @@ asn_TYPE_descriptor_t asn_DEF_VehicleSensorProperties = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_VehicleSensorProperties_1, diff --git a/vanetza/asn1/its/VehicleSensorProperties.h b/vanetza/asn1/its1/VehicleSensorProperties.h similarity index 100% rename from vanetza/asn1/its/VehicleSensorProperties.h rename to vanetza/asn1/its1/VehicleSensorProperties.h diff --git a/vanetza/asn1/its/VehicleSensorPropertyList.c b/vanetza/asn1/its1/VehicleSensorPropertyList.c similarity index 93% rename from vanetza/asn1/its/VehicleSensorPropertyList.c rename to vanetza/asn1/its1/VehicleSensorPropertyList.c index 77f9d74ec..4de60d49e 100644 --- a/vanetza/asn1/its/VehicleSensorPropertyList.c +++ b/vanetza/asn1/its1/VehicleSensorPropertyList.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_VehicleSensorPropertyList_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_VehicleSensorPropertyList = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_VehicleSensorPropertyList_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_VehicleSensorPropertyList_1, diff --git a/vanetza/asn1/its/VehicleSensorPropertyList.h b/vanetza/asn1/its1/VehicleSensorPropertyList.h similarity index 100% rename from vanetza/asn1/its/VehicleSensorPropertyList.h rename to vanetza/asn1/its1/VehicleSensorPropertyList.h diff --git a/vanetza/asn1/its/VehicleSpecificCharacteristics.c b/vanetza/asn1/its1/VehicleSpecificCharacteristics.c similarity index 90% rename from vanetza/asn1/its/VehicleSpecificCharacteristics.c rename to vanetza/asn1/its1/VehicleSpecificCharacteristics.c index 3f47e8a77..aec47307d 100644 --- a/vanetza/asn1/its/VehicleSpecificCharacteristics.c +++ b/vanetza/asn1/its1/VehicleSpecificCharacteristics.c @@ -20,6 +20,9 @@ static asn_TYPE_member_t asn_MBR_VehicleSpecificCharacteristics_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ static asn_TYPE_member_t asn_MBR_VehicleSpecificCharacteristics_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ static asn_TYPE_member_t asn_MBR_VehicleSpecificCharacteristics_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -71,6 +80,9 @@ static asn_TYPE_member_t asn_MBR_VehicleSpecificCharacteristics_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -111,6 +123,9 @@ asn_TYPE_descriptor_t asn_DEF_VehicleSpecificCharacteristics = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_VehicleSpecificCharacteristics_1, diff --git a/vanetza/asn1/its/VehicleSpecificCharacteristics.h b/vanetza/asn1/its1/VehicleSpecificCharacteristics.h similarity index 100% rename from vanetza/asn1/its/VehicleSpecificCharacteristics.h rename to vanetza/asn1/its1/VehicleSpecificCharacteristics.h diff --git a/vanetza/asn1/its/VehicleSubclass.c b/vanetza/asn1/its1/VehicleSubclass.c similarity index 93% rename from vanetza/asn1/its/VehicleSubclass.c rename to vanetza/asn1/its1/VehicleSubclass.c index 4a5127bae..c6351fecf 100644 --- a/vanetza/asn1/its/VehicleSubclass.c +++ b/vanetza/asn1/its1/VehicleSubclass.c @@ -64,6 +64,9 @@ asn_TYPE_member_t asn_MBR_VehicleSubclass_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, &asn_DFL_2_cmp_0, /* Compare DEFAULT 0 */ @@ -82,6 +85,9 @@ asn_TYPE_member_t asn_MBR_VehicleSubclass_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, &asn_DFL_3_cmp_0, /* Compare DEFAULT 0 */ @@ -123,6 +129,9 @@ asn_TYPE_descriptor_t asn_DEF_VehicleSubclass = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_VehicleSubclass_1, diff --git a/vanetza/asn1/its/VehicleSubclass.h b/vanetza/asn1/its1/VehicleSubclass.h similarity index 100% rename from vanetza/asn1/its/VehicleSubclass.h rename to vanetza/asn1/its1/VehicleSubclass.h diff --git a/vanetza/asn1/its/VehicleSubclassType.c b/vanetza/asn1/its1/VehicleSubclassType.c similarity index 96% rename from vanetza/asn1/its/VehicleSubclassType.c rename to vanetza/asn1/its1/VehicleSubclassType.c index 249773c0b..78530c920 100644 --- a/vanetza/asn1/its/VehicleSubclassType.c +++ b/vanetza/asn1/its1/VehicleSubclassType.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_VehicleSubclassType = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_VehicleSubclassType_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ VehicleSubclassType_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/VehicleSubclassType.h b/vanetza/asn1/its1/VehicleSubclassType.h similarity index 100% rename from vanetza/asn1/its/VehicleSubclassType.h rename to vanetza/asn1/its1/VehicleSubclassType.h diff --git a/vanetza/asn1/its/VehicleTotalDistance.c b/vanetza/asn1/its1/VehicleTotalDistance.c similarity index 96% rename from vanetza/asn1/its/VehicleTotalDistance.c rename to vanetza/asn1/its1/VehicleTotalDistance.c index a3ec9d4f4..088f48356 100644 --- a/vanetza/asn1/its/VehicleTotalDistance.c +++ b/vanetza/asn1/its1/VehicleTotalDistance.c @@ -59,6 +59,9 @@ asn_TYPE_descriptor_t asn_DEF_VehicleTotalDistance = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_VehicleTotalDistance_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ VehicleTotalDistance_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/VehicleTotalDistance.h b/vanetza/asn1/its1/VehicleTotalDistance.h similarity index 100% rename from vanetza/asn1/its/VehicleTotalDistance.h rename to vanetza/asn1/its1/VehicleTotalDistance.h diff --git a/vanetza/asn1/its/VehicleType.c b/vanetza/asn1/its1/VehicleType.c similarity index 97% rename from vanetza/asn1/its/VehicleType.c rename to vanetza/asn1/its1/VehicleType.c index b44494e3f..3b21cfb2b 100644 --- a/vanetza/asn1/its/VehicleType.c +++ b/vanetza/asn1/its1/VehicleType.c @@ -90,6 +90,9 @@ asn_TYPE_descriptor_t asn_DEF_VehicleType = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_VehicleType_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/VehicleType.h b/vanetza/asn1/its1/VehicleType.h similarity index 100% rename from vanetza/asn1/its/VehicleType.h rename to vanetza/asn1/its1/VehicleType.h diff --git a/vanetza/asn1/its/VehicleWeightLaden.c b/vanetza/asn1/its1/VehicleWeightLaden.c similarity index 96% rename from vanetza/asn1/its/VehicleWeightLaden.c rename to vanetza/asn1/its1/VehicleWeightLaden.c index 574f1dafe..0a04d507d 100644 --- a/vanetza/asn1/its/VehicleWeightLaden.c +++ b/vanetza/asn1/its1/VehicleWeightLaden.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_VehicleWeightLaden = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_VehicleWeightLaden_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ VehicleWeightLaden_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/VehicleWeightLaden.h b/vanetza/asn1/its1/VehicleWeightLaden.h similarity index 100% rename from vanetza/asn1/its/VehicleWeightLaden.h rename to vanetza/asn1/its1/VehicleWeightLaden.h diff --git a/vanetza/asn1/its/VehicleWeightLimits.c b/vanetza/asn1/its1/VehicleWeightLimits.c similarity index 90% rename from vanetza/asn1/its/VehicleWeightLimits.c rename to vanetza/asn1/its1/VehicleWeightLimits.c index 36efda3d7..a2ecce6b3 100644 --- a/vanetza/asn1/its/VehicleWeightLimits.c +++ b/vanetza/asn1/its1/VehicleWeightLimits.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_VehicleWeightLimits_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_VehicleWeightLimits_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_VehicleWeightLimits_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -93,6 +102,9 @@ asn_TYPE_descriptor_t asn_DEF_VehicleWeightLimits = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_VehicleWeightLimits_1, diff --git a/vanetza/asn1/its/VehicleWeightLimits.h b/vanetza/asn1/its1/VehicleWeightLimits.h similarity index 100% rename from vanetza/asn1/its/VehicleWeightLimits.h rename to vanetza/asn1/its1/VehicleWeightLimits.h diff --git a/vanetza/asn1/its1/VehicleWidth.c b/vanetza/asn1/its1/VehicleWidth.c new file mode 100644 index 000000000..b15f26334 --- /dev/null +++ b/vanetza/asn1/its1/VehicleWidth.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VehicleWidth.h" + +int +VehicleWidth_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 <= 62L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_VehicleWidth_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..62) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_VehicleWidth_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 1, 62 } /* (1..62) */, + { 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_VehicleWidth_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_VehicleWidth = { + "VehicleWidth", + "VehicleWidth", + &asn_OP_NativeInteger, + asn_DEF_VehicleWidth_tags_1, + sizeof(asn_DEF_VehicleWidth_tags_1) + /sizeof(asn_DEF_VehicleWidth_tags_1[0]), /* 1 */ + asn_DEF_VehicleWidth_tags_1, /* Same as above */ + sizeof(asn_DEF_VehicleWidth_tags_1) + /sizeof(asn_DEF_VehicleWidth_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_VehicleWidth_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_VehicleWidth_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + VehicleWidth_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/VehicleWidth.h b/vanetza/asn1/its1/VehicleWidth.h similarity index 100% rename from vanetza/asn1/its/VehicleWidth.h rename to vanetza/asn1/its1/VehicleWidth.h diff --git a/vanetza/asn1/its/Velocity.c b/vanetza/asn1/its1/Velocity.c similarity index 96% rename from vanetza/asn1/its/Velocity.c rename to vanetza/asn1/its1/Velocity.c index 30a114020..a152f3115 100644 --- a/vanetza/asn1/its/Velocity.c +++ b/vanetza/asn1/its1/Velocity.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Velocity = { #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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Velocity_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/Velocity.h b/vanetza/asn1/its1/Velocity.h similarity index 100% rename from vanetza/asn1/its/Velocity.h rename to vanetza/asn1/its1/Velocity.h diff --git a/vanetza/asn1/its1/VerticalAcceleration.c b/vanetza/asn1/its1/VerticalAcceleration.c new file mode 100644 index 000000000..f183af215 --- /dev/null +++ b/vanetza/asn1/its1/VerticalAcceleration.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VerticalAcceleration.h" + +asn_TYPE_member_t asn_MBR_VerticalAcceleration_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct VerticalAcceleration, verticalAccelerationValue), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VerticalAccelerationValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "verticalAccelerationValue" + }, + { ATF_NOFLAGS, 0, offsetof(struct VerticalAcceleration, verticalAccelerationConfidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AccelerationConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "verticalAccelerationConfidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_VerticalAcceleration_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_VerticalAcceleration_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* verticalAccelerationValue */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* verticalAccelerationConfidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_VerticalAcceleration_specs_1 = { + sizeof(struct VerticalAcceleration), + offsetof(struct VerticalAcceleration, _asn_ctx), + asn_MAP_VerticalAcceleration_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_VerticalAcceleration = { + "VerticalAcceleration", + "VerticalAcceleration", + &asn_OP_SEQUENCE, + asn_DEF_VerticalAcceleration_tags_1, + sizeof(asn_DEF_VerticalAcceleration_tags_1) + /sizeof(asn_DEF_VerticalAcceleration_tags_1[0]), /* 1 */ + asn_DEF_VerticalAcceleration_tags_1, /* Same as above */ + sizeof(asn_DEF_VerticalAcceleration_tags_1) + /sizeof(asn_DEF_VerticalAcceleration_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_VerticalAcceleration_1, + 2, /* Elements count */ + &asn_SPC_VerticalAcceleration_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/VerticalAcceleration.h b/vanetza/asn1/its1/VerticalAcceleration.h similarity index 100% rename from vanetza/asn1/its/VerticalAcceleration.h rename to vanetza/asn1/its1/VerticalAcceleration.h diff --git a/vanetza/asn1/its1/VerticalAccelerationValue.c b/vanetza/asn1/its1/VerticalAccelerationValue.c new file mode 100644 index 000000000..28466687d --- /dev/null +++ b/vanetza/asn1/its1/VerticalAccelerationValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VerticalAccelerationValue.h" + +int +VerticalAccelerationValue_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 >= -160L && value <= 161L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_VerticalAccelerationValue_constr_1 CC_NOTUSED = { + { 2, 0 } /* (-160..161) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_VerticalAccelerationValue_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, -160, 161 } /* (-160..161) */, + { 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_VerticalAccelerationValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_VerticalAccelerationValue = { + "VerticalAccelerationValue", + "VerticalAccelerationValue", + &asn_OP_NativeInteger, + asn_DEF_VerticalAccelerationValue_tags_1, + sizeof(asn_DEF_VerticalAccelerationValue_tags_1) + /sizeof(asn_DEF_VerticalAccelerationValue_tags_1[0]), /* 1 */ + asn_DEF_VerticalAccelerationValue_tags_1, /* Same as above */ + sizeof(asn_DEF_VerticalAccelerationValue_tags_1) + /sizeof(asn_DEF_VerticalAccelerationValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_VerticalAccelerationValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_VerticalAccelerationValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + VerticalAccelerationValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/VerticalAccelerationValue.h b/vanetza/asn1/its1/VerticalAccelerationValue.h similarity index 100% rename from vanetza/asn1/its/VerticalAccelerationValue.h rename to vanetza/asn1/its1/VerticalAccelerationValue.h diff --git a/vanetza/asn1/its/WGS84Angle.c b/vanetza/asn1/its1/WGS84Angle.c similarity index 90% rename from vanetza/asn1/its/WGS84Angle.c rename to vanetza/asn1/its1/WGS84Angle.c index 4da2d343b..d0918a2b6 100644 --- a/vanetza/asn1/its/WGS84Angle.c +++ b/vanetza/asn1/its1/WGS84Angle.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_WGS84Angle_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_WGS84Angle_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_WGS84Angle = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_WGS84Angle_1, diff --git a/vanetza/asn1/its/WGS84Angle.h b/vanetza/asn1/its1/WGS84Angle.h similarity index 100% rename from vanetza/asn1/its/WGS84Angle.h rename to vanetza/asn1/its1/WGS84Angle.h diff --git a/vanetza/asn1/its/WGS84AngleValue.c b/vanetza/asn1/its1/WGS84AngleValue.c similarity index 96% rename from vanetza/asn1/its/WGS84AngleValue.c rename to vanetza/asn1/its1/WGS84AngleValue.c index efc1b85e7..02aa85d1b 100644 --- a/vanetza/asn1/its/WGS84AngleValue.c +++ b/vanetza/asn1/its1/WGS84AngleValue.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_WGS84AngleValue = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_WGS84AngleValue_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ WGS84AngleValue_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/WGS84AngleValue.h b/vanetza/asn1/its1/WGS84AngleValue.h similarity index 100% rename from vanetza/asn1/its/WGS84AngleValue.h rename to vanetza/asn1/its1/WGS84AngleValue.h diff --git a/vanetza/asn1/its1/WMInumber.c b/vanetza/asn1/its1/WMInumber.c new file mode 100644 index 000000000..ec15cd03c --- /dev/null +++ b/vanetza/asn1/its1/WMInumber.c @@ -0,0 +1,94 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "WMInumber.h" + +static int check_permitted_alphabet_1(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; +} + +int +WMInumber_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; + 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 <= 3UL) + && !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 IA5String, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_WMInumber_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..3)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_WMInumber_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, + 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_WMInumber_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_WMInumber = { + "WMInumber", + "WMInumber", + &asn_OP_IA5String, + asn_DEF_WMInumber_tags_1, + sizeof(asn_DEF_WMInumber_tags_1) + /sizeof(asn_DEF_WMInumber_tags_1[0]), /* 1 */ + asn_DEF_WMInumber_tags_1, /* Same as above */ + sizeof(asn_DEF_WMInumber_tags_1) + /sizeof(asn_DEF_WMInumber_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_WMInumber_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_WMInumber_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + WMInumber_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/WMInumber.h b/vanetza/asn1/its1/WMInumber.h similarity index 100% rename from vanetza/asn1/its/WMInumber.h rename to vanetza/asn1/its1/WMInumber.h diff --git a/vanetza/asn1/its/WaitOnStopline.c b/vanetza/asn1/its1/WaitOnStopline.c similarity index 92% rename from vanetza/asn1/its/WaitOnStopline.c rename to vanetza/asn1/its1/WaitOnStopline.c index bcf5f29db..166f5eb13 100644 --- a/vanetza/asn1/its/WaitOnStopline.c +++ b/vanetza/asn1/its1/WaitOnStopline.c @@ -31,6 +31,9 @@ asn_TYPE_descriptor_t asn_DEF_WaitOnStopline = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ BOOLEAN_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/WaitOnStopline.h b/vanetza/asn1/its1/WaitOnStopline.h similarity index 100% rename from vanetza/asn1/its/WaitOnStopline.h rename to vanetza/asn1/its1/WaitOnStopline.h diff --git a/vanetza/asn1/its/WearLevel.c b/vanetza/asn1/its1/WearLevel.c similarity index 96% rename from vanetza/asn1/its/WearLevel.c rename to vanetza/asn1/its1/WearLevel.c index 432652629..c6a6b17ad 100644 --- a/vanetza/asn1/its/WearLevel.c +++ b/vanetza/asn1/its1/WearLevel.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_WearLevel = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_WearLevel_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ WearLevel_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/WearLevel.h b/vanetza/asn1/its1/WearLevel.h similarity index 100% rename from vanetza/asn1/its/WearLevel.h rename to vanetza/asn1/its1/WearLevel.h diff --git a/vanetza/asn1/its/Weight.c b/vanetza/asn1/its1/Weight.c similarity index 94% rename from vanetza/asn1/its/Weight.c rename to vanetza/asn1/its1/Weight.c index a2fa56613..b67ff0c4e 100644 --- a/vanetza/asn1/its/Weight.c +++ b/vanetza/asn1/its1/Weight.c @@ -94,6 +94,9 @@ asn_TYPE_member_t asn_MBR_Weight_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_value_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_value_constraint_1 }, 0, 0, /* No default value */ @@ -111,6 +114,9 @@ asn_TYPE_member_t asn_MBR_Weight_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_unit_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_unit_constraint_1 }, 0, 0, /* No default value */ @@ -149,6 +155,9 @@ asn_TYPE_descriptor_t asn_DEF_Weight = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Weight_1, diff --git a/vanetza/asn1/its/Weight.h b/vanetza/asn1/its1/Weight.h similarity index 100% rename from vanetza/asn1/its/Weight.h rename to vanetza/asn1/its1/Weight.h diff --git a/vanetza/asn1/its1/WheelBaseVehicle.c b/vanetza/asn1/its1/WheelBaseVehicle.c new file mode 100644 index 000000000..2b9e6db56 --- /dev/null +++ b/vanetza/asn1/its1/WheelBaseVehicle.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "WheelBaseVehicle.h" + +int +WheelBaseVehicle_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 <= 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_WheelBaseVehicle_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..127) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_WheelBaseVehicle_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 1, 127 } /* (1..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_WheelBaseVehicle_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_WheelBaseVehicle = { + "WheelBaseVehicle", + "WheelBaseVehicle", + &asn_OP_NativeInteger, + asn_DEF_WheelBaseVehicle_tags_1, + sizeof(asn_DEF_WheelBaseVehicle_tags_1) + /sizeof(asn_DEF_WheelBaseVehicle_tags_1[0]), /* 1 */ + asn_DEF_WheelBaseVehicle_tags_1, /* Same as above */ + sizeof(asn_DEF_WheelBaseVehicle_tags_1) + /sizeof(asn_DEF_WheelBaseVehicle_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_WheelBaseVehicle_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_WheelBaseVehicle_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + WheelBaseVehicle_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/WheelBaseVehicle.h b/vanetza/asn1/its1/WheelBaseVehicle.h similarity index 100% rename from vanetza/asn1/its/WheelBaseVehicle.h rename to vanetza/asn1/its1/WheelBaseVehicle.h diff --git a/vanetza/asn1/its1/WrongWayDrivingSubCauseCode.c b/vanetza/asn1/its1/WrongWayDrivingSubCauseCode.c new file mode 100644 index 000000000..219bcaf80 --- /dev/null +++ b/vanetza/asn1/its1/WrongWayDrivingSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "WrongWayDrivingSubCauseCode.h" + +int +WrongWayDrivingSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_WrongWayDrivingSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_WrongWayDrivingSubCauseCode_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_WrongWayDrivingSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_WrongWayDrivingSubCauseCode = { + "WrongWayDrivingSubCauseCode", + "WrongWayDrivingSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_WrongWayDrivingSubCauseCode_tags_1, + sizeof(asn_DEF_WrongWayDrivingSubCauseCode_tags_1) + /sizeof(asn_DEF_WrongWayDrivingSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_WrongWayDrivingSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_WrongWayDrivingSubCauseCode_tags_1) + /sizeof(asn_DEF_WrongWayDrivingSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_WrongWayDrivingSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_WrongWayDrivingSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + WrongWayDrivingSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/WrongWayDrivingSubCauseCode.h b/vanetza/asn1/its1/WrongWayDrivingSubCauseCode.h similarity index 100% rename from vanetza/asn1/its/WrongWayDrivingSubCauseCode.h rename to vanetza/asn1/its1/WrongWayDrivingSubCauseCode.h diff --git a/vanetza/asn1/its/XSensorOffset.c b/vanetza/asn1/its1/XSensorOffset.c similarity index 96% rename from vanetza/asn1/its/XSensorOffset.c rename to vanetza/asn1/its1/XSensorOffset.c index 2ce940ed1..1dbbd4f15 100644 --- a/vanetza/asn1/its/XSensorOffset.c +++ b/vanetza/asn1/its1/XSensorOffset.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_XSensorOffset = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_XSensorOffset_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ XSensorOffset_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/XSensorOffset.h b/vanetza/asn1/its1/XSensorOffset.h similarity index 100% rename from vanetza/asn1/its/XSensorOffset.h rename to vanetza/asn1/its1/XSensorOffset.h diff --git a/vanetza/asn1/its/YSensorOffset.c b/vanetza/asn1/its1/YSensorOffset.c similarity index 96% rename from vanetza/asn1/its/YSensorOffset.c rename to vanetza/asn1/its1/YSensorOffset.c index 8b9ebd323..0f9c07a82 100644 --- a/vanetza/asn1/its/YSensorOffset.c +++ b/vanetza/asn1/its1/YSensorOffset.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_YSensorOffset = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_YSensorOffset_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ YSensorOffset_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/YSensorOffset.h b/vanetza/asn1/its1/YSensorOffset.h similarity index 100% rename from vanetza/asn1/its/YSensorOffset.h rename to vanetza/asn1/its1/YSensorOffset.h diff --git a/vanetza/asn1/its1/YawRate.c b/vanetza/asn1/its1/YawRate.c new file mode 100644 index 000000000..965ebb591 --- /dev/null +++ b/vanetza/asn1/its1/YawRate.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "YawRate.h" + +asn_TYPE_member_t asn_MBR_YawRate_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct YawRate, yawRateValue), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_YawRateValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "yawRateValue" + }, + { ATF_NOFLAGS, 0, offsetof(struct YawRate, yawRateConfidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_YawRateConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "yawRateConfidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_YawRate_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_YawRate_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* yawRateValue */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* yawRateConfidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_YawRate_specs_1 = { + sizeof(struct YawRate), + offsetof(struct YawRate, _asn_ctx), + asn_MAP_YawRate_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_YawRate = { + "YawRate", + "YawRate", + &asn_OP_SEQUENCE, + asn_DEF_YawRate_tags_1, + sizeof(asn_DEF_YawRate_tags_1) + /sizeof(asn_DEF_YawRate_tags_1[0]), /* 1 */ + asn_DEF_YawRate_tags_1, /* Same as above */ + sizeof(asn_DEF_YawRate_tags_1) + /sizeof(asn_DEF_YawRate_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_YawRate_1, + 2, /* Elements count */ + &asn_SPC_YawRate_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/YawRate.h b/vanetza/asn1/its1/YawRate.h similarity index 100% rename from vanetza/asn1/its/YawRate.h rename to vanetza/asn1/its1/YawRate.h diff --git a/vanetza/asn1/its1/YawRateConfidence.c b/vanetza/asn1/its1/YawRateConfidence.c new file mode 100644 index 000000000..0a557b6f8 --- /dev/null +++ b/vanetza/asn1/its1/YawRateConfidence.c @@ -0,0 +1,85 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "YawRateConfidence.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_YawRateConfidence_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_YawRateConfidence_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_YawRateConfidence_value2enum_1[] = { + { 0, 13, "degSec-000-01" }, + { 1, 13, "degSec-000-05" }, + { 2, 13, "degSec-000-10" }, + { 3, 13, "degSec-001-00" }, + { 4, 13, "degSec-005-00" }, + { 5, 13, "degSec-010-00" }, + { 6, 13, "degSec-100-00" }, + { 7, 10, "outOfRange" }, + { 8, 11, "unavailable" } +}; +static const unsigned int asn_MAP_YawRateConfidence_enum2value_1[] = { + 0, /* degSec-000-01(0) */ + 1, /* degSec-000-05(1) */ + 2, /* degSec-000-10(2) */ + 3, /* degSec-001-00(3) */ + 4, /* degSec-005-00(4) */ + 5, /* degSec-010-00(5) */ + 6, /* degSec-100-00(6) */ + 7, /* outOfRange(7) */ + 8 /* unavailable(8) */ +}; +const asn_INTEGER_specifics_t asn_SPC_YawRateConfidence_specs_1 = { + asn_MAP_YawRateConfidence_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_YawRateConfidence_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_YawRateConfidence_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_YawRateConfidence = { + "YawRateConfidence", + "YawRateConfidence", + &asn_OP_NativeEnumerated, + asn_DEF_YawRateConfidence_tags_1, + sizeof(asn_DEF_YawRateConfidence_tags_1) + /sizeof(asn_DEF_YawRateConfidence_tags_1[0]), /* 1 */ + asn_DEF_YawRateConfidence_tags_1, /* Same as above */ + sizeof(asn_DEF_YawRateConfidence_tags_1) + /sizeof(asn_DEF_YawRateConfidence_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_YawRateConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_YawRateConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_YawRateConfidence_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its/YawRateConfidence.h b/vanetza/asn1/its1/YawRateConfidence.h similarity index 100% rename from vanetza/asn1/its/YawRateConfidence.h rename to vanetza/asn1/its1/YawRateConfidence.h diff --git a/vanetza/asn1/its1/YawRateValue.c b/vanetza/asn1/its1/YawRateValue.c new file mode 100644 index 000000000..67a24317f --- /dev/null +++ b/vanetza/asn1/its1/YawRateValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ITS-Container" + * found in "asn1/TS102894-2v131-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "YawRateValue.h" + +int +YawRateValue_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 >= -32766L && 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; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_YawRateValue_constr_1 CC_NOTUSED = { + { 2, 0 } /* (-32766..32767) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_YawRateValue_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32766, 32767 } /* (-32766..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 ber_tlv_tag_t asn_DEF_YawRateValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_YawRateValue = { + "YawRateValue", + "YawRateValue", + &asn_OP_NativeInteger, + asn_DEF_YawRateValue_tags_1, + sizeof(asn_DEF_YawRateValue_tags_1) + /sizeof(asn_DEF_YawRateValue_tags_1[0]), /* 1 */ + asn_DEF_YawRateValue_tags_1, /* Same as above */ + sizeof(asn_DEF_YawRateValue_tags_1) + /sizeof(asn_DEF_YawRateValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_YawRateValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_YawRateValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + YawRateValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its/YawRateValue.h b/vanetza/asn1/its1/YawRateValue.h similarity index 100% rename from vanetza/asn1/its/YawRateValue.h rename to vanetza/asn1/its1/YawRateValue.h diff --git a/vanetza/asn1/its/ZSensorOffset.c b/vanetza/asn1/its1/ZSensorOffset.c similarity index 96% rename from vanetza/asn1/its/ZSensorOffset.c rename to vanetza/asn1/its1/ZSensorOffset.c index fa0c1af64..8a52b286a 100644 --- a/vanetza/asn1/its/ZSensorOffset.c +++ b/vanetza/asn1/its1/ZSensorOffset.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_ZSensorOffset = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ZSensorOffset_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ ZSensorOffset_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/its/ZSensorOffset.h b/vanetza/asn1/its1/ZSensorOffset.h similarity index 100% rename from vanetza/asn1/its/ZSensorOffset.h rename to vanetza/asn1/its1/ZSensorOffset.h diff --git a/vanetza/asn1/its/Zid.c b/vanetza/asn1/its1/Zid.c similarity index 95% rename from vanetza/asn1/its/Zid.c rename to vanetza/asn1/its1/Zid.c index a6579bf26..e21140894 100644 --- a/vanetza/asn1/its/Zid.c +++ b/vanetza/asn1/its1/Zid.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Zid = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Zid_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Zid_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/Zid.h b/vanetza/asn1/its1/Zid.h similarity index 100% rename from vanetza/asn1/its/Zid.h rename to vanetza/asn1/its1/Zid.h diff --git a/vanetza/asn1/its/Zone.c b/vanetza/asn1/its1/Zone.c similarity index 90% rename from vanetza/asn1/its/Zone.c rename to vanetza/asn1/its1/Zone.c index 0cfd6dad5..3720554a0 100644 --- a/vanetza/asn1/its/Zone.c +++ b/vanetza/asn1/its1/Zone.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_Zone_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_Zone_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -66,6 +72,9 @@ asn_TYPE_member_t asn_MBR_Zone_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -102,6 +111,9 @@ asn_TYPE_descriptor_t asn_DEF_Zone = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Zone_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_Zone_1, diff --git a/vanetza/asn1/its/Zone.h b/vanetza/asn1/its1/Zone.h similarity index 100% rename from vanetza/asn1/its/Zone.h rename to vanetza/asn1/its1/Zone.h diff --git a/vanetza/asn1/its/ZoneIds.c b/vanetza/asn1/its1/ZoneIds.c similarity index 92% rename from vanetza/asn1/its/ZoneIds.c rename to vanetza/asn1/its1/ZoneIds.c index 67a269b08..66bd03594 100644 --- a/vanetza/asn1/its/ZoneIds.c +++ b/vanetza/asn1/its1/ZoneIds.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_ZoneIds_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_ZoneIds = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ZoneIds_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_ZoneIds_1, diff --git a/vanetza/asn1/its/ZoneIds.h b/vanetza/asn1/its1/ZoneIds.h similarity index 100% rename from vanetza/asn1/its/ZoneIds.h rename to vanetza/asn1/its1/ZoneIds.h diff --git a/vanetza/asn1/its/ZoneLength.c b/vanetza/asn1/its1/ZoneLength.c similarity index 96% rename from vanetza/asn1/its/ZoneLength.c rename to vanetza/asn1/its1/ZoneLength.c index 44b37dc13..015343c01 100644 --- a/vanetza/asn1/its/ZoneLength.c +++ b/vanetza/asn1/its1/ZoneLength.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_ZoneLength = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_ZoneLength_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ ZoneLength_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/its/ZoneLength.h b/vanetza/asn1/its1/ZoneLength.h similarity index 100% rename from vanetza/asn1/its/ZoneLength.h rename to vanetza/asn1/its1/ZoneLength.h diff --git a/vanetza/asn1/its/asn_constant.h b/vanetza/asn1/its1/asn_constant.h similarity index 100% rename from vanetza/asn1/its/asn_constant.h rename to vanetza/asn1/its1/asn_constant.h diff --git a/vanetza/asn1/its2/Acceleration3dWithConfidence.c b/vanetza/asn1/its2/Acceleration3dWithConfidence.c new file mode 100644 index 000000000..1850f445c --- /dev/null +++ b/vanetza/asn1/its2/Acceleration3dWithConfidence.c @@ -0,0 +1,102 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Acceleration3dWithConfidence.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_Acceleration3dWithConfidence_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Acceleration3dWithConfidence_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_Acceleration3dWithConfidence_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Acceleration3dWithConfidence, choice.polarAcceleration), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AccelerationPolarWithZ, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "polarAcceleration" + }, + { ATF_NOFLAGS, 0, offsetof(struct Acceleration3dWithConfidence, choice.cartesianAcceleration), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AccelerationCartesian, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cartesianAcceleration" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_Acceleration3dWithConfidence_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* polarAcceleration */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* cartesianAcceleration */ +}; +asn_CHOICE_specifics_t asn_SPC_Acceleration3dWithConfidence_specs_1 = { + sizeof(struct Acceleration3dWithConfidence), + offsetof(struct Acceleration3dWithConfidence, _asn_ctx), + offsetof(struct Acceleration3dWithConfidence, present), + sizeof(((struct Acceleration3dWithConfidence *)0)->present), + asn_MAP_Acceleration3dWithConfidence_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_Acceleration3dWithConfidence = { + "Acceleration3dWithConfidence", + "Acceleration3dWithConfidence", + &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) + &asn_OER_type_Acceleration3dWithConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Acceleration3dWithConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_Acceleration3dWithConfidence_1, + 2, /* Elements count */ + &asn_SPC_Acceleration3dWithConfidence_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/Acceleration3dWithConfidence.h b/vanetza/asn1/its2/Acceleration3dWithConfidence.h new file mode 100644 index 000000000..cdb28023d --- /dev/null +++ b/vanetza/asn1/its2/Acceleration3dWithConfidence.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _Acceleration3dWithConfidence_H_ +#define _Acceleration3dWithConfidence_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "AccelerationPolarWithZ.h" +#include "AccelerationCartesian.h" +#include "constr_CHOICE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum Acceleration3dWithConfidence_PR { + Acceleration3dWithConfidence_PR_NOTHING, /* No components present */ + Acceleration3dWithConfidence_PR_polarAcceleration, + Acceleration3dWithConfidence_PR_cartesianAcceleration +} Acceleration3dWithConfidence_PR; + +/* Acceleration3dWithConfidence */ +typedef struct Acceleration3dWithConfidence { + Acceleration3dWithConfidence_PR present; + union Acceleration3dWithConfidence_u { + AccelerationPolarWithZ_t polarAcceleration; + AccelerationCartesian_t cartesianAcceleration; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Acceleration3dWithConfidence_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Acceleration3dWithConfidence; +extern asn_CHOICE_specifics_t asn_SPC_Acceleration3dWithConfidence_specs_1; +extern asn_TYPE_member_t asn_MBR_Acceleration3dWithConfidence_1[2]; +extern asn_per_constraints_t asn_PER_type_Acceleration3dWithConfidence_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _Acceleration3dWithConfidence_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/AccelerationCartesian.c b/vanetza/asn1/its2/AccelerationCartesian.c new file mode 100644 index 000000000..c4347876a --- /dev/null +++ b/vanetza/asn1/its2/AccelerationCartesian.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AccelerationCartesian.h" + +asn_TYPE_member_t asn_MBR_AccelerationCartesian_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct AccelerationCartesian, xAcceleration), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AccelerationComponent, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "xAcceleration" + }, + { ATF_NOFLAGS, 0, offsetof(struct AccelerationCartesian, yAcceleration), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AccelerationComponent, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "yAcceleration" + }, + { ATF_POINTER, 1, offsetof(struct AccelerationCartesian, zAcceleration), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AccelerationComponent, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "zAcceleration" + }, +}; +static const int asn_MAP_AccelerationCartesian_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_AccelerationCartesian_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_AccelerationCartesian_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* xAcceleration */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* yAcceleration */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* zAcceleration */ +}; +asn_SEQUENCE_specifics_t asn_SPC_AccelerationCartesian_specs_1 = { + sizeof(struct AccelerationCartesian), + offsetof(struct AccelerationCartesian, _asn_ctx), + asn_MAP_AccelerationCartesian_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_AccelerationCartesian_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_AccelerationCartesian = { + "AccelerationCartesian", + "AccelerationCartesian", + &asn_OP_SEQUENCE, + asn_DEF_AccelerationCartesian_tags_1, + sizeof(asn_DEF_AccelerationCartesian_tags_1) + /sizeof(asn_DEF_AccelerationCartesian_tags_1[0]), /* 1 */ + asn_DEF_AccelerationCartesian_tags_1, /* Same as above */ + sizeof(asn_DEF_AccelerationCartesian_tags_1) + /sizeof(asn_DEF_AccelerationCartesian_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_AccelerationCartesian_1, + 3, /* Elements count */ + &asn_SPC_AccelerationCartesian_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/AccelerationCartesian.h b/vanetza/asn1/its2/AccelerationCartesian.h new file mode 100644 index 000000000..3250789a8 --- /dev/null +++ b/vanetza/asn1/its2/AccelerationCartesian.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _AccelerationCartesian_H_ +#define _AccelerationCartesian_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "AccelerationComponent.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct AccelerationComponent; + +/* AccelerationCartesian */ +typedef struct AccelerationCartesian { + AccelerationComponent_t xAcceleration; + AccelerationComponent_t yAcceleration; + struct AccelerationComponent *zAcceleration; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} AccelerationCartesian_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_AccelerationCartesian; +extern asn_SEQUENCE_specifics_t asn_SPC_AccelerationCartesian_specs_1; +extern asn_TYPE_member_t asn_MBR_AccelerationCartesian_1[3]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "AccelerationComponent.h" + +#endif /* _AccelerationCartesian_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/AccelerationChange.c b/vanetza/asn1/its2/AccelerationChange.c new file mode 100644 index 000000000..4f49b6d4c --- /dev/null +++ b/vanetza/asn1/its2/AccelerationChange.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AccelerationChange.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_AccelerationChange_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_AccelerationChange_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_AccelerationChange_value2enum_1[] = { + { 0, 10, "accelerate" }, + { 1, 10, "decelerate" } +}; +static const unsigned int asn_MAP_AccelerationChange_enum2value_1[] = { + 0, /* accelerate(0) */ + 1 /* decelerate(1) */ +}; +const asn_INTEGER_specifics_t asn_SPC_AccelerationChange_specs_1 = { + asn_MAP_AccelerationChange_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_AccelerationChange_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_AccelerationChange_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_AccelerationChange = { + "AccelerationChange", + "AccelerationChange", + &asn_OP_NativeEnumerated, + asn_DEF_AccelerationChange_tags_1, + sizeof(asn_DEF_AccelerationChange_tags_1) + /sizeof(asn_DEF_AccelerationChange_tags_1[0]), /* 1 */ + asn_DEF_AccelerationChange_tags_1, /* Same as above */ + sizeof(asn_DEF_AccelerationChange_tags_1) + /sizeof(asn_DEF_AccelerationChange_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_AccelerationChange_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AccelerationChange_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_AccelerationChange_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/AccelerationChange.h b/vanetza/asn1/its2/AccelerationChange.h new file mode 100644 index 000000000..4e30b2069 --- /dev/null +++ b/vanetza/asn1/its2/AccelerationChange.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _AccelerationChange_H_ +#define _AccelerationChange_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum AccelerationChange { + AccelerationChange_accelerate = 0, + AccelerationChange_decelerate = 1 +} e_AccelerationChange; + +/* AccelerationChange */ +typedef long AccelerationChange_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_AccelerationChange_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_AccelerationChange; +extern const asn_INTEGER_specifics_t asn_SPC_AccelerationChange_specs_1; +asn_struct_free_f AccelerationChange_free; +asn_struct_print_f AccelerationChange_print; +asn_constr_check_f AccelerationChange_constraint; +ber_type_decoder_f AccelerationChange_decode_ber; +der_type_encoder_f AccelerationChange_encode_der; +xer_type_decoder_f AccelerationChange_decode_xer; +xer_type_encoder_f AccelerationChange_encode_xer; +jer_type_encoder_f AccelerationChange_encode_jer; +oer_type_decoder_f AccelerationChange_decode_oer; +oer_type_encoder_f AccelerationChange_encode_oer; +per_type_decoder_f AccelerationChange_decode_uper; +per_type_encoder_f AccelerationChange_encode_uper; +per_type_decoder_f AccelerationChange_decode_aper; +per_type_encoder_f AccelerationChange_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _AccelerationChange_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/AccelerationChangeIndication.c b/vanetza/asn1/its2/AccelerationChangeIndication.c new file mode 100644 index 000000000..3176abaf0 --- /dev/null +++ b/vanetza/asn1/its2/AccelerationChangeIndication.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AccelerationChangeIndication.h" + +asn_TYPE_member_t asn_MBR_AccelerationChangeIndication_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct AccelerationChangeIndication, accelOrDecel), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AccelerationChange, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "accelOrDecel" + }, + { ATF_NOFLAGS, 0, offsetof(struct AccelerationChangeIndication, actionDeltaTime), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DeltaTimeTenthOfSecond, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "actionDeltaTime" + }, +}; +static const ber_tlv_tag_t asn_DEF_AccelerationChangeIndication_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_AccelerationChangeIndication_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* accelOrDecel */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* actionDeltaTime */ +}; +asn_SEQUENCE_specifics_t asn_SPC_AccelerationChangeIndication_specs_1 = { + sizeof(struct AccelerationChangeIndication), + offsetof(struct AccelerationChangeIndication, _asn_ctx), + asn_MAP_AccelerationChangeIndication_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_AccelerationChangeIndication = { + "AccelerationChangeIndication", + "AccelerationChangeIndication", + &asn_OP_SEQUENCE, + asn_DEF_AccelerationChangeIndication_tags_1, + sizeof(asn_DEF_AccelerationChangeIndication_tags_1) + /sizeof(asn_DEF_AccelerationChangeIndication_tags_1[0]), /* 1 */ + asn_DEF_AccelerationChangeIndication_tags_1, /* Same as above */ + sizeof(asn_DEF_AccelerationChangeIndication_tags_1) + /sizeof(asn_DEF_AccelerationChangeIndication_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_AccelerationChangeIndication_1, + 2, /* Elements count */ + &asn_SPC_AccelerationChangeIndication_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/AccelerationChangeIndication.h b/vanetza/asn1/its2/AccelerationChangeIndication.h new file mode 100644 index 000000000..805c92208 --- /dev/null +++ b/vanetza/asn1/its2/AccelerationChangeIndication.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _AccelerationChangeIndication_H_ +#define _AccelerationChangeIndication_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "AccelerationChange.h" +#include "DeltaTimeTenthOfSecond.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* AccelerationChangeIndication */ +typedef struct AccelerationChangeIndication { + AccelerationChange_t accelOrDecel; + DeltaTimeTenthOfSecond_t actionDeltaTime; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} AccelerationChangeIndication_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_AccelerationChangeIndication; +extern asn_SEQUENCE_specifics_t asn_SPC_AccelerationChangeIndication_specs_1; +extern asn_TYPE_member_t asn_MBR_AccelerationChangeIndication_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _AccelerationChangeIndication_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/AccelerationComponent.c b/vanetza/asn1/its2/AccelerationComponent.c new file mode 100644 index 000000000..f0a7e20f2 --- /dev/null +++ b/vanetza/asn1/its2/AccelerationComponent.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AccelerationComponent.h" + +asn_TYPE_member_t asn_MBR_AccelerationComponent_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct AccelerationComponent, value), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AccelerationValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "value" + }, + { ATF_NOFLAGS, 0, offsetof(struct AccelerationComponent, confidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AccelerationConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "confidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_AccelerationComponent_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_AccelerationComponent_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* value */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* confidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_AccelerationComponent_specs_1 = { + sizeof(struct AccelerationComponent), + offsetof(struct AccelerationComponent, _asn_ctx), + asn_MAP_AccelerationComponent_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_AccelerationComponent = { + "AccelerationComponent", + "AccelerationComponent", + &asn_OP_SEQUENCE, + asn_DEF_AccelerationComponent_tags_1, + sizeof(asn_DEF_AccelerationComponent_tags_1) + /sizeof(asn_DEF_AccelerationComponent_tags_1[0]), /* 1 */ + asn_DEF_AccelerationComponent_tags_1, /* Same as above */ + sizeof(asn_DEF_AccelerationComponent_tags_1) + /sizeof(asn_DEF_AccelerationComponent_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_AccelerationComponent_1, + 2, /* Elements count */ + &asn_SPC_AccelerationComponent_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/AccelerationComponent.h b/vanetza/asn1/its2/AccelerationComponent.h new file mode 100644 index 000000000..70fe21f3b --- /dev/null +++ b/vanetza/asn1/its2/AccelerationComponent.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _AccelerationComponent_H_ +#define _AccelerationComponent_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "AccelerationValue.h" +#include "AccelerationConfidence.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* AccelerationComponent */ +typedef struct AccelerationComponent { + AccelerationValue_t value; + AccelerationConfidence_t confidence; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} AccelerationComponent_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_AccelerationComponent; +extern asn_SEQUENCE_specifics_t asn_SPC_AccelerationComponent_specs_1; +extern asn_TYPE_member_t asn_MBR_AccelerationComponent_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _AccelerationComponent_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/AccelerationConfidence.c b/vanetza/asn1/its2/AccelerationConfidence.c new file mode 100644 index 000000000..34c5a7d41 --- /dev/null +++ b/vanetza/asn1/its2/AccelerationConfidence.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AccelerationConfidence.h" + +int +AccelerationConfidence_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 <= 102L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_AccelerationConfidence_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..102) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_AccelerationConfidence_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 102 } /* (0..102) */, + { 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_AccelerationConfidence_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_AccelerationConfidence = { + "AccelerationConfidence", + "AccelerationConfidence", + &asn_OP_NativeInteger, + asn_DEF_AccelerationConfidence_tags_1, + sizeof(asn_DEF_AccelerationConfidence_tags_1) + /sizeof(asn_DEF_AccelerationConfidence_tags_1[0]), /* 1 */ + asn_DEF_AccelerationConfidence_tags_1, /* Same as above */ + sizeof(asn_DEF_AccelerationConfidence_tags_1) + /sizeof(asn_DEF_AccelerationConfidence_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_AccelerationConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AccelerationConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + AccelerationConfidence_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/AccelerationConfidence.h b/vanetza/asn1/its2/AccelerationConfidence.h new file mode 100644 index 000000000..d7358d76b --- /dev/null +++ b/vanetza/asn1/its2/AccelerationConfidence.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _AccelerationConfidence_H_ +#define _AccelerationConfidence_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum AccelerationConfidence { + AccelerationConfidence_outOfRange = 101, + AccelerationConfidence_unavailable = 102 +} e_AccelerationConfidence; + +/* AccelerationConfidence */ +typedef long AccelerationConfidence_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_AccelerationConfidence_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_AccelerationConfidence; +asn_struct_free_f AccelerationConfidence_free; +asn_struct_print_f AccelerationConfidence_print; +asn_constr_check_f AccelerationConfidence_constraint; +ber_type_decoder_f AccelerationConfidence_decode_ber; +der_type_encoder_f AccelerationConfidence_encode_der; +xer_type_decoder_f AccelerationConfidence_decode_xer; +xer_type_encoder_f AccelerationConfidence_encode_xer; +jer_type_encoder_f AccelerationConfidence_encode_jer; +oer_type_decoder_f AccelerationConfidence_decode_oer; +oer_type_encoder_f AccelerationConfidence_encode_oer; +per_type_decoder_f AccelerationConfidence_decode_uper; +per_type_encoder_f AccelerationConfidence_encode_uper; +per_type_decoder_f AccelerationConfidence_decode_aper; +per_type_encoder_f AccelerationConfidence_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _AccelerationConfidence_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/AccelerationControl.c b/vanetza/asn1/its2/AccelerationControl.c new file mode 100644 index 000000000..0c184acc6 --- /dev/null +++ b/vanetza/asn1/its2/AccelerationControl.c @@ -0,0 +1,89 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AccelerationControl.h" + +int +AccelerationControl_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 == 7UL)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_AccelerationControl_constr_1 CC_NOTUSED = { + { 0, 0 }, + 7 /* (SIZE(7..7)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_AccelerationControl_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 7, 7 } /* (SIZE(7..7)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_AccelerationControl_constr_1 CC_NOTUSED = { + 7}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_AccelerationControl_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_AccelerationControl = { + "AccelerationControl", + "AccelerationControl", + &asn_OP_BIT_STRING, + asn_DEF_AccelerationControl_tags_1, + sizeof(asn_DEF_AccelerationControl_tags_1) + /sizeof(asn_DEF_AccelerationControl_tags_1[0]), /* 1 */ + asn_DEF_AccelerationControl_tags_1, /* Same as above */ + sizeof(asn_DEF_AccelerationControl_tags_1) + /sizeof(asn_DEF_AccelerationControl_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_AccelerationControl_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AccelerationControl_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_AccelerationControl_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + AccelerationControl_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/AccelerationControl.h b/vanetza/asn1/its2/AccelerationControl.h new file mode 100644 index 000000000..c13eed672 --- /dev/null +++ b/vanetza/asn1/its2/AccelerationControl.h @@ -0,0 +1,58 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _AccelerationControl_H_ +#define _AccelerationControl_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "BIT_STRING.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum AccelerationControl { + AccelerationControl_brakePedalEngaged = 0, + AccelerationControl_gasPedalEngaged = 1, + AccelerationControl_emergencyBrakeEngaged = 2, + AccelerationControl_collisionWarningEngaged = 3, + AccelerationControl_accEngaged = 4, + AccelerationControl_cruiseControlEngaged = 5, + AccelerationControl_speedLimiterEngaged = 6 +} e_AccelerationControl; + +/* AccelerationControl */ +typedef BIT_STRING_t AccelerationControl_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_AccelerationControl_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_AccelerationControl; +asn_struct_free_f AccelerationControl_free; +asn_struct_print_f AccelerationControl_print; +asn_constr_check_f AccelerationControl_constraint; +ber_type_decoder_f AccelerationControl_decode_ber; +der_type_encoder_f AccelerationControl_encode_der; +xer_type_decoder_f AccelerationControl_decode_xer; +xer_type_encoder_f AccelerationControl_encode_xer; +jer_type_encoder_f AccelerationControl_encode_jer; +oer_type_decoder_f AccelerationControl_decode_oer; +oer_type_encoder_f AccelerationControl_encode_oer; +per_type_decoder_f AccelerationControl_decode_uper; +per_type_encoder_f AccelerationControl_encode_uper; +per_type_decoder_f AccelerationControl_decode_aper; +per_type_encoder_f AccelerationControl_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _AccelerationControl_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/AccelerationMagnitude.c b/vanetza/asn1/its2/AccelerationMagnitude.c new file mode 100644 index 000000000..b596e74c1 --- /dev/null +++ b/vanetza/asn1/its2/AccelerationMagnitude.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AccelerationMagnitude.h" + +asn_TYPE_member_t asn_MBR_AccelerationMagnitude_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct AccelerationMagnitude, accelerationMagnitudeValue), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AccelerationMagnitudeValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "accelerationMagnitudeValue" + }, + { ATF_NOFLAGS, 0, offsetof(struct AccelerationMagnitude, accelerationConfidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AccelerationConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "accelerationConfidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_AccelerationMagnitude_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_AccelerationMagnitude_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* accelerationMagnitudeValue */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* accelerationConfidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_AccelerationMagnitude_specs_1 = { + sizeof(struct AccelerationMagnitude), + offsetof(struct AccelerationMagnitude, _asn_ctx), + asn_MAP_AccelerationMagnitude_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_AccelerationMagnitude = { + "AccelerationMagnitude", + "AccelerationMagnitude", + &asn_OP_SEQUENCE, + asn_DEF_AccelerationMagnitude_tags_1, + sizeof(asn_DEF_AccelerationMagnitude_tags_1) + /sizeof(asn_DEF_AccelerationMagnitude_tags_1[0]), /* 1 */ + asn_DEF_AccelerationMagnitude_tags_1, /* Same as above */ + sizeof(asn_DEF_AccelerationMagnitude_tags_1) + /sizeof(asn_DEF_AccelerationMagnitude_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_AccelerationMagnitude_1, + 2, /* Elements count */ + &asn_SPC_AccelerationMagnitude_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/AccelerationMagnitude.h b/vanetza/asn1/its2/AccelerationMagnitude.h new file mode 100644 index 000000000..c4135d119 --- /dev/null +++ b/vanetza/asn1/its2/AccelerationMagnitude.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _AccelerationMagnitude_H_ +#define _AccelerationMagnitude_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "AccelerationMagnitudeValue.h" +#include "AccelerationConfidence.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* AccelerationMagnitude */ +typedef struct AccelerationMagnitude { + AccelerationMagnitudeValue_t accelerationMagnitudeValue; + AccelerationConfidence_t accelerationConfidence; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} AccelerationMagnitude_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_AccelerationMagnitude; +extern asn_SEQUENCE_specifics_t asn_SPC_AccelerationMagnitude_specs_1; +extern asn_TYPE_member_t asn_MBR_AccelerationMagnitude_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _AccelerationMagnitude_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/AccelerationMagnitudeValue.c b/vanetza/asn1/its2/AccelerationMagnitudeValue.c new file mode 100644 index 000000000..2008dc3a7 --- /dev/null +++ b/vanetza/asn1/its2/AccelerationMagnitudeValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AccelerationMagnitudeValue.h" + +int +AccelerationMagnitudeValue_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 <= 161L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_AccelerationMagnitudeValue_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..161) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_AccelerationMagnitudeValue_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 161 } /* (0..161) */, + { 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_AccelerationMagnitudeValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_AccelerationMagnitudeValue = { + "AccelerationMagnitudeValue", + "AccelerationMagnitudeValue", + &asn_OP_NativeInteger, + asn_DEF_AccelerationMagnitudeValue_tags_1, + sizeof(asn_DEF_AccelerationMagnitudeValue_tags_1) + /sizeof(asn_DEF_AccelerationMagnitudeValue_tags_1[0]), /* 1 */ + asn_DEF_AccelerationMagnitudeValue_tags_1, /* Same as above */ + sizeof(asn_DEF_AccelerationMagnitudeValue_tags_1) + /sizeof(asn_DEF_AccelerationMagnitudeValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_AccelerationMagnitudeValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AccelerationMagnitudeValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + AccelerationMagnitudeValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/AccelerationMagnitudeValue.h b/vanetza/asn1/its2/AccelerationMagnitudeValue.h new file mode 100644 index 000000000..e43e86891 --- /dev/null +++ b/vanetza/asn1/its2/AccelerationMagnitudeValue.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _AccelerationMagnitudeValue_H_ +#define _AccelerationMagnitudeValue_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum AccelerationMagnitudeValue { + AccelerationMagnitudeValue_positiveOutOfRange = 160, + AccelerationMagnitudeValue_unavailable = 161 +} e_AccelerationMagnitudeValue; + +/* AccelerationMagnitudeValue */ +typedef long AccelerationMagnitudeValue_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_AccelerationMagnitudeValue_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_AccelerationMagnitudeValue; +asn_struct_free_f AccelerationMagnitudeValue_free; +asn_struct_print_f AccelerationMagnitudeValue_print; +asn_constr_check_f AccelerationMagnitudeValue_constraint; +ber_type_decoder_f AccelerationMagnitudeValue_decode_ber; +der_type_encoder_f AccelerationMagnitudeValue_encode_der; +xer_type_decoder_f AccelerationMagnitudeValue_decode_xer; +xer_type_encoder_f AccelerationMagnitudeValue_encode_xer; +jer_type_encoder_f AccelerationMagnitudeValue_encode_jer; +oer_type_decoder_f AccelerationMagnitudeValue_decode_oer; +oer_type_encoder_f AccelerationMagnitudeValue_encode_oer; +per_type_decoder_f AccelerationMagnitudeValue_decode_uper; +per_type_encoder_f AccelerationMagnitudeValue_encode_uper; +per_type_decoder_f AccelerationMagnitudeValue_decode_aper; +per_type_encoder_f AccelerationMagnitudeValue_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _AccelerationMagnitudeValue_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/AccelerationPolarWithZ.c b/vanetza/asn1/its2/AccelerationPolarWithZ.c new file mode 100644 index 000000000..6e910b146 --- /dev/null +++ b/vanetza/asn1/its2/AccelerationPolarWithZ.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AccelerationPolarWithZ.h" + +asn_TYPE_member_t asn_MBR_AccelerationPolarWithZ_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct AccelerationPolarWithZ, accelerationMagnitude), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AccelerationMagnitude, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "accelerationMagnitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct AccelerationPolarWithZ, accelerationDirection), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianAngle, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "accelerationDirection" + }, + { ATF_POINTER, 1, offsetof(struct AccelerationPolarWithZ, zAcceleration), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AccelerationComponent, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "zAcceleration" + }, +}; +static const int asn_MAP_AccelerationPolarWithZ_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_AccelerationPolarWithZ_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_AccelerationPolarWithZ_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* accelerationMagnitude */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* accelerationDirection */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* zAcceleration */ +}; +asn_SEQUENCE_specifics_t asn_SPC_AccelerationPolarWithZ_specs_1 = { + sizeof(struct AccelerationPolarWithZ), + offsetof(struct AccelerationPolarWithZ, _asn_ctx), + asn_MAP_AccelerationPolarWithZ_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_AccelerationPolarWithZ_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_AccelerationPolarWithZ = { + "AccelerationPolarWithZ", + "AccelerationPolarWithZ", + &asn_OP_SEQUENCE, + asn_DEF_AccelerationPolarWithZ_tags_1, + sizeof(asn_DEF_AccelerationPolarWithZ_tags_1) + /sizeof(asn_DEF_AccelerationPolarWithZ_tags_1[0]), /* 1 */ + asn_DEF_AccelerationPolarWithZ_tags_1, /* Same as above */ + sizeof(asn_DEF_AccelerationPolarWithZ_tags_1) + /sizeof(asn_DEF_AccelerationPolarWithZ_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_AccelerationPolarWithZ_1, + 3, /* Elements count */ + &asn_SPC_AccelerationPolarWithZ_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/AccelerationPolarWithZ.h b/vanetza/asn1/its2/AccelerationPolarWithZ.h new file mode 100644 index 000000000..be6fee9d3 --- /dev/null +++ b/vanetza/asn1/its2/AccelerationPolarWithZ.h @@ -0,0 +1,49 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _AccelerationPolarWithZ_H_ +#define _AccelerationPolarWithZ_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "AccelerationMagnitude.h" +#include "CartesianAngle.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct AccelerationComponent; + +/* AccelerationPolarWithZ */ +typedef struct AccelerationPolarWithZ { + AccelerationMagnitude_t accelerationMagnitude; + CartesianAngle_t accelerationDirection; + struct AccelerationComponent *zAcceleration; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} AccelerationPolarWithZ_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_AccelerationPolarWithZ; +extern asn_SEQUENCE_specifics_t asn_SPC_AccelerationPolarWithZ_specs_1; +extern asn_TYPE_member_t asn_MBR_AccelerationPolarWithZ_1[3]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "AccelerationComponent.h" + +#endif /* _AccelerationPolarWithZ_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/AccelerationValue.c b/vanetza/asn1/its2/AccelerationValue.c new file mode 100644 index 000000000..10e3bdc33 --- /dev/null +++ b/vanetza/asn1/its2/AccelerationValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AccelerationValue.h" + +int +AccelerationValue_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 >= -160L && value <= 161L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_AccelerationValue_constr_1 CC_NOTUSED = { + { 2, 0 } /* (-160..161) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_AccelerationValue_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, -160, 161 } /* (-160..161) */, + { 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_AccelerationValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_AccelerationValue = { + "AccelerationValue", + "AccelerationValue", + &asn_OP_NativeInteger, + asn_DEF_AccelerationValue_tags_1, + sizeof(asn_DEF_AccelerationValue_tags_1) + /sizeof(asn_DEF_AccelerationValue_tags_1[0]), /* 1 */ + asn_DEF_AccelerationValue_tags_1, /* Same as above */ + sizeof(asn_DEF_AccelerationValue_tags_1) + /sizeof(asn_DEF_AccelerationValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_AccelerationValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AccelerationValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + AccelerationValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/AccelerationValue.h b/vanetza/asn1/its2/AccelerationValue.h new file mode 100644 index 000000000..dac56791e --- /dev/null +++ b/vanetza/asn1/its2/AccelerationValue.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _AccelerationValue_H_ +#define _AccelerationValue_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum AccelerationValue { + AccelerationValue_negativeOutOfRange = -160, + AccelerationValue_positiveOutOfRange = 160, + AccelerationValue_unavailable = 161 +} e_AccelerationValue; + +/* AccelerationValue */ +typedef long AccelerationValue_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_AccelerationValue_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_AccelerationValue; +asn_struct_free_f AccelerationValue_free; +asn_struct_print_f AccelerationValue_print; +asn_constr_check_f AccelerationValue_constraint; +ber_type_decoder_f AccelerationValue_decode_ber; +der_type_encoder_f AccelerationValue_encode_der; +xer_type_decoder_f AccelerationValue_decode_xer; +xer_type_encoder_f AccelerationValue_encode_xer; +jer_type_encoder_f AccelerationValue_encode_jer; +oer_type_decoder_f AccelerationValue_decode_oer; +oer_type_encoder_f AccelerationValue_encode_oer; +per_type_decoder_f AccelerationValue_decode_uper; +per_type_encoder_f AccelerationValue_encode_uper; +per_type_decoder_f AccelerationValue_decode_aper; +per_type_encoder_f AccelerationValue_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _AccelerationValue_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/AccessTechnologyClass.c b/vanetza/asn1/its2/AccessTechnologyClass.c new file mode 100644 index 000000000..34ab8d1a5 --- /dev/null +++ b/vanetza/asn1/its2/AccessTechnologyClass.c @@ -0,0 +1,77 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AccessTechnologyClass.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_AccessTechnologyClass_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_AccessTechnologyClass_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_AccessTechnologyClass_value2enum_1[] = { + { 0, 3, "any" }, + { 1, 10, "itsg5Class" }, + { 2, 11, "ltev2xClass" }, + { 3, 10, "nrv2xClass" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_AccessTechnologyClass_enum2value_1[] = { + 0, /* any(0) */ + 1, /* itsg5Class(1) */ + 2, /* ltev2xClass(2) */ + 3 /* nrv2xClass(3) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_AccessTechnologyClass_specs_1 = { + asn_MAP_AccessTechnologyClass_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_AccessTechnologyClass_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_AccessTechnologyClass_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_AccessTechnologyClass = { + "AccessTechnologyClass", + "AccessTechnologyClass", + &asn_OP_NativeEnumerated, + asn_DEF_AccessTechnologyClass_tags_1, + sizeof(asn_DEF_AccessTechnologyClass_tags_1) + /sizeof(asn_DEF_AccessTechnologyClass_tags_1[0]), /* 1 */ + asn_DEF_AccessTechnologyClass_tags_1, /* Same as above */ + sizeof(asn_DEF_AccessTechnologyClass_tags_1) + /sizeof(asn_DEF_AccessTechnologyClass_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_AccessTechnologyClass_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AccessTechnologyClass_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_AccessTechnologyClass_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/AccessTechnologyClass.h b/vanetza/asn1/its2/AccessTechnologyClass.h new file mode 100644 index 000000000..8c2d8b70a --- /dev/null +++ b/vanetza/asn1/its2/AccessTechnologyClass.h @@ -0,0 +1,59 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _AccessTechnologyClass_H_ +#define _AccessTechnologyClass_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum AccessTechnologyClass { + AccessTechnologyClass_any = 0, + AccessTechnologyClass_itsg5Class = 1, + AccessTechnologyClass_ltev2xClass = 2, + AccessTechnologyClass_nrv2xClass = 3 + /* + * Enumeration is extensible + */ +} e_AccessTechnologyClass; + +/* AccessTechnologyClass */ +typedef long AccessTechnologyClass_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_AccessTechnologyClass_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_AccessTechnologyClass; +extern const asn_INTEGER_specifics_t asn_SPC_AccessTechnologyClass_specs_1; +asn_struct_free_f AccessTechnologyClass_free; +asn_struct_print_f AccessTechnologyClass_print; +asn_constr_check_f AccessTechnologyClass_constraint; +ber_type_decoder_f AccessTechnologyClass_decode_ber; +der_type_encoder_f AccessTechnologyClass_encode_der; +xer_type_decoder_f AccessTechnologyClass_decode_xer; +xer_type_encoder_f AccessTechnologyClass_encode_xer; +jer_type_encoder_f AccessTechnologyClass_encode_jer; +oer_type_decoder_f AccessTechnologyClass_decode_oer; +oer_type_encoder_f AccessTechnologyClass_encode_oer; +per_type_decoder_f AccessTechnologyClass_decode_uper; +per_type_encoder_f AccessTechnologyClass_encode_uper; +per_type_decoder_f AccessTechnologyClass_decode_aper; +per_type_encoder_f AccessTechnologyClass_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _AccessTechnologyClass_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/AccidentSubCauseCode.c b/vanetza/asn1/its2/AccidentSubCauseCode.c new file mode 100644 index 000000000..51041de63 --- /dev/null +++ b/vanetza/asn1/its2/AccidentSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AccidentSubCauseCode.h" + +int +AccidentSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_AccidentSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_AccidentSubCauseCode_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_AccidentSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_AccidentSubCauseCode = { + "AccidentSubCauseCode", + "AccidentSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_AccidentSubCauseCode_tags_1, + sizeof(asn_DEF_AccidentSubCauseCode_tags_1) + /sizeof(asn_DEF_AccidentSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_AccidentSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_AccidentSubCauseCode_tags_1) + /sizeof(asn_DEF_AccidentSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_AccidentSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AccidentSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + AccidentSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/AccidentSubCauseCode.h b/vanetza/asn1/its2/AccidentSubCauseCode.h new file mode 100644 index 000000000..6d55a138d --- /dev/null +++ b/vanetza/asn1/its2/AccidentSubCauseCode.h @@ -0,0 +1,60 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _AccidentSubCauseCode_H_ +#define _AccidentSubCauseCode_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum AccidentSubCauseCode { + AccidentSubCauseCode_unavailable = 0, + AccidentSubCauseCode_multiVehicleAccident = 1, + AccidentSubCauseCode_heavyAccident = 2, + AccidentSubCauseCode_accidentInvolvingLorry = 3, + AccidentSubCauseCode_accidentInvolvingBus = 4, + AccidentSubCauseCode_accidentInvolvingHazardousMaterials = 5, + AccidentSubCauseCode_accidentOnOppositeLane = 6, + AccidentSubCauseCode_unsecuredAccident = 7, + AccidentSubCauseCode_assistanceRequested = 8 +} e_AccidentSubCauseCode; + +/* AccidentSubCauseCode */ +typedef long AccidentSubCauseCode_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_AccidentSubCauseCode_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_AccidentSubCauseCode; +asn_struct_free_f AccidentSubCauseCode_free; +asn_struct_print_f AccidentSubCauseCode_print; +asn_constr_check_f AccidentSubCauseCode_constraint; +ber_type_decoder_f AccidentSubCauseCode_decode_ber; +der_type_encoder_f AccidentSubCauseCode_encode_der; +xer_type_decoder_f AccidentSubCauseCode_decode_xer; +xer_type_encoder_f AccidentSubCauseCode_encode_xer; +jer_type_encoder_f AccidentSubCauseCode_encode_jer; +oer_type_decoder_f AccidentSubCauseCode_decode_oer; +oer_type_encoder_f AccidentSubCauseCode_encode_oer; +per_type_decoder_f AccidentSubCauseCode_decode_uper; +per_type_encoder_f AccidentSubCauseCode_encode_uper; +per_type_decoder_f AccidentSubCauseCode_decode_aper; +per_type_encoder_f AccidentSubCauseCode_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _AccidentSubCauseCode_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ActionID.c b/vanetza/asn1/its2/ActionID.c new file mode 100644 index 000000000..9bc2e2d85 --- /dev/null +++ b/vanetza/asn1/its2/ActionID.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ActionID.h" + +static asn_TYPE_member_t asn_MBR_ActionID_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ActionID, originatingStationId), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StationID, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "originatingStationId" + }, + { ATF_NOFLAGS, 0, offsetof(struct ActionID, sequenceNumber), + (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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sequenceNumber" + }, +}; +static const ber_tlv_tag_t asn_DEF_ActionID_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ActionID_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* originatingStationId */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* sequenceNumber */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_ActionID_specs_1 = { + sizeof(struct ActionID), + offsetof(struct ActionID, _asn_ctx), + asn_MAP_ActionID_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_ActionID = { + "ActionID", + "ActionID", + &asn_OP_SEQUENCE, + asn_DEF_ActionID_tags_1, + sizeof(asn_DEF_ActionID_tags_1) + /sizeof(asn_DEF_ActionID_tags_1[0]), /* 1 */ + asn_DEF_ActionID_tags_1, /* Same as above */ + sizeof(asn_DEF_ActionID_tags_1) + /sizeof(asn_DEF_ActionID_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ActionID_1, + 2, /* Elements count */ + &asn_SPC_ActionID_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/ActionID.h b/vanetza/asn1/its2/ActionID.h new file mode 100644 index 000000000..572e0fec8 --- /dev/null +++ b/vanetza/asn1/its2/ActionID.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ActionID_H_ +#define _ActionID_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "StationID.h" +#include "SequenceNumber.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* ActionID */ +typedef struct ActionID { + StationID_t originatingStationId; + SequenceNumber_t sequenceNumber; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ActionID_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ActionID; + +#ifdef __cplusplus +} +#endif + +#endif /* _ActionID_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ActionId.c b/vanetza/asn1/its2/ActionId.c new file mode 100644 index 000000000..363e93a9e --- /dev/null +++ b/vanetza/asn1/its2/ActionId.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ActionId.h" + +asn_TYPE_member_t asn_MBR_ActionId_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ActionId, originatingStationId), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StationId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "originatingStationId" + }, + { ATF_NOFLAGS, 0, offsetof(struct ActionId, sequenceNumber), + (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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sequenceNumber" + }, +}; +static const ber_tlv_tag_t asn_DEF_ActionId_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ActionId_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* originatingStationId */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* sequenceNumber */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ActionId_specs_1 = { + sizeof(struct ActionId), + offsetof(struct ActionId, _asn_ctx), + asn_MAP_ActionId_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_ActionId = { + "ActionId", + "ActionId", + &asn_OP_SEQUENCE, + asn_DEF_ActionId_tags_1, + sizeof(asn_DEF_ActionId_tags_1) + /sizeof(asn_DEF_ActionId_tags_1[0]), /* 1 */ + asn_DEF_ActionId_tags_1, /* Same as above */ + sizeof(asn_DEF_ActionId_tags_1) + /sizeof(asn_DEF_ActionId_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ActionId_1, + 2, /* Elements count */ + &asn_SPC_ActionId_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/ActionId.h b/vanetza/asn1/its2/ActionId.h new file mode 100644 index 000000000..74f499481 --- /dev/null +++ b/vanetza/asn1/its2/ActionId.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ActionId_H_ +#define _ActionId_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "StationId.h" +#include "SequenceNumber.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* ActionId */ +typedef struct ActionId { + StationId_t originatingStationId; + SequenceNumber_t sequenceNumber; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ActionId_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ActionId; +extern asn_SEQUENCE_specifics_t asn_SPC_ActionId_specs_1; +extern asn_TYPE_member_t asn_MBR_ActionId_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _ActionId_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ActionIdList.c b/vanetza/asn1/its2/ActionIdList.c new file mode 100644 index 000000000..1efbb59d8 --- /dev/null +++ b/vanetza/asn1/its2/ActionIdList.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ActionIdList.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_ActionIdList_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ActionIdList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 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_ActionIdList_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_ActionId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_ActionIdList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_ActionIdList_specs_1 = { + sizeof(struct ActionIdList), + offsetof(struct ActionIdList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_ActionIdList = { + "ActionIdList", + "ActionIdList", + &asn_OP_SEQUENCE_OF, + asn_DEF_ActionIdList_tags_1, + sizeof(asn_DEF_ActionIdList_tags_1) + /sizeof(asn_DEF_ActionIdList_tags_1[0]), /* 1 */ + asn_DEF_ActionIdList_tags_1, /* Same as above */ + sizeof(asn_DEF_ActionIdList_tags_1) + /sizeof(asn_DEF_ActionIdList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_ActionIdList_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ActionIdList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_ActionIdList_1, + 1, /* Single element */ + &asn_SPC_ActionIdList_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/ActionIdList.h b/vanetza/asn1/its2/ActionIdList.h new file mode 100644 index 000000000..5ad41a7e9 --- /dev/null +++ b/vanetza/asn1/its2/ActionIdList.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ActionIdList_H_ +#define _ActionIdList_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct ActionId; + +/* ActionIdList */ +typedef struct ActionIdList { + A_SEQUENCE_OF(struct ActionId) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ActionIdList_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ActionIdList; +extern asn_SET_OF_specifics_t asn_SPC_ActionIdList_specs_1; +extern asn_TYPE_member_t asn_MBR_ActionIdList_1[1]; +extern asn_per_constraints_t asn_PER_type_ActionIdList_constr_1; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "ActionId.h" + +#endif /* _ActionIdList_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/AdverseWeatherCondition-AdhesionSubCauseCode.c b/vanetza/asn1/its2/AdverseWeatherCondition-AdhesionSubCauseCode.c new file mode 100644 index 000000000..adc170b5d --- /dev/null +++ b/vanetza/asn1/its2/AdverseWeatherCondition-AdhesionSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AdverseWeatherCondition-AdhesionSubCauseCode.h" + +int +AdverseWeatherCondition_AdhesionSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_AdverseWeatherCondition_AdhesionSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_AdverseWeatherCondition_AdhesionSubCauseCode_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_AdverseWeatherCondition_AdhesionSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_AdverseWeatherCondition_AdhesionSubCauseCode = { + "AdverseWeatherCondition-AdhesionSubCauseCode", + "AdverseWeatherCondition-AdhesionSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_AdverseWeatherCondition_AdhesionSubCauseCode_tags_1, + sizeof(asn_DEF_AdverseWeatherCondition_AdhesionSubCauseCode_tags_1) + /sizeof(asn_DEF_AdverseWeatherCondition_AdhesionSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_AdverseWeatherCondition_AdhesionSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_AdverseWeatherCondition_AdhesionSubCauseCode_tags_1) + /sizeof(asn_DEF_AdverseWeatherCondition_AdhesionSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_AdverseWeatherCondition_AdhesionSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AdverseWeatherCondition_AdhesionSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + AdverseWeatherCondition_AdhesionSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/AdverseWeatherCondition-AdhesionSubCauseCode.h b/vanetza/asn1/its2/AdverseWeatherCondition-AdhesionSubCauseCode.h new file mode 100644 index 000000000..e40a86de7 --- /dev/null +++ b/vanetza/asn1/its2/AdverseWeatherCondition-AdhesionSubCauseCode.h @@ -0,0 +1,62 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _AdverseWeatherCondition_AdhesionSubCauseCode_H_ +#define _AdverseWeatherCondition_AdhesionSubCauseCode_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum AdverseWeatherCondition_AdhesionSubCauseCode { + AdverseWeatherCondition_AdhesionSubCauseCode_unavailable = 0, + AdverseWeatherCondition_AdhesionSubCauseCode_heavyFrostOnRoad = 1, + AdverseWeatherCondition_AdhesionSubCauseCode_fuelOnRoad = 2, + AdverseWeatherCondition_AdhesionSubCauseCode_mudOnRoad = 3, + AdverseWeatherCondition_AdhesionSubCauseCode_snowOnRoad = 4, + AdverseWeatherCondition_AdhesionSubCauseCode_iceOnRoad = 5, + AdverseWeatherCondition_AdhesionSubCauseCode_blackIceOnRoad = 6, + AdverseWeatherCondition_AdhesionSubCauseCode_oilOnRoad = 7, + AdverseWeatherCondition_AdhesionSubCauseCode_looseChippings = 8, + AdverseWeatherCondition_AdhesionSubCauseCode_instantBlackIce = 9, + AdverseWeatherCondition_AdhesionSubCauseCode_roadsSalted = 10 +} e_AdverseWeatherCondition_AdhesionSubCauseCode; + +/* AdverseWeatherCondition-AdhesionSubCauseCode */ +typedef long AdverseWeatherCondition_AdhesionSubCauseCode_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_AdverseWeatherCondition_AdhesionSubCauseCode_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_AdverseWeatherCondition_AdhesionSubCauseCode; +asn_struct_free_f AdverseWeatherCondition_AdhesionSubCauseCode_free; +asn_struct_print_f AdverseWeatherCondition_AdhesionSubCauseCode_print; +asn_constr_check_f AdverseWeatherCondition_AdhesionSubCauseCode_constraint; +ber_type_decoder_f AdverseWeatherCondition_AdhesionSubCauseCode_decode_ber; +der_type_encoder_f AdverseWeatherCondition_AdhesionSubCauseCode_encode_der; +xer_type_decoder_f AdverseWeatherCondition_AdhesionSubCauseCode_decode_xer; +xer_type_encoder_f AdverseWeatherCondition_AdhesionSubCauseCode_encode_xer; +jer_type_encoder_f AdverseWeatherCondition_AdhesionSubCauseCode_encode_jer; +oer_type_decoder_f AdverseWeatherCondition_AdhesionSubCauseCode_decode_oer; +oer_type_encoder_f AdverseWeatherCondition_AdhesionSubCauseCode_encode_oer; +per_type_decoder_f AdverseWeatherCondition_AdhesionSubCauseCode_decode_uper; +per_type_encoder_f AdverseWeatherCondition_AdhesionSubCauseCode_encode_uper; +per_type_decoder_f AdverseWeatherCondition_AdhesionSubCauseCode_decode_aper; +per_type_encoder_f AdverseWeatherCondition_AdhesionSubCauseCode_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _AdverseWeatherCondition_AdhesionSubCauseCode_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode.c b/vanetza/asn1/its2/AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode.c new file mode 100644 index 000000000..ce3bbcc60 --- /dev/null +++ b/vanetza/asn1/its2/AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode.h" + +int +AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_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_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode = { + "AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode", + "AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_tags_1, + sizeof(asn_DEF_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_tags_1) + /sizeof(asn_DEF_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_tags_1) + /sizeof(asn_DEF_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode.h b/vanetza/asn1/its2/AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode.h new file mode 100644 index 000000000..ff1f3c6a8 --- /dev/null +++ b/vanetza/asn1/its2/AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode.h @@ -0,0 +1,58 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_H_ +#define _AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode { + AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_unavailable = 0, + AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_strongWinds = 1, + AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_damagingHail = 2, + AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_hurricane = 3, + AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_thunderstorm = 4, + AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_tornado = 5, + AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_blizzard = 6 +} e_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode; + +/* AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode */ +typedef long AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode; +asn_struct_free_f AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_free; +asn_struct_print_f AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_print; +asn_constr_check_f AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_constraint; +ber_type_decoder_f AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_decode_ber; +der_type_encoder_f AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_encode_der; +xer_type_decoder_f AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_decode_xer; +xer_type_encoder_f AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_encode_xer; +jer_type_encoder_f AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_encode_jer; +oer_type_decoder_f AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_decode_oer; +oer_type_encoder_f AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_encode_oer; +per_type_decoder_f AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_decode_uper; +per_type_encoder_f AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_encode_uper; +per_type_decoder_f AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_decode_aper; +per_type_encoder_f AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/AdverseWeatherCondition-PrecipitationSubCauseCode.c b/vanetza/asn1/its2/AdverseWeatherCondition-PrecipitationSubCauseCode.c new file mode 100644 index 000000000..5fec44321 --- /dev/null +++ b/vanetza/asn1/its2/AdverseWeatherCondition-PrecipitationSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AdverseWeatherCondition-PrecipitationSubCauseCode.h" + +int +AdverseWeatherCondition_PrecipitationSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_AdverseWeatherCondition_PrecipitationSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_AdverseWeatherCondition_PrecipitationSubCauseCode_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_AdverseWeatherCondition_PrecipitationSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_AdverseWeatherCondition_PrecipitationSubCauseCode = { + "AdverseWeatherCondition-PrecipitationSubCauseCode", + "AdverseWeatherCondition-PrecipitationSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_AdverseWeatherCondition_PrecipitationSubCauseCode_tags_1, + sizeof(asn_DEF_AdverseWeatherCondition_PrecipitationSubCauseCode_tags_1) + /sizeof(asn_DEF_AdverseWeatherCondition_PrecipitationSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_AdverseWeatherCondition_PrecipitationSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_AdverseWeatherCondition_PrecipitationSubCauseCode_tags_1) + /sizeof(asn_DEF_AdverseWeatherCondition_PrecipitationSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_AdverseWeatherCondition_PrecipitationSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AdverseWeatherCondition_PrecipitationSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + AdverseWeatherCondition_PrecipitationSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/AdverseWeatherCondition-PrecipitationSubCauseCode.h b/vanetza/asn1/its2/AdverseWeatherCondition-PrecipitationSubCauseCode.h new file mode 100644 index 000000000..da0b6b56e --- /dev/null +++ b/vanetza/asn1/its2/AdverseWeatherCondition-PrecipitationSubCauseCode.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _AdverseWeatherCondition_PrecipitationSubCauseCode_H_ +#define _AdverseWeatherCondition_PrecipitationSubCauseCode_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum AdverseWeatherCondition_PrecipitationSubCauseCode { + AdverseWeatherCondition_PrecipitationSubCauseCode_unavailable = 0, + AdverseWeatherCondition_PrecipitationSubCauseCode_heavyRain = 1, + AdverseWeatherCondition_PrecipitationSubCauseCode_heavySnowfall = 2, + AdverseWeatherCondition_PrecipitationSubCauseCode_softHail = 3 +} e_AdverseWeatherCondition_PrecipitationSubCauseCode; + +/* AdverseWeatherCondition-PrecipitationSubCauseCode */ +typedef long AdverseWeatherCondition_PrecipitationSubCauseCode_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_AdverseWeatherCondition_PrecipitationSubCauseCode_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_AdverseWeatherCondition_PrecipitationSubCauseCode; +asn_struct_free_f AdverseWeatherCondition_PrecipitationSubCauseCode_free; +asn_struct_print_f AdverseWeatherCondition_PrecipitationSubCauseCode_print; +asn_constr_check_f AdverseWeatherCondition_PrecipitationSubCauseCode_constraint; +ber_type_decoder_f AdverseWeatherCondition_PrecipitationSubCauseCode_decode_ber; +der_type_encoder_f AdverseWeatherCondition_PrecipitationSubCauseCode_encode_der; +xer_type_decoder_f AdverseWeatherCondition_PrecipitationSubCauseCode_decode_xer; +xer_type_encoder_f AdverseWeatherCondition_PrecipitationSubCauseCode_encode_xer; +jer_type_encoder_f AdverseWeatherCondition_PrecipitationSubCauseCode_encode_jer; +oer_type_decoder_f AdverseWeatherCondition_PrecipitationSubCauseCode_decode_oer; +oer_type_encoder_f AdverseWeatherCondition_PrecipitationSubCauseCode_encode_oer; +per_type_decoder_f AdverseWeatherCondition_PrecipitationSubCauseCode_decode_uper; +per_type_encoder_f AdverseWeatherCondition_PrecipitationSubCauseCode_encode_uper; +per_type_decoder_f AdverseWeatherCondition_PrecipitationSubCauseCode_decode_aper; +per_type_encoder_f AdverseWeatherCondition_PrecipitationSubCauseCode_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _AdverseWeatherCondition_PrecipitationSubCauseCode_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/AdverseWeatherCondition-VisibilitySubCauseCode.c b/vanetza/asn1/its2/AdverseWeatherCondition-VisibilitySubCauseCode.c new file mode 100644 index 000000000..e4cad0938 --- /dev/null +++ b/vanetza/asn1/its2/AdverseWeatherCondition-VisibilitySubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AdverseWeatherCondition-VisibilitySubCauseCode.h" + +int +AdverseWeatherCondition_VisibilitySubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_AdverseWeatherCondition_VisibilitySubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_AdverseWeatherCondition_VisibilitySubCauseCode_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_AdverseWeatherCondition_VisibilitySubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_AdverseWeatherCondition_VisibilitySubCauseCode = { + "AdverseWeatherCondition-VisibilitySubCauseCode", + "AdverseWeatherCondition-VisibilitySubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_AdverseWeatherCondition_VisibilitySubCauseCode_tags_1, + sizeof(asn_DEF_AdverseWeatherCondition_VisibilitySubCauseCode_tags_1) + /sizeof(asn_DEF_AdverseWeatherCondition_VisibilitySubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_AdverseWeatherCondition_VisibilitySubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_AdverseWeatherCondition_VisibilitySubCauseCode_tags_1) + /sizeof(asn_DEF_AdverseWeatherCondition_VisibilitySubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_AdverseWeatherCondition_VisibilitySubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AdverseWeatherCondition_VisibilitySubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + AdverseWeatherCondition_VisibilitySubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/AdverseWeatherCondition-VisibilitySubCauseCode.h b/vanetza/asn1/its2/AdverseWeatherCondition-VisibilitySubCauseCode.h new file mode 100644 index 000000000..19731ee05 --- /dev/null +++ b/vanetza/asn1/its2/AdverseWeatherCondition-VisibilitySubCauseCode.h @@ -0,0 +1,60 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _AdverseWeatherCondition_VisibilitySubCauseCode_H_ +#define _AdverseWeatherCondition_VisibilitySubCauseCode_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum AdverseWeatherCondition_VisibilitySubCauseCode { + AdverseWeatherCondition_VisibilitySubCauseCode_unavailable = 0, + AdverseWeatherCondition_VisibilitySubCauseCode_fog = 1, + AdverseWeatherCondition_VisibilitySubCauseCode_smoke = 2, + AdverseWeatherCondition_VisibilitySubCauseCode_heavySnowfall = 3, + AdverseWeatherCondition_VisibilitySubCauseCode_heavyRain = 4, + AdverseWeatherCondition_VisibilitySubCauseCode_heavyHail = 5, + AdverseWeatherCondition_VisibilitySubCauseCode_lowSunGlare = 6, + AdverseWeatherCondition_VisibilitySubCauseCode_sandstorms = 7, + AdverseWeatherCondition_VisibilitySubCauseCode_swarmsOfInsects = 8 +} e_AdverseWeatherCondition_VisibilitySubCauseCode; + +/* AdverseWeatherCondition-VisibilitySubCauseCode */ +typedef long AdverseWeatherCondition_VisibilitySubCauseCode_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_AdverseWeatherCondition_VisibilitySubCauseCode_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_AdverseWeatherCondition_VisibilitySubCauseCode; +asn_struct_free_f AdverseWeatherCondition_VisibilitySubCauseCode_free; +asn_struct_print_f AdverseWeatherCondition_VisibilitySubCauseCode_print; +asn_constr_check_f AdverseWeatherCondition_VisibilitySubCauseCode_constraint; +ber_type_decoder_f AdverseWeatherCondition_VisibilitySubCauseCode_decode_ber; +der_type_encoder_f AdverseWeatherCondition_VisibilitySubCauseCode_encode_der; +xer_type_decoder_f AdverseWeatherCondition_VisibilitySubCauseCode_decode_xer; +xer_type_encoder_f AdverseWeatherCondition_VisibilitySubCauseCode_encode_xer; +jer_type_encoder_f AdverseWeatherCondition_VisibilitySubCauseCode_encode_jer; +oer_type_decoder_f AdverseWeatherCondition_VisibilitySubCauseCode_decode_oer; +oer_type_encoder_f AdverseWeatherCondition_VisibilitySubCauseCode_encode_oer; +per_type_decoder_f AdverseWeatherCondition_VisibilitySubCauseCode_decode_uper; +per_type_encoder_f AdverseWeatherCondition_VisibilitySubCauseCode_encode_uper; +per_type_decoder_f AdverseWeatherCondition_VisibilitySubCauseCode_decode_aper; +per_type_encoder_f AdverseWeatherCondition_VisibilitySubCauseCode_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _AdverseWeatherCondition_VisibilitySubCauseCode_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/AirHumidity.c b/vanetza/asn1/its2/AirHumidity.c new file mode 100644 index 000000000..40f15554c --- /dev/null +++ b/vanetza/asn1/its2/AirHumidity.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AirHumidity.h" + +int +AirHumidity_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 <= 1001L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_AirHumidity_constr_1 CC_NOTUSED = { + { 2, 1 } /* (1..1001) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_AirHumidity_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 1, 1001 } /* (1..1001) */, + { 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_AirHumidity_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_AirHumidity = { + "AirHumidity", + "AirHumidity", + &asn_OP_NativeInteger, + asn_DEF_AirHumidity_tags_1, + sizeof(asn_DEF_AirHumidity_tags_1) + /sizeof(asn_DEF_AirHumidity_tags_1[0]), /* 1 */ + asn_DEF_AirHumidity_tags_1, /* Same as above */ + sizeof(asn_DEF_AirHumidity_tags_1) + /sizeof(asn_DEF_AirHumidity_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_AirHumidity_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AirHumidity_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + AirHumidity_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/AirHumidity.h b/vanetza/asn1/its2/AirHumidity.h new file mode 100644 index 000000000..2dbba0009 --- /dev/null +++ b/vanetza/asn1/its2/AirHumidity.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _AirHumidity_H_ +#define _AirHumidity_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum AirHumidity { + AirHumidity_oneHundredPercent = 1000, + AirHumidity_unavailable = 1001 +} e_AirHumidity; + +/* AirHumidity */ +typedef long AirHumidity_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_AirHumidity; +asn_struct_free_f AirHumidity_free; +asn_struct_print_f AirHumidity_print; +asn_constr_check_f AirHumidity_constraint; +ber_type_decoder_f AirHumidity_decode_ber; +der_type_encoder_f AirHumidity_encode_der; +xer_type_decoder_f AirHumidity_decode_xer; +xer_type_encoder_f AirHumidity_encode_xer; +jer_type_encoder_f AirHumidity_encode_jer; +oer_type_decoder_f AirHumidity_decode_oer; +oer_type_encoder_f AirHumidity_encode_oer; +per_type_decoder_f AirHumidity_decode_uper; +per_type_encoder_f AirHumidity_encode_uper; +per_type_decoder_f AirHumidity_decode_aper; +per_type_encoder_f AirHumidity_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _AirHumidity_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/AlacarteContainer.c b/vanetza/asn1/its2/AlacarteContainer.c new file mode 100644 index 000000000..3e1478e4a --- /dev/null +++ b/vanetza/asn1/its2/AlacarteContainer.c @@ -0,0 +1,179 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "DENM-PDU-Description" + * found in "asn1/TS103831v211-DENM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AlacarteContainer.h" + +asn_TYPE_member_t asn_MBR_AlacarteContainer_1[] = { + { ATF_POINTER, 6, offsetof(struct AlacarteContainer, lanePosition), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LanePosition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lanePosition" + }, + { ATF_POINTER, 5, offsetof(struct AlacarteContainer, impactReduction), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ImpactReductionContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "impactReduction" + }, + { ATF_POINTER, 4, offsetof(struct AlacarteContainer, externalTemperature), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Temperature, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "externalTemperature" + }, + { ATF_POINTER, 3, offsetof(struct AlacarteContainer, roadWorks), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RoadWorksContainerExtended, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "roadWorks" + }, + { ATF_POINTER, 2, offsetof(struct AlacarteContainer, positioningSolution), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PositioningSolutionType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "positioningSolution" + }, + { ATF_POINTER, 1, offsetof(struct AlacarteContainer, stationaryVehicle), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StationaryVehicleContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "stationaryVehicle" + }, +}; +static const int asn_MAP_AlacarteContainer_oms_1[] = { 0, 1, 2, 3, 4, 5 }; +static const ber_tlv_tag_t asn_DEF_AlacarteContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_AlacarteContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* lanePosition */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* impactReduction */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* externalTemperature */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* roadWorks */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* positioningSolution */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* stationaryVehicle */ +}; +asn_SEQUENCE_specifics_t asn_SPC_AlacarteContainer_specs_1 = { + sizeof(struct AlacarteContainer), + offsetof(struct AlacarteContainer, _asn_ctx), + asn_MAP_AlacarteContainer_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_AlacarteContainer_oms_1, /* Optional members */ + 6, 0, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_AlacarteContainer = { + "AlacarteContainer", + "AlacarteContainer", + &asn_OP_SEQUENCE, + asn_DEF_AlacarteContainer_tags_1, + sizeof(asn_DEF_AlacarteContainer_tags_1) + /sizeof(asn_DEF_AlacarteContainer_tags_1[0]), /* 1 */ + asn_DEF_AlacarteContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_AlacarteContainer_tags_1) + /sizeof(asn_DEF_AlacarteContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_AlacarteContainer_1, + 6, /* Elements count */ + &asn_SPC_AlacarteContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/AlacarteContainer.h b/vanetza/asn1/its2/AlacarteContainer.h new file mode 100644 index 000000000..7072c8e15 --- /dev/null +++ b/vanetza/asn1/its2/AlacarteContainer.h @@ -0,0 +1,61 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "DENM-PDU-Description" + * found in "asn1/TS103831v211-DENM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _AlacarteContainer_H_ +#define _AlacarteContainer_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "LanePosition.h" +#include "Temperature.h" +#include "PositioningSolutionType.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct ImpactReductionContainer; +struct RoadWorksContainerExtended; +struct StationaryVehicleContainer; + +/* AlacarteContainer */ +typedef struct AlacarteContainer { + LanePosition_t *lanePosition; /* OPTIONAL */ + struct ImpactReductionContainer *impactReduction; /* OPTIONAL */ + Temperature_t *externalTemperature; /* OPTIONAL */ + struct RoadWorksContainerExtended *roadWorks; /* OPTIONAL */ + PositioningSolutionType_t *positioningSolution; /* OPTIONAL */ + struct StationaryVehicleContainer *stationaryVehicle; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} AlacarteContainer_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_AlacarteContainer; +extern asn_SEQUENCE_specifics_t asn_SPC_AlacarteContainer_specs_1; +extern asn_TYPE_member_t asn_MBR_AlacarteContainer_1[6]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "ImpactReductionContainer.h" +#include "RoadWorksContainerExtended.h" +#include "StationaryVehicleContainer.h" + +#endif /* _AlacarteContainer_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/Altitude.c b/vanetza/asn1/its2/Altitude.c new file mode 100644 index 000000000..15022ac9d --- /dev/null +++ b/vanetza/asn1/its2/Altitude.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Altitude.h" + +asn_TYPE_member_t asn_MBR_Altitude_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Altitude, altitudeValue), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AltitudeValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "altitudeValue" + }, + { ATF_NOFLAGS, 0, offsetof(struct Altitude, altitudeConfidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AltitudeConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "altitudeConfidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_Altitude_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Altitude_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* altitudeValue */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* altitudeConfidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Altitude_specs_1 = { + sizeof(struct Altitude), + offsetof(struct Altitude, _asn_ctx), + asn_MAP_Altitude_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_Altitude = { + "Altitude", + "Altitude", + &asn_OP_SEQUENCE, + asn_DEF_Altitude_tags_1, + sizeof(asn_DEF_Altitude_tags_1) + /sizeof(asn_DEF_Altitude_tags_1[0]), /* 1 */ + asn_DEF_Altitude_tags_1, /* Same as above */ + sizeof(asn_DEF_Altitude_tags_1) + /sizeof(asn_DEF_Altitude_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Altitude_1, + 2, /* Elements count */ + &asn_SPC_Altitude_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/Altitude.h b/vanetza/asn1/its2/Altitude.h new file mode 100644 index 000000000..3aba33a7b --- /dev/null +++ b/vanetza/asn1/its2/Altitude.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _Altitude_H_ +#define _Altitude_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "AltitudeValue.h" +#include "AltitudeConfidence.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Altitude */ +typedef struct Altitude { + AltitudeValue_t altitudeValue; + AltitudeConfidence_t altitudeConfidence; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Altitude_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Altitude; +extern asn_SEQUENCE_specifics_t asn_SPC_Altitude_specs_1; +extern asn_TYPE_member_t asn_MBR_Altitude_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Altitude_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/AltitudeConfidence.c b/vanetza/asn1/its2/AltitudeConfidence.c new file mode 100644 index 000000000..33b5b547a --- /dev/null +++ b/vanetza/asn1/its2/AltitudeConfidence.c @@ -0,0 +1,99 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AltitudeConfidence.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_AltitudeConfidence_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_AltitudeConfidence_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_AltitudeConfidence_value2enum_1[] = { + { 0, 10, "alt-000-01" }, + { 1, 10, "alt-000-02" }, + { 2, 10, "alt-000-05" }, + { 3, 10, "alt-000-10" }, + { 4, 10, "alt-000-20" }, + { 5, 10, "alt-000-50" }, + { 6, 10, "alt-001-00" }, + { 7, 10, "alt-002-00" }, + { 8, 10, "alt-005-00" }, + { 9, 10, "alt-010-00" }, + { 10, 10, "alt-020-00" }, + { 11, 10, "alt-050-00" }, + { 12, 10, "alt-100-00" }, + { 13, 10, "alt-200-00" }, + { 14, 10, "outOfRange" }, + { 15, 11, "unavailable" } +}; +static const unsigned int asn_MAP_AltitudeConfidence_enum2value_1[] = { + 0, /* alt-000-01(0) */ + 1, /* alt-000-02(1) */ + 2, /* alt-000-05(2) */ + 3, /* alt-000-10(3) */ + 4, /* alt-000-20(4) */ + 5, /* alt-000-50(5) */ + 6, /* alt-001-00(6) */ + 7, /* alt-002-00(7) */ + 8, /* alt-005-00(8) */ + 9, /* alt-010-00(9) */ + 10, /* alt-020-00(10) */ + 11, /* alt-050-00(11) */ + 12, /* alt-100-00(12) */ + 13, /* alt-200-00(13) */ + 14, /* outOfRange(14) */ + 15 /* unavailable(15) */ +}; +const asn_INTEGER_specifics_t asn_SPC_AltitudeConfidence_specs_1 = { + asn_MAP_AltitudeConfidence_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_AltitudeConfidence_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_AltitudeConfidence_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_AltitudeConfidence = { + "AltitudeConfidence", + "AltitudeConfidence", + &asn_OP_NativeEnumerated, + asn_DEF_AltitudeConfidence_tags_1, + sizeof(asn_DEF_AltitudeConfidence_tags_1) + /sizeof(asn_DEF_AltitudeConfidence_tags_1[0]), /* 1 */ + asn_DEF_AltitudeConfidence_tags_1, /* Same as above */ + sizeof(asn_DEF_AltitudeConfidence_tags_1) + /sizeof(asn_DEF_AltitudeConfidence_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_AltitudeConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AltitudeConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_AltitudeConfidence_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/AltitudeConfidence.h b/vanetza/asn1/its2/AltitudeConfidence.h new file mode 100644 index 000000000..712869d42 --- /dev/null +++ b/vanetza/asn1/its2/AltitudeConfidence.h @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _AltitudeConfidence_H_ +#define _AltitudeConfidence_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum AltitudeConfidence { + AltitudeConfidence_alt_000_01 = 0, + AltitudeConfidence_alt_000_02 = 1, + AltitudeConfidence_alt_000_05 = 2, + AltitudeConfidence_alt_000_10 = 3, + AltitudeConfidence_alt_000_20 = 4, + AltitudeConfidence_alt_000_50 = 5, + AltitudeConfidence_alt_001_00 = 6, + AltitudeConfidence_alt_002_00 = 7, + AltitudeConfidence_alt_005_00 = 8, + AltitudeConfidence_alt_010_00 = 9, + AltitudeConfidence_alt_020_00 = 10, + AltitudeConfidence_alt_050_00 = 11, + AltitudeConfidence_alt_100_00 = 12, + AltitudeConfidence_alt_200_00 = 13, + AltitudeConfidence_outOfRange = 14, + AltitudeConfidence_unavailable = 15 +} e_AltitudeConfidence; + +/* AltitudeConfidence */ +typedef long AltitudeConfidence_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_AltitudeConfidence_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_AltitudeConfidence; +extern const asn_INTEGER_specifics_t asn_SPC_AltitudeConfidence_specs_1; +asn_struct_free_f AltitudeConfidence_free; +asn_struct_print_f AltitudeConfidence_print; +asn_constr_check_f AltitudeConfidence_constraint; +ber_type_decoder_f AltitudeConfidence_decode_ber; +der_type_encoder_f AltitudeConfidence_encode_der; +xer_type_decoder_f AltitudeConfidence_decode_xer; +xer_type_encoder_f AltitudeConfidence_encode_xer; +jer_type_encoder_f AltitudeConfidence_encode_jer; +oer_type_decoder_f AltitudeConfidence_decode_oer; +oer_type_encoder_f AltitudeConfidence_encode_oer; +per_type_decoder_f AltitudeConfidence_decode_uper; +per_type_encoder_f AltitudeConfidence_encode_uper; +per_type_decoder_f AltitudeConfidence_decode_aper; +per_type_encoder_f AltitudeConfidence_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _AltitudeConfidence_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/AltitudeValue.c b/vanetza/asn1/its2/AltitudeValue.c new file mode 100644 index 000000000..c9379a7b1 --- /dev/null +++ b/vanetza/asn1/its2/AltitudeValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AltitudeValue.h" + +int +AltitudeValue_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 >= -100000L && value <= 800001L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_AltitudeValue_constr_1 CC_NOTUSED = { + { 4, 0 } /* (-100000..800001) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_AltitudeValue_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 20, -1, -100000, 800001 } /* (-100000..800001) */, + { 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_AltitudeValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_AltitudeValue = { + "AltitudeValue", + "AltitudeValue", + &asn_OP_NativeInteger, + asn_DEF_AltitudeValue_tags_1, + sizeof(asn_DEF_AltitudeValue_tags_1) + /sizeof(asn_DEF_AltitudeValue_tags_1[0]), /* 1 */ + asn_DEF_AltitudeValue_tags_1, /* Same as above */ + sizeof(asn_DEF_AltitudeValue_tags_1) + /sizeof(asn_DEF_AltitudeValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_AltitudeValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AltitudeValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + AltitudeValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/AltitudeValue.h b/vanetza/asn1/its2/AltitudeValue.h new file mode 100644 index 000000000..e4456b8c8 --- /dev/null +++ b/vanetza/asn1/its2/AltitudeValue.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _AltitudeValue_H_ +#define _AltitudeValue_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum AltitudeValue { + AltitudeValue_negativeOutOfRange = -100000, + AltitudeValue_postiveOutOfRange = 800000, + AltitudeValue_unavailable = 800001 +} e_AltitudeValue; + +/* AltitudeValue */ +typedef long AltitudeValue_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_AltitudeValue_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_AltitudeValue; +asn_struct_free_f AltitudeValue_free; +asn_struct_print_f AltitudeValue_print; +asn_constr_check_f AltitudeValue_constraint; +ber_type_decoder_f AltitudeValue_decode_ber; +der_type_encoder_f AltitudeValue_encode_der; +xer_type_decoder_f AltitudeValue_decode_xer; +xer_type_encoder_f AltitudeValue_encode_xer; +jer_type_encoder_f AltitudeValue_encode_jer; +oer_type_decoder_f AltitudeValue_decode_oer; +oer_type_encoder_f AltitudeValue_encode_oer; +per_type_decoder_f AltitudeValue_decode_uper; +per_type_encoder_f AltitudeValue_encode_uper; +per_type_decoder_f AltitudeValue_decode_aper; +per_type_encoder_f AltitudeValue_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _AltitudeValue_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/AngleConfidence.c b/vanetza/asn1/its2/AngleConfidence.c new file mode 100644 index 000000000..8a9c252db --- /dev/null +++ b/vanetza/asn1/its2/AngleConfidence.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AngleConfidence.h" + +int +AngleConfidence_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 <= 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_AngleConfidence_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..127) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_AngleConfidence_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 1, 127 } /* (1..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_AngleConfidence_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_AngleConfidence = { + "AngleConfidence", + "AngleConfidence", + &asn_OP_NativeInteger, + asn_DEF_AngleConfidence_tags_1, + sizeof(asn_DEF_AngleConfidence_tags_1) + /sizeof(asn_DEF_AngleConfidence_tags_1[0]), /* 1 */ + asn_DEF_AngleConfidence_tags_1, /* Same as above */ + sizeof(asn_DEF_AngleConfidence_tags_1) + /sizeof(asn_DEF_AngleConfidence_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_AngleConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AngleConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + AngleConfidence_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/AngleConfidence.h b/vanetza/asn1/its2/AngleConfidence.h new file mode 100644 index 000000000..9147e90bf --- /dev/null +++ b/vanetza/asn1/its2/AngleConfidence.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _AngleConfidence_H_ +#define _AngleConfidence_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum AngleConfidence { + AngleConfidence_outOfRange = 126, + AngleConfidence_unavailable = 127 +} e_AngleConfidence; + +/* AngleConfidence */ +typedef long AngleConfidence_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_AngleConfidence_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_AngleConfidence; +asn_struct_free_f AngleConfidence_free; +asn_struct_print_f AngleConfidence_print; +asn_constr_check_f AngleConfidence_constraint; +ber_type_decoder_f AngleConfidence_decode_ber; +der_type_encoder_f AngleConfidence_encode_der; +xer_type_decoder_f AngleConfidence_decode_xer; +xer_type_encoder_f AngleConfidence_encode_xer; +jer_type_encoder_f AngleConfidence_encode_jer; +oer_type_decoder_f AngleConfidence_decode_oer; +oer_type_encoder_f AngleConfidence_encode_oer; +per_type_decoder_f AngleConfidence_decode_uper; +per_type_encoder_f AngleConfidence_encode_uper; +per_type_decoder_f AngleConfidence_decode_aper; +per_type_encoder_f AngleConfidence_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _AngleConfidence_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/AngularAccelerationConfidence.c b/vanetza/asn1/its2/AngularAccelerationConfidence.c new file mode 100644 index 000000000..0c86d0249 --- /dev/null +++ b/vanetza/asn1/its2/AngularAccelerationConfidence.c @@ -0,0 +1,83 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AngularAccelerationConfidence.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_AngularAccelerationConfidence_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_AngularAccelerationConfidence_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 asn_INTEGER_enum_map_t asn_MAP_AngularAccelerationConfidence_value2enum_1[] = { + { 0, 16, "degSecSquared-01" }, + { 1, 16, "degSecSquared-02" }, + { 2, 16, "degSecSquared-05" }, + { 3, 16, "degSecSquared-10" }, + { 4, 16, "degSecSquared-20" }, + { 5, 16, "degSecSquared-50" }, + { 6, 10, "outOfRange" }, + { 7, 11, "unavailable" } +}; +static const unsigned int asn_MAP_AngularAccelerationConfidence_enum2value_1[] = { + 0, /* degSecSquared-01(0) */ + 1, /* degSecSquared-02(1) */ + 2, /* degSecSquared-05(2) */ + 3, /* degSecSquared-10(3) */ + 4, /* degSecSquared-20(4) */ + 5, /* degSecSquared-50(5) */ + 6, /* outOfRange(6) */ + 7 /* unavailable(7) */ +}; +const asn_INTEGER_specifics_t asn_SPC_AngularAccelerationConfidence_specs_1 = { + asn_MAP_AngularAccelerationConfidence_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_AngularAccelerationConfidence_enum2value_1, /* 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_AngularAccelerationConfidence_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_AngularAccelerationConfidence = { + "AngularAccelerationConfidence", + "AngularAccelerationConfidence", + &asn_OP_NativeEnumerated, + asn_DEF_AngularAccelerationConfidence_tags_1, + sizeof(asn_DEF_AngularAccelerationConfidence_tags_1) + /sizeof(asn_DEF_AngularAccelerationConfidence_tags_1[0]), /* 1 */ + asn_DEF_AngularAccelerationConfidence_tags_1, /* Same as above */ + sizeof(asn_DEF_AngularAccelerationConfidence_tags_1) + /sizeof(asn_DEF_AngularAccelerationConfidence_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_AngularAccelerationConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AngularAccelerationConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_AngularAccelerationConfidence_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/AngularAccelerationConfidence.h b/vanetza/asn1/its2/AngularAccelerationConfidence.h new file mode 100644 index 000000000..77165a43f --- /dev/null +++ b/vanetza/asn1/its2/AngularAccelerationConfidence.h @@ -0,0 +1,60 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _AngularAccelerationConfidence_H_ +#define _AngularAccelerationConfidence_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum AngularAccelerationConfidence { + AngularAccelerationConfidence_degSecSquared_01 = 0, + AngularAccelerationConfidence_degSecSquared_02 = 1, + AngularAccelerationConfidence_degSecSquared_05 = 2, + AngularAccelerationConfidence_degSecSquared_10 = 3, + AngularAccelerationConfidence_degSecSquared_20 = 4, + AngularAccelerationConfidence_degSecSquared_50 = 5, + AngularAccelerationConfidence_outOfRange = 6, + AngularAccelerationConfidence_unavailable = 7 +} e_AngularAccelerationConfidence; + +/* AngularAccelerationConfidence */ +typedef long AngularAccelerationConfidence_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_AngularAccelerationConfidence_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_AngularAccelerationConfidence; +extern const asn_INTEGER_specifics_t asn_SPC_AngularAccelerationConfidence_specs_1; +asn_struct_free_f AngularAccelerationConfidence_free; +asn_struct_print_f AngularAccelerationConfidence_print; +asn_constr_check_f AngularAccelerationConfidence_constraint; +ber_type_decoder_f AngularAccelerationConfidence_decode_ber; +der_type_encoder_f AngularAccelerationConfidence_encode_der; +xer_type_decoder_f AngularAccelerationConfidence_decode_xer; +xer_type_encoder_f AngularAccelerationConfidence_encode_xer; +jer_type_encoder_f AngularAccelerationConfidence_encode_jer; +oer_type_decoder_f AngularAccelerationConfidence_decode_oer; +oer_type_encoder_f AngularAccelerationConfidence_encode_oer; +per_type_decoder_f AngularAccelerationConfidence_decode_uper; +per_type_encoder_f AngularAccelerationConfidence_encode_uper; +per_type_decoder_f AngularAccelerationConfidence_decode_aper; +per_type_encoder_f AngularAccelerationConfidence_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _AngularAccelerationConfidence_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/AngularSpeedConfidence.c b/vanetza/asn1/its2/AngularSpeedConfidence.c new file mode 100644 index 000000000..2a450f768 --- /dev/null +++ b/vanetza/asn1/its2/AngularSpeedConfidence.c @@ -0,0 +1,83 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AngularSpeedConfidence.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_AngularSpeedConfidence_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_AngularSpeedConfidence_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 asn_INTEGER_enum_map_t asn_MAP_AngularSpeedConfidence_value2enum_1[] = { + { 0, 9, "degSec-01" }, + { 1, 9, "degSec-02" }, + { 2, 9, "degSec-05" }, + { 3, 9, "degSec-10" }, + { 4, 9, "degSec-20" }, + { 5, 9, "degSec-50" }, + { 6, 10, "outOfRange" }, + { 7, 11, "unavailable" } +}; +static const unsigned int asn_MAP_AngularSpeedConfidence_enum2value_1[] = { + 0, /* degSec-01(0) */ + 1, /* degSec-02(1) */ + 2, /* degSec-05(2) */ + 3, /* degSec-10(3) */ + 4, /* degSec-20(4) */ + 5, /* degSec-50(5) */ + 6, /* outOfRange(6) */ + 7 /* unavailable(7) */ +}; +const asn_INTEGER_specifics_t asn_SPC_AngularSpeedConfidence_specs_1 = { + asn_MAP_AngularSpeedConfidence_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_AngularSpeedConfidence_enum2value_1, /* 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_AngularSpeedConfidence_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_AngularSpeedConfidence = { + "AngularSpeedConfidence", + "AngularSpeedConfidence", + &asn_OP_NativeEnumerated, + asn_DEF_AngularSpeedConfidence_tags_1, + sizeof(asn_DEF_AngularSpeedConfidence_tags_1) + /sizeof(asn_DEF_AngularSpeedConfidence_tags_1[0]), /* 1 */ + asn_DEF_AngularSpeedConfidence_tags_1, /* Same as above */ + sizeof(asn_DEF_AngularSpeedConfidence_tags_1) + /sizeof(asn_DEF_AngularSpeedConfidence_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_AngularSpeedConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AngularSpeedConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_AngularSpeedConfidence_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/AngularSpeedConfidence.h b/vanetza/asn1/its2/AngularSpeedConfidence.h new file mode 100644 index 000000000..b720365b3 --- /dev/null +++ b/vanetza/asn1/its2/AngularSpeedConfidence.h @@ -0,0 +1,60 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _AngularSpeedConfidence_H_ +#define _AngularSpeedConfidence_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum AngularSpeedConfidence { + AngularSpeedConfidence_degSec_01 = 0, + AngularSpeedConfidence_degSec_02 = 1, + AngularSpeedConfidence_degSec_05 = 2, + AngularSpeedConfidence_degSec_10 = 3, + AngularSpeedConfidence_degSec_20 = 4, + AngularSpeedConfidence_degSec_50 = 5, + AngularSpeedConfidence_outOfRange = 6, + AngularSpeedConfidence_unavailable = 7 +} e_AngularSpeedConfidence; + +/* AngularSpeedConfidence */ +typedef long AngularSpeedConfidence_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_AngularSpeedConfidence_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_AngularSpeedConfidence; +extern const asn_INTEGER_specifics_t asn_SPC_AngularSpeedConfidence_specs_1; +asn_struct_free_f AngularSpeedConfidence_free; +asn_struct_print_f AngularSpeedConfidence_print; +asn_constr_check_f AngularSpeedConfidence_constraint; +ber_type_decoder_f AngularSpeedConfidence_decode_ber; +der_type_encoder_f AngularSpeedConfidence_encode_der; +xer_type_decoder_f AngularSpeedConfidence_decode_xer; +xer_type_encoder_f AngularSpeedConfidence_encode_xer; +jer_type_encoder_f AngularSpeedConfidence_encode_jer; +oer_type_decoder_f AngularSpeedConfidence_decode_oer; +oer_type_encoder_f AngularSpeedConfidence_encode_oer; +per_type_decoder_f AngularSpeedConfidence_decode_uper; +per_type_encoder_f AngularSpeedConfidence_encode_uper; +per_type_decoder_f AngularSpeedConfidence_decode_aper; +per_type_encoder_f AngularSpeedConfidence_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _AngularSpeedConfidence_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/AxlesCount.c b/vanetza/asn1/its2/AxlesCount.c new file mode 100644 index 000000000..37eb989c8 --- /dev/null +++ b/vanetza/asn1/its2/AxlesCount.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "AxlesCount.h" + +int +AxlesCount_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 >= 2L && value <= 1002L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_AxlesCount_constr_1 CC_NOTUSED = { + { 2, 1 } /* (2..1002) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_AxlesCount_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, 2, 1002 } /* (2..1002) */, + { 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_AxlesCount_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_AxlesCount = { + "AxlesCount", + "AxlesCount", + &asn_OP_NativeInteger, + asn_DEF_AxlesCount_tags_1, + sizeof(asn_DEF_AxlesCount_tags_1) + /sizeof(asn_DEF_AxlesCount_tags_1[0]), /* 1 */ + asn_DEF_AxlesCount_tags_1, /* Same as above */ + sizeof(asn_DEF_AxlesCount_tags_1) + /sizeof(asn_DEF_AxlesCount_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_AxlesCount_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_AxlesCount_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + AxlesCount_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/AxlesCount.h b/vanetza/asn1/its2/AxlesCount.h new file mode 100644 index 000000000..0cfacfa6b --- /dev/null +++ b/vanetza/asn1/its2/AxlesCount.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _AxlesCount_H_ +#define _AxlesCount_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum AxlesCount { + AxlesCount_outOfRange = 1001, + AxlesCount_unavailable = 1002 +} e_AxlesCount; + +/* AxlesCount */ +typedef long AxlesCount_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_AxlesCount; +asn_struct_free_f AxlesCount_free; +asn_struct_print_f AxlesCount_print; +asn_constr_check_f AxlesCount_constraint; +ber_type_decoder_f AxlesCount_decode_ber; +der_type_encoder_f AxlesCount_encode_der; +xer_type_decoder_f AxlesCount_decode_xer; +xer_type_encoder_f AxlesCount_encode_xer; +jer_type_encoder_f AxlesCount_encode_jer; +oer_type_decoder_f AxlesCount_decode_oer; +oer_type_encoder_f AxlesCount_encode_oer; +per_type_decoder_f AxlesCount_decode_uper; +per_type_encoder_f AxlesCount_encode_uper; +per_type_decoder_f AxlesCount_decode_aper; +per_type_encoder_f AxlesCount_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _AxlesCount_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/BarometricPressure.c b/vanetza/asn1/its2/BarometricPressure.c new file mode 100644 index 000000000..3fb348d7b --- /dev/null +++ b/vanetza/asn1/its2/BarometricPressure.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "BarometricPressure.h" + +int +BarometricPressure_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 >= 2999L && value <= 12002L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_BarometricPressure_constr_1 CC_NOTUSED = { + { 2, 1 } /* (2999..12002) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_BarometricPressure_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 2999, 12002 } /* (2999..12002) */, + { 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_BarometricPressure_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_BarometricPressure = { + "BarometricPressure", + "BarometricPressure", + &asn_OP_NativeInteger, + asn_DEF_BarometricPressure_tags_1, + sizeof(asn_DEF_BarometricPressure_tags_1) + /sizeof(asn_DEF_BarometricPressure_tags_1[0]), /* 1 */ + asn_DEF_BarometricPressure_tags_1, /* Same as above */ + sizeof(asn_DEF_BarometricPressure_tags_1) + /sizeof(asn_DEF_BarometricPressure_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_BarometricPressure_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_BarometricPressure_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + BarometricPressure_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/BarometricPressure.h b/vanetza/asn1/its2/BarometricPressure.h new file mode 100644 index 000000000..6d243efed --- /dev/null +++ b/vanetza/asn1/its2/BarometricPressure.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _BarometricPressure_H_ +#define _BarometricPressure_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum BarometricPressure { + BarometricPressure_outOfRangelower = 2999, + BarometricPressure_outOfRangeUpper = 12001, + BarometricPressure_unavailable = 12002 +} e_BarometricPressure; + +/* BarometricPressure */ +typedef long BarometricPressure_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_BarometricPressure; +asn_struct_free_f BarometricPressure_free; +asn_struct_print_f BarometricPressure_print; +asn_constr_check_f BarometricPressure_constraint; +ber_type_decoder_f BarometricPressure_decode_ber; +der_type_encoder_f BarometricPressure_encode_der; +xer_type_decoder_f BarometricPressure_decode_xer; +xer_type_encoder_f BarometricPressure_encode_xer; +jer_type_encoder_f BarometricPressure_encode_jer; +oer_type_decoder_f BarometricPressure_decode_oer; +oer_type_encoder_f BarometricPressure_encode_oer; +per_type_decoder_f BarometricPressure_decode_uper; +per_type_encoder_f BarometricPressure_encode_uper; +per_type_decoder_f BarometricPressure_decode_aper; +per_type_encoder_f BarometricPressure_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _BarometricPressure_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/BasicContainer.c b/vanetza/asn1/its2/BasicContainer.c new file mode 100644 index 000000000..967271bfa --- /dev/null +++ b/vanetza/asn1/its2/BasicContainer.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "BasicContainer.h" + +asn_TYPE_member_t asn_MBR_BasicContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BasicContainer, stationType), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TrafficParticipantType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "stationType" + }, + { ATF_NOFLAGS, 0, offsetof(struct BasicContainer, referencePosition), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ReferencePositionWithConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "referencePosition" + }, +}; +static const ber_tlv_tag_t asn_DEF_BasicContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BasicContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* stationType */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* referencePosition */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BasicContainer_specs_1 = { + sizeof(struct BasicContainer), + offsetof(struct BasicContainer, _asn_ctx), + asn_MAP_BasicContainer_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_BasicContainer = { + "BasicContainer", + "BasicContainer", + &asn_OP_SEQUENCE, + asn_DEF_BasicContainer_tags_1, + sizeof(asn_DEF_BasicContainer_tags_1) + /sizeof(asn_DEF_BasicContainer_tags_1[0]), /* 1 */ + asn_DEF_BasicContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_BasicContainer_tags_1) + /sizeof(asn_DEF_BasicContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BasicContainer_1, + 2, /* Elements count */ + &asn_SPC_BasicContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/BasicContainer.h b/vanetza/asn1/its2/BasicContainer.h new file mode 100644 index 000000000..87e2dee29 --- /dev/null +++ b/vanetza/asn1/its2/BasicContainer.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _BasicContainer_H_ +#define _BasicContainer_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "TrafficParticipantType.h" +#include "ReferencePositionWithConfidence.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* BasicContainer */ +typedef struct BasicContainer { + TrafficParticipantType_t stationType; + ReferencePositionWithConfidence_t referencePosition; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} BasicContainer_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_BasicContainer; +extern asn_SEQUENCE_specifics_t asn_SPC_BasicContainer_specs_1; +extern asn_TYPE_member_t asn_MBR_BasicContainer_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _BasicContainer_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/BasicLaneConfiguration.c b/vanetza/asn1/its2/BasicLaneConfiguration.c new file mode 100644 index 000000000..121c4f557 --- /dev/null +++ b/vanetza/asn1/its2/BasicLaneConfiguration.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "BasicLaneConfiguration.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_BasicLaneConfiguration_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_BasicLaneConfiguration_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 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_BasicLaneConfiguration_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_BasicLaneInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_BasicLaneConfiguration_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_BasicLaneConfiguration_specs_1 = { + sizeof(struct BasicLaneConfiguration), + offsetof(struct BasicLaneConfiguration, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_BasicLaneConfiguration = { + "BasicLaneConfiguration", + "BasicLaneConfiguration", + &asn_OP_SEQUENCE_OF, + asn_DEF_BasicLaneConfiguration_tags_1, + sizeof(asn_DEF_BasicLaneConfiguration_tags_1) + /sizeof(asn_DEF_BasicLaneConfiguration_tags_1[0]), /* 1 */ + asn_DEF_BasicLaneConfiguration_tags_1, /* Same as above */ + sizeof(asn_DEF_BasicLaneConfiguration_tags_1) + /sizeof(asn_DEF_BasicLaneConfiguration_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_BasicLaneConfiguration_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_BasicLaneConfiguration_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_BasicLaneConfiguration_1, + 1, /* Single element */ + &asn_SPC_BasicLaneConfiguration_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/BasicLaneConfiguration.h b/vanetza/asn1/its2/BasicLaneConfiguration.h new file mode 100644 index 000000000..502762711 --- /dev/null +++ b/vanetza/asn1/its2/BasicLaneConfiguration.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _BasicLaneConfiguration_H_ +#define _BasicLaneConfiguration_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct BasicLaneInformation; + +/* BasicLaneConfiguration */ +typedef struct BasicLaneConfiguration { + A_SEQUENCE_OF(struct BasicLaneInformation) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} BasicLaneConfiguration_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_BasicLaneConfiguration; +extern asn_SET_OF_specifics_t asn_SPC_BasicLaneConfiguration_specs_1; +extern asn_TYPE_member_t asn_MBR_BasicLaneConfiguration_1[1]; +extern asn_per_constraints_t asn_PER_type_BasicLaneConfiguration_constr_1; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "BasicLaneInformation.h" + +#endif /* _BasicLaneConfiguration_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/BasicLaneInformation.c b/vanetza/asn1/its2/BasicLaneInformation.c new file mode 100644 index 000000000..093753b80 --- /dev/null +++ b/vanetza/asn1/its2/BasicLaneInformation.c @@ -0,0 +1,170 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "BasicLaneInformation.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_BasicLaneInformation_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_BasicLaneInformation_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 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) */ +asn_TYPE_member_t asn_MBR_BasicLaneInformation_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BasicLaneInformation, laneNumber), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LanePosition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "laneNumber" + }, + { ATF_NOFLAGS, 0, offsetof(struct BasicLaneInformation, direction), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Direction, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "direction" + }, + { ATF_POINTER, 3, offsetof(struct BasicLaneInformation, laneWidth), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LaneWidth, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "laneWidth" + }, + { ATF_POINTER, 2, offsetof(struct BasicLaneInformation, connectingLane), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LanePosition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "connectingLane" + }, + { ATF_POINTER, 1, offsetof(struct BasicLaneInformation, connectingRoadSection), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RoadSectionId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "connectingRoadSection" + }, +}; +static const int asn_MAP_BasicLaneInformation_oms_1[] = { 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_BasicLaneInformation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BasicLaneInformation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* laneNumber */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* direction */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* laneWidth */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* connectingLane */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* connectingRoadSection */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BasicLaneInformation_specs_1 = { + sizeof(struct BasicLaneInformation), + offsetof(struct BasicLaneInformation, _asn_ctx), + asn_MAP_BasicLaneInformation_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_BasicLaneInformation_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BasicLaneInformation = { + "BasicLaneInformation", + "BasicLaneInformation", + &asn_OP_SEQUENCE, + asn_DEF_BasicLaneInformation_tags_1, + sizeof(asn_DEF_BasicLaneInformation_tags_1) + /sizeof(asn_DEF_BasicLaneInformation_tags_1[0]), /* 1 */ + asn_DEF_BasicLaneInformation_tags_1, /* Same as above */ + sizeof(asn_DEF_BasicLaneInformation_tags_1) + /sizeof(asn_DEF_BasicLaneInformation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_BasicLaneInformation_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_BasicLaneInformation_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BasicLaneInformation_1, + 5, /* Elements count */ + &asn_SPC_BasicLaneInformation_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/BasicLaneInformation.h b/vanetza/asn1/its2/BasicLaneInformation.h new file mode 100644 index 000000000..4ac6ce39e --- /dev/null +++ b/vanetza/asn1/its2/BasicLaneInformation.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _BasicLaneInformation_H_ +#define _BasicLaneInformation_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "LanePosition.h" +#include "Direction.h" +#include "LaneWidth.h" +#include "RoadSectionId.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* BasicLaneInformation */ +typedef struct BasicLaneInformation { + LanePosition_t laneNumber; + Direction_t direction; + LaneWidth_t *laneWidth; /* OPTIONAL */ + LanePosition_t *connectingLane; /* OPTIONAL */ + RoadSectionId_t *connectingRoadSection; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} BasicLaneInformation_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_BasicLaneInformation; +extern asn_SEQUENCE_specifics_t asn_SPC_BasicLaneInformation_specs_1; +extern asn_TYPE_member_t asn_MBR_BasicLaneInformation_1[5]; +extern asn_per_constraints_t asn_PER_type_BasicLaneInformation_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _BasicLaneInformation_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/BasicVehicleContainerHighFrequency.c b/vanetza/asn1/its2/BasicVehicleContainerHighFrequency.c new file mode 100644 index 000000000..4ba426fb1 --- /dev/null +++ b/vanetza/asn1/its2/BasicVehicleContainerHighFrequency.c @@ -0,0 +1,389 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/TS103900v211-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "BasicVehicleContainerHighFrequency.h" + +asn_TYPE_member_t asn_MBR_BasicVehicleContainerHighFrequency_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerHighFrequency, heading), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Heading, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "heading" + }, + { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerHighFrequency, speed), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Speed, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "speed" + }, + { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerHighFrequency, driveDirection), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DriveDirection, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "driveDirection" + }, + { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerHighFrequency, vehicleLength), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VehicleLength, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vehicleLength" + }, + { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerHighFrequency, vehicleWidth), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VehicleWidth, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vehicleWidth" + }, + { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerHighFrequency, longitudinalAcceleration), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AccelerationComponent, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "longitudinalAcceleration" + }, + { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerHighFrequency, curvature), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Curvature, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "curvature" + }, + { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerHighFrequency, curvatureCalculationMode), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CurvatureCalculationMode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "curvatureCalculationMode" + }, + { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerHighFrequency, yawRate), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_YawRate, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "yawRate" + }, + { ATF_POINTER, 7, offsetof(struct BasicVehicleContainerHighFrequency, accelerationControl), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AccelerationControl, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "accelerationControl" + }, + { ATF_POINTER, 6, offsetof(struct BasicVehicleContainerHighFrequency, lanePosition), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LanePosition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lanePosition" + }, + { ATF_POINTER, 5, offsetof(struct BasicVehicleContainerHighFrequency, steeringWheelAngle), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SteeringWheelAngle, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "steeringWheelAngle" + }, + { ATF_POINTER, 4, offsetof(struct BasicVehicleContainerHighFrequency, lateralAcceleration), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AccelerationComponent, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lateralAcceleration" + }, + { ATF_POINTER, 3, offsetof(struct BasicVehicleContainerHighFrequency, verticalAcceleration), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AccelerationComponent, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "verticalAcceleration" + }, + { ATF_POINTER, 2, offsetof(struct BasicVehicleContainerHighFrequency, performanceClass), + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PerformanceClass, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "performanceClass" + }, + { ATF_POINTER, 1, offsetof(struct BasicVehicleContainerHighFrequency, cenDsrcTollingZone), + (ASN_TAG_CLASS_CONTEXT | (15 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CenDsrcTollingZone, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cenDsrcTollingZone" + }, +}; +static const int asn_MAP_BasicVehicleContainerHighFrequency_oms_1[] = { 9, 10, 11, 12, 13, 14, 15 }; +static const ber_tlv_tag_t asn_DEF_BasicVehicleContainerHighFrequency_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BasicVehicleContainerHighFrequency_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* heading */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* speed */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* driveDirection */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* vehicleLength */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* vehicleWidth */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* longitudinalAcceleration */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* curvature */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* curvatureCalculationMode */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* yawRate */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* accelerationControl */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* lanePosition */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* steeringWheelAngle */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* lateralAcceleration */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* verticalAcceleration */ + { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* performanceClass */ + { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 } /* cenDsrcTollingZone */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BasicVehicleContainerHighFrequency_specs_1 = { + sizeof(struct BasicVehicleContainerHighFrequency), + offsetof(struct BasicVehicleContainerHighFrequency, _asn_ctx), + asn_MAP_BasicVehicleContainerHighFrequency_tag2el_1, + 16, /* Count of tags in the map */ + asn_MAP_BasicVehicleContainerHighFrequency_oms_1, /* Optional members */ + 7, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_BasicVehicleContainerHighFrequency = { + "BasicVehicleContainerHighFrequency", + "BasicVehicleContainerHighFrequency", + &asn_OP_SEQUENCE, + asn_DEF_BasicVehicleContainerHighFrequency_tags_1, + sizeof(asn_DEF_BasicVehicleContainerHighFrequency_tags_1) + /sizeof(asn_DEF_BasicVehicleContainerHighFrequency_tags_1[0]), /* 1 */ + asn_DEF_BasicVehicleContainerHighFrequency_tags_1, /* Same as above */ + sizeof(asn_DEF_BasicVehicleContainerHighFrequency_tags_1) + /sizeof(asn_DEF_BasicVehicleContainerHighFrequency_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BasicVehicleContainerHighFrequency_1, + 16, /* Elements count */ + &asn_SPC_BasicVehicleContainerHighFrequency_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/BasicVehicleContainerHighFrequency.h b/vanetza/asn1/its2/BasicVehicleContainerHighFrequency.h new file mode 100644 index 000000000..135f9be20 --- /dev/null +++ b/vanetza/asn1/its2/BasicVehicleContainerHighFrequency.h @@ -0,0 +1,76 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/TS103900v211-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _BasicVehicleContainerHighFrequency_H_ +#define _BasicVehicleContainerHighFrequency_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "Heading.h" +#include "Speed.h" +#include "DriveDirection.h" +#include "VehicleLength.h" +#include "VehicleWidth.h" +#include "AccelerationComponent.h" +#include "Curvature.h" +#include "CurvatureCalculationMode.h" +#include "YawRate.h" +#include "AccelerationControl.h" +#include "LanePosition.h" +#include "PerformanceClass.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct SteeringWheelAngle; +struct AccelerationComponent; +struct CenDsrcTollingZone; + +/* BasicVehicleContainerHighFrequency */ +typedef struct BasicVehicleContainerHighFrequency { + Heading_t heading; + Speed_t speed; + DriveDirection_t driveDirection; + VehicleLength_t vehicleLength; + VehicleWidth_t vehicleWidth; + AccelerationComponent_t longitudinalAcceleration; + Curvature_t curvature; + CurvatureCalculationMode_t curvatureCalculationMode; + YawRate_t yawRate; + AccelerationControl_t *accelerationControl; /* OPTIONAL */ + LanePosition_t *lanePosition; /* OPTIONAL */ + struct SteeringWheelAngle *steeringWheelAngle; /* OPTIONAL */ + struct AccelerationComponent *lateralAcceleration; /* OPTIONAL */ + struct AccelerationComponent *verticalAcceleration; /* OPTIONAL */ + PerformanceClass_t *performanceClass; /* OPTIONAL */ + struct CenDsrcTollingZone *cenDsrcTollingZone; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} BasicVehicleContainerHighFrequency_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_BasicVehicleContainerHighFrequency; +extern asn_SEQUENCE_specifics_t asn_SPC_BasicVehicleContainerHighFrequency_specs_1; +extern asn_TYPE_member_t asn_MBR_BasicVehicleContainerHighFrequency_1[16]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "SteeringWheelAngle.h" +#include "AccelerationComponent.h" +#include "CenDsrcTollingZone.h" + +#endif /* _BasicVehicleContainerHighFrequency_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/BasicVehicleContainerLowFrequency.c b/vanetza/asn1/its2/BasicVehicleContainerLowFrequency.c new file mode 100644 index 000000000..c89baea02 --- /dev/null +++ b/vanetza/asn1/its2/BasicVehicleContainerLowFrequency.c @@ -0,0 +1,152 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/TS103900v211-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "BasicVehicleContainerLowFrequency.h" + +static int +memb_pathHistory_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 <= 23UL)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_pathHistory_constr_4 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..23)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_pathHistory_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 0, 23 } /* (SIZE(0..23)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_BasicVehicleContainerLowFrequency_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerLowFrequency, vehicleRole), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VehicleRole, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vehicleRole" + }, + { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerLowFrequency, exteriorLights), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ExteriorLights, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "exteriorLights" + }, + { ATF_NOFLAGS, 0, offsetof(struct BasicVehicleContainerLowFrequency, pathHistory), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Path, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_pathHistory_constr_4, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_pathHistory_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_pathHistory_constraint_1 + }, + 0, 0, /* No default value */ + "pathHistory" + }, +}; +static const ber_tlv_tag_t asn_DEF_BasicVehicleContainerLowFrequency_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_BasicVehicleContainerLowFrequency_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* vehicleRole */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* exteriorLights */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* pathHistory */ +}; +asn_SEQUENCE_specifics_t asn_SPC_BasicVehicleContainerLowFrequency_specs_1 = { + sizeof(struct BasicVehicleContainerLowFrequency), + offsetof(struct BasicVehicleContainerLowFrequency, _asn_ctx), + asn_MAP_BasicVehicleContainerLowFrequency_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_BasicVehicleContainerLowFrequency = { + "BasicVehicleContainerLowFrequency", + "BasicVehicleContainerLowFrequency", + &asn_OP_SEQUENCE, + asn_DEF_BasicVehicleContainerLowFrequency_tags_1, + sizeof(asn_DEF_BasicVehicleContainerLowFrequency_tags_1) + /sizeof(asn_DEF_BasicVehicleContainerLowFrequency_tags_1[0]), /* 1 */ + asn_DEF_BasicVehicleContainerLowFrequency_tags_1, /* Same as above */ + sizeof(asn_DEF_BasicVehicleContainerLowFrequency_tags_1) + /sizeof(asn_DEF_BasicVehicleContainerLowFrequency_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_BasicVehicleContainerLowFrequency_1, + 3, /* Elements count */ + &asn_SPC_BasicVehicleContainerLowFrequency_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/BasicVehicleContainerLowFrequency.h b/vanetza/asn1/its2/BasicVehicleContainerLowFrequency.h new file mode 100644 index 000000000..f517570fc --- /dev/null +++ b/vanetza/asn1/its2/BasicVehicleContainerLowFrequency.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/TS103900v211-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _BasicVehicleContainerLowFrequency_H_ +#define _BasicVehicleContainerLowFrequency_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "VehicleRole.h" +#include "ExteriorLights.h" +#include "Path.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* BasicVehicleContainerLowFrequency */ +typedef struct BasicVehicleContainerLowFrequency { + VehicleRole_t vehicleRole; + ExteriorLights_t exteriorLights; + Path_t pathHistory; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} BasicVehicleContainerLowFrequency_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_BasicVehicleContainerLowFrequency; +extern asn_SEQUENCE_specifics_t asn_SPC_BasicVehicleContainerLowFrequency_specs_1; +extern asn_TYPE_member_t asn_MBR_BasicVehicleContainerLowFrequency_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _BasicVehicleContainerLowFrequency_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/BogiesCount.c b/vanetza/asn1/its2/BogiesCount.c new file mode 100644 index 000000000..73d2e039b --- /dev/null +++ b/vanetza/asn1/its2/BogiesCount.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "BogiesCount.h" + +int +BogiesCount_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 >= 2L && value <= 101L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_BogiesCount_constr_1 CC_NOTUSED = { + { 1, 1 } /* (2..101) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_BogiesCount_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 2, 101 } /* (2..101) */, + { 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_BogiesCount_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_BogiesCount = { + "BogiesCount", + "BogiesCount", + &asn_OP_NativeInteger, + asn_DEF_BogiesCount_tags_1, + sizeof(asn_DEF_BogiesCount_tags_1) + /sizeof(asn_DEF_BogiesCount_tags_1[0]), /* 1 */ + asn_DEF_BogiesCount_tags_1, /* Same as above */ + sizeof(asn_DEF_BogiesCount_tags_1) + /sizeof(asn_DEF_BogiesCount_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_BogiesCount_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_BogiesCount_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + BogiesCount_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/BogiesCount.h b/vanetza/asn1/its2/BogiesCount.h new file mode 100644 index 000000000..4d51b88c9 --- /dev/null +++ b/vanetza/asn1/its2/BogiesCount.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _BogiesCount_H_ +#define _BogiesCount_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum BogiesCount { + BogiesCount_outOfRange = 100, + BogiesCount_unavailable = 101 +} e_BogiesCount; + +/* BogiesCount */ +typedef long BogiesCount_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_BogiesCount; +asn_struct_free_f BogiesCount_free; +asn_struct_print_f BogiesCount_print; +asn_constr_check_f BogiesCount_constraint; +ber_type_decoder_f BogiesCount_decode_ber; +der_type_encoder_f BogiesCount_encode_der; +xer_type_decoder_f BogiesCount_decode_xer; +xer_type_encoder_f BogiesCount_encode_xer; +jer_type_encoder_f BogiesCount_encode_jer; +oer_type_decoder_f BogiesCount_decode_oer; +oer_type_encoder_f BogiesCount_encode_oer; +per_type_decoder_f BogiesCount_decode_uper; +per_type_encoder_f BogiesCount_encode_uper; +per_type_decoder_f BogiesCount_decode_aper; +per_type_encoder_f BogiesCount_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _BogiesCount_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CAM.c b/vanetza/asn1/its2/CAM.c new file mode 100644 index 000000000..b53dc9f24 --- /dev/null +++ b/vanetza/asn1/its2/CAM.c @@ -0,0 +1,124 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/TS103900v211-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CAM.h" + +static int +memb_header_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; + } + + + if(1 /* No applicable constraints whatsoever */) { + /* Nothing is here. See below */ + } + + return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); +} + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_header_constr_2 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_header_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 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_CAM_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CAM, header), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ItsPduHeader, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_header_constr_2, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_header_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_header_constraint_1 + }, + 0, 0, /* No default value */ + "header" + }, + { ATF_NOFLAGS, 0, offsetof(struct CAM, cam), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CamPayload, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cam" + }, +}; +static const ber_tlv_tag_t asn_DEF_CAM_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CAM_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* header */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* cam */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_CAM_specs_1 = { + sizeof(struct CAM), + offsetof(struct CAM, _asn_ctx), + asn_MAP_CAM_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_CAM = { + "CAM", + "CAM", + &asn_OP_SEQUENCE, + asn_DEF_CAM_tags_1, + sizeof(asn_DEF_CAM_tags_1) + /sizeof(asn_DEF_CAM_tags_1[0]), /* 1 */ + asn_DEF_CAM_tags_1, /* Same as above */ + sizeof(asn_DEF_CAM_tags_1) + /sizeof(asn_DEF_CAM_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CAM_1, + 2, /* Elements count */ + &asn_SPC_CAM_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/CAM.h b/vanetza/asn1/its2/CAM.h new file mode 100644 index 000000000..d67aba7d5 --- /dev/null +++ b/vanetza/asn1/its2/CAM.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/TS103900v211-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CAM_H_ +#define _CAM_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "ItsPduHeader.h" +#include "CamPayload.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* CAM */ +typedef struct CAM { + ItsPduHeader_t header; + CamPayload_t cam; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} CAM_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_CAM; + +#ifdef __cplusplus +} +#endif + +#endif /* _CAM_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CPM-PDU-Descriptions_ManagementContainer.c b/vanetza/asn1/its2/CPM-PDU-Descriptions_ManagementContainer.c new file mode 100644 index 000000000..1495c7ca3 --- /dev/null +++ b/vanetza/asn1/its2/CPM-PDU-Descriptions_ManagementContainer.c @@ -0,0 +1,137 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TS103324v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CPM-PDU-Descriptions_ManagementContainer.h" + +asn_TYPE_member_t asn_MBR_CPM_PDU_Descriptions_ManagementContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CPM_PDU_Descriptions_ManagementContainer, referenceTime), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TimestampIts, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "referenceTime" + }, + { ATF_NOFLAGS, 0, offsetof(struct CPM_PDU_Descriptions_ManagementContainer, referencePosition), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ReferencePosition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "referencePosition" + }, + { ATF_POINTER, 2, offsetof(struct CPM_PDU_Descriptions_ManagementContainer, segmentationInfo), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MessageSegmentationInfo, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "segmentationInfo" + }, + { ATF_POINTER, 1, offsetof(struct CPM_PDU_Descriptions_ManagementContainer, messageRateRange), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MessageRateRange, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "messageRateRange" + }, +}; +static const int asn_MAP_CPM_PDU_Descriptions_ManagementContainer_oms_1[] = { 2, 3 }; +static const ber_tlv_tag_t asn_DEF_CPM_PDU_Descriptions_ManagementContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CPM_PDU_Descriptions_ManagementContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* referenceTime */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* referencePosition */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* segmentationInfo */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* messageRateRange */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CPM_PDU_Descriptions_ManagementContainer_specs_1 = { + sizeof(struct CPM_PDU_Descriptions_ManagementContainer), + offsetof(struct CPM_PDU_Descriptions_ManagementContainer, _asn_ctx), + asn_MAP_CPM_PDU_Descriptions_ManagementContainer_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_CPM_PDU_Descriptions_ManagementContainer_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_CPM_PDU_Descriptions_ManagementContainer = { + "ManagementContainer", + "ManagementContainer", + &asn_OP_SEQUENCE, + asn_DEF_CPM_PDU_Descriptions_ManagementContainer_tags_1, + sizeof(asn_DEF_CPM_PDU_Descriptions_ManagementContainer_tags_1) + /sizeof(asn_DEF_CPM_PDU_Descriptions_ManagementContainer_tags_1[0]), /* 1 */ + asn_DEF_CPM_PDU_Descriptions_ManagementContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_CPM_PDU_Descriptions_ManagementContainer_tags_1) + /sizeof(asn_DEF_CPM_PDU_Descriptions_ManagementContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CPM_PDU_Descriptions_ManagementContainer_1, + 4, /* Elements count */ + &asn_SPC_CPM_PDU_Descriptions_ManagementContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/CPM-PDU-Descriptions_ManagementContainer.h b/vanetza/asn1/its2/CPM-PDU-Descriptions_ManagementContainer.h new file mode 100644 index 000000000..44cf56883 --- /dev/null +++ b/vanetza/asn1/its2/CPM-PDU-Descriptions_ManagementContainer.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TS103324v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CPM_PDU_Descriptions_ManagementContainer_H_ +#define _CPM_PDU_Descriptions_ManagementContainer_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "TimestampIts.h" +#include "ReferencePosition.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct MessageSegmentationInfo; +struct MessageRateRange; + +/* CPM-PDU-Descriptions_ManagementContainer */ +typedef struct CPM_PDU_Descriptions_ManagementContainer { + TimestampIts_t referenceTime; + ReferencePosition_t referencePosition; + struct MessageSegmentationInfo *segmentationInfo; /* OPTIONAL */ + struct MessageRateRange *messageRateRange; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} CPM_PDU_Descriptions_ManagementContainer_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_CPM_PDU_Descriptions_ManagementContainer; +extern asn_SEQUENCE_specifics_t asn_SPC_CPM_PDU_Descriptions_ManagementContainer_specs_1; +extern asn_TYPE_member_t asn_MBR_CPM_PDU_Descriptions_ManagementContainer_1[4]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "MessageSegmentationInfo.h" +#include "MessageRateRange.h" + +#endif /* _CPM_PDU_Descriptions_ManagementContainer_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CamParameters.c b/vanetza/asn1/its2/CamParameters.c new file mode 100644 index 000000000..9da4890a7 --- /dev/null +++ b/vanetza/asn1/its2/CamParameters.c @@ -0,0 +1,137 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/TS103900v211-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CamParameters.h" + +asn_TYPE_member_t asn_MBR_CamParameters_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CamParameters, basicContainer), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BasicContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "basicContainer" + }, + { ATF_NOFLAGS, 0, offsetof(struct CamParameters, highFrequencyContainer), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_HighFrequencyContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "highFrequencyContainer" + }, + { ATF_POINTER, 2, offsetof(struct CamParameters, lowFrequencyContainer), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_LowFrequencyContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lowFrequencyContainer" + }, + { ATF_POINTER, 1, offsetof(struct CamParameters, specialVehicleContainer), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_SpecialVehicleContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "specialVehicleContainer" + }, +}; +static const int asn_MAP_CamParameters_oms_1[] = { 2, 3 }; +static const ber_tlv_tag_t asn_DEF_CamParameters_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CamParameters_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* basicContainer */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* highFrequencyContainer */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* lowFrequencyContainer */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* specialVehicleContainer */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CamParameters_specs_1 = { + sizeof(struct CamParameters), + offsetof(struct CamParameters, _asn_ctx), + asn_MAP_CamParameters_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_CamParameters_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_CamParameters = { + "CamParameters", + "CamParameters", + &asn_OP_SEQUENCE, + asn_DEF_CamParameters_tags_1, + sizeof(asn_DEF_CamParameters_tags_1) + /sizeof(asn_DEF_CamParameters_tags_1[0]), /* 1 */ + asn_DEF_CamParameters_tags_1, /* Same as above */ + sizeof(asn_DEF_CamParameters_tags_1) + /sizeof(asn_DEF_CamParameters_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CamParameters_1, + 4, /* Elements count */ + &asn_SPC_CamParameters_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/CamParameters.h b/vanetza/asn1/its2/CamParameters.h new file mode 100644 index 000000000..fb3d40227 --- /dev/null +++ b/vanetza/asn1/its2/CamParameters.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/TS103900v211-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CamParameters_H_ +#define _CamParameters_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "BasicContainer.h" +#include "HighFrequencyContainer.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct LowFrequencyContainer; +struct SpecialVehicleContainer; + +/* CamParameters */ +typedef struct CamParameters { + BasicContainer_t basicContainer; + HighFrequencyContainer_t highFrequencyContainer; + struct LowFrequencyContainer *lowFrequencyContainer; /* OPTIONAL */ + struct SpecialVehicleContainer *specialVehicleContainer; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} CamParameters_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_CamParameters; +extern asn_SEQUENCE_specifics_t asn_SPC_CamParameters_specs_1; +extern asn_TYPE_member_t asn_MBR_CamParameters_1[4]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "LowFrequencyContainer.h" +#include "SpecialVehicleContainer.h" + +#endif /* _CamParameters_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CamPayload.c b/vanetza/asn1/its2/CamPayload.c new file mode 100644 index 000000000..0352c79e4 --- /dev/null +++ b/vanetza/asn1/its2/CamPayload.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/TS103900v211-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CamPayload.h" + +asn_TYPE_member_t asn_MBR_CamPayload_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CamPayload, generationDeltaTime), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GenerationDeltaTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "generationDeltaTime" + }, + { ATF_NOFLAGS, 0, offsetof(struct CamPayload, camParameters), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CamParameters, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "camParameters" + }, +}; +static const ber_tlv_tag_t asn_DEF_CamPayload_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CamPayload_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* generationDeltaTime */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* camParameters */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CamPayload_specs_1 = { + sizeof(struct CamPayload), + offsetof(struct CamPayload, _asn_ctx), + asn_MAP_CamPayload_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_CamPayload = { + "CamPayload", + "CamPayload", + &asn_OP_SEQUENCE, + asn_DEF_CamPayload_tags_1, + sizeof(asn_DEF_CamPayload_tags_1) + /sizeof(asn_DEF_CamPayload_tags_1[0]), /* 1 */ + asn_DEF_CamPayload_tags_1, /* Same as above */ + sizeof(asn_DEF_CamPayload_tags_1) + /sizeof(asn_DEF_CamPayload_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CamPayload_1, + 2, /* Elements count */ + &asn_SPC_CamPayload_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/CamPayload.h b/vanetza/asn1/its2/CamPayload.h new file mode 100644 index 000000000..37b6222da --- /dev/null +++ b/vanetza/asn1/its2/CamPayload.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/TS103900v211-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CamPayload_H_ +#define _CamPayload_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "GenerationDeltaTime.h" +#include "CamParameters.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* CamPayload */ +typedef struct CamPayload { + GenerationDeltaTime_t generationDeltaTime; + CamParameters_t camParameters; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} CamPayload_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_CamPayload; +extern asn_SEQUENCE_specifics_t asn_SPC_CamPayload_specs_1; +extern asn_TYPE_member_t asn_MBR_CamPayload_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _CamPayload_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CardinalNumber1B.c b/vanetza/asn1/its2/CardinalNumber1B.c new file mode 100644 index 000000000..ec80f9079 --- /dev/null +++ b/vanetza/asn1/its2/CardinalNumber1B.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CardinalNumber1B.h" + +int +CardinalNumber1B_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_CardinalNumber1B_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CardinalNumber1B_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_CardinalNumber1B_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_CardinalNumber1B = { + "CardinalNumber1B", + "CardinalNumber1B", + &asn_OP_NativeInteger, + asn_DEF_CardinalNumber1B_tags_1, + sizeof(asn_DEF_CardinalNumber1B_tags_1) + /sizeof(asn_DEF_CardinalNumber1B_tags_1[0]), /* 1 */ + asn_DEF_CardinalNumber1B_tags_1, /* Same as above */ + sizeof(asn_DEF_CardinalNumber1B_tags_1) + /sizeof(asn_DEF_CardinalNumber1B_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_CardinalNumber1B_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CardinalNumber1B_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CardinalNumber1B_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/CardinalNumber1B.h b/vanetza/asn1/its2/CardinalNumber1B.h new file mode 100644 index 000000000..4126972cf --- /dev/null +++ b/vanetza/asn1/its2/CardinalNumber1B.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CardinalNumber1B_H_ +#define _CardinalNumber1B_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* CardinalNumber1B */ +typedef long CardinalNumber1B_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_CardinalNumber1B_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_CardinalNumber1B; +asn_struct_free_f CardinalNumber1B_free; +asn_struct_print_f CardinalNumber1B_print; +asn_constr_check_f CardinalNumber1B_constraint; +ber_type_decoder_f CardinalNumber1B_decode_ber; +der_type_encoder_f CardinalNumber1B_encode_der; +xer_type_decoder_f CardinalNumber1B_decode_xer; +xer_type_encoder_f CardinalNumber1B_encode_xer; +jer_type_encoder_f CardinalNumber1B_encode_jer; +oer_type_decoder_f CardinalNumber1B_decode_oer; +oer_type_encoder_f CardinalNumber1B_encode_oer; +per_type_decoder_f CardinalNumber1B_decode_uper; +per_type_encoder_f CardinalNumber1B_encode_uper; +per_type_decoder_f CardinalNumber1B_decode_aper; +per_type_encoder_f CardinalNumber1B_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _CardinalNumber1B_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CardinalNumber3b.c b/vanetza/asn1/its2/CardinalNumber3b.c new file mode 100644 index 000000000..6e9701f84 --- /dev/null +++ b/vanetza/asn1/its2/CardinalNumber3b.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CardinalNumber3b.h" + +int +CardinalNumber3b_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 <= 8L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_CardinalNumber3b_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..8) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CardinalNumber3b_constr_1 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 const ber_tlv_tag_t asn_DEF_CardinalNumber3b_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_CardinalNumber3b = { + "CardinalNumber3b", + "CardinalNumber3b", + &asn_OP_NativeInteger, + asn_DEF_CardinalNumber3b_tags_1, + sizeof(asn_DEF_CardinalNumber3b_tags_1) + /sizeof(asn_DEF_CardinalNumber3b_tags_1[0]), /* 1 */ + asn_DEF_CardinalNumber3b_tags_1, /* Same as above */ + sizeof(asn_DEF_CardinalNumber3b_tags_1) + /sizeof(asn_DEF_CardinalNumber3b_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_CardinalNumber3b_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CardinalNumber3b_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CardinalNumber3b_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/CardinalNumber3b.h b/vanetza/asn1/its2/CardinalNumber3b.h new file mode 100644 index 000000000..24597cfec --- /dev/null +++ b/vanetza/asn1/its2/CardinalNumber3b.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CardinalNumber3b_H_ +#define _CardinalNumber3b_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* CardinalNumber3b */ +typedef long CardinalNumber3b_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_CardinalNumber3b_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_CardinalNumber3b; +asn_struct_free_f CardinalNumber3b_free; +asn_struct_print_f CardinalNumber3b_print; +asn_constr_check_f CardinalNumber3b_constraint; +ber_type_decoder_f CardinalNumber3b_decode_ber; +der_type_encoder_f CardinalNumber3b_encode_der; +xer_type_decoder_f CardinalNumber3b_decode_xer; +xer_type_encoder_f CardinalNumber3b_encode_xer; +jer_type_encoder_f CardinalNumber3b_encode_jer; +oer_type_decoder_f CardinalNumber3b_decode_oer; +oer_type_encoder_f CardinalNumber3b_encode_oer; +per_type_decoder_f CardinalNumber3b_decode_uper; +per_type_encoder_f CardinalNumber3b_encode_uper; +per_type_decoder_f CardinalNumber3b_decode_aper; +per_type_encoder_f CardinalNumber3b_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _CardinalNumber3b_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CartesianAngle.c b/vanetza/asn1/its2/CartesianAngle.c new file mode 100644 index 000000000..8e3710973 --- /dev/null +++ b/vanetza/asn1/its2/CartesianAngle.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CartesianAngle.h" + +asn_TYPE_member_t asn_MBR_CartesianAngle_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CartesianAngle, value), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianAngleValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "value" + }, + { ATF_NOFLAGS, 0, offsetof(struct CartesianAngle, confidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AngleConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "confidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_CartesianAngle_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CartesianAngle_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* value */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* confidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CartesianAngle_specs_1 = { + sizeof(struct CartesianAngle), + offsetof(struct CartesianAngle, _asn_ctx), + asn_MAP_CartesianAngle_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_CartesianAngle = { + "CartesianAngle", + "CartesianAngle", + &asn_OP_SEQUENCE, + asn_DEF_CartesianAngle_tags_1, + sizeof(asn_DEF_CartesianAngle_tags_1) + /sizeof(asn_DEF_CartesianAngle_tags_1[0]), /* 1 */ + asn_DEF_CartesianAngle_tags_1, /* Same as above */ + sizeof(asn_DEF_CartesianAngle_tags_1) + /sizeof(asn_DEF_CartesianAngle_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CartesianAngle_1, + 2, /* Elements count */ + &asn_SPC_CartesianAngle_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/CartesianAngle.h b/vanetza/asn1/its2/CartesianAngle.h new file mode 100644 index 000000000..830be8766 --- /dev/null +++ b/vanetza/asn1/its2/CartesianAngle.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CartesianAngle_H_ +#define _CartesianAngle_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "CartesianAngleValue.h" +#include "AngleConfidence.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* CartesianAngle */ +typedef struct CartesianAngle { + CartesianAngleValue_t value; + AngleConfidence_t confidence; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} CartesianAngle_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_CartesianAngle; +extern asn_SEQUENCE_specifics_t asn_SPC_CartesianAngle_specs_1; +extern asn_TYPE_member_t asn_MBR_CartesianAngle_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _CartesianAngle_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CartesianAngleValue.c b/vanetza/asn1/its2/CartesianAngleValue.c new file mode 100644 index 000000000..42285e877 --- /dev/null +++ b/vanetza/asn1/its2/CartesianAngleValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CartesianAngleValue.h" + +int +CartesianAngleValue_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 <= 3601L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_CartesianAngleValue_constr_1 CC_NOTUSED = { + { 2, 1 } /* (0..3601) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CartesianAngleValue_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 3601 } /* (0..3601) */, + { 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_CartesianAngleValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_CartesianAngleValue = { + "CartesianAngleValue", + "CartesianAngleValue", + &asn_OP_NativeInteger, + asn_DEF_CartesianAngleValue_tags_1, + sizeof(asn_DEF_CartesianAngleValue_tags_1) + /sizeof(asn_DEF_CartesianAngleValue_tags_1[0]), /* 1 */ + asn_DEF_CartesianAngleValue_tags_1, /* Same as above */ + sizeof(asn_DEF_CartesianAngleValue_tags_1) + /sizeof(asn_DEF_CartesianAngleValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_CartesianAngleValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CartesianAngleValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CartesianAngleValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/CartesianAngleValue.h b/vanetza/asn1/its2/CartesianAngleValue.h new file mode 100644 index 000000000..d6b083a77 --- /dev/null +++ b/vanetza/asn1/its2/CartesianAngleValue.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CartesianAngleValue_H_ +#define _CartesianAngleValue_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum CartesianAngleValue { + CartesianAngleValue_valueNotUsed = 3600, + CartesianAngleValue_unavailable = 3601 +} e_CartesianAngleValue; + +/* CartesianAngleValue */ +typedef long CartesianAngleValue_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_CartesianAngleValue_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_CartesianAngleValue; +asn_struct_free_f CartesianAngleValue_free; +asn_struct_print_f CartesianAngleValue_print; +asn_constr_check_f CartesianAngleValue_constraint; +ber_type_decoder_f CartesianAngleValue_decode_ber; +der_type_encoder_f CartesianAngleValue_encode_der; +xer_type_decoder_f CartesianAngleValue_decode_xer; +xer_type_encoder_f CartesianAngleValue_encode_xer; +jer_type_encoder_f CartesianAngleValue_encode_jer; +oer_type_decoder_f CartesianAngleValue_decode_oer; +oer_type_encoder_f CartesianAngleValue_encode_oer; +per_type_decoder_f CartesianAngleValue_decode_uper; +per_type_encoder_f CartesianAngleValue_encode_uper; +per_type_decoder_f CartesianAngleValue_decode_aper; +per_type_encoder_f CartesianAngleValue_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _CartesianAngleValue_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CartesianAngularAccelerationComponent.c b/vanetza/asn1/its2/CartesianAngularAccelerationComponent.c new file mode 100644 index 000000000..fb7698f59 --- /dev/null +++ b/vanetza/asn1/its2/CartesianAngularAccelerationComponent.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CartesianAngularAccelerationComponent.h" + +static asn_TYPE_member_t asn_MBR_CartesianAngularAccelerationComponent_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CartesianAngularAccelerationComponent, value), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianAngularAccelerationComponentValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "value" + }, + { ATF_NOFLAGS, 0, offsetof(struct CartesianAngularAccelerationComponent, confidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AngularAccelerationConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "confidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_CartesianAngularAccelerationComponent_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CartesianAngularAccelerationComponent_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* value */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* confidence */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_CartesianAngularAccelerationComponent_specs_1 = { + sizeof(struct CartesianAngularAccelerationComponent), + offsetof(struct CartesianAngularAccelerationComponent, _asn_ctx), + asn_MAP_CartesianAngularAccelerationComponent_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_CartesianAngularAccelerationComponent = { + "CartesianAngularAccelerationComponent", + "CartesianAngularAccelerationComponent", + &asn_OP_SEQUENCE, + asn_DEF_CartesianAngularAccelerationComponent_tags_1, + sizeof(asn_DEF_CartesianAngularAccelerationComponent_tags_1) + /sizeof(asn_DEF_CartesianAngularAccelerationComponent_tags_1[0]), /* 1 */ + asn_DEF_CartesianAngularAccelerationComponent_tags_1, /* Same as above */ + sizeof(asn_DEF_CartesianAngularAccelerationComponent_tags_1) + /sizeof(asn_DEF_CartesianAngularAccelerationComponent_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CartesianAngularAccelerationComponent_1, + 2, /* Elements count */ + &asn_SPC_CartesianAngularAccelerationComponent_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/CartesianAngularAccelerationComponent.h b/vanetza/asn1/its2/CartesianAngularAccelerationComponent.h new file mode 100644 index 000000000..1afa228da --- /dev/null +++ b/vanetza/asn1/its2/CartesianAngularAccelerationComponent.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CartesianAngularAccelerationComponent_H_ +#define _CartesianAngularAccelerationComponent_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "CartesianAngularAccelerationComponentValue.h" +#include "AngularAccelerationConfidence.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* CartesianAngularAccelerationComponent */ +typedef struct CartesianAngularAccelerationComponent { + CartesianAngularAccelerationComponentValue_t value; + AngularAccelerationConfidence_t confidence; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} CartesianAngularAccelerationComponent_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_CartesianAngularAccelerationComponent; + +#ifdef __cplusplus +} +#endif + +#endif /* _CartesianAngularAccelerationComponent_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CartesianAngularAccelerationComponentValue.c b/vanetza/asn1/its2/CartesianAngularAccelerationComponentValue.c new file mode 100644 index 000000000..f019dae18 --- /dev/null +++ b/vanetza/asn1/its2/CartesianAngularAccelerationComponentValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CartesianAngularAccelerationComponentValue.h" + +int +CartesianAngularAccelerationComponentValue_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 >= -255L && 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_CartesianAngularAccelerationComponentValue_constr_1 CC_NOTUSED = { + { 2, 0 } /* (-255..256) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CartesianAngularAccelerationComponentValue_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, -255, 256 } /* (-255..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_CartesianAngularAccelerationComponentValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_CartesianAngularAccelerationComponentValue = { + "CartesianAngularAccelerationComponentValue", + "CartesianAngularAccelerationComponentValue", + &asn_OP_NativeInteger, + asn_DEF_CartesianAngularAccelerationComponentValue_tags_1, + sizeof(asn_DEF_CartesianAngularAccelerationComponentValue_tags_1) + /sizeof(asn_DEF_CartesianAngularAccelerationComponentValue_tags_1[0]), /* 1 */ + asn_DEF_CartesianAngularAccelerationComponentValue_tags_1, /* Same as above */ + sizeof(asn_DEF_CartesianAngularAccelerationComponentValue_tags_1) + /sizeof(asn_DEF_CartesianAngularAccelerationComponentValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_CartesianAngularAccelerationComponentValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CartesianAngularAccelerationComponentValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CartesianAngularAccelerationComponentValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/CartesianAngularAccelerationComponentValue.h b/vanetza/asn1/its2/CartesianAngularAccelerationComponentValue.h new file mode 100644 index 000000000..d52d95b9d --- /dev/null +++ b/vanetza/asn1/its2/CartesianAngularAccelerationComponentValue.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CartesianAngularAccelerationComponentValue_H_ +#define _CartesianAngularAccelerationComponentValue_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum CartesianAngularAccelerationComponentValue { + CartesianAngularAccelerationComponentValue_negativeOutOfRange = -255, + CartesianAngularAccelerationComponentValue_positiveOutOfRange = 255, + CartesianAngularAccelerationComponentValue_unavailable = 256 +} e_CartesianAngularAccelerationComponentValue; + +/* CartesianAngularAccelerationComponentValue */ +typedef long CartesianAngularAccelerationComponentValue_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_CartesianAngularAccelerationComponentValue_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_CartesianAngularAccelerationComponentValue; +asn_struct_free_f CartesianAngularAccelerationComponentValue_free; +asn_struct_print_f CartesianAngularAccelerationComponentValue_print; +asn_constr_check_f CartesianAngularAccelerationComponentValue_constraint; +ber_type_decoder_f CartesianAngularAccelerationComponentValue_decode_ber; +der_type_encoder_f CartesianAngularAccelerationComponentValue_encode_der; +xer_type_decoder_f CartesianAngularAccelerationComponentValue_decode_xer; +xer_type_encoder_f CartesianAngularAccelerationComponentValue_encode_xer; +jer_type_encoder_f CartesianAngularAccelerationComponentValue_encode_jer; +oer_type_decoder_f CartesianAngularAccelerationComponentValue_decode_oer; +oer_type_encoder_f CartesianAngularAccelerationComponentValue_encode_oer; +per_type_decoder_f CartesianAngularAccelerationComponentValue_decode_uper; +per_type_encoder_f CartesianAngularAccelerationComponentValue_encode_uper; +per_type_decoder_f CartesianAngularAccelerationComponentValue_decode_aper; +per_type_encoder_f CartesianAngularAccelerationComponentValue_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _CartesianAngularAccelerationComponentValue_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CartesianAngularVelocityComponent.c b/vanetza/asn1/its2/CartesianAngularVelocityComponent.c new file mode 100644 index 000000000..d854c911f --- /dev/null +++ b/vanetza/asn1/its2/CartesianAngularVelocityComponent.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CartesianAngularVelocityComponent.h" + +asn_TYPE_member_t asn_MBR_CartesianAngularVelocityComponent_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CartesianAngularVelocityComponent, value), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianAngularVelocityComponentValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "value" + }, + { ATF_NOFLAGS, 0, offsetof(struct CartesianAngularVelocityComponent, confidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AngularSpeedConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "confidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_CartesianAngularVelocityComponent_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CartesianAngularVelocityComponent_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* value */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* confidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CartesianAngularVelocityComponent_specs_1 = { + sizeof(struct CartesianAngularVelocityComponent), + offsetof(struct CartesianAngularVelocityComponent, _asn_ctx), + asn_MAP_CartesianAngularVelocityComponent_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_CartesianAngularVelocityComponent = { + "CartesianAngularVelocityComponent", + "CartesianAngularVelocityComponent", + &asn_OP_SEQUENCE, + asn_DEF_CartesianAngularVelocityComponent_tags_1, + sizeof(asn_DEF_CartesianAngularVelocityComponent_tags_1) + /sizeof(asn_DEF_CartesianAngularVelocityComponent_tags_1[0]), /* 1 */ + asn_DEF_CartesianAngularVelocityComponent_tags_1, /* Same as above */ + sizeof(asn_DEF_CartesianAngularVelocityComponent_tags_1) + /sizeof(asn_DEF_CartesianAngularVelocityComponent_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CartesianAngularVelocityComponent_1, + 2, /* Elements count */ + &asn_SPC_CartesianAngularVelocityComponent_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/CartesianAngularVelocityComponent.h b/vanetza/asn1/its2/CartesianAngularVelocityComponent.h new file mode 100644 index 000000000..c6ce403d7 --- /dev/null +++ b/vanetza/asn1/its2/CartesianAngularVelocityComponent.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CartesianAngularVelocityComponent_H_ +#define _CartesianAngularVelocityComponent_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "CartesianAngularVelocityComponentValue.h" +#include "AngularSpeedConfidence.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* CartesianAngularVelocityComponent */ +typedef struct CartesianAngularVelocityComponent { + CartesianAngularVelocityComponentValue_t value; + AngularSpeedConfidence_t confidence; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} CartesianAngularVelocityComponent_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_CartesianAngularVelocityComponent; +extern asn_SEQUENCE_specifics_t asn_SPC_CartesianAngularVelocityComponent_specs_1; +extern asn_TYPE_member_t asn_MBR_CartesianAngularVelocityComponent_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _CartesianAngularVelocityComponent_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CartesianAngularVelocityComponentValue.c b/vanetza/asn1/its2/CartesianAngularVelocityComponentValue.c new file mode 100644 index 000000000..984f40f6a --- /dev/null +++ b/vanetza/asn1/its2/CartesianAngularVelocityComponentValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CartesianAngularVelocityComponentValue.h" + +int +CartesianAngularVelocityComponentValue_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 >= -255L && 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_CartesianAngularVelocityComponentValue_constr_1 CC_NOTUSED = { + { 2, 0 } /* (-255..256) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CartesianAngularVelocityComponentValue_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, -255, 256 } /* (-255..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_CartesianAngularVelocityComponentValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_CartesianAngularVelocityComponentValue = { + "CartesianAngularVelocityComponentValue", + "CartesianAngularVelocityComponentValue", + &asn_OP_NativeInteger, + asn_DEF_CartesianAngularVelocityComponentValue_tags_1, + sizeof(asn_DEF_CartesianAngularVelocityComponentValue_tags_1) + /sizeof(asn_DEF_CartesianAngularVelocityComponentValue_tags_1[0]), /* 1 */ + asn_DEF_CartesianAngularVelocityComponentValue_tags_1, /* Same as above */ + sizeof(asn_DEF_CartesianAngularVelocityComponentValue_tags_1) + /sizeof(asn_DEF_CartesianAngularVelocityComponentValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_CartesianAngularVelocityComponentValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CartesianAngularVelocityComponentValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CartesianAngularVelocityComponentValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/CartesianAngularVelocityComponentValue.h b/vanetza/asn1/its2/CartesianAngularVelocityComponentValue.h new file mode 100644 index 000000000..7e9c1352a --- /dev/null +++ b/vanetza/asn1/its2/CartesianAngularVelocityComponentValue.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CartesianAngularVelocityComponentValue_H_ +#define _CartesianAngularVelocityComponentValue_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum CartesianAngularVelocityComponentValue { + CartesianAngularVelocityComponentValue_negativeOutofRange = -255, + CartesianAngularVelocityComponentValue_positiveOutOfRange = 255, + CartesianAngularVelocityComponentValue_unavailable = 256 +} e_CartesianAngularVelocityComponentValue; + +/* CartesianAngularVelocityComponentValue */ +typedef long CartesianAngularVelocityComponentValue_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_CartesianAngularVelocityComponentValue_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_CartesianAngularVelocityComponentValue; +asn_struct_free_f CartesianAngularVelocityComponentValue_free; +asn_struct_print_f CartesianAngularVelocityComponentValue_print; +asn_constr_check_f CartesianAngularVelocityComponentValue_constraint; +ber_type_decoder_f CartesianAngularVelocityComponentValue_decode_ber; +der_type_encoder_f CartesianAngularVelocityComponentValue_encode_der; +xer_type_decoder_f CartesianAngularVelocityComponentValue_decode_xer; +xer_type_encoder_f CartesianAngularVelocityComponentValue_encode_xer; +jer_type_encoder_f CartesianAngularVelocityComponentValue_encode_jer; +oer_type_decoder_f CartesianAngularVelocityComponentValue_decode_oer; +oer_type_encoder_f CartesianAngularVelocityComponentValue_encode_oer; +per_type_decoder_f CartesianAngularVelocityComponentValue_decode_uper; +per_type_encoder_f CartesianAngularVelocityComponentValue_encode_uper; +per_type_decoder_f CartesianAngularVelocityComponentValue_decode_aper; +per_type_encoder_f CartesianAngularVelocityComponentValue_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _CartesianAngularVelocityComponentValue_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CartesianCoordinate.c b/vanetza/asn1/its2/CartesianCoordinate.c new file mode 100644 index 000000000..9f54d2619 --- /dev/null +++ b/vanetza/asn1/its2/CartesianCoordinate.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CartesianCoordinate.h" + +int +CartesianCoordinate_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 >= -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; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_CartesianCoordinate_constr_1 CC_NOTUSED = { + { 2, 0 } /* (-32768..32767) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CartesianCoordinate_constr_1 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 ber_tlv_tag_t asn_DEF_CartesianCoordinate_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_CartesianCoordinate = { + "CartesianCoordinate", + "CartesianCoordinate", + &asn_OP_NativeInteger, + asn_DEF_CartesianCoordinate_tags_1, + sizeof(asn_DEF_CartesianCoordinate_tags_1) + /sizeof(asn_DEF_CartesianCoordinate_tags_1[0]), /* 1 */ + asn_DEF_CartesianCoordinate_tags_1, /* Same as above */ + sizeof(asn_DEF_CartesianCoordinate_tags_1) + /sizeof(asn_DEF_CartesianCoordinate_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_CartesianCoordinate_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CartesianCoordinate_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CartesianCoordinate_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/CartesianCoordinate.h b/vanetza/asn1/its2/CartesianCoordinate.h new file mode 100644 index 000000000..5a8c3652e --- /dev/null +++ b/vanetza/asn1/its2/CartesianCoordinate.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CartesianCoordinate_H_ +#define _CartesianCoordinate_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum CartesianCoordinate { + CartesianCoordinate_negativeOutOfRange = -32768, + CartesianCoordinate_positiveOutOfRange = 32767 +} e_CartesianCoordinate; + +/* CartesianCoordinate */ +typedef long CartesianCoordinate_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_CartesianCoordinate_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_CartesianCoordinate; +asn_struct_free_f CartesianCoordinate_free; +asn_struct_print_f CartesianCoordinate_print; +asn_constr_check_f CartesianCoordinate_constraint; +ber_type_decoder_f CartesianCoordinate_decode_ber; +der_type_encoder_f CartesianCoordinate_encode_der; +xer_type_decoder_f CartesianCoordinate_decode_xer; +xer_type_encoder_f CartesianCoordinate_encode_xer; +jer_type_encoder_f CartesianCoordinate_encode_jer; +oer_type_decoder_f CartesianCoordinate_decode_oer; +oer_type_encoder_f CartesianCoordinate_encode_oer; +per_type_decoder_f CartesianCoordinate_decode_uper; +per_type_encoder_f CartesianCoordinate_encode_uper; +per_type_decoder_f CartesianCoordinate_decode_aper; +per_type_encoder_f CartesianCoordinate_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _CartesianCoordinate_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CartesianCoordinateLarge.c b/vanetza/asn1/its2/CartesianCoordinateLarge.c new file mode 100644 index 000000000..b2b9f455e --- /dev/null +++ b/vanetza/asn1/its2/CartesianCoordinateLarge.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CartesianCoordinateLarge.h" + +int +CartesianCoordinateLarge_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 >= -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; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_CartesianCoordinateLarge_constr_1 CC_NOTUSED = { + { 4, 0 } /* (-131072..131071) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CartesianCoordinateLarge_constr_1 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 ber_tlv_tag_t asn_DEF_CartesianCoordinateLarge_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_CartesianCoordinateLarge = { + "CartesianCoordinateLarge", + "CartesianCoordinateLarge", + &asn_OP_NativeInteger, + asn_DEF_CartesianCoordinateLarge_tags_1, + sizeof(asn_DEF_CartesianCoordinateLarge_tags_1) + /sizeof(asn_DEF_CartesianCoordinateLarge_tags_1[0]), /* 1 */ + asn_DEF_CartesianCoordinateLarge_tags_1, /* Same as above */ + sizeof(asn_DEF_CartesianCoordinateLarge_tags_1) + /sizeof(asn_DEF_CartesianCoordinateLarge_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_CartesianCoordinateLarge_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CartesianCoordinateLarge_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CartesianCoordinateLarge_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/CartesianCoordinateLarge.h b/vanetza/asn1/its2/CartesianCoordinateLarge.h new file mode 100644 index 000000000..b6e96bdf0 --- /dev/null +++ b/vanetza/asn1/its2/CartesianCoordinateLarge.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CartesianCoordinateLarge_H_ +#define _CartesianCoordinateLarge_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum CartesianCoordinateLarge { + CartesianCoordinateLarge_negativeOutOfRange = -131072, + CartesianCoordinateLarge_positiveOutOfRange = 131071 +} e_CartesianCoordinateLarge; + +/* CartesianCoordinateLarge */ +typedef long CartesianCoordinateLarge_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_CartesianCoordinateLarge_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_CartesianCoordinateLarge; +asn_struct_free_f CartesianCoordinateLarge_free; +asn_struct_print_f CartesianCoordinateLarge_print; +asn_constr_check_f CartesianCoordinateLarge_constraint; +ber_type_decoder_f CartesianCoordinateLarge_decode_ber; +der_type_encoder_f CartesianCoordinateLarge_encode_der; +xer_type_decoder_f CartesianCoordinateLarge_decode_xer; +xer_type_encoder_f CartesianCoordinateLarge_encode_xer; +jer_type_encoder_f CartesianCoordinateLarge_encode_jer; +oer_type_decoder_f CartesianCoordinateLarge_decode_oer; +oer_type_encoder_f CartesianCoordinateLarge_encode_oer; +per_type_decoder_f CartesianCoordinateLarge_decode_uper; +per_type_encoder_f CartesianCoordinateLarge_encode_uper; +per_type_decoder_f CartesianCoordinateLarge_decode_aper; +per_type_encoder_f CartesianCoordinateLarge_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _CartesianCoordinateLarge_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CartesianCoordinateSmall.c b/vanetza/asn1/its2/CartesianCoordinateSmall.c new file mode 100644 index 000000000..bd2bb04fe --- /dev/null +++ b/vanetza/asn1/its2/CartesianCoordinateSmall.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CartesianCoordinateSmall.h" + +int +CartesianCoordinateSmall_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 >= -3094L && value <= 1001L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_CartesianCoordinateSmall_constr_1 CC_NOTUSED = { + { 2, 0 } /* (-3094..1001) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CartesianCoordinateSmall_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, -3094, 1001 } /* (-3094..1001) */, + { 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_CartesianCoordinateSmall_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_CartesianCoordinateSmall = { + "CartesianCoordinateSmall", + "CartesianCoordinateSmall", + &asn_OP_NativeInteger, + asn_DEF_CartesianCoordinateSmall_tags_1, + sizeof(asn_DEF_CartesianCoordinateSmall_tags_1) + /sizeof(asn_DEF_CartesianCoordinateSmall_tags_1[0]), /* 1 */ + asn_DEF_CartesianCoordinateSmall_tags_1, /* Same as above */ + sizeof(asn_DEF_CartesianCoordinateSmall_tags_1) + /sizeof(asn_DEF_CartesianCoordinateSmall_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_CartesianCoordinateSmall_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CartesianCoordinateSmall_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CartesianCoordinateSmall_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/CartesianCoordinateSmall.h b/vanetza/asn1/its2/CartesianCoordinateSmall.h new file mode 100644 index 000000000..3ee6ef715 --- /dev/null +++ b/vanetza/asn1/its2/CartesianCoordinateSmall.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CartesianCoordinateSmall_H_ +#define _CartesianCoordinateSmall_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum CartesianCoordinateSmall { + CartesianCoordinateSmall_negativeOutOfRange = -3094, + CartesianCoordinateSmall_positiveOutOfRange = 1001 +} e_CartesianCoordinateSmall; + +/* CartesianCoordinateSmall */ +typedef long CartesianCoordinateSmall_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_CartesianCoordinateSmall_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_CartesianCoordinateSmall; +asn_struct_free_f CartesianCoordinateSmall_free; +asn_struct_print_f CartesianCoordinateSmall_print; +asn_constr_check_f CartesianCoordinateSmall_constraint; +ber_type_decoder_f CartesianCoordinateSmall_decode_ber; +der_type_encoder_f CartesianCoordinateSmall_encode_der; +xer_type_decoder_f CartesianCoordinateSmall_decode_xer; +xer_type_encoder_f CartesianCoordinateSmall_encode_xer; +jer_type_encoder_f CartesianCoordinateSmall_encode_jer; +oer_type_decoder_f CartesianCoordinateSmall_decode_oer; +oer_type_encoder_f CartesianCoordinateSmall_encode_oer; +per_type_decoder_f CartesianCoordinateSmall_decode_uper; +per_type_encoder_f CartesianCoordinateSmall_encode_uper; +per_type_decoder_f CartesianCoordinateSmall_decode_aper; +per_type_encoder_f CartesianCoordinateSmall_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _CartesianCoordinateSmall_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CartesianCoordinateWithConfidence.c b/vanetza/asn1/its2/CartesianCoordinateWithConfidence.c new file mode 100644 index 000000000..d046e5add --- /dev/null +++ b/vanetza/asn1/its2/CartesianCoordinateWithConfidence.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CartesianCoordinateWithConfidence.h" + +asn_TYPE_member_t asn_MBR_CartesianCoordinateWithConfidence_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CartesianCoordinateWithConfidence, value), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianCoordinateLarge, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "value" + }, + { ATF_NOFLAGS, 0, offsetof(struct CartesianCoordinateWithConfidence, confidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CoordinateConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "confidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_CartesianCoordinateWithConfidence_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CartesianCoordinateWithConfidence_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* value */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* confidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CartesianCoordinateWithConfidence_specs_1 = { + sizeof(struct CartesianCoordinateWithConfidence), + offsetof(struct CartesianCoordinateWithConfidence, _asn_ctx), + asn_MAP_CartesianCoordinateWithConfidence_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_CartesianCoordinateWithConfidence = { + "CartesianCoordinateWithConfidence", + "CartesianCoordinateWithConfidence", + &asn_OP_SEQUENCE, + asn_DEF_CartesianCoordinateWithConfidence_tags_1, + sizeof(asn_DEF_CartesianCoordinateWithConfidence_tags_1) + /sizeof(asn_DEF_CartesianCoordinateWithConfidence_tags_1[0]), /* 1 */ + asn_DEF_CartesianCoordinateWithConfidence_tags_1, /* Same as above */ + sizeof(asn_DEF_CartesianCoordinateWithConfidence_tags_1) + /sizeof(asn_DEF_CartesianCoordinateWithConfidence_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CartesianCoordinateWithConfidence_1, + 2, /* Elements count */ + &asn_SPC_CartesianCoordinateWithConfidence_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/CartesianCoordinateWithConfidence.h b/vanetza/asn1/its2/CartesianCoordinateWithConfidence.h new file mode 100644 index 000000000..5e74cdf9e --- /dev/null +++ b/vanetza/asn1/its2/CartesianCoordinateWithConfidence.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CartesianCoordinateWithConfidence_H_ +#define _CartesianCoordinateWithConfidence_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "CartesianCoordinateLarge.h" +#include "CoordinateConfidence.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* CartesianCoordinateWithConfidence */ +typedef struct CartesianCoordinateWithConfidence { + CartesianCoordinateLarge_t value; + CoordinateConfidence_t confidence; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} CartesianCoordinateWithConfidence_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_CartesianCoordinateWithConfidence; +extern asn_SEQUENCE_specifics_t asn_SPC_CartesianCoordinateWithConfidence_specs_1; +extern asn_TYPE_member_t asn_MBR_CartesianCoordinateWithConfidence_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _CartesianCoordinateWithConfidence_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CartesianPosition3d.c b/vanetza/asn1/its2/CartesianPosition3d.c new file mode 100644 index 000000000..a0d409c95 --- /dev/null +++ b/vanetza/asn1/its2/CartesianPosition3d.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CartesianPosition3d.h" + +asn_TYPE_member_t asn_MBR_CartesianPosition3d_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CartesianPosition3d, xCoordinate), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianCoordinate, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "xCoordinate" + }, + { ATF_NOFLAGS, 0, offsetof(struct CartesianPosition3d, yCoordinate), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianCoordinate, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "yCoordinate" + }, + { ATF_POINTER, 1, offsetof(struct CartesianPosition3d, zCoordinate), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianCoordinate, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "zCoordinate" + }, +}; +static const int asn_MAP_CartesianPosition3d_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_CartesianPosition3d_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CartesianPosition3d_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* xCoordinate */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* yCoordinate */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* zCoordinate */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CartesianPosition3d_specs_1 = { + sizeof(struct CartesianPosition3d), + offsetof(struct CartesianPosition3d, _asn_ctx), + asn_MAP_CartesianPosition3d_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_CartesianPosition3d_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_CartesianPosition3d = { + "CartesianPosition3d", + "CartesianPosition3d", + &asn_OP_SEQUENCE, + asn_DEF_CartesianPosition3d_tags_1, + sizeof(asn_DEF_CartesianPosition3d_tags_1) + /sizeof(asn_DEF_CartesianPosition3d_tags_1[0]), /* 1 */ + asn_DEF_CartesianPosition3d_tags_1, /* Same as above */ + sizeof(asn_DEF_CartesianPosition3d_tags_1) + /sizeof(asn_DEF_CartesianPosition3d_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CartesianPosition3d_1, + 3, /* Elements count */ + &asn_SPC_CartesianPosition3d_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/CartesianPosition3d.h b/vanetza/asn1/its2/CartesianPosition3d.h new file mode 100644 index 000000000..e919be3db --- /dev/null +++ b/vanetza/asn1/its2/CartesianPosition3d.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CartesianPosition3d_H_ +#define _CartesianPosition3d_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "CartesianCoordinate.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* CartesianPosition3d */ +typedef struct CartesianPosition3d { + CartesianCoordinate_t xCoordinate; + CartesianCoordinate_t yCoordinate; + CartesianCoordinate_t *zCoordinate; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} CartesianPosition3d_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_CartesianPosition3d; +extern asn_SEQUENCE_specifics_t asn_SPC_CartesianPosition3d_specs_1; +extern asn_TYPE_member_t asn_MBR_CartesianPosition3d_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _CartesianPosition3d_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CartesianPosition3dWithConfidence.c b/vanetza/asn1/its2/CartesianPosition3dWithConfidence.c new file mode 100644 index 000000000..2aa8c1c01 --- /dev/null +++ b/vanetza/asn1/its2/CartesianPosition3dWithConfidence.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CartesianPosition3dWithConfidence.h" + +asn_TYPE_member_t asn_MBR_CartesianPosition3dWithConfidence_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CartesianPosition3dWithConfidence, xCoordinate), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianCoordinateWithConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "xCoordinate" + }, + { ATF_NOFLAGS, 0, offsetof(struct CartesianPosition3dWithConfidence, yCoordinate), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianCoordinateWithConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "yCoordinate" + }, + { ATF_POINTER, 1, offsetof(struct CartesianPosition3dWithConfidence, zCoordinate), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianCoordinateWithConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "zCoordinate" + }, +}; +static const int asn_MAP_CartesianPosition3dWithConfidence_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_CartesianPosition3dWithConfidence_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CartesianPosition3dWithConfidence_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* xCoordinate */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* yCoordinate */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* zCoordinate */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CartesianPosition3dWithConfidence_specs_1 = { + sizeof(struct CartesianPosition3dWithConfidence), + offsetof(struct CartesianPosition3dWithConfidence, _asn_ctx), + asn_MAP_CartesianPosition3dWithConfidence_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_CartesianPosition3dWithConfidence_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_CartesianPosition3dWithConfidence = { + "CartesianPosition3dWithConfidence", + "CartesianPosition3dWithConfidence", + &asn_OP_SEQUENCE, + asn_DEF_CartesianPosition3dWithConfidence_tags_1, + sizeof(asn_DEF_CartesianPosition3dWithConfidence_tags_1) + /sizeof(asn_DEF_CartesianPosition3dWithConfidence_tags_1[0]), /* 1 */ + asn_DEF_CartesianPosition3dWithConfidence_tags_1, /* Same as above */ + sizeof(asn_DEF_CartesianPosition3dWithConfidence_tags_1) + /sizeof(asn_DEF_CartesianPosition3dWithConfidence_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CartesianPosition3dWithConfidence_1, + 3, /* Elements count */ + &asn_SPC_CartesianPosition3dWithConfidence_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/CartesianPosition3dWithConfidence.h b/vanetza/asn1/its2/CartesianPosition3dWithConfidence.h new file mode 100644 index 000000000..1d5607729 --- /dev/null +++ b/vanetza/asn1/its2/CartesianPosition3dWithConfidence.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CartesianPosition3dWithConfidence_H_ +#define _CartesianPosition3dWithConfidence_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "CartesianCoordinateWithConfidence.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct CartesianCoordinateWithConfidence; + +/* CartesianPosition3dWithConfidence */ +typedef struct CartesianPosition3dWithConfidence { + CartesianCoordinateWithConfidence_t xCoordinate; + CartesianCoordinateWithConfidence_t yCoordinate; + struct CartesianCoordinateWithConfidence *zCoordinate; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} CartesianPosition3dWithConfidence_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_CartesianPosition3dWithConfidence; +extern asn_SEQUENCE_specifics_t asn_SPC_CartesianPosition3dWithConfidence_specs_1; +extern asn_TYPE_member_t asn_MBR_CartesianPosition3dWithConfidence_1[3]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "CartesianCoordinateWithConfidence.h" + +#endif /* _CartesianPosition3dWithConfidence_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CauseCode.c b/vanetza/asn1/its2/CauseCode.c new file mode 100644 index 000000000..e7250b7e6 --- /dev/null +++ b/vanetza/asn1/its2/CauseCode.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CauseCode.h" + +static asn_TYPE_member_t asn_MBR_CauseCode_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CauseCode, causeCode), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "causeCode" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCode, subCauseCode), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "subCauseCode" + }, +}; +static const ber_tlv_tag_t asn_DEF_CauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CauseCode_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* causeCode */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* subCauseCode */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_CauseCode_specs_1 = { + sizeof(struct CauseCode), + offsetof(struct CauseCode, _asn_ctx), + asn_MAP_CauseCode_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_CauseCode = { + "CauseCode", + "CauseCode", + &asn_OP_SEQUENCE, + 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) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CauseCode_1, + 2, /* Elements count */ + &asn_SPC_CauseCode_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/CauseCode.h b/vanetza/asn1/its2/CauseCode.h new file mode 100644 index 000000000..3c718f4a0 --- /dev/null +++ b/vanetza/asn1/its2/CauseCode.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CauseCode_H_ +#define _CauseCode_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "CauseCodeType.h" +#include "SubCauseCodeType.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* CauseCode */ +typedef struct CauseCode { + CauseCodeType_t causeCode; + SubCauseCodeType_t subCauseCode; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} CauseCode_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_CauseCode; + +#ifdef __cplusplus +} +#endif + +#endif /* _CauseCode_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CauseCodeChoice.c b/vanetza/asn1/its2/CauseCodeChoice.c new file mode 100644 index 000000000..de5c17470 --- /dev/null +++ b/vanetza/asn1/its2/CauseCodeChoice.c @@ -0,0 +1,2769 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CauseCodeChoice.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_CauseCodeChoice_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CauseCodeChoice_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, 0, 128 } /* (0..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_CauseCodeChoice_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved0), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved0" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.trafficCondition1), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TrafficConditionSubCauseCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "trafficCondition1" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.accident2), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AccidentSubCauseCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "accident2" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.roadworks3), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RoadworksSubCauseCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "roadworks3" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved4), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved4" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.impassability5), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ImpassabilitySubCauseCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "impassability5" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.adverseWeatherCondition_Adhesion6), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AdverseWeatherCondition_AdhesionSubCauseCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "adverseWeatherCondition-Adhesion6" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.aquaplaning7), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "aquaplaning7" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved8), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved8" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.hazardousLocation_SurfaceCondition9), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HazardousLocation_SurfaceConditionSubCauseCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "hazardousLocation-SurfaceCondition9" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.hazardousLocation_ObstacleOnTheRoad10), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HazardousLocation_ObstacleOnTheRoadSubCauseCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "hazardousLocation-ObstacleOnTheRoad10" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.hazardousLocation_AnimalOnTheRoad11), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HazardousLocation_AnimalOnTheRoadSubCauseCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "hazardousLocation-AnimalOnTheRoad11" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.humanPresenceOnTheRoad12), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HumanPresenceOnTheRoadSubCauseCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "humanPresenceOnTheRoad12" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved13), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved13" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.wrongWayDriving14), + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_WrongWayDrivingSubCauseCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wrongWayDriving14" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.rescueAndRecoveryWorkInProgress15), + (ASN_TAG_CLASS_CONTEXT | (15 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RescueAndRecoveryWorkInProgressSubCauseCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rescueAndRecoveryWorkInProgress15" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved16), + (ASN_TAG_CLASS_CONTEXT | (16 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved16" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.adverseWeatherCondition_ExtremeWeatherCondition17), + (ASN_TAG_CLASS_CONTEXT | (17 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "adverseWeatherCondition-ExtremeWeatherCondition17" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.adverseWeatherCondition_Visibility18), + (ASN_TAG_CLASS_CONTEXT | (18 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AdverseWeatherCondition_VisibilitySubCauseCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "adverseWeatherCondition-Visibility18" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.adverseWeatherCondition_Precipitation19), + (ASN_TAG_CLASS_CONTEXT | (19 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AdverseWeatherCondition_PrecipitationSubCauseCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "adverseWeatherCondition-Precipitation19" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.violence20), + (ASN_TAG_CLASS_CONTEXT | (20 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "violence20" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved21), + (ASN_TAG_CLASS_CONTEXT | (21 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved21" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved22), + (ASN_TAG_CLASS_CONTEXT | (22 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved22" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved23), + (ASN_TAG_CLASS_CONTEXT | (23 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved23" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved24), + (ASN_TAG_CLASS_CONTEXT | (24 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved24" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved25), + (ASN_TAG_CLASS_CONTEXT | (25 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved25" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.slowVehicle26), + (ASN_TAG_CLASS_CONTEXT | (26 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SlowVehicleSubCauseCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "slowVehicle26" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.dangerousEndOfQueue27), + (ASN_TAG_CLASS_CONTEXT | (27 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DangerousEndOfQueueSubCauseCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dangerousEndOfQueue27" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.publicTransportVehicleApproaching28), + (ASN_TAG_CLASS_CONTEXT | (28 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "publicTransportVehicleApproaching28" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved29), + (ASN_TAG_CLASS_CONTEXT | (29 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved29" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved30), + (ASN_TAG_CLASS_CONTEXT | (30 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved30" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved31), + (ASN_TAG_CLASS_CONTEXT | (31 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved31" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved32), + (ASN_TAG_CLASS_CONTEXT | (32 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved32" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved33), + (ASN_TAG_CLASS_CONTEXT | (33 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved33" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved34), + (ASN_TAG_CLASS_CONTEXT | (34 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved34" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved35), + (ASN_TAG_CLASS_CONTEXT | (35 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved35" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved36), + (ASN_TAG_CLASS_CONTEXT | (36 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved36" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved37), + (ASN_TAG_CLASS_CONTEXT | (37 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved37" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved38), + (ASN_TAG_CLASS_CONTEXT | (38 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved38" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved39), + (ASN_TAG_CLASS_CONTEXT | (39 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved39" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved40), + (ASN_TAG_CLASS_CONTEXT | (40 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved40" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved41), + (ASN_TAG_CLASS_CONTEXT | (41 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved41" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved42), + (ASN_TAG_CLASS_CONTEXT | (42 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved42" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved43), + (ASN_TAG_CLASS_CONTEXT | (43 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved43" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved44), + (ASN_TAG_CLASS_CONTEXT | (44 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved44" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved45), + (ASN_TAG_CLASS_CONTEXT | (45 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved45" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved46), + (ASN_TAG_CLASS_CONTEXT | (46 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved46" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved47), + (ASN_TAG_CLASS_CONTEXT | (47 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved47" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved48), + (ASN_TAG_CLASS_CONTEXT | (48 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved48" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved49), + (ASN_TAG_CLASS_CONTEXT | (49 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved49" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved50), + (ASN_TAG_CLASS_CONTEXT | (50 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved50" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved51), + (ASN_TAG_CLASS_CONTEXT | (51 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved51" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved52), + (ASN_TAG_CLASS_CONTEXT | (52 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved52" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved53), + (ASN_TAG_CLASS_CONTEXT | (53 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved53" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved54), + (ASN_TAG_CLASS_CONTEXT | (54 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved54" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved55), + (ASN_TAG_CLASS_CONTEXT | (55 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved55" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved56), + (ASN_TAG_CLASS_CONTEXT | (56 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved56" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved57), + (ASN_TAG_CLASS_CONTEXT | (57 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved57" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved58), + (ASN_TAG_CLASS_CONTEXT | (58 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved58" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved59), + (ASN_TAG_CLASS_CONTEXT | (59 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved59" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved60), + (ASN_TAG_CLASS_CONTEXT | (60 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved60" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved61), + (ASN_TAG_CLASS_CONTEXT | (61 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved61" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved62), + (ASN_TAG_CLASS_CONTEXT | (62 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved62" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved63), + (ASN_TAG_CLASS_CONTEXT | (63 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved63" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved64), + (ASN_TAG_CLASS_CONTEXT | (64 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved64" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved65), + (ASN_TAG_CLASS_CONTEXT | (65 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved65" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved66), + (ASN_TAG_CLASS_CONTEXT | (66 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved66" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved67), + (ASN_TAG_CLASS_CONTEXT | (67 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved67" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved68), + (ASN_TAG_CLASS_CONTEXT | (68 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved68" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved69), + (ASN_TAG_CLASS_CONTEXT | (69 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved69" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved70), + (ASN_TAG_CLASS_CONTEXT | (70 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved70" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved71), + (ASN_TAG_CLASS_CONTEXT | (71 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved71" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved72), + (ASN_TAG_CLASS_CONTEXT | (72 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved72" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved73), + (ASN_TAG_CLASS_CONTEXT | (73 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved73" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved74), + (ASN_TAG_CLASS_CONTEXT | (74 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved74" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved75), + (ASN_TAG_CLASS_CONTEXT | (75 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved75" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved76), + (ASN_TAG_CLASS_CONTEXT | (76 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved76" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved77), + (ASN_TAG_CLASS_CONTEXT | (77 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved77" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved78), + (ASN_TAG_CLASS_CONTEXT | (78 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved78" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved79), + (ASN_TAG_CLASS_CONTEXT | (79 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved79" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved80), + (ASN_TAG_CLASS_CONTEXT | (80 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved80" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved81), + (ASN_TAG_CLASS_CONTEXT | (81 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved81" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved82), + (ASN_TAG_CLASS_CONTEXT | (82 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved82" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved83), + (ASN_TAG_CLASS_CONTEXT | (83 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved83" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved84), + (ASN_TAG_CLASS_CONTEXT | (84 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved84" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved85), + (ASN_TAG_CLASS_CONTEXT | (85 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved85" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved86), + (ASN_TAG_CLASS_CONTEXT | (86 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved86" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved87), + (ASN_TAG_CLASS_CONTEXT | (87 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved87" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved88), + (ASN_TAG_CLASS_CONTEXT | (88 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved88" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved89), + (ASN_TAG_CLASS_CONTEXT | (89 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved89" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved90), + (ASN_TAG_CLASS_CONTEXT | (90 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved90" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.vehicleBreakdown91), + (ASN_TAG_CLASS_CONTEXT | (91 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VehicleBreakdownSubCauseCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vehicleBreakdown91" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.postCrash92), + (ASN_TAG_CLASS_CONTEXT | (92 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PostCrashSubCauseCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "postCrash92" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.humanProblem93), + (ASN_TAG_CLASS_CONTEXT | (93 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HumanProblemSubCauseCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "humanProblem93" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.stationaryVehicle94), + (ASN_TAG_CLASS_CONTEXT | (94 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StationaryVehicleSubCauseCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "stationaryVehicle94" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.emergencyVehicleApproaching95), + (ASN_TAG_CLASS_CONTEXT | (95 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EmergencyVehicleApproachingSubCauseCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "emergencyVehicleApproaching95" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.hazardousLocation_DangerousCurve96), + (ASN_TAG_CLASS_CONTEXT | (96 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HazardousLocation_DangerousCurveSubCauseCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "hazardousLocation-DangerousCurve96" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.collisionRisk97), + (ASN_TAG_CLASS_CONTEXT | (97 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CollisionRiskSubCauseCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "collisionRisk97" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.signalViolation98), + (ASN_TAG_CLASS_CONTEXT | (98 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SignalViolationSubCauseCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "signalViolation98" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.dangerousSituation99), + (ASN_TAG_CLASS_CONTEXT | (99 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DangerousSituationSubCauseCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dangerousSituation99" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.railwayLevelCrossing100), + (ASN_TAG_CLASS_CONTEXT | (100 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RailwayLevelCrossingSubCauseCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "railwayLevelCrossing100" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved101), + (ASN_TAG_CLASS_CONTEXT | (101 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved101" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved102), + (ASN_TAG_CLASS_CONTEXT | (102 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved102" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved103), + (ASN_TAG_CLASS_CONTEXT | (103 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved103" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved104), + (ASN_TAG_CLASS_CONTEXT | (104 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved104" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved105), + (ASN_TAG_CLASS_CONTEXT | (105 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved105" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved106), + (ASN_TAG_CLASS_CONTEXT | (106 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved106" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved107), + (ASN_TAG_CLASS_CONTEXT | (107 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved107" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved108), + (ASN_TAG_CLASS_CONTEXT | (108 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved108" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved109), + (ASN_TAG_CLASS_CONTEXT | (109 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved109" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved110), + (ASN_TAG_CLASS_CONTEXT | (110 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved110" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved111), + (ASN_TAG_CLASS_CONTEXT | (111 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved111" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved112), + (ASN_TAG_CLASS_CONTEXT | (112 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved112" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved113), + (ASN_TAG_CLASS_CONTEXT | (113 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved113" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved114), + (ASN_TAG_CLASS_CONTEXT | (114 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved114" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved115), + (ASN_TAG_CLASS_CONTEXT | (115 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved115" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved116), + (ASN_TAG_CLASS_CONTEXT | (116 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved116" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved117), + (ASN_TAG_CLASS_CONTEXT | (117 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved117" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved118), + (ASN_TAG_CLASS_CONTEXT | (118 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved118" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved119), + (ASN_TAG_CLASS_CONTEXT | (119 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved119" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved120), + (ASN_TAG_CLASS_CONTEXT | (120 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved120" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved121), + (ASN_TAG_CLASS_CONTEXT | (121 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved121" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved122), + (ASN_TAG_CLASS_CONTEXT | (122 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved122" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved123), + (ASN_TAG_CLASS_CONTEXT | (123 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved123" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved124), + (ASN_TAG_CLASS_CONTEXT | (124 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved124" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved125), + (ASN_TAG_CLASS_CONTEXT | (125 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved125" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved126), + (ASN_TAG_CLASS_CONTEXT | (126 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved126" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved127), + (ASN_TAG_CLASS_CONTEXT | (127 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved127" + }, + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeChoice, choice.reserved128), + (ASN_TAG_CLASS_CONTEXT | (128 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SubCauseCodeType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "reserved128" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_CauseCodeChoice_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* reserved0 */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* trafficCondition1 */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* accident2 */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* roadworks3 */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* reserved4 */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* impassability5 */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* adverseWeatherCondition-Adhesion6 */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* aquaplaning7 */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* reserved8 */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* hazardousLocation-SurfaceCondition9 */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* hazardousLocation-ObstacleOnTheRoad10 */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* hazardousLocation-AnimalOnTheRoad11 */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* humanPresenceOnTheRoad12 */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* reserved13 */ + { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* wrongWayDriving14 */ + { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 }, /* rescueAndRecoveryWorkInProgress15 */ + { (ASN_TAG_CLASS_CONTEXT | (16 << 2)), 16, 0, 0 }, /* reserved16 */ + { (ASN_TAG_CLASS_CONTEXT | (17 << 2)), 17, 0, 0 }, /* adverseWeatherCondition-ExtremeWeatherCondition17 */ + { (ASN_TAG_CLASS_CONTEXT | (18 << 2)), 18, 0, 0 }, /* adverseWeatherCondition-Visibility18 */ + { (ASN_TAG_CLASS_CONTEXT | (19 << 2)), 19, 0, 0 }, /* adverseWeatherCondition-Precipitation19 */ + { (ASN_TAG_CLASS_CONTEXT | (20 << 2)), 20, 0, 0 }, /* violence20 */ + { (ASN_TAG_CLASS_CONTEXT | (21 << 2)), 21, 0, 0 }, /* reserved21 */ + { (ASN_TAG_CLASS_CONTEXT | (22 << 2)), 22, 0, 0 }, /* reserved22 */ + { (ASN_TAG_CLASS_CONTEXT | (23 << 2)), 23, 0, 0 }, /* reserved23 */ + { (ASN_TAG_CLASS_CONTEXT | (24 << 2)), 24, 0, 0 }, /* reserved24 */ + { (ASN_TAG_CLASS_CONTEXT | (25 << 2)), 25, 0, 0 }, /* reserved25 */ + { (ASN_TAG_CLASS_CONTEXT | (26 << 2)), 26, 0, 0 }, /* slowVehicle26 */ + { (ASN_TAG_CLASS_CONTEXT | (27 << 2)), 27, 0, 0 }, /* dangerousEndOfQueue27 */ + { (ASN_TAG_CLASS_CONTEXT | (28 << 2)), 28, 0, 0 }, /* publicTransportVehicleApproaching28 */ + { (ASN_TAG_CLASS_CONTEXT | (29 << 2)), 29, 0, 0 }, /* reserved29 */ + { (ASN_TAG_CLASS_CONTEXT | (30 << 2)), 30, 0, 0 }, /* reserved30 */ + { (ASN_TAG_CLASS_CONTEXT | (31 << 2)), 31, 0, 0 }, /* reserved31 */ + { (ASN_TAG_CLASS_CONTEXT | (32 << 2)), 32, 0, 0 }, /* reserved32 */ + { (ASN_TAG_CLASS_CONTEXT | (33 << 2)), 33, 0, 0 }, /* reserved33 */ + { (ASN_TAG_CLASS_CONTEXT | (34 << 2)), 34, 0, 0 }, /* reserved34 */ + { (ASN_TAG_CLASS_CONTEXT | (35 << 2)), 35, 0, 0 }, /* reserved35 */ + { (ASN_TAG_CLASS_CONTEXT | (36 << 2)), 36, 0, 0 }, /* reserved36 */ + { (ASN_TAG_CLASS_CONTEXT | (37 << 2)), 37, 0, 0 }, /* reserved37 */ + { (ASN_TAG_CLASS_CONTEXT | (38 << 2)), 38, 0, 0 }, /* reserved38 */ + { (ASN_TAG_CLASS_CONTEXT | (39 << 2)), 39, 0, 0 }, /* reserved39 */ + { (ASN_TAG_CLASS_CONTEXT | (40 << 2)), 40, 0, 0 }, /* reserved40 */ + { (ASN_TAG_CLASS_CONTEXT | (41 << 2)), 41, 0, 0 }, /* reserved41 */ + { (ASN_TAG_CLASS_CONTEXT | (42 << 2)), 42, 0, 0 }, /* reserved42 */ + { (ASN_TAG_CLASS_CONTEXT | (43 << 2)), 43, 0, 0 }, /* reserved43 */ + { (ASN_TAG_CLASS_CONTEXT | (44 << 2)), 44, 0, 0 }, /* reserved44 */ + { (ASN_TAG_CLASS_CONTEXT | (45 << 2)), 45, 0, 0 }, /* reserved45 */ + { (ASN_TAG_CLASS_CONTEXT | (46 << 2)), 46, 0, 0 }, /* reserved46 */ + { (ASN_TAG_CLASS_CONTEXT | (47 << 2)), 47, 0, 0 }, /* reserved47 */ + { (ASN_TAG_CLASS_CONTEXT | (48 << 2)), 48, 0, 0 }, /* reserved48 */ + { (ASN_TAG_CLASS_CONTEXT | (49 << 2)), 49, 0, 0 }, /* reserved49 */ + { (ASN_TAG_CLASS_CONTEXT | (50 << 2)), 50, 0, 0 }, /* reserved50 */ + { (ASN_TAG_CLASS_CONTEXT | (51 << 2)), 51, 0, 0 }, /* reserved51 */ + { (ASN_TAG_CLASS_CONTEXT | (52 << 2)), 52, 0, 0 }, /* reserved52 */ + { (ASN_TAG_CLASS_CONTEXT | (53 << 2)), 53, 0, 0 }, /* reserved53 */ + { (ASN_TAG_CLASS_CONTEXT | (54 << 2)), 54, 0, 0 }, /* reserved54 */ + { (ASN_TAG_CLASS_CONTEXT | (55 << 2)), 55, 0, 0 }, /* reserved55 */ + { (ASN_TAG_CLASS_CONTEXT | (56 << 2)), 56, 0, 0 }, /* reserved56 */ + { (ASN_TAG_CLASS_CONTEXT | (57 << 2)), 57, 0, 0 }, /* reserved57 */ + { (ASN_TAG_CLASS_CONTEXT | (58 << 2)), 58, 0, 0 }, /* reserved58 */ + { (ASN_TAG_CLASS_CONTEXT | (59 << 2)), 59, 0, 0 }, /* reserved59 */ + { (ASN_TAG_CLASS_CONTEXT | (60 << 2)), 60, 0, 0 }, /* reserved60 */ + { (ASN_TAG_CLASS_CONTEXT | (61 << 2)), 61, 0, 0 }, /* reserved61 */ + { (ASN_TAG_CLASS_CONTEXT | (62 << 2)), 62, 0, 0 }, /* reserved62 */ + { (ASN_TAG_CLASS_CONTEXT | (63 << 2)), 63, 0, 0 }, /* reserved63 */ + { (ASN_TAG_CLASS_CONTEXT | (64 << 2)), 64, 0, 0 }, /* reserved64 */ + { (ASN_TAG_CLASS_CONTEXT | (65 << 2)), 65, 0, 0 }, /* reserved65 */ + { (ASN_TAG_CLASS_CONTEXT | (66 << 2)), 66, 0, 0 }, /* reserved66 */ + { (ASN_TAG_CLASS_CONTEXT | (67 << 2)), 67, 0, 0 }, /* reserved67 */ + { (ASN_TAG_CLASS_CONTEXT | (68 << 2)), 68, 0, 0 }, /* reserved68 */ + { (ASN_TAG_CLASS_CONTEXT | (69 << 2)), 69, 0, 0 }, /* reserved69 */ + { (ASN_TAG_CLASS_CONTEXT | (70 << 2)), 70, 0, 0 }, /* reserved70 */ + { (ASN_TAG_CLASS_CONTEXT | (71 << 2)), 71, 0, 0 }, /* reserved71 */ + { (ASN_TAG_CLASS_CONTEXT | (72 << 2)), 72, 0, 0 }, /* reserved72 */ + { (ASN_TAG_CLASS_CONTEXT | (73 << 2)), 73, 0, 0 }, /* reserved73 */ + { (ASN_TAG_CLASS_CONTEXT | (74 << 2)), 74, 0, 0 }, /* reserved74 */ + { (ASN_TAG_CLASS_CONTEXT | (75 << 2)), 75, 0, 0 }, /* reserved75 */ + { (ASN_TAG_CLASS_CONTEXT | (76 << 2)), 76, 0, 0 }, /* reserved76 */ + { (ASN_TAG_CLASS_CONTEXT | (77 << 2)), 77, 0, 0 }, /* reserved77 */ + { (ASN_TAG_CLASS_CONTEXT | (78 << 2)), 78, 0, 0 }, /* reserved78 */ + { (ASN_TAG_CLASS_CONTEXT | (79 << 2)), 79, 0, 0 }, /* reserved79 */ + { (ASN_TAG_CLASS_CONTEXT | (80 << 2)), 80, 0, 0 }, /* reserved80 */ + { (ASN_TAG_CLASS_CONTEXT | (81 << 2)), 81, 0, 0 }, /* reserved81 */ + { (ASN_TAG_CLASS_CONTEXT | (82 << 2)), 82, 0, 0 }, /* reserved82 */ + { (ASN_TAG_CLASS_CONTEXT | (83 << 2)), 83, 0, 0 }, /* reserved83 */ + { (ASN_TAG_CLASS_CONTEXT | (84 << 2)), 84, 0, 0 }, /* reserved84 */ + { (ASN_TAG_CLASS_CONTEXT | (85 << 2)), 85, 0, 0 }, /* reserved85 */ + { (ASN_TAG_CLASS_CONTEXT | (86 << 2)), 86, 0, 0 }, /* reserved86 */ + { (ASN_TAG_CLASS_CONTEXT | (87 << 2)), 87, 0, 0 }, /* reserved87 */ + { (ASN_TAG_CLASS_CONTEXT | (88 << 2)), 88, 0, 0 }, /* reserved88 */ + { (ASN_TAG_CLASS_CONTEXT | (89 << 2)), 89, 0, 0 }, /* reserved89 */ + { (ASN_TAG_CLASS_CONTEXT | (90 << 2)), 90, 0, 0 }, /* reserved90 */ + { (ASN_TAG_CLASS_CONTEXT | (91 << 2)), 91, 0, 0 }, /* vehicleBreakdown91 */ + { (ASN_TAG_CLASS_CONTEXT | (92 << 2)), 92, 0, 0 }, /* postCrash92 */ + { (ASN_TAG_CLASS_CONTEXT | (93 << 2)), 93, 0, 0 }, /* humanProblem93 */ + { (ASN_TAG_CLASS_CONTEXT | (94 << 2)), 94, 0, 0 }, /* stationaryVehicle94 */ + { (ASN_TAG_CLASS_CONTEXT | (95 << 2)), 95, 0, 0 }, /* emergencyVehicleApproaching95 */ + { (ASN_TAG_CLASS_CONTEXT | (96 << 2)), 96, 0, 0 }, /* hazardousLocation-DangerousCurve96 */ + { (ASN_TAG_CLASS_CONTEXT | (97 << 2)), 97, 0, 0 }, /* collisionRisk97 */ + { (ASN_TAG_CLASS_CONTEXT | (98 << 2)), 98, 0, 0 }, /* signalViolation98 */ + { (ASN_TAG_CLASS_CONTEXT | (99 << 2)), 99, 0, 0 }, /* dangerousSituation99 */ + { (ASN_TAG_CLASS_CONTEXT | (100 << 2)), 100, 0, 0 }, /* railwayLevelCrossing100 */ + { (ASN_TAG_CLASS_CONTEXT | (101 << 2)), 101, 0, 0 }, /* reserved101 */ + { (ASN_TAG_CLASS_CONTEXT | (102 << 2)), 102, 0, 0 }, /* reserved102 */ + { (ASN_TAG_CLASS_CONTEXT | (103 << 2)), 103, 0, 0 }, /* reserved103 */ + { (ASN_TAG_CLASS_CONTEXT | (104 << 2)), 104, 0, 0 }, /* reserved104 */ + { (ASN_TAG_CLASS_CONTEXT | (105 << 2)), 105, 0, 0 }, /* reserved105 */ + { (ASN_TAG_CLASS_CONTEXT | (106 << 2)), 106, 0, 0 }, /* reserved106 */ + { (ASN_TAG_CLASS_CONTEXT | (107 << 2)), 107, 0, 0 }, /* reserved107 */ + { (ASN_TAG_CLASS_CONTEXT | (108 << 2)), 108, 0, 0 }, /* reserved108 */ + { (ASN_TAG_CLASS_CONTEXT | (109 << 2)), 109, 0, 0 }, /* reserved109 */ + { (ASN_TAG_CLASS_CONTEXT | (110 << 2)), 110, 0, 0 }, /* reserved110 */ + { (ASN_TAG_CLASS_CONTEXT | (111 << 2)), 111, 0, 0 }, /* reserved111 */ + { (ASN_TAG_CLASS_CONTEXT | (112 << 2)), 112, 0, 0 }, /* reserved112 */ + { (ASN_TAG_CLASS_CONTEXT | (113 << 2)), 113, 0, 0 }, /* reserved113 */ + { (ASN_TAG_CLASS_CONTEXT | (114 << 2)), 114, 0, 0 }, /* reserved114 */ + { (ASN_TAG_CLASS_CONTEXT | (115 << 2)), 115, 0, 0 }, /* reserved115 */ + { (ASN_TAG_CLASS_CONTEXT | (116 << 2)), 116, 0, 0 }, /* reserved116 */ + { (ASN_TAG_CLASS_CONTEXT | (117 << 2)), 117, 0, 0 }, /* reserved117 */ + { (ASN_TAG_CLASS_CONTEXT | (118 << 2)), 118, 0, 0 }, /* reserved118 */ + { (ASN_TAG_CLASS_CONTEXT | (119 << 2)), 119, 0, 0 }, /* reserved119 */ + { (ASN_TAG_CLASS_CONTEXT | (120 << 2)), 120, 0, 0 }, /* reserved120 */ + { (ASN_TAG_CLASS_CONTEXT | (121 << 2)), 121, 0, 0 }, /* reserved121 */ + { (ASN_TAG_CLASS_CONTEXT | (122 << 2)), 122, 0, 0 }, /* reserved122 */ + { (ASN_TAG_CLASS_CONTEXT | (123 << 2)), 123, 0, 0 }, /* reserved123 */ + { (ASN_TAG_CLASS_CONTEXT | (124 << 2)), 124, 0, 0 }, /* reserved124 */ + { (ASN_TAG_CLASS_CONTEXT | (125 << 2)), 125, 0, 0 }, /* reserved125 */ + { (ASN_TAG_CLASS_CONTEXT | (126 << 2)), 126, 0, 0 }, /* reserved126 */ + { (ASN_TAG_CLASS_CONTEXT | (127 << 2)), 127, 0, 0 }, /* reserved127 */ + { (ASN_TAG_CLASS_CONTEXT | (128 << 2)), 128, 0, 0 } /* reserved128 */ +}; +asn_CHOICE_specifics_t asn_SPC_CauseCodeChoice_specs_1 = { + sizeof(struct CauseCodeChoice), + offsetof(struct CauseCodeChoice, _asn_ctx), + offsetof(struct CauseCodeChoice, present), + sizeof(((struct CauseCodeChoice *)0)->present), + asn_MAP_CauseCodeChoice_tag2el_1, + 129, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_CauseCodeChoice = { + "CauseCodeChoice", + "CauseCodeChoice", + &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) + &asn_OER_type_CauseCodeChoice_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CauseCodeChoice_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_CauseCodeChoice_1, + 129, /* Elements count */ + &asn_SPC_CauseCodeChoice_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/CauseCodeChoice.h b/vanetza/asn1/its2/CauseCodeChoice.h new file mode 100644 index 000000000..0fc2c7ab4 --- /dev/null +++ b/vanetza/asn1/its2/CauseCodeChoice.h @@ -0,0 +1,332 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CauseCodeChoice_H_ +#define _CauseCodeChoice_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "SubCauseCodeType.h" +#include "TrafficConditionSubCauseCode.h" +#include "AccidentSubCauseCode.h" +#include "RoadworksSubCauseCode.h" +#include "ImpassabilitySubCauseCode.h" +#include "AdverseWeatherCondition-AdhesionSubCauseCode.h" +#include "HazardousLocation-SurfaceConditionSubCauseCode.h" +#include "HazardousLocation-ObstacleOnTheRoadSubCauseCode.h" +#include "HazardousLocation-AnimalOnTheRoadSubCauseCode.h" +#include "HumanPresenceOnTheRoadSubCauseCode.h" +#include "WrongWayDrivingSubCauseCode.h" +#include "RescueAndRecoveryWorkInProgressSubCauseCode.h" +#include "AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode.h" +#include "AdverseWeatherCondition-VisibilitySubCauseCode.h" +#include "AdverseWeatherCondition-PrecipitationSubCauseCode.h" +#include "SlowVehicleSubCauseCode.h" +#include "DangerousEndOfQueueSubCauseCode.h" +#include "VehicleBreakdownSubCauseCode.h" +#include "PostCrashSubCauseCode.h" +#include "HumanProblemSubCauseCode.h" +#include "StationaryVehicleSubCauseCode.h" +#include "EmergencyVehicleApproachingSubCauseCode.h" +#include "HazardousLocation-DangerousCurveSubCauseCode.h" +#include "CollisionRiskSubCauseCode.h" +#include "SignalViolationSubCauseCode.h" +#include "DangerousSituationSubCauseCode.h" +#include "RailwayLevelCrossingSubCauseCode.h" +#include "constr_CHOICE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum CauseCodeChoice_PR { + CauseCodeChoice_PR_NOTHING, /* No components present */ + CauseCodeChoice_PR_reserved0, + CauseCodeChoice_PR_trafficCondition1, + CauseCodeChoice_PR_accident2, + CauseCodeChoice_PR_roadworks3, + CauseCodeChoice_PR_reserved4, + CauseCodeChoice_PR_impassability5, + CauseCodeChoice_PR_adverseWeatherCondition_Adhesion6, + CauseCodeChoice_PR_aquaplaning7, + CauseCodeChoice_PR_reserved8, + CauseCodeChoice_PR_hazardousLocation_SurfaceCondition9, + CauseCodeChoice_PR_hazardousLocation_ObstacleOnTheRoad10, + CauseCodeChoice_PR_hazardousLocation_AnimalOnTheRoad11, + CauseCodeChoice_PR_humanPresenceOnTheRoad12, + CauseCodeChoice_PR_reserved13, + CauseCodeChoice_PR_wrongWayDriving14, + CauseCodeChoice_PR_rescueAndRecoveryWorkInProgress15, + CauseCodeChoice_PR_reserved16, + CauseCodeChoice_PR_adverseWeatherCondition_ExtremeWeatherCondition17, + CauseCodeChoice_PR_adverseWeatherCondition_Visibility18, + CauseCodeChoice_PR_adverseWeatherCondition_Precipitation19, + CauseCodeChoice_PR_violence20, + CauseCodeChoice_PR_reserved21, + CauseCodeChoice_PR_reserved22, + CauseCodeChoice_PR_reserved23, + CauseCodeChoice_PR_reserved24, + CauseCodeChoice_PR_reserved25, + CauseCodeChoice_PR_slowVehicle26, + CauseCodeChoice_PR_dangerousEndOfQueue27, + CauseCodeChoice_PR_publicTransportVehicleApproaching28, + CauseCodeChoice_PR_reserved29, + CauseCodeChoice_PR_reserved30, + CauseCodeChoice_PR_reserved31, + CauseCodeChoice_PR_reserved32, + CauseCodeChoice_PR_reserved33, + CauseCodeChoice_PR_reserved34, + CauseCodeChoice_PR_reserved35, + CauseCodeChoice_PR_reserved36, + CauseCodeChoice_PR_reserved37, + CauseCodeChoice_PR_reserved38, + CauseCodeChoice_PR_reserved39, + CauseCodeChoice_PR_reserved40, + CauseCodeChoice_PR_reserved41, + CauseCodeChoice_PR_reserved42, + CauseCodeChoice_PR_reserved43, + CauseCodeChoice_PR_reserved44, + CauseCodeChoice_PR_reserved45, + CauseCodeChoice_PR_reserved46, + CauseCodeChoice_PR_reserved47, + CauseCodeChoice_PR_reserved48, + CauseCodeChoice_PR_reserved49, + CauseCodeChoice_PR_reserved50, + CauseCodeChoice_PR_reserved51, + CauseCodeChoice_PR_reserved52, + CauseCodeChoice_PR_reserved53, + CauseCodeChoice_PR_reserved54, + CauseCodeChoice_PR_reserved55, + CauseCodeChoice_PR_reserved56, + CauseCodeChoice_PR_reserved57, + CauseCodeChoice_PR_reserved58, + CauseCodeChoice_PR_reserved59, + CauseCodeChoice_PR_reserved60, + CauseCodeChoice_PR_reserved61, + CauseCodeChoice_PR_reserved62, + CauseCodeChoice_PR_reserved63, + CauseCodeChoice_PR_reserved64, + CauseCodeChoice_PR_reserved65, + CauseCodeChoice_PR_reserved66, + CauseCodeChoice_PR_reserved67, + CauseCodeChoice_PR_reserved68, + CauseCodeChoice_PR_reserved69, + CauseCodeChoice_PR_reserved70, + CauseCodeChoice_PR_reserved71, + CauseCodeChoice_PR_reserved72, + CauseCodeChoice_PR_reserved73, + CauseCodeChoice_PR_reserved74, + CauseCodeChoice_PR_reserved75, + CauseCodeChoice_PR_reserved76, + CauseCodeChoice_PR_reserved77, + CauseCodeChoice_PR_reserved78, + CauseCodeChoice_PR_reserved79, + CauseCodeChoice_PR_reserved80, + CauseCodeChoice_PR_reserved81, + CauseCodeChoice_PR_reserved82, + CauseCodeChoice_PR_reserved83, + CauseCodeChoice_PR_reserved84, + CauseCodeChoice_PR_reserved85, + CauseCodeChoice_PR_reserved86, + CauseCodeChoice_PR_reserved87, + CauseCodeChoice_PR_reserved88, + CauseCodeChoice_PR_reserved89, + CauseCodeChoice_PR_reserved90, + CauseCodeChoice_PR_vehicleBreakdown91, + CauseCodeChoice_PR_postCrash92, + CauseCodeChoice_PR_humanProblem93, + CauseCodeChoice_PR_stationaryVehicle94, + CauseCodeChoice_PR_emergencyVehicleApproaching95, + CauseCodeChoice_PR_hazardousLocation_DangerousCurve96, + CauseCodeChoice_PR_collisionRisk97, + CauseCodeChoice_PR_signalViolation98, + CauseCodeChoice_PR_dangerousSituation99, + CauseCodeChoice_PR_railwayLevelCrossing100, + CauseCodeChoice_PR_reserved101, + CauseCodeChoice_PR_reserved102, + CauseCodeChoice_PR_reserved103, + CauseCodeChoice_PR_reserved104, + CauseCodeChoice_PR_reserved105, + CauseCodeChoice_PR_reserved106, + CauseCodeChoice_PR_reserved107, + CauseCodeChoice_PR_reserved108, + CauseCodeChoice_PR_reserved109, + CauseCodeChoice_PR_reserved110, + CauseCodeChoice_PR_reserved111, + CauseCodeChoice_PR_reserved112, + CauseCodeChoice_PR_reserved113, + CauseCodeChoice_PR_reserved114, + CauseCodeChoice_PR_reserved115, + CauseCodeChoice_PR_reserved116, + CauseCodeChoice_PR_reserved117, + CauseCodeChoice_PR_reserved118, + CauseCodeChoice_PR_reserved119, + CauseCodeChoice_PR_reserved120, + CauseCodeChoice_PR_reserved121, + CauseCodeChoice_PR_reserved122, + CauseCodeChoice_PR_reserved123, + CauseCodeChoice_PR_reserved124, + CauseCodeChoice_PR_reserved125, + CauseCodeChoice_PR_reserved126, + CauseCodeChoice_PR_reserved127, + CauseCodeChoice_PR_reserved128 +} CauseCodeChoice_PR; + +/* CauseCodeChoice */ +typedef struct CauseCodeChoice { + CauseCodeChoice_PR present; + union CauseCodeChoice_u { + SubCauseCodeType_t reserved0; + TrafficConditionSubCauseCode_t trafficCondition1; + AccidentSubCauseCode_t accident2; + RoadworksSubCauseCode_t roadworks3; + SubCauseCodeType_t reserved4; + ImpassabilitySubCauseCode_t impassability5; + AdverseWeatherCondition_AdhesionSubCauseCode_t adverseWeatherCondition_Adhesion6; + SubCauseCodeType_t aquaplaning7; + SubCauseCodeType_t reserved8; + HazardousLocation_SurfaceConditionSubCauseCode_t hazardousLocation_SurfaceCondition9; + HazardousLocation_ObstacleOnTheRoadSubCauseCode_t hazardousLocation_ObstacleOnTheRoad10; + HazardousLocation_AnimalOnTheRoadSubCauseCode_t hazardousLocation_AnimalOnTheRoad11; + HumanPresenceOnTheRoadSubCauseCode_t humanPresenceOnTheRoad12; + SubCauseCodeType_t reserved13; + WrongWayDrivingSubCauseCode_t wrongWayDriving14; + RescueAndRecoveryWorkInProgressSubCauseCode_t rescueAndRecoveryWorkInProgress15; + SubCauseCodeType_t reserved16; + AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_t adverseWeatherCondition_ExtremeWeatherCondition17; + AdverseWeatherCondition_VisibilitySubCauseCode_t adverseWeatherCondition_Visibility18; + AdverseWeatherCondition_PrecipitationSubCauseCode_t adverseWeatherCondition_Precipitation19; + SubCauseCodeType_t violence20; + SubCauseCodeType_t reserved21; + SubCauseCodeType_t reserved22; + SubCauseCodeType_t reserved23; + SubCauseCodeType_t reserved24; + SubCauseCodeType_t reserved25; + SlowVehicleSubCauseCode_t slowVehicle26; + DangerousEndOfQueueSubCauseCode_t dangerousEndOfQueue27; + SubCauseCodeType_t publicTransportVehicleApproaching28; + SubCauseCodeType_t reserved29; + SubCauseCodeType_t reserved30; + SubCauseCodeType_t reserved31; + SubCauseCodeType_t reserved32; + SubCauseCodeType_t reserved33; + SubCauseCodeType_t reserved34; + SubCauseCodeType_t reserved35; + SubCauseCodeType_t reserved36; + SubCauseCodeType_t reserved37; + SubCauseCodeType_t reserved38; + SubCauseCodeType_t reserved39; + SubCauseCodeType_t reserved40; + SubCauseCodeType_t reserved41; + SubCauseCodeType_t reserved42; + SubCauseCodeType_t reserved43; + SubCauseCodeType_t reserved44; + SubCauseCodeType_t reserved45; + SubCauseCodeType_t reserved46; + SubCauseCodeType_t reserved47; + SubCauseCodeType_t reserved48; + SubCauseCodeType_t reserved49; + SubCauseCodeType_t reserved50; + SubCauseCodeType_t reserved51; + SubCauseCodeType_t reserved52; + SubCauseCodeType_t reserved53; + SubCauseCodeType_t reserved54; + SubCauseCodeType_t reserved55; + SubCauseCodeType_t reserved56; + SubCauseCodeType_t reserved57; + SubCauseCodeType_t reserved58; + SubCauseCodeType_t reserved59; + SubCauseCodeType_t reserved60; + SubCauseCodeType_t reserved61; + SubCauseCodeType_t reserved62; + SubCauseCodeType_t reserved63; + SubCauseCodeType_t reserved64; + SubCauseCodeType_t reserved65; + SubCauseCodeType_t reserved66; + SubCauseCodeType_t reserved67; + SubCauseCodeType_t reserved68; + SubCauseCodeType_t reserved69; + SubCauseCodeType_t reserved70; + SubCauseCodeType_t reserved71; + SubCauseCodeType_t reserved72; + SubCauseCodeType_t reserved73; + SubCauseCodeType_t reserved74; + SubCauseCodeType_t reserved75; + SubCauseCodeType_t reserved76; + SubCauseCodeType_t reserved77; + SubCauseCodeType_t reserved78; + SubCauseCodeType_t reserved79; + SubCauseCodeType_t reserved80; + SubCauseCodeType_t reserved81; + SubCauseCodeType_t reserved82; + SubCauseCodeType_t reserved83; + SubCauseCodeType_t reserved84; + SubCauseCodeType_t reserved85; + SubCauseCodeType_t reserved86; + SubCauseCodeType_t reserved87; + SubCauseCodeType_t reserved88; + SubCauseCodeType_t reserved89; + SubCauseCodeType_t reserved90; + VehicleBreakdownSubCauseCode_t vehicleBreakdown91; + PostCrashSubCauseCode_t postCrash92; + HumanProblemSubCauseCode_t humanProblem93; + StationaryVehicleSubCauseCode_t stationaryVehicle94; + EmergencyVehicleApproachingSubCauseCode_t emergencyVehicleApproaching95; + HazardousLocation_DangerousCurveSubCauseCode_t hazardousLocation_DangerousCurve96; + CollisionRiskSubCauseCode_t collisionRisk97; + SignalViolationSubCauseCode_t signalViolation98; + DangerousSituationSubCauseCode_t dangerousSituation99; + RailwayLevelCrossingSubCauseCode_t railwayLevelCrossing100; + SubCauseCodeType_t reserved101; + SubCauseCodeType_t reserved102; + SubCauseCodeType_t reserved103; + SubCauseCodeType_t reserved104; + SubCauseCodeType_t reserved105; + SubCauseCodeType_t reserved106; + SubCauseCodeType_t reserved107; + SubCauseCodeType_t reserved108; + SubCauseCodeType_t reserved109; + SubCauseCodeType_t reserved110; + SubCauseCodeType_t reserved111; + SubCauseCodeType_t reserved112; + SubCauseCodeType_t reserved113; + SubCauseCodeType_t reserved114; + SubCauseCodeType_t reserved115; + SubCauseCodeType_t reserved116; + SubCauseCodeType_t reserved117; + SubCauseCodeType_t reserved118; + SubCauseCodeType_t reserved119; + SubCauseCodeType_t reserved120; + SubCauseCodeType_t reserved121; + SubCauseCodeType_t reserved122; + SubCauseCodeType_t reserved123; + SubCauseCodeType_t reserved124; + SubCauseCodeType_t reserved125; + SubCauseCodeType_t reserved126; + SubCauseCodeType_t reserved127; + SubCauseCodeType_t reserved128; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} CauseCodeChoice_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_CauseCodeChoice; +extern asn_CHOICE_specifics_t asn_SPC_CauseCodeChoice_specs_1; +extern asn_TYPE_member_t asn_MBR_CauseCodeChoice_1[129]; +extern asn_per_constraints_t asn_PER_type_CauseCodeChoice_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _CauseCodeChoice_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CauseCodeType.c b/vanetza/asn1/its2/CauseCodeType.c new file mode 100644 index 000000000..af03d2b38 --- /dev/null +++ b/vanetza/asn1/its2/CauseCodeType.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CauseCodeType.h" + +int +CauseCodeType_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_CauseCodeType_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CauseCodeType_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_CauseCodeType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_CauseCodeType = { + "CauseCodeType", + "CauseCodeType", + &asn_OP_NativeInteger, + asn_DEF_CauseCodeType_tags_1, + sizeof(asn_DEF_CauseCodeType_tags_1) + /sizeof(asn_DEF_CauseCodeType_tags_1[0]), /* 1 */ + asn_DEF_CauseCodeType_tags_1, /* Same as above */ + sizeof(asn_DEF_CauseCodeType_tags_1) + /sizeof(asn_DEF_CauseCodeType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_CauseCodeType_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CauseCodeType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CauseCodeType_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/CauseCodeType.h b/vanetza/asn1/its2/CauseCodeType.h new file mode 100644 index 000000000..de32ce0e3 --- /dev/null +++ b/vanetza/asn1/its2/CauseCodeType.h @@ -0,0 +1,80 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CauseCodeType_H_ +#define _CauseCodeType_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum CauseCodeType { + CauseCodeType_trafficCondition = 1, + CauseCodeType_accident = 2, + CauseCodeType_roadworks = 3, + CauseCodeType_impassability = 5, + CauseCodeType_adverseWeatherCondition_Adhesion = 6, + CauseCodeType_aquaplaning = 7, + CauseCodeType_hazardousLocation_SurfaceCondition = 9, + CauseCodeType_hazardousLocation_ObstacleOnTheRoad = 10, + CauseCodeType_hazardousLocation_AnimalOnTheRoad = 11, + CauseCodeType_humanPresenceOnTheRoad = 12, + CauseCodeType_wrongWayDriving = 14, + CauseCodeType_rescueAndRecoveryWorkInProgress = 15, + CauseCodeType_adverseWeatherCondition_ExtremeWeatherCondition = 17, + CauseCodeType_adverseWeatherCondition_Visibility = 18, + CauseCodeType_adverseWeatherCondition_Precipitation = 19, + CauseCodeType_violence = 20, + CauseCodeType_slowVehicle = 26, + CauseCodeType_dangerousEndOfQueue = 27, + CauseCodeType_publicTransportVehicleApproaching = 28, + CauseCodeType_vehicleBreakdown = 91, + CauseCodeType_postCrash = 92, + CauseCodeType_humanProblem = 93, + CauseCodeType_stationaryVehicle = 94, + CauseCodeType_emergencyVehicleApproaching = 95, + CauseCodeType_hazardousLocation_DangerousCurve = 96, + CauseCodeType_collisionRisk = 97, + CauseCodeType_signalViolation = 98, + CauseCodeType_dangerousSituation = 99, + CauseCodeType_railwayLevelCrossing = 100 +} e_CauseCodeType; + +/* CauseCodeType */ +typedef long CauseCodeType_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_CauseCodeType_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_CauseCodeType; +asn_struct_free_f CauseCodeType_free; +asn_struct_print_f CauseCodeType_print; +asn_constr_check_f CauseCodeType_constraint; +ber_type_decoder_f CauseCodeType_decode_ber; +der_type_encoder_f CauseCodeType_encode_der; +xer_type_decoder_f CauseCodeType_decode_xer; +xer_type_encoder_f CauseCodeType_encode_xer; +jer_type_encoder_f CauseCodeType_encode_jer; +oer_type_decoder_f CauseCodeType_decode_oer; +oer_type_encoder_f CauseCodeType_encode_oer; +per_type_decoder_f CauseCodeType_decode_uper; +per_type_encoder_f CauseCodeType_encode_uper; +per_type_decoder_f CauseCodeType_decode_aper; +per_type_encoder_f CauseCodeType_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _CauseCodeType_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CauseCodeV2.c b/vanetza/asn1/its2/CauseCodeV2.c new file mode 100644 index 000000000..ed48e458f --- /dev/null +++ b/vanetza/asn1/its2/CauseCodeV2.c @@ -0,0 +1,72 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CauseCodeV2.h" + +asn_TYPE_member_t asn_MBR_CauseCodeV2_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CauseCodeV2, ccAndScc), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_CauseCodeChoice, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ccAndScc" + }, +}; +static const ber_tlv_tag_t asn_DEF_CauseCodeV2_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CauseCodeV2_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ccAndScc */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CauseCodeV2_specs_1 = { + sizeof(struct CauseCodeV2), + offsetof(struct CauseCodeV2, _asn_ctx), + asn_MAP_CauseCodeV2_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_CauseCodeV2 = { + "CauseCodeV2", + "CauseCodeV2", + &asn_OP_SEQUENCE, + asn_DEF_CauseCodeV2_tags_1, + sizeof(asn_DEF_CauseCodeV2_tags_1) + /sizeof(asn_DEF_CauseCodeV2_tags_1[0]), /* 1 */ + asn_DEF_CauseCodeV2_tags_1, /* Same as above */ + sizeof(asn_DEF_CauseCodeV2_tags_1) + /sizeof(asn_DEF_CauseCodeV2_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CauseCodeV2_1, + 1, /* Elements count */ + &asn_SPC_CauseCodeV2_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/CauseCodeV2.h b/vanetza/asn1/its2/CauseCodeV2.h new file mode 100644 index 000000000..02ef1359c --- /dev/null +++ b/vanetza/asn1/its2/CauseCodeV2.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CauseCodeV2_H_ +#define _CauseCodeV2_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "CauseCodeChoice.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* CauseCodeV2 */ +typedef struct CauseCodeV2 { + CauseCodeChoice_t ccAndScc; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} CauseCodeV2_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_CauseCodeV2; +extern asn_SEQUENCE_specifics_t asn_SPC_CauseCodeV2_specs_1; +extern asn_TYPE_member_t asn_MBR_CauseCodeV2_1[1]; + +#ifdef __cplusplus +} +#endif + +#endif /* _CauseCodeV2_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CenDsrcTollingZone.c b/vanetza/asn1/its2/CenDsrcTollingZone.c new file mode 100644 index 000000000..59e989043 --- /dev/null +++ b/vanetza/asn1/its2/CenDsrcTollingZone.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CenDsrcTollingZone.h" + +asn_TYPE_member_t asn_MBR_CenDsrcTollingZone_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CenDsrcTollingZone, protectedZoneLatitude), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Latitude, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "protectedZoneLatitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct CenDsrcTollingZone, protectedZoneLongitude), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Longitude, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "protectedZoneLongitude" + }, + { ATF_POINTER, 1, offsetof(struct CenDsrcTollingZone, cenDsrcTollingZoneId), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ProtectedZoneId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cenDsrcTollingZoneId" + }, +}; +static const int asn_MAP_CenDsrcTollingZone_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_CenDsrcTollingZone_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CenDsrcTollingZone_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* protectedZoneLatitude */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* protectedZoneLongitude */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* cenDsrcTollingZoneId */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CenDsrcTollingZone_specs_1 = { + sizeof(struct CenDsrcTollingZone), + offsetof(struct CenDsrcTollingZone, _asn_ctx), + asn_MAP_CenDsrcTollingZone_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_CenDsrcTollingZone_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_CenDsrcTollingZone = { + "CenDsrcTollingZone", + "CenDsrcTollingZone", + &asn_OP_SEQUENCE, + asn_DEF_CenDsrcTollingZone_tags_1, + sizeof(asn_DEF_CenDsrcTollingZone_tags_1) + /sizeof(asn_DEF_CenDsrcTollingZone_tags_1[0]), /* 1 */ + asn_DEF_CenDsrcTollingZone_tags_1, /* Same as above */ + sizeof(asn_DEF_CenDsrcTollingZone_tags_1) + /sizeof(asn_DEF_CenDsrcTollingZone_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CenDsrcTollingZone_1, + 3, /* Elements count */ + &asn_SPC_CenDsrcTollingZone_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/CenDsrcTollingZone.h b/vanetza/asn1/its2/CenDsrcTollingZone.h new file mode 100644 index 000000000..0252f8106 --- /dev/null +++ b/vanetza/asn1/its2/CenDsrcTollingZone.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CenDsrcTollingZone_H_ +#define _CenDsrcTollingZone_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "Latitude.h" +#include "Longitude.h" +#include "ProtectedZoneId.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* CenDsrcTollingZone */ +typedef struct CenDsrcTollingZone { + Latitude_t protectedZoneLatitude; + Longitude_t protectedZoneLongitude; + ProtectedZoneId_t *cenDsrcTollingZoneId; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} CenDsrcTollingZone_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_CenDsrcTollingZone; +extern asn_SEQUENCE_specifics_t asn_SPC_CenDsrcTollingZone_specs_1; +extern asn_TYPE_member_t asn_MBR_CenDsrcTollingZone_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _CenDsrcTollingZone_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CenDsrcTollingZoneID.c b/vanetza/asn1/its2/CenDsrcTollingZoneID.c new file mode 100644 index 000000000..0c3aee79d --- /dev/null +++ b/vanetza/asn1/its2/CenDsrcTollingZoneID.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CenDsrcTollingZoneID.h" + +int +CenDsrcTollingZoneID_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 <= 134217727L)) { + /* 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 ProtectedZoneId, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_CenDsrcTollingZoneID_constr_1 CC_NOTUSED = { + { 4, 1 } /* (0..134217727) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_CenDsrcTollingZoneID_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 27, -1, 0, 134217727 } /* (0..134217727) */, + { 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_CenDsrcTollingZoneID_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_CenDsrcTollingZoneID = { + "CenDsrcTollingZoneID", + "CenDsrcTollingZoneID", + &asn_OP_NativeInteger, + asn_DEF_CenDsrcTollingZoneID_tags_1, + sizeof(asn_DEF_CenDsrcTollingZoneID_tags_1) + /sizeof(asn_DEF_CenDsrcTollingZoneID_tags_1[0]), /* 1 */ + asn_DEF_CenDsrcTollingZoneID_tags_1, /* Same as above */ + sizeof(asn_DEF_CenDsrcTollingZoneID_tags_1) + /sizeof(asn_DEF_CenDsrcTollingZoneID_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_CenDsrcTollingZoneID_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CenDsrcTollingZoneID_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CenDsrcTollingZoneID_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/CenDsrcTollingZoneID.h b/vanetza/asn1/its2/CenDsrcTollingZoneID.h new file mode 100644 index 000000000..8af7ea668 --- /dev/null +++ b/vanetza/asn1/its2/CenDsrcTollingZoneID.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CenDsrcTollingZoneID_H_ +#define _CenDsrcTollingZoneID_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "ProtectedZoneId.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* CenDsrcTollingZoneID */ +typedef ProtectedZoneId_t CenDsrcTollingZoneID_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_CenDsrcTollingZoneID; +asn_struct_free_f CenDsrcTollingZoneID_free; +asn_struct_print_f CenDsrcTollingZoneID_print; +asn_constr_check_f CenDsrcTollingZoneID_constraint; +ber_type_decoder_f CenDsrcTollingZoneID_decode_ber; +der_type_encoder_f CenDsrcTollingZoneID_encode_der; +xer_type_decoder_f CenDsrcTollingZoneID_decode_xer; +xer_type_encoder_f CenDsrcTollingZoneID_encode_xer; +jer_type_encoder_f CenDsrcTollingZoneID_encode_jer; +oer_type_decoder_f CenDsrcTollingZoneID_decode_oer; +oer_type_encoder_f CenDsrcTollingZoneID_encode_oer; +per_type_decoder_f CenDsrcTollingZoneID_decode_uper; +per_type_encoder_f CenDsrcTollingZoneID_encode_uper; +per_type_decoder_f CenDsrcTollingZoneID_decode_aper; +per_type_encoder_f CenDsrcTollingZoneID_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _CenDsrcTollingZoneID_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CircularShape.c b/vanetza/asn1/its2/CircularShape.c new file mode 100644 index 000000000..ea9f5b62c --- /dev/null +++ b/vanetza/asn1/its2/CircularShape.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CircularShape.h" + +asn_TYPE_member_t asn_MBR_CircularShape_1[] = { + { ATF_POINTER, 1, offsetof(struct CircularShape, shapeReferencePoint), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianPosition3d, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "shapeReferencePoint" + }, + { ATF_NOFLAGS, 0, offsetof(struct CircularShape, radius), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StandardLength12b, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "radius" + }, + { ATF_POINTER, 1, offsetof(struct CircularShape, height), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StandardLength12b, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "height" + }, +}; +static const int asn_MAP_CircularShape_oms_1[] = { 0, 2 }; +static const ber_tlv_tag_t asn_DEF_CircularShape_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CircularShape_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* shapeReferencePoint */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* radius */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* height */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CircularShape_specs_1 = { + sizeof(struct CircularShape), + offsetof(struct CircularShape, _asn_ctx), + asn_MAP_CircularShape_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_CircularShape_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_CircularShape = { + "CircularShape", + "CircularShape", + &asn_OP_SEQUENCE, + asn_DEF_CircularShape_tags_1, + sizeof(asn_DEF_CircularShape_tags_1) + /sizeof(asn_DEF_CircularShape_tags_1[0]), /* 1 */ + asn_DEF_CircularShape_tags_1, /* Same as above */ + sizeof(asn_DEF_CircularShape_tags_1) + /sizeof(asn_DEF_CircularShape_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CircularShape_1, + 3, /* Elements count */ + &asn_SPC_CircularShape_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/CircularShape.h b/vanetza/asn1/its2/CircularShape.h new file mode 100644 index 000000000..6b3115255 --- /dev/null +++ b/vanetza/asn1/its2/CircularShape.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CircularShape_H_ +#define _CircularShape_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "StandardLength12b.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct CartesianPosition3d; + +/* CircularShape */ +typedef struct CircularShape { + struct CartesianPosition3d *shapeReferencePoint; /* OPTIONAL */ + StandardLength12b_t radius; + StandardLength12b_t *height; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} CircularShape_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_CircularShape; +extern asn_SEQUENCE_specifics_t asn_SPC_CircularShape_specs_1; +extern asn_TYPE_member_t asn_MBR_CircularShape_1[3]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "CartesianPosition3d.h" + +#endif /* _CircularShape_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ClosedLanes.c b/vanetza/asn1/its2/ClosedLanes.c new file mode 100644 index 000000000..07ff52385 --- /dev/null +++ b/vanetza/asn1/its2/ClosedLanes.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ClosedLanes.h" + +asn_TYPE_member_t asn_MBR_ClosedLanes_1[] = { + { ATF_POINTER, 3, offsetof(struct ClosedLanes, innerhardShoulderStatus), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HardShoulderStatus, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "innerhardShoulderStatus" + }, + { ATF_POINTER, 2, offsetof(struct ClosedLanes, outerhardShoulderStatus), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HardShoulderStatus, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "outerhardShoulderStatus" + }, + { ATF_POINTER, 1, offsetof(struct ClosedLanes, drivingLaneStatus), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DrivingLaneStatus, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "drivingLaneStatus" + }, +}; +static const int asn_MAP_ClosedLanes_oms_1[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_ClosedLanes_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ClosedLanes_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* innerhardShoulderStatus */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* outerhardShoulderStatus */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* drivingLaneStatus */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ClosedLanes_specs_1 = { + sizeof(struct ClosedLanes), + offsetof(struct ClosedLanes, _asn_ctx), + asn_MAP_ClosedLanes_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_ClosedLanes_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ClosedLanes = { + "ClosedLanes", + "ClosedLanes", + &asn_OP_SEQUENCE, + asn_DEF_ClosedLanes_tags_1, + sizeof(asn_DEF_ClosedLanes_tags_1) + /sizeof(asn_DEF_ClosedLanes_tags_1[0]), /* 1 */ + asn_DEF_ClosedLanes_tags_1, /* Same as above */ + sizeof(asn_DEF_ClosedLanes_tags_1) + /sizeof(asn_DEF_ClosedLanes_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ClosedLanes_1, + 3, /* Elements count */ + &asn_SPC_ClosedLanes_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/ClosedLanes.h b/vanetza/asn1/its2/ClosedLanes.h new file mode 100644 index 000000000..a91769584 --- /dev/null +++ b/vanetza/asn1/its2/ClosedLanes.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ClosedLanes_H_ +#define _ClosedLanes_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "HardShoulderStatus.h" +#include "DrivingLaneStatus.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* ClosedLanes */ +typedef struct ClosedLanes { + HardShoulderStatus_t *innerhardShoulderStatus; /* OPTIONAL */ + HardShoulderStatus_t *outerhardShoulderStatus; /* OPTIONAL */ + DrivingLaneStatus_t *drivingLaneStatus; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ClosedLanes_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ClosedLanes; +extern asn_SEQUENCE_specifics_t asn_SPC_ClosedLanes_specs_1; +extern asn_TYPE_member_t asn_MBR_ClosedLanes_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _ClosedLanes_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ClusterBreakupInfo.c b/vanetza/asn1/its2/ClusterBreakupInfo.c new file mode 100644 index 000000000..a80b34812 --- /dev/null +++ b/vanetza/asn1/its2/ClusterBreakupInfo.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ClusterBreakupInfo.h" + +asn_TYPE_member_t asn_MBR_ClusterBreakupInfo_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ClusterBreakupInfo, clusterBreakupReason), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ClusterBreakupReason, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "clusterBreakupReason" + }, + { ATF_NOFLAGS, 0, offsetof(struct ClusterBreakupInfo, breakupTime), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DeltaTimeQuarterSecond, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "breakupTime" + }, +}; +static const ber_tlv_tag_t asn_DEF_ClusterBreakupInfo_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ClusterBreakupInfo_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* clusterBreakupReason */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* breakupTime */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ClusterBreakupInfo_specs_1 = { + sizeof(struct ClusterBreakupInfo), + offsetof(struct ClusterBreakupInfo, _asn_ctx), + asn_MAP_ClusterBreakupInfo_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_ClusterBreakupInfo = { + "ClusterBreakupInfo", + "ClusterBreakupInfo", + &asn_OP_SEQUENCE, + asn_DEF_ClusterBreakupInfo_tags_1, + sizeof(asn_DEF_ClusterBreakupInfo_tags_1) + /sizeof(asn_DEF_ClusterBreakupInfo_tags_1[0]), /* 1 */ + asn_DEF_ClusterBreakupInfo_tags_1, /* Same as above */ + sizeof(asn_DEF_ClusterBreakupInfo_tags_1) + /sizeof(asn_DEF_ClusterBreakupInfo_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ClusterBreakupInfo_1, + 2, /* Elements count */ + &asn_SPC_ClusterBreakupInfo_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/ClusterBreakupInfo.h b/vanetza/asn1/its2/ClusterBreakupInfo.h new file mode 100644 index 000000000..0422c5849 --- /dev/null +++ b/vanetza/asn1/its2/ClusterBreakupInfo.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ClusterBreakupInfo_H_ +#define _ClusterBreakupInfo_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "ClusterBreakupReason.h" +#include "DeltaTimeQuarterSecond.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* ClusterBreakupInfo */ +typedef struct ClusterBreakupInfo { + ClusterBreakupReason_t clusterBreakupReason; + DeltaTimeQuarterSecond_t breakupTime; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ClusterBreakupInfo_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ClusterBreakupInfo; +extern asn_SEQUENCE_specifics_t asn_SPC_ClusterBreakupInfo_specs_1; +extern asn_TYPE_member_t asn_MBR_ClusterBreakupInfo_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _ClusterBreakupInfo_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ClusterBreakupReason.c b/vanetza/asn1/its2/ClusterBreakupReason.c new file mode 100644 index 000000000..738e6a022 --- /dev/null +++ b/vanetza/asn1/its2/ClusterBreakupReason.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ClusterBreakupReason.h" + +int +ClusterBreakupReason_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 <= 15L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_ClusterBreakupReason_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..15) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ClusterBreakupReason_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 ber_tlv_tag_t asn_DEF_ClusterBreakupReason_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_ClusterBreakupReason = { + "ClusterBreakupReason", + "ClusterBreakupReason", + &asn_OP_NativeInteger, + asn_DEF_ClusterBreakupReason_tags_1, + sizeof(asn_DEF_ClusterBreakupReason_tags_1) + /sizeof(asn_DEF_ClusterBreakupReason_tags_1[0]), /* 1 */ + asn_DEF_ClusterBreakupReason_tags_1, /* Same as above */ + sizeof(asn_DEF_ClusterBreakupReason_tags_1) + /sizeof(asn_DEF_ClusterBreakupReason_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_ClusterBreakupReason_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ClusterBreakupReason_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + ClusterBreakupReason_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/ClusterBreakupReason.h b/vanetza/asn1/its2/ClusterBreakupReason.h new file mode 100644 index 000000000..88c8c9855 --- /dev/null +++ b/vanetza/asn1/its2/ClusterBreakupReason.h @@ -0,0 +1,57 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ClusterBreakupReason_H_ +#define _ClusterBreakupReason_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum ClusterBreakupReason { + ClusterBreakupReason_notProvided = 0, + ClusterBreakupReason_clusteringPurposeCompleted = 1, + ClusterBreakupReason_leaderMovedOutOfClusterBoundingBox = 2, + ClusterBreakupReason_joiningAnotherCluster = 3, + ClusterBreakupReason_enteringLowRiskAreaBasedOnMaps = 4, + ClusterBreakupReason_receptionOfCpmContainingCluster = 5 +} e_ClusterBreakupReason; + +/* ClusterBreakupReason */ +typedef long ClusterBreakupReason_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_ClusterBreakupReason_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_ClusterBreakupReason; +asn_struct_free_f ClusterBreakupReason_free; +asn_struct_print_f ClusterBreakupReason_print; +asn_constr_check_f ClusterBreakupReason_constraint; +ber_type_decoder_f ClusterBreakupReason_decode_ber; +der_type_encoder_f ClusterBreakupReason_encode_der; +xer_type_decoder_f ClusterBreakupReason_decode_xer; +xer_type_encoder_f ClusterBreakupReason_encode_xer; +jer_type_encoder_f ClusterBreakupReason_encode_jer; +oer_type_decoder_f ClusterBreakupReason_decode_oer; +oer_type_encoder_f ClusterBreakupReason_encode_oer; +per_type_decoder_f ClusterBreakupReason_decode_uper; +per_type_encoder_f ClusterBreakupReason_encode_uper; +per_type_decoder_f ClusterBreakupReason_decode_aper; +per_type_encoder_f ClusterBreakupReason_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _ClusterBreakupReason_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ClusterJoinInfo.c b/vanetza/asn1/its2/ClusterJoinInfo.c new file mode 100644 index 000000000..521260b86 --- /dev/null +++ b/vanetza/asn1/its2/ClusterJoinInfo.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ClusterJoinInfo.h" + +asn_TYPE_member_t asn_MBR_ClusterJoinInfo_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ClusterJoinInfo, clusterId), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Identifier1B, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "clusterId" + }, + { ATF_NOFLAGS, 0, offsetof(struct ClusterJoinInfo, joinTime), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DeltaTimeQuarterSecond, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "joinTime" + }, +}; +static const ber_tlv_tag_t asn_DEF_ClusterJoinInfo_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ClusterJoinInfo_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* clusterId */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* joinTime */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ClusterJoinInfo_specs_1 = { + sizeof(struct ClusterJoinInfo), + offsetof(struct ClusterJoinInfo, _asn_ctx), + asn_MAP_ClusterJoinInfo_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_ClusterJoinInfo = { + "ClusterJoinInfo", + "ClusterJoinInfo", + &asn_OP_SEQUENCE, + asn_DEF_ClusterJoinInfo_tags_1, + sizeof(asn_DEF_ClusterJoinInfo_tags_1) + /sizeof(asn_DEF_ClusterJoinInfo_tags_1[0]), /* 1 */ + asn_DEF_ClusterJoinInfo_tags_1, /* Same as above */ + sizeof(asn_DEF_ClusterJoinInfo_tags_1) + /sizeof(asn_DEF_ClusterJoinInfo_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ClusterJoinInfo_1, + 2, /* Elements count */ + &asn_SPC_ClusterJoinInfo_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/ClusterJoinInfo.h b/vanetza/asn1/its2/ClusterJoinInfo.h new file mode 100644 index 000000000..cf1f15899 --- /dev/null +++ b/vanetza/asn1/its2/ClusterJoinInfo.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ClusterJoinInfo_H_ +#define _ClusterJoinInfo_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "Identifier1B.h" +#include "DeltaTimeQuarterSecond.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* ClusterJoinInfo */ +typedef struct ClusterJoinInfo { + Identifier1B_t clusterId; + DeltaTimeQuarterSecond_t joinTime; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ClusterJoinInfo_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ClusterJoinInfo; +extern asn_SEQUENCE_specifics_t asn_SPC_ClusterJoinInfo_specs_1; +extern asn_TYPE_member_t asn_MBR_ClusterJoinInfo_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _ClusterJoinInfo_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ClusterLeaveInfo.c b/vanetza/asn1/its2/ClusterLeaveInfo.c new file mode 100644 index 000000000..7f1f43408 --- /dev/null +++ b/vanetza/asn1/its2/ClusterLeaveInfo.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ClusterLeaveInfo.h" + +asn_TYPE_member_t asn_MBR_ClusterLeaveInfo_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ClusterLeaveInfo, clusterId), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Identifier1B, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "clusterId" + }, + { ATF_NOFLAGS, 0, offsetof(struct ClusterLeaveInfo, clusterLeaveReason), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ClusterLeaveReason, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "clusterLeaveReason" + }, +}; +static const ber_tlv_tag_t asn_DEF_ClusterLeaveInfo_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ClusterLeaveInfo_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* clusterId */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* clusterLeaveReason */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ClusterLeaveInfo_specs_1 = { + sizeof(struct ClusterLeaveInfo), + offsetof(struct ClusterLeaveInfo, _asn_ctx), + asn_MAP_ClusterLeaveInfo_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_ClusterLeaveInfo = { + "ClusterLeaveInfo", + "ClusterLeaveInfo", + &asn_OP_SEQUENCE, + asn_DEF_ClusterLeaveInfo_tags_1, + sizeof(asn_DEF_ClusterLeaveInfo_tags_1) + /sizeof(asn_DEF_ClusterLeaveInfo_tags_1[0]), /* 1 */ + asn_DEF_ClusterLeaveInfo_tags_1, /* Same as above */ + sizeof(asn_DEF_ClusterLeaveInfo_tags_1) + /sizeof(asn_DEF_ClusterLeaveInfo_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ClusterLeaveInfo_1, + 2, /* Elements count */ + &asn_SPC_ClusterLeaveInfo_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/ClusterLeaveInfo.h b/vanetza/asn1/its2/ClusterLeaveInfo.h new file mode 100644 index 000000000..05d75cd56 --- /dev/null +++ b/vanetza/asn1/its2/ClusterLeaveInfo.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ClusterLeaveInfo_H_ +#define _ClusterLeaveInfo_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "Identifier1B.h" +#include "ClusterLeaveReason.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* ClusterLeaveInfo */ +typedef struct ClusterLeaveInfo { + Identifier1B_t clusterId; + ClusterLeaveReason_t clusterLeaveReason; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ClusterLeaveInfo_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ClusterLeaveInfo; +extern asn_SEQUENCE_specifics_t asn_SPC_ClusterLeaveInfo_specs_1; +extern asn_TYPE_member_t asn_MBR_ClusterLeaveInfo_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _ClusterLeaveInfo_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ClusterLeaveReason.c b/vanetza/asn1/its2/ClusterLeaveReason.c new file mode 100644 index 000000000..6e4177223 --- /dev/null +++ b/vanetza/asn1/its2/ClusterLeaveReason.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ClusterLeaveReason.h" + +int +ClusterLeaveReason_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 <= 15L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_ClusterLeaveReason_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..15) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ClusterLeaveReason_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 ber_tlv_tag_t asn_DEF_ClusterLeaveReason_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_ClusterLeaveReason = { + "ClusterLeaveReason", + "ClusterLeaveReason", + &asn_OP_NativeInteger, + asn_DEF_ClusterLeaveReason_tags_1, + sizeof(asn_DEF_ClusterLeaveReason_tags_1) + /sizeof(asn_DEF_ClusterLeaveReason_tags_1[0]), /* 1 */ + asn_DEF_ClusterLeaveReason_tags_1, /* Same as above */ + sizeof(asn_DEF_ClusterLeaveReason_tags_1) + /sizeof(asn_DEF_ClusterLeaveReason_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_ClusterLeaveReason_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ClusterLeaveReason_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + ClusterLeaveReason_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/ClusterLeaveReason.h b/vanetza/asn1/its2/ClusterLeaveReason.h new file mode 100644 index 000000000..c13e8d03e --- /dev/null +++ b/vanetza/asn1/its2/ClusterLeaveReason.h @@ -0,0 +1,60 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ClusterLeaveReason_H_ +#define _ClusterLeaveReason_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum ClusterLeaveReason { + ClusterLeaveReason_notProvided = 0, + ClusterLeaveReason_clusterLeaderLost = 1, + ClusterLeaveReason_clusterDisbandedByLeader = 2, + ClusterLeaveReason_outOfClusterBoundingBox = 3, + ClusterLeaveReason_outOfClusterSpeedRange = 4, + ClusterLeaveReason_joiningAnotherCluster = 5, + ClusterLeaveReason_cancelledJoin = 6, + ClusterLeaveReason_failedJoin = 7, + ClusterLeaveReason_safetyCondition = 8 +} e_ClusterLeaveReason; + +/* ClusterLeaveReason */ +typedef long ClusterLeaveReason_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_ClusterLeaveReason_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_ClusterLeaveReason; +asn_struct_free_f ClusterLeaveReason_free; +asn_struct_print_f ClusterLeaveReason_print; +asn_constr_check_f ClusterLeaveReason_constraint; +ber_type_decoder_f ClusterLeaveReason_decode_ber; +der_type_encoder_f ClusterLeaveReason_encode_der; +xer_type_decoder_f ClusterLeaveReason_decode_xer; +xer_type_encoder_f ClusterLeaveReason_encode_xer; +jer_type_encoder_f ClusterLeaveReason_encode_jer; +oer_type_decoder_f ClusterLeaveReason_decode_oer; +oer_type_encoder_f ClusterLeaveReason_encode_oer; +per_type_decoder_f ClusterLeaveReason_decode_uper; +per_type_encoder_f ClusterLeaveReason_encode_uper; +per_type_decoder_f ClusterLeaveReason_decode_aper; +per_type_encoder_f ClusterLeaveReason_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _ClusterLeaveReason_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CollectivePerceptionMessage.c b/vanetza/asn1/its2/CollectivePerceptionMessage.c new file mode 100644 index 000000000..f76f8e7ca --- /dev/null +++ b/vanetza/asn1/its2/CollectivePerceptionMessage.c @@ -0,0 +1,124 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TS103324v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CollectivePerceptionMessage.h" + +static int +memb_header_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; + } + + + if(1 /* No applicable constraints whatsoever */) { + /* Nothing is here. See below */ + } + + return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); +} + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_header_constr_2 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_header_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 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_CollectivePerceptionMessage_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CollectivePerceptionMessage, header), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ItsPduHeader, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_header_constr_2, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_header_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_header_constraint_1 + }, + 0, 0, /* No default value */ + "header" + }, + { ATF_NOFLAGS, 0, offsetof(struct CollectivePerceptionMessage, payload), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CpmPayload, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "payload" + }, +}; +static const ber_tlv_tag_t asn_DEF_CollectivePerceptionMessage_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CollectivePerceptionMessage_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* header */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* payload */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_CollectivePerceptionMessage_specs_1 = { + sizeof(struct CollectivePerceptionMessage), + offsetof(struct CollectivePerceptionMessage, _asn_ctx), + asn_MAP_CollectivePerceptionMessage_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_CollectivePerceptionMessage = { + "CollectivePerceptionMessage", + "CollectivePerceptionMessage", + &asn_OP_SEQUENCE, + asn_DEF_CollectivePerceptionMessage_tags_1, + sizeof(asn_DEF_CollectivePerceptionMessage_tags_1) + /sizeof(asn_DEF_CollectivePerceptionMessage_tags_1[0]), /* 1 */ + asn_DEF_CollectivePerceptionMessage_tags_1, /* Same as above */ + sizeof(asn_DEF_CollectivePerceptionMessage_tags_1) + /sizeof(asn_DEF_CollectivePerceptionMessage_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CollectivePerceptionMessage_1, + 2, /* Elements count */ + &asn_SPC_CollectivePerceptionMessage_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/CollectivePerceptionMessage.h b/vanetza/asn1/its2/CollectivePerceptionMessage.h new file mode 100644 index 000000000..a59d53567 --- /dev/null +++ b/vanetza/asn1/its2/CollectivePerceptionMessage.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TS103324v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CollectivePerceptionMessage_H_ +#define _CollectivePerceptionMessage_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "ItsPduHeader.h" +#include "CpmPayload.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* CollectivePerceptionMessage */ +typedef struct CollectivePerceptionMessage { + ItsPduHeader_t header; + CpmPayload_t payload; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} CollectivePerceptionMessage_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_CollectivePerceptionMessage; + +#ifdef __cplusplus +} +#endif + +#endif /* _CollectivePerceptionMessage_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CollisionRiskSubCauseCode.c b/vanetza/asn1/its2/CollisionRiskSubCauseCode.c new file mode 100644 index 000000000..c28648270 --- /dev/null +++ b/vanetza/asn1/its2/CollisionRiskSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CollisionRiskSubCauseCode.h" + +int +CollisionRiskSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_CollisionRiskSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CollisionRiskSubCauseCode_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_CollisionRiskSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_CollisionRiskSubCauseCode = { + "CollisionRiskSubCauseCode", + "CollisionRiskSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_CollisionRiskSubCauseCode_tags_1, + sizeof(asn_DEF_CollisionRiskSubCauseCode_tags_1) + /sizeof(asn_DEF_CollisionRiskSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_CollisionRiskSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_CollisionRiskSubCauseCode_tags_1) + /sizeof(asn_DEF_CollisionRiskSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_CollisionRiskSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CollisionRiskSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CollisionRiskSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/CollisionRiskSubCauseCode.h b/vanetza/asn1/its2/CollisionRiskSubCauseCode.h new file mode 100644 index 000000000..6371688dc --- /dev/null +++ b/vanetza/asn1/its2/CollisionRiskSubCauseCode.h @@ -0,0 +1,59 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CollisionRiskSubCauseCode_H_ +#define _CollisionRiskSubCauseCode_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum CollisionRiskSubCauseCode { + CollisionRiskSubCauseCode_unavailable = 0, + CollisionRiskSubCauseCode_longitudinalCollisionRisk = 1, + CollisionRiskSubCauseCode_crossingCollisionRisk = 2, + CollisionRiskSubCauseCode_lateralCollisionRisk = 3, + CollisionRiskSubCauseCode_vulnerableRoadUser = 4, + CollisionRiskSubCauseCode_collisionRiskWithPedestrian = 5, + CollisionRiskSubCauseCode_collisionRiskWithCyclist = 6, + CollisionRiskSubCauseCode_collisionRiskWithMotorVehicle = 7 +} e_CollisionRiskSubCauseCode; + +/* CollisionRiskSubCauseCode */ +typedef long CollisionRiskSubCauseCode_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_CollisionRiskSubCauseCode_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_CollisionRiskSubCauseCode; +asn_struct_free_f CollisionRiskSubCauseCode_free; +asn_struct_print_f CollisionRiskSubCauseCode_print; +asn_constr_check_f CollisionRiskSubCauseCode_constraint; +ber_type_decoder_f CollisionRiskSubCauseCode_decode_ber; +der_type_encoder_f CollisionRiskSubCauseCode_encode_der; +xer_type_decoder_f CollisionRiskSubCauseCode_decode_xer; +xer_type_encoder_f CollisionRiskSubCauseCode_encode_xer; +jer_type_encoder_f CollisionRiskSubCauseCode_encode_jer; +oer_type_decoder_f CollisionRiskSubCauseCode_decode_oer; +oer_type_encoder_f CollisionRiskSubCauseCode_encode_oer; +per_type_decoder_f CollisionRiskSubCauseCode_decode_uper; +per_type_encoder_f CollisionRiskSubCauseCode_encode_uper; +per_type_decoder_f CollisionRiskSubCauseCode_decode_aper; +per_type_encoder_f CollisionRiskSubCauseCode_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _CollisionRiskSubCauseCode_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ConfidenceLevel.c b/vanetza/asn1/its2/ConfidenceLevel.c new file mode 100644 index 000000000..dc116306f --- /dev/null +++ b/vanetza/asn1/its2/ConfidenceLevel.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ConfidenceLevel.h" + +int +ConfidenceLevel_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 <= 101L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_ConfidenceLevel_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..101) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ConfidenceLevel_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 1, 101 } /* (1..101) */, + { 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_ConfidenceLevel_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_ConfidenceLevel = { + "ConfidenceLevel", + "ConfidenceLevel", + &asn_OP_NativeInteger, + asn_DEF_ConfidenceLevel_tags_1, + sizeof(asn_DEF_ConfidenceLevel_tags_1) + /sizeof(asn_DEF_ConfidenceLevel_tags_1[0]), /* 1 */ + asn_DEF_ConfidenceLevel_tags_1, /* Same as above */ + sizeof(asn_DEF_ConfidenceLevel_tags_1) + /sizeof(asn_DEF_ConfidenceLevel_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_ConfidenceLevel_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ConfidenceLevel_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + ConfidenceLevel_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/ConfidenceLevel.h b/vanetza/asn1/its2/ConfidenceLevel.h new file mode 100644 index 000000000..707fdec02 --- /dev/null +++ b/vanetza/asn1/its2/ConfidenceLevel.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ConfidenceLevel_H_ +#define _ConfidenceLevel_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum ConfidenceLevel { + ConfidenceLevel_unavailable = 101 +} e_ConfidenceLevel; + +/* ConfidenceLevel */ +typedef long ConfidenceLevel_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_ConfidenceLevel_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_ConfidenceLevel; +asn_struct_free_f ConfidenceLevel_free; +asn_struct_print_f ConfidenceLevel_print; +asn_constr_check_f ConfidenceLevel_constraint; +ber_type_decoder_f ConfidenceLevel_decode_ber; +der_type_encoder_f ConfidenceLevel_encode_der; +xer_type_decoder_f ConfidenceLevel_decode_xer; +xer_type_encoder_f ConfidenceLevel_encode_xer; +jer_type_encoder_f ConfidenceLevel_encode_jer; +oer_type_decoder_f ConfidenceLevel_decode_oer; +oer_type_encoder_f ConfidenceLevel_encode_oer; +per_type_decoder_f ConfidenceLevel_decode_uper; +per_type_encoder_f ConfidenceLevel_encode_uper; +per_type_decoder_f ConfidenceLevel_decode_aper; +per_type_encoder_f ConfidenceLevel_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _ConfidenceLevel_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ConstraintWrappedCpmContainers.c b/vanetza/asn1/its2/ConstraintWrappedCpmContainers.c new file mode 100644 index 000000000..218ee8f34 --- /dev/null +++ b/vanetza/asn1/its2/ConstraintWrappedCpmContainers.c @@ -0,0 +1,81 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TS103324v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ConstraintWrappedCpmContainers.h" + +int +ConstraintWrappedCpmContainers_constraint(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; + } +} + +/* + * This type is implemented using WrappedCpmContainers, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_ConstraintWrappedCpmContainers_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..8)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ConstraintWrappedCpmContainers_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_ConstraintWrappedCpmContainers_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_ConstraintWrappedCpmContainers = { + "ConstraintWrappedCpmContainers", + "ConstraintWrappedCpmContainers", + &asn_OP_SEQUENCE_OF, + asn_DEF_ConstraintWrappedCpmContainers_tags_1, + sizeof(asn_DEF_ConstraintWrappedCpmContainers_tags_1) + /sizeof(asn_DEF_ConstraintWrappedCpmContainers_tags_1[0]), /* 1 */ + asn_DEF_ConstraintWrappedCpmContainers_tags_1, /* Same as above */ + sizeof(asn_DEF_ConstraintWrappedCpmContainers_tags_1) + /sizeof(asn_DEF_ConstraintWrappedCpmContainers_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_ConstraintWrappedCpmContainers_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ConstraintWrappedCpmContainers_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + ConstraintWrappedCpmContainers_constraint + }, + asn_MBR_WrappedCpmContainers_1, + 1, /* Single element */ + &asn_SPC_WrappedCpmContainers_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/ConstraintWrappedCpmContainers.h b/vanetza/asn1/its2/ConstraintWrappedCpmContainers.h new file mode 100644 index 000000000..a1f41a112 --- /dev/null +++ b/vanetza/asn1/its2/ConstraintWrappedCpmContainers.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TS103324v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ConstraintWrappedCpmContainers_H_ +#define _ConstraintWrappedCpmContainers_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "WrappedCpmContainers.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* ConstraintWrappedCpmContainers */ +typedef WrappedCpmContainers_t ConstraintWrappedCpmContainers_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_ConstraintWrappedCpmContainers_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_ConstraintWrappedCpmContainers; +asn_struct_free_f ConstraintWrappedCpmContainers_free; +asn_struct_print_f ConstraintWrappedCpmContainers_print; +asn_constr_check_f ConstraintWrappedCpmContainers_constraint; +ber_type_decoder_f ConstraintWrappedCpmContainers_decode_ber; +der_type_encoder_f ConstraintWrappedCpmContainers_encode_der; +xer_type_decoder_f ConstraintWrappedCpmContainers_decode_xer; +xer_type_encoder_f ConstraintWrappedCpmContainers_encode_xer; +jer_type_encoder_f ConstraintWrappedCpmContainers_encode_jer; +oer_type_decoder_f ConstraintWrappedCpmContainers_decode_oer; +oer_type_encoder_f ConstraintWrappedCpmContainers_encode_oer; +per_type_decoder_f ConstraintWrappedCpmContainers_decode_uper; +per_type_encoder_f ConstraintWrappedCpmContainers_encode_uper; +per_type_decoder_f ConstraintWrappedCpmContainers_decode_aper; +per_type_encoder_f ConstraintWrappedCpmContainers_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _ConstraintWrappedCpmContainers_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CoordinateConfidence.c b/vanetza/asn1/its2/CoordinateConfidence.c new file mode 100644 index 000000000..67eb3bd46 --- /dev/null +++ b/vanetza/asn1/its2/CoordinateConfidence.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CoordinateConfidence.h" + +int +CoordinateConfidence_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 <= 4096L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_CoordinateConfidence_constr_1 CC_NOTUSED = { + { 2, 1 } /* (1..4096) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CoordinateConfidence_constr_1 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) */ +static const ber_tlv_tag_t asn_DEF_CoordinateConfidence_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_CoordinateConfidence = { + "CoordinateConfidence", + "CoordinateConfidence", + &asn_OP_NativeInteger, + asn_DEF_CoordinateConfidence_tags_1, + sizeof(asn_DEF_CoordinateConfidence_tags_1) + /sizeof(asn_DEF_CoordinateConfidence_tags_1[0]), /* 1 */ + asn_DEF_CoordinateConfidence_tags_1, /* Same as above */ + sizeof(asn_DEF_CoordinateConfidence_tags_1) + /sizeof(asn_DEF_CoordinateConfidence_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_CoordinateConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CoordinateConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CoordinateConfidence_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/CoordinateConfidence.h b/vanetza/asn1/its2/CoordinateConfidence.h new file mode 100644 index 000000000..f51ee97ee --- /dev/null +++ b/vanetza/asn1/its2/CoordinateConfidence.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CoordinateConfidence_H_ +#define _CoordinateConfidence_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum CoordinateConfidence { + CoordinateConfidence_outOfRange = 4095, + CoordinateConfidence_unavailable = 4096 +} e_CoordinateConfidence; + +/* CoordinateConfidence */ +typedef long CoordinateConfidence_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_CoordinateConfidence_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_CoordinateConfidence; +asn_struct_free_f CoordinateConfidence_free; +asn_struct_print_f CoordinateConfidence_print; +asn_constr_check_f CoordinateConfidence_constraint; +ber_type_decoder_f CoordinateConfidence_decode_ber; +der_type_encoder_f CoordinateConfidence_encode_der; +xer_type_decoder_f CoordinateConfidence_decode_xer; +xer_type_encoder_f CoordinateConfidence_encode_xer; +jer_type_encoder_f CoordinateConfidence_encode_jer; +oer_type_decoder_f CoordinateConfidence_decode_oer; +oer_type_encoder_f CoordinateConfidence_encode_oer; +per_type_decoder_f CoordinateConfidence_decode_uper; +per_type_encoder_f CoordinateConfidence_encode_uper; +per_type_decoder_f CoordinateConfidence_decode_aper; +per_type_encoder_f CoordinateConfidence_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _CoordinateConfidence_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CorrelationCellValue.c b/vanetza/asn1/its2/CorrelationCellValue.c new file mode 100644 index 000000000..5b0a2f1df --- /dev/null +++ b/vanetza/asn1/its2/CorrelationCellValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CorrelationCellValue.h" + +int +CorrelationCellValue_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 >= -100L && value <= 101L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_CorrelationCellValue_constr_1 CC_NOTUSED = { + { 1, 0 } /* (-100..101) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CorrelationCellValue_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 8, 8, -100, 101 } /* (-100..101) */, + { 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_CorrelationCellValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_CorrelationCellValue = { + "CorrelationCellValue", + "CorrelationCellValue", + &asn_OP_NativeInteger, + asn_DEF_CorrelationCellValue_tags_1, + sizeof(asn_DEF_CorrelationCellValue_tags_1) + /sizeof(asn_DEF_CorrelationCellValue_tags_1[0]), /* 1 */ + asn_DEF_CorrelationCellValue_tags_1, /* Same as above */ + sizeof(asn_DEF_CorrelationCellValue_tags_1) + /sizeof(asn_DEF_CorrelationCellValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_CorrelationCellValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CorrelationCellValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CorrelationCellValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/CorrelationCellValue.h b/vanetza/asn1/its2/CorrelationCellValue.h new file mode 100644 index 000000000..c55175c26 --- /dev/null +++ b/vanetza/asn1/its2/CorrelationCellValue.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CorrelationCellValue_H_ +#define _CorrelationCellValue_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum CorrelationCellValue { + CorrelationCellValue_full_negative_correlation = -100, + CorrelationCellValue_no_correlation = 0, + CorrelationCellValue_full_positive_correlation = 100, + CorrelationCellValue_unavailable = 101 +} e_CorrelationCellValue; + +/* CorrelationCellValue */ +typedef long CorrelationCellValue_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_CorrelationCellValue_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_CorrelationCellValue; +asn_struct_free_f CorrelationCellValue_free; +asn_struct_print_f CorrelationCellValue_print; +asn_constr_check_f CorrelationCellValue_constraint; +ber_type_decoder_f CorrelationCellValue_decode_ber; +der_type_encoder_f CorrelationCellValue_encode_der; +xer_type_decoder_f CorrelationCellValue_decode_xer; +xer_type_encoder_f CorrelationCellValue_encode_xer; +jer_type_encoder_f CorrelationCellValue_encode_jer; +oer_type_decoder_f CorrelationCellValue_decode_oer; +oer_type_encoder_f CorrelationCellValue_encode_oer; +per_type_decoder_f CorrelationCellValue_decode_uper; +per_type_encoder_f CorrelationCellValue_encode_uper; +per_type_decoder_f CorrelationCellValue_decode_aper; +per_type_encoder_f CorrelationCellValue_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _CorrelationCellValue_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CorrelationColumn.c b/vanetza/asn1/its2/CorrelationColumn.c new file mode 100644 index 000000000..f31fb5c15 --- /dev/null +++ b/vanetza/asn1/its2/CorrelationColumn.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CorrelationColumn.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_CorrelationColumn_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CorrelationColumn_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 4, 4, 1, 13 } /* (SIZE(1..13,...)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_CorrelationColumn_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_CorrelationCellValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_CorrelationColumn_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_CorrelationColumn_specs_1 = { + sizeof(struct CorrelationColumn), + offsetof(struct CorrelationColumn, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_CorrelationColumn = { + "CorrelationColumn", + "CorrelationColumn", + &asn_OP_SEQUENCE_OF, + asn_DEF_CorrelationColumn_tags_1, + sizeof(asn_DEF_CorrelationColumn_tags_1) + /sizeof(asn_DEF_CorrelationColumn_tags_1[0]), /* 1 */ + asn_DEF_CorrelationColumn_tags_1, /* Same as above */ + sizeof(asn_DEF_CorrelationColumn_tags_1) + /sizeof(asn_DEF_CorrelationColumn_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_CorrelationColumn_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CorrelationColumn_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_CorrelationColumn_1, + 1, /* Single element */ + &asn_SPC_CorrelationColumn_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/CorrelationColumn.h b/vanetza/asn1/its2/CorrelationColumn.h new file mode 100644 index 000000000..80c6484aa --- /dev/null +++ b/vanetza/asn1/its2/CorrelationColumn.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CorrelationColumn_H_ +#define _CorrelationColumn_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "CorrelationCellValue.h" +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* CorrelationColumn */ +typedef struct CorrelationColumn { + A_SEQUENCE_OF(CorrelationCellValue_t) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} CorrelationColumn_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_CorrelationColumn; +extern asn_SET_OF_specifics_t asn_SPC_CorrelationColumn_specs_1; +extern asn_TYPE_member_t asn_MBR_CorrelationColumn_1[1]; +extern asn_per_constraints_t asn_PER_type_CorrelationColumn_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _CorrelationColumn_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CountryCode.c b/vanetza/asn1/its2/CountryCode.c new file mode 100644 index 000000000..532cbb271 --- /dev/null +++ b/vanetza/asn1/its2/CountryCode.c @@ -0,0 +1,89 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CountryCode.h" + +int +CountryCode_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 == 10UL)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_CountryCode_constr_1 CC_NOTUSED = { + { 0, 0 }, + 10 /* (SIZE(10..10)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CountryCode_constr_1 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_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_CountryCode_constr_1 CC_NOTUSED = { + 10}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_CountryCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_CountryCode = { + "CountryCode", + "CountryCode", + &asn_OP_BIT_STRING, + asn_DEF_CountryCode_tags_1, + sizeof(asn_DEF_CountryCode_tags_1) + /sizeof(asn_DEF_CountryCode_tags_1[0]), /* 1 */ + asn_DEF_CountryCode_tags_1, /* Same as above */ + sizeof(asn_DEF_CountryCode_tags_1) + /sizeof(asn_DEF_CountryCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_CountryCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CountryCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_CountryCode_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CountryCode_constraint + }, + 0, 0, /* No members */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/CountryCode.h b/vanetza/asn1/its2/CountryCode.h new file mode 100644 index 000000000..35101a34c --- /dev/null +++ b/vanetza/asn1/its2/CountryCode.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CountryCode_H_ +#define _CountryCode_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "BIT_STRING.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* CountryCode */ +typedef BIT_STRING_t CountryCode_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_CountryCode_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_CountryCode; +asn_struct_free_f CountryCode_free; +asn_struct_print_f CountryCode_print; +asn_constr_check_f CountryCode_constraint; +ber_type_decoder_f CountryCode_decode_ber; +der_type_encoder_f CountryCode_encode_der; +xer_type_decoder_f CountryCode_decode_xer; +xer_type_encoder_f CountryCode_encode_xer; +jer_type_encoder_f CountryCode_encode_jer; +oer_type_decoder_f CountryCode_decode_oer; +oer_type_encoder_f CountryCode_encode_oer; +per_type_decoder_f CountryCode_decode_uper; +per_type_encoder_f CountryCode_encode_uper; +per_type_decoder_f CountryCode_decode_aper; +per_type_encoder_f CountryCode_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _CountryCode_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CpmContainerId.c b/vanetza/asn1/its2/CpmContainerId.c new file mode 100644 index 000000000..b893d26b2 --- /dev/null +++ b/vanetza/asn1/its2/CpmContainerId.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TS103324v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CpmContainerId.h" + +int +CpmContainerId_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 <= 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 NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_CpmContainerId_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..16) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CpmContainerId_constr_1 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 ber_tlv_tag_t asn_DEF_CpmContainerId_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_CpmContainerId = { + "CpmContainerId", + "CpmContainerId", + &asn_OP_NativeInteger, + asn_DEF_CpmContainerId_tags_1, + sizeof(asn_DEF_CpmContainerId_tags_1) + /sizeof(asn_DEF_CpmContainerId_tags_1[0]), /* 1 */ + asn_DEF_CpmContainerId_tags_1, /* Same as above */ + sizeof(asn_DEF_CpmContainerId_tags_1) + /sizeof(asn_DEF_CpmContainerId_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_CpmContainerId_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CpmContainerId_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CpmContainerId_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/CpmContainerId.h b/vanetza/asn1/its2/CpmContainerId.h new file mode 100644 index 000000000..e1926b2d8 --- /dev/null +++ b/vanetza/asn1/its2/CpmContainerId.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TS103324v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CpmContainerId_H_ +#define _CpmContainerId_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* CpmContainerId */ +typedef long CpmContainerId_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_CpmContainerId_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_CpmContainerId; +asn_struct_free_f CpmContainerId_free; +asn_struct_print_f CpmContainerId_print; +asn_constr_check_f CpmContainerId_constraint; +ber_type_decoder_f CpmContainerId_decode_ber; +der_type_encoder_f CpmContainerId_encode_der; +xer_type_decoder_f CpmContainerId_decode_xer; +xer_type_encoder_f CpmContainerId_encode_xer; +jer_type_encoder_f CpmContainerId_encode_jer; +oer_type_decoder_f CpmContainerId_decode_oer; +oer_type_encoder_f CpmContainerId_encode_oer; +per_type_decoder_f CpmContainerId_decode_uper; +per_type_encoder_f CpmContainerId_encode_uper; +per_type_decoder_f CpmContainerId_decode_aper; +per_type_encoder_f CpmContainerId_encode_aper; +#define CpmContainerId_originatingVehicleContainer ((CpmContainerId_t)1) +#define CpmContainerId_originatingRsuContainer ((CpmContainerId_t)2) +#define CpmContainerId_sensorInformationContainer ((CpmContainerId_t)3) +#define CpmContainerId_perceptionRegionContainer ((CpmContainerId_t)4) +#define CpmContainerId_perceivedObjectContainer ((CpmContainerId_t)5) + +#ifdef __cplusplus +} +#endif + +#endif /* _CpmContainerId_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CpmPayload.c b/vanetza/asn1/its2/CpmPayload.c new file mode 100644 index 000000000..622a15155 --- /dev/null +++ b/vanetza/asn1/its2/CpmPayload.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TS103324v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CpmPayload.h" + +asn_TYPE_member_t asn_MBR_CpmPayload_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct CpmPayload, managementContainer), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CPM_PDU_Descriptions_ManagementContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "managementContainer" + }, + { ATF_NOFLAGS, 0, offsetof(struct CpmPayload, cpmContainers), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ConstraintWrappedCpmContainers, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cpmContainers" + }, +}; +static const ber_tlv_tag_t asn_DEF_CpmPayload_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_CpmPayload_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* managementContainer */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* cpmContainers */ +}; +asn_SEQUENCE_specifics_t asn_SPC_CpmPayload_specs_1 = { + sizeof(struct CpmPayload), + offsetof(struct CpmPayload, _asn_ctx), + asn_MAP_CpmPayload_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_CpmPayload = { + "CpmPayload", + "CpmPayload", + &asn_OP_SEQUENCE, + asn_DEF_CpmPayload_tags_1, + sizeof(asn_DEF_CpmPayload_tags_1) + /sizeof(asn_DEF_CpmPayload_tags_1[0]), /* 1 */ + asn_DEF_CpmPayload_tags_1, /* Same as above */ + sizeof(asn_DEF_CpmPayload_tags_1) + /sizeof(asn_DEF_CpmPayload_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_CpmPayload_1, + 2, /* Elements count */ + &asn_SPC_CpmPayload_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/CpmPayload.h b/vanetza/asn1/its2/CpmPayload.h new file mode 100644 index 000000000..9f57de63a --- /dev/null +++ b/vanetza/asn1/its2/CpmPayload.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TS103324v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CpmPayload_H_ +#define _CpmPayload_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "CPM-PDU-Descriptions_ManagementContainer.h" +#include "ConstraintWrappedCpmContainers.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* CpmPayload */ +typedef struct CpmPayload { + CPM_PDU_Descriptions_ManagementContainer_t managementContainer; + ConstraintWrappedCpmContainers_t cpmContainers; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} CpmPayload_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_CpmPayload; +extern asn_SEQUENCE_specifics_t asn_SPC_CpmPayload_specs_1; +extern asn_TYPE_member_t asn_MBR_CpmPayload_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _CpmPayload_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/Curvature.c b/vanetza/asn1/its2/Curvature.c new file mode 100644 index 000000000..612c499dc --- /dev/null +++ b/vanetza/asn1/its2/Curvature.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Curvature.h" + +asn_TYPE_member_t asn_MBR_Curvature_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Curvature, curvatureValue), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CurvatureValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "curvatureValue" + }, + { ATF_NOFLAGS, 0, offsetof(struct Curvature, curvatureConfidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CurvatureConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "curvatureConfidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_Curvature_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Curvature_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* curvatureValue */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* curvatureConfidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Curvature_specs_1 = { + sizeof(struct Curvature), + offsetof(struct Curvature, _asn_ctx), + asn_MAP_Curvature_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_Curvature = { + "Curvature", + "Curvature", + &asn_OP_SEQUENCE, + asn_DEF_Curvature_tags_1, + sizeof(asn_DEF_Curvature_tags_1) + /sizeof(asn_DEF_Curvature_tags_1[0]), /* 1 */ + asn_DEF_Curvature_tags_1, /* Same as above */ + sizeof(asn_DEF_Curvature_tags_1) + /sizeof(asn_DEF_Curvature_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Curvature_1, + 2, /* Elements count */ + &asn_SPC_Curvature_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/Curvature.h b/vanetza/asn1/its2/Curvature.h new file mode 100644 index 000000000..02bf79ba4 --- /dev/null +++ b/vanetza/asn1/its2/Curvature.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _Curvature_H_ +#define _Curvature_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "CurvatureValue.h" +#include "CurvatureConfidence.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Curvature */ +typedef struct Curvature { + CurvatureValue_t curvatureValue; + CurvatureConfidence_t curvatureConfidence; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Curvature_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Curvature; +extern asn_SEQUENCE_specifics_t asn_SPC_Curvature_specs_1; +extern asn_TYPE_member_t asn_MBR_Curvature_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Curvature_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CurvatureCalculationMode.c b/vanetza/asn1/its2/CurvatureCalculationMode.c new file mode 100644 index 000000000..ef358dd1b --- /dev/null +++ b/vanetza/asn1/its2/CurvatureCalculationMode.c @@ -0,0 +1,75 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CurvatureCalculationMode.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_CurvatureCalculationMode_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CurvatureCalculationMode_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_CurvatureCalculationMode_value2enum_1[] = { + { 0, 11, "yawRateUsed" }, + { 1, 14, "yawRateNotUsed" }, + { 2, 11, "unavailable" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_CurvatureCalculationMode_enum2value_1[] = { + 2, /* unavailable(2) */ + 1, /* yawRateNotUsed(1) */ + 0 /* yawRateUsed(0) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_CurvatureCalculationMode_specs_1 = { + asn_MAP_CurvatureCalculationMode_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_CurvatureCalculationMode_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_CurvatureCalculationMode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_CurvatureCalculationMode = { + "CurvatureCalculationMode", + "CurvatureCalculationMode", + &asn_OP_NativeEnumerated, + asn_DEF_CurvatureCalculationMode_tags_1, + sizeof(asn_DEF_CurvatureCalculationMode_tags_1) + /sizeof(asn_DEF_CurvatureCalculationMode_tags_1[0]), /* 1 */ + asn_DEF_CurvatureCalculationMode_tags_1, /* Same as above */ + sizeof(asn_DEF_CurvatureCalculationMode_tags_1) + /sizeof(asn_DEF_CurvatureCalculationMode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_CurvatureCalculationMode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CurvatureCalculationMode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_CurvatureCalculationMode_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/CurvatureCalculationMode.h b/vanetza/asn1/its2/CurvatureCalculationMode.h new file mode 100644 index 000000000..d7bd39d6f --- /dev/null +++ b/vanetza/asn1/its2/CurvatureCalculationMode.h @@ -0,0 +1,58 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CurvatureCalculationMode_H_ +#define _CurvatureCalculationMode_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum CurvatureCalculationMode { + CurvatureCalculationMode_yawRateUsed = 0, + CurvatureCalculationMode_yawRateNotUsed = 1, + CurvatureCalculationMode_unavailable = 2 + /* + * Enumeration is extensible + */ +} e_CurvatureCalculationMode; + +/* CurvatureCalculationMode */ +typedef long CurvatureCalculationMode_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_CurvatureCalculationMode_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_CurvatureCalculationMode; +extern const asn_INTEGER_specifics_t asn_SPC_CurvatureCalculationMode_specs_1; +asn_struct_free_f CurvatureCalculationMode_free; +asn_struct_print_f CurvatureCalculationMode_print; +asn_constr_check_f CurvatureCalculationMode_constraint; +ber_type_decoder_f CurvatureCalculationMode_decode_ber; +der_type_encoder_f CurvatureCalculationMode_encode_der; +xer_type_decoder_f CurvatureCalculationMode_decode_xer; +xer_type_encoder_f CurvatureCalculationMode_encode_xer; +jer_type_encoder_f CurvatureCalculationMode_encode_jer; +oer_type_decoder_f CurvatureCalculationMode_decode_oer; +oer_type_encoder_f CurvatureCalculationMode_encode_oer; +per_type_decoder_f CurvatureCalculationMode_decode_uper; +per_type_encoder_f CurvatureCalculationMode_encode_uper; +per_type_decoder_f CurvatureCalculationMode_decode_aper; +per_type_encoder_f CurvatureCalculationMode_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _CurvatureCalculationMode_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CurvatureConfidence.c b/vanetza/asn1/its2/CurvatureConfidence.c new file mode 100644 index 000000000..cf4325ba1 --- /dev/null +++ b/vanetza/asn1/its2/CurvatureConfidence.c @@ -0,0 +1,83 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CurvatureConfidence.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_CurvatureConfidence_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CurvatureConfidence_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 asn_INTEGER_enum_map_t asn_MAP_CurvatureConfidence_value2enum_1[] = { + { 0, 19, "onePerMeter-0-00002" }, + { 1, 18, "onePerMeter-0-0001" }, + { 2, 18, "onePerMeter-0-0005" }, + { 3, 17, "onePerMeter-0-002" }, + { 4, 16, "onePerMeter-0-01" }, + { 5, 15, "onePerMeter-0-1" }, + { 6, 10, "outOfRange" }, + { 7, 11, "unavailable" } +}; +static const unsigned int asn_MAP_CurvatureConfidence_enum2value_1[] = { + 0, /* onePerMeter-0-00002(0) */ + 1, /* onePerMeter-0-0001(1) */ + 2, /* onePerMeter-0-0005(2) */ + 3, /* onePerMeter-0-002(3) */ + 4, /* onePerMeter-0-01(4) */ + 5, /* onePerMeter-0-1(5) */ + 6, /* outOfRange(6) */ + 7 /* unavailable(7) */ +}; +const asn_INTEGER_specifics_t asn_SPC_CurvatureConfidence_specs_1 = { + asn_MAP_CurvatureConfidence_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_CurvatureConfidence_enum2value_1, /* 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_CurvatureConfidence_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_CurvatureConfidence = { + "CurvatureConfidence", + "CurvatureConfidence", + &asn_OP_NativeEnumerated, + asn_DEF_CurvatureConfidence_tags_1, + sizeof(asn_DEF_CurvatureConfidence_tags_1) + /sizeof(asn_DEF_CurvatureConfidence_tags_1[0]), /* 1 */ + asn_DEF_CurvatureConfidence_tags_1, /* Same as above */ + sizeof(asn_DEF_CurvatureConfidence_tags_1) + /sizeof(asn_DEF_CurvatureConfidence_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_CurvatureConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CurvatureConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_CurvatureConfidence_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/CurvatureConfidence.h b/vanetza/asn1/its2/CurvatureConfidence.h new file mode 100644 index 000000000..94dd766c9 --- /dev/null +++ b/vanetza/asn1/its2/CurvatureConfidence.h @@ -0,0 +1,60 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CurvatureConfidence_H_ +#define _CurvatureConfidence_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum CurvatureConfidence { + CurvatureConfidence_onePerMeter_0_00002 = 0, + CurvatureConfidence_onePerMeter_0_0001 = 1, + CurvatureConfidence_onePerMeter_0_0005 = 2, + CurvatureConfidence_onePerMeter_0_002 = 3, + CurvatureConfidence_onePerMeter_0_01 = 4, + CurvatureConfidence_onePerMeter_0_1 = 5, + CurvatureConfidence_outOfRange = 6, + CurvatureConfidence_unavailable = 7 +} e_CurvatureConfidence; + +/* CurvatureConfidence */ +typedef long CurvatureConfidence_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_CurvatureConfidence_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_CurvatureConfidence; +extern const asn_INTEGER_specifics_t asn_SPC_CurvatureConfidence_specs_1; +asn_struct_free_f CurvatureConfidence_free; +asn_struct_print_f CurvatureConfidence_print; +asn_constr_check_f CurvatureConfidence_constraint; +ber_type_decoder_f CurvatureConfidence_decode_ber; +der_type_encoder_f CurvatureConfidence_encode_der; +xer_type_decoder_f CurvatureConfidence_decode_xer; +xer_type_encoder_f CurvatureConfidence_encode_xer; +jer_type_encoder_f CurvatureConfidence_encode_jer; +oer_type_decoder_f CurvatureConfidence_decode_oer; +oer_type_encoder_f CurvatureConfidence_encode_oer; +per_type_decoder_f CurvatureConfidence_decode_uper; +per_type_encoder_f CurvatureConfidence_encode_uper; +per_type_decoder_f CurvatureConfidence_decode_aper; +per_type_encoder_f CurvatureConfidence_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _CurvatureConfidence_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/CurvatureValue.c b/vanetza/asn1/its2/CurvatureValue.c new file mode 100644 index 000000000..1101294f0 --- /dev/null +++ b/vanetza/asn1/its2/CurvatureValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "CurvatureValue.h" + +int +CurvatureValue_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 >= -1023L && 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; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_CurvatureValue_constr_1 CC_NOTUSED = { + { 2, 0 } /* (-1023..1023) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_CurvatureValue_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, -1023, 1023 } /* (-1023..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 ber_tlv_tag_t asn_DEF_CurvatureValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_CurvatureValue = { + "CurvatureValue", + "CurvatureValue", + &asn_OP_NativeInteger, + asn_DEF_CurvatureValue_tags_1, + sizeof(asn_DEF_CurvatureValue_tags_1) + /sizeof(asn_DEF_CurvatureValue_tags_1[0]), /* 1 */ + asn_DEF_CurvatureValue_tags_1, /* Same as above */ + sizeof(asn_DEF_CurvatureValue_tags_1) + /sizeof(asn_DEF_CurvatureValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_CurvatureValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_CurvatureValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CurvatureValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/CurvatureValue.h b/vanetza/asn1/its2/CurvatureValue.h new file mode 100644 index 000000000..510e5d708 --- /dev/null +++ b/vanetza/asn1/its2/CurvatureValue.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _CurvatureValue_H_ +#define _CurvatureValue_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum CurvatureValue { + CurvatureValue_outOfRangeNegative = -1023, + CurvatureValue_straight = 0, + CurvatureValue_outOfRangePositive = 1022, + CurvatureValue_unavailable = 1023 +} e_CurvatureValue; + +/* CurvatureValue */ +typedef long CurvatureValue_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_CurvatureValue_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_CurvatureValue; +asn_struct_free_f CurvatureValue_free; +asn_struct_print_f CurvatureValue_print; +asn_constr_check_f CurvatureValue_constraint; +ber_type_decoder_f CurvatureValue_decode_ber; +der_type_encoder_f CurvatureValue_encode_der; +xer_type_decoder_f CurvatureValue_decode_xer; +xer_type_encoder_f CurvatureValue_encode_xer; +jer_type_encoder_f CurvatureValue_encode_jer; +oer_type_decoder_f CurvatureValue_decode_oer; +oer_type_encoder_f CurvatureValue_encode_oer; +per_type_decoder_f CurvatureValue_decode_uper; +per_type_encoder_f CurvatureValue_encode_uper; +per_type_decoder_f CurvatureValue_decode_aper; +per_type_encoder_f CurvatureValue_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _CurvatureValue_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/DENM-PDU-Description_ManagementContainer.c b/vanetza/asn1/its2/DENM-PDU-Description_ManagementContainer.c new file mode 100644 index 000000000..66c5bedf5 --- /dev/null +++ b/vanetza/asn1/its2/DENM-PDU-Description_ManagementContainer.c @@ -0,0 +1,286 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "DENM-PDU-Description" + * found in "asn1/TS103831v211-DENM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DENM-PDU-Description_ManagementContainer.h" + +static int asn_DFL_9_cmp_600(const void *sptr) { + const DeltaTimeSecond_t *st = sptr; + + if(!st) { + return -1; /* No value is not a default value */ + } + + /* Test default value 600 */ + return (*st != 600); +} +static int asn_DFL_9_set_600(void **sptr) { + DeltaTimeSecond_t *st = *sptr; + + if(!st) { + st = (*sptr = CALLOC(1, sizeof(*st))); + if(!st) return -1; + } + + /* Install default value 600 */ + *st = 600; + return 0; +} +asn_TYPE_member_t asn_MBR_DENM_PDU_Description_ManagementContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct DENM_PDU_Description_ManagementContainer, actionId), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ActionId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "actionId" + }, + { ATF_NOFLAGS, 0, offsetof(struct DENM_PDU_Description_ManagementContainer, detectionTime), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TimestampIts, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "detectionTime" + }, + { ATF_NOFLAGS, 0, offsetof(struct DENM_PDU_Description_ManagementContainer, referenceTime), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TimestampIts, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "referenceTime" + }, + { ATF_POINTER, 1, offsetof(struct DENM_PDU_Description_ManagementContainer, termination), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Termination, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "termination" + }, + { ATF_NOFLAGS, 0, offsetof(struct DENM_PDU_Description_ManagementContainer, eventPosition), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ReferencePosition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "eventPosition" + }, + { ATF_POINTER, 4, offsetof(struct DENM_PDU_Description_ManagementContainer, awarenessDistance), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StandardLength3b, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "awarenessDistance" + }, + { ATF_POINTER, 3, offsetof(struct DENM_PDU_Description_ManagementContainer, awarenessTrafficDirection), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TrafficDirection, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "awarenessTrafficDirection" + }, + { ATF_POINTER, 2, offsetof(struct DENM_PDU_Description_ManagementContainer, validityDuration), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DeltaTimeSecond, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + &asn_DFL_9_cmp_600, /* Compare DEFAULT 600 */ + &asn_DFL_9_set_600, /* Set DEFAULT 600 */ + "validityDuration" + }, + { ATF_POINTER, 1, offsetof(struct DENM_PDU_Description_ManagementContainer, transmissionInterval), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DeltaTimeMilliSecondPositive, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "transmissionInterval" + }, + { ATF_NOFLAGS, 0, offsetof(struct DENM_PDU_Description_ManagementContainer, stationType), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StationType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "stationType" + }, +}; +static const int asn_MAP_DENM_PDU_Description_ManagementContainer_oms_1[] = { 3, 5, 6, 7, 8 }; +static const ber_tlv_tag_t asn_DEF_DENM_PDU_Description_ManagementContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DENM_PDU_Description_ManagementContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* actionId */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* detectionTime */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* referenceTime */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* termination */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* eventPosition */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* awarenessDistance */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* awarenessTrafficDirection */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* validityDuration */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* transmissionInterval */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* stationType */ +}; +asn_SEQUENCE_specifics_t asn_SPC_DENM_PDU_Description_ManagementContainer_specs_1 = { + sizeof(struct DENM_PDU_Description_ManagementContainer), + offsetof(struct DENM_PDU_Description_ManagementContainer, _asn_ctx), + asn_MAP_DENM_PDU_Description_ManagementContainer_tag2el_1, + 10, /* Count of tags in the map */ + asn_MAP_DENM_PDU_Description_ManagementContainer_oms_1, /* Optional members */ + 5, 0, /* Root/Additions */ + 10, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_DENM_PDU_Description_ManagementContainer = { + "ManagementContainer", + "ManagementContainer", + &asn_OP_SEQUENCE, + asn_DEF_DENM_PDU_Description_ManagementContainer_tags_1, + sizeof(asn_DEF_DENM_PDU_Description_ManagementContainer_tags_1) + /sizeof(asn_DEF_DENM_PDU_Description_ManagementContainer_tags_1[0]), /* 1 */ + asn_DEF_DENM_PDU_Description_ManagementContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_DENM_PDU_Description_ManagementContainer_tags_1) + /sizeof(asn_DEF_DENM_PDU_Description_ManagementContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DENM_PDU_Description_ManagementContainer_1, + 10, /* Elements count */ + &asn_SPC_DENM_PDU_Description_ManagementContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/DENM-PDU-Description_ManagementContainer.h b/vanetza/asn1/its2/DENM-PDU-Description_ManagementContainer.h new file mode 100644 index 000000000..78e109475 --- /dev/null +++ b/vanetza/asn1/its2/DENM-PDU-Description_ManagementContainer.h @@ -0,0 +1,61 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "DENM-PDU-Description" + * found in "asn1/TS103831v211-DENM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _DENM_PDU_Description_ManagementContainer_H_ +#define _DENM_PDU_Description_ManagementContainer_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "ActionId.h" +#include "TimestampIts.h" +#include "Termination.h" +#include "ReferencePosition.h" +#include "StandardLength3b.h" +#include "TrafficDirection.h" +#include "DeltaTimeSecond.h" +#include "DeltaTimeMilliSecondPositive.h" +#include "StationType.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* DENM-PDU-Description_ManagementContainer */ +typedef struct DENM_PDU_Description_ManagementContainer { + ActionId_t actionId; + TimestampIts_t detectionTime; + TimestampIts_t referenceTime; + Termination_t *termination; /* OPTIONAL */ + ReferencePosition_t eventPosition; + StandardLength3b_t *awarenessDistance; /* OPTIONAL */ + TrafficDirection_t *awarenessTrafficDirection; /* OPTIONAL */ + DeltaTimeSecond_t *validityDuration; /* DEFAULT 600 */ + DeltaTimeMilliSecondPositive_t *transmissionInterval; /* OPTIONAL */ + StationType_t stationType; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} DENM_PDU_Description_ManagementContainer_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_DENM_PDU_Description_ManagementContainer; +extern asn_SEQUENCE_specifics_t asn_SPC_DENM_PDU_Description_ManagementContainer_specs_1; +extern asn_TYPE_member_t asn_MBR_DENM_PDU_Description_ManagementContainer_1[10]; + +#ifdef __cplusplus +} +#endif + +#endif /* _DENM_PDU_Description_ManagementContainer_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/DENM.c b/vanetza/asn1/its2/DENM.c new file mode 100644 index 000000000..52ee1edf2 --- /dev/null +++ b/vanetza/asn1/its2/DENM.c @@ -0,0 +1,124 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "DENM-PDU-Description" + * found in "asn1/TS103831v211-DENM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DENM.h" + +static int +memb_header_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; + } + + + if(1 /* No applicable constraints whatsoever */) { + /* Nothing is here. See below */ + } + + return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); +} + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_header_constr_2 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_header_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 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_DENM_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct DENM, header), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ItsPduHeader, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_header_constr_2, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_header_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_header_constraint_1 + }, + 0, 0, /* No default value */ + "header" + }, + { ATF_NOFLAGS, 0, offsetof(struct DENM, denm), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DenmPayload, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "denm" + }, +}; +static const ber_tlv_tag_t asn_DEF_DENM_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DENM_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* header */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* denm */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_DENM_specs_1 = { + sizeof(struct DENM), + offsetof(struct DENM, _asn_ctx), + asn_MAP_DENM_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_DENM = { + "DENM", + "DENM", + &asn_OP_SEQUENCE, + asn_DEF_DENM_tags_1, + sizeof(asn_DEF_DENM_tags_1) + /sizeof(asn_DEF_DENM_tags_1[0]), /* 1 */ + asn_DEF_DENM_tags_1, /* Same as above */ + sizeof(asn_DEF_DENM_tags_1) + /sizeof(asn_DEF_DENM_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DENM_1, + 2, /* Elements count */ + &asn_SPC_DENM_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/DENM.h b/vanetza/asn1/its2/DENM.h new file mode 100644 index 000000000..48257cb03 --- /dev/null +++ b/vanetza/asn1/its2/DENM.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "DENM-PDU-Description" + * found in "asn1/TS103831v211-DENM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _DENM_H_ +#define _DENM_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "ItsPduHeader.h" +#include "DenmPayload.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* DENM */ +typedef struct DENM { + ItsPduHeader_t header; + DenmPayload_t denm; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} DENM_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_DENM; + +#ifdef __cplusplus +} +#endif + +#endif /* _DENM_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/DangerousEndOfQueueSubCauseCode.c b/vanetza/asn1/its2/DangerousEndOfQueueSubCauseCode.c new file mode 100644 index 000000000..a86488584 --- /dev/null +++ b/vanetza/asn1/its2/DangerousEndOfQueueSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DangerousEndOfQueueSubCauseCode.h" + +int +DangerousEndOfQueueSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_DangerousEndOfQueueSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DangerousEndOfQueueSubCauseCode_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_DangerousEndOfQueueSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_DangerousEndOfQueueSubCauseCode = { + "DangerousEndOfQueueSubCauseCode", + "DangerousEndOfQueueSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_DangerousEndOfQueueSubCauseCode_tags_1, + sizeof(asn_DEF_DangerousEndOfQueueSubCauseCode_tags_1) + /sizeof(asn_DEF_DangerousEndOfQueueSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_DangerousEndOfQueueSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_DangerousEndOfQueueSubCauseCode_tags_1) + /sizeof(asn_DEF_DangerousEndOfQueueSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_DangerousEndOfQueueSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DangerousEndOfQueueSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + DangerousEndOfQueueSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/DangerousEndOfQueueSubCauseCode.h b/vanetza/asn1/its2/DangerousEndOfQueueSubCauseCode.h new file mode 100644 index 000000000..07e519734 --- /dev/null +++ b/vanetza/asn1/its2/DangerousEndOfQueueSubCauseCode.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _DangerousEndOfQueueSubCauseCode_H_ +#define _DangerousEndOfQueueSubCauseCode_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum DangerousEndOfQueueSubCauseCode { + DangerousEndOfQueueSubCauseCode_unavailable = 0, + DangerousEndOfQueueSubCauseCode_suddenEndOfQueue = 1, + DangerousEndOfQueueSubCauseCode_queueOverHill = 2, + DangerousEndOfQueueSubCauseCode_queueAroundBend = 3, + DangerousEndOfQueueSubCauseCode_queueInTunnel = 4 +} e_DangerousEndOfQueueSubCauseCode; + +/* DangerousEndOfQueueSubCauseCode */ +typedef long DangerousEndOfQueueSubCauseCode_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_DangerousEndOfQueueSubCauseCode_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_DangerousEndOfQueueSubCauseCode; +asn_struct_free_f DangerousEndOfQueueSubCauseCode_free; +asn_struct_print_f DangerousEndOfQueueSubCauseCode_print; +asn_constr_check_f DangerousEndOfQueueSubCauseCode_constraint; +ber_type_decoder_f DangerousEndOfQueueSubCauseCode_decode_ber; +der_type_encoder_f DangerousEndOfQueueSubCauseCode_encode_der; +xer_type_decoder_f DangerousEndOfQueueSubCauseCode_decode_xer; +xer_type_encoder_f DangerousEndOfQueueSubCauseCode_encode_xer; +jer_type_encoder_f DangerousEndOfQueueSubCauseCode_encode_jer; +oer_type_decoder_f DangerousEndOfQueueSubCauseCode_decode_oer; +oer_type_encoder_f DangerousEndOfQueueSubCauseCode_encode_oer; +per_type_decoder_f DangerousEndOfQueueSubCauseCode_decode_uper; +per_type_encoder_f DangerousEndOfQueueSubCauseCode_encode_uper; +per_type_decoder_f DangerousEndOfQueueSubCauseCode_decode_aper; +per_type_encoder_f DangerousEndOfQueueSubCauseCode_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _DangerousEndOfQueueSubCauseCode_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/DangerousGoodsBasic.c b/vanetza/asn1/its2/DangerousGoodsBasic.c new file mode 100644 index 000000000..5e198fa20 --- /dev/null +++ b/vanetza/asn1/its2/DangerousGoodsBasic.c @@ -0,0 +1,107 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DangerousGoodsBasic.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_DangerousGoodsBasic_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DangerousGoodsBasic_constr_1 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) */ +static const asn_INTEGER_enum_map_t asn_MAP_DangerousGoodsBasic_value2enum_1[] = { + { 0, 11, "explosives1" }, + { 1, 11, "explosives2" }, + { 2, 11, "explosives3" }, + { 3, 11, "explosives4" }, + { 4, 11, "explosives5" }, + { 5, 11, "explosives6" }, + { 6, 14, "flammableGases" }, + { 7, 17, "nonFlammableGases" }, + { 8, 10, "toxicGases" }, + { 9, 16, "flammableLiquids" }, + { 10, 15, "flammableSolids" }, + { 11, 39, "substancesLiableToSpontaneousCombustion" }, + { 12, 52, "substancesEmittingFlammableGasesUponContactWithWater" }, + { 13, 19, "oxidizingSubstances" }, + { 14, 16, "organicPeroxides" }, + { 15, 15, "toxicSubstances" }, + { 16, 20, "infectiousSubstances" }, + { 17, 19, "radioactiveMaterial" }, + { 18, 19, "corrosiveSubstances" }, + { 19, 32, "miscellaneousDangerousSubstances" } +}; +static const unsigned int asn_MAP_DangerousGoodsBasic_enum2value_1[] = { + 18, /* corrosiveSubstances(18) */ + 0, /* explosives1(0) */ + 1, /* explosives2(1) */ + 2, /* explosives3(2) */ + 3, /* explosives4(3) */ + 4, /* explosives5(4) */ + 5, /* explosives6(5) */ + 6, /* flammableGases(6) */ + 9, /* flammableLiquids(9) */ + 10, /* flammableSolids(10) */ + 16, /* infectiousSubstances(16) */ + 19, /* miscellaneousDangerousSubstances(19) */ + 7, /* nonFlammableGases(7) */ + 14, /* organicPeroxides(14) */ + 13, /* oxidizingSubstances(13) */ + 17, /* radioactiveMaterial(17) */ + 12, /* substancesEmittingFlammableGasesUponContactWithWater(12) */ + 11, /* substancesLiableToSpontaneousCombustion(11) */ + 8, /* toxicGases(8) */ + 15 /* toxicSubstances(15) */ +}; +const asn_INTEGER_specifics_t asn_SPC_DangerousGoodsBasic_specs_1 = { + asn_MAP_DangerousGoodsBasic_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_DangerousGoodsBasic_enum2value_1, /* N => "tag"; sorted by N */ + 20, /* Number of elements in the maps */ + 0, /* Enumeration is not extensible */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_DangerousGoodsBasic_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_DangerousGoodsBasic = { + "DangerousGoodsBasic", + "DangerousGoodsBasic", + &asn_OP_NativeEnumerated, + asn_DEF_DangerousGoodsBasic_tags_1, + sizeof(asn_DEF_DangerousGoodsBasic_tags_1) + /sizeof(asn_DEF_DangerousGoodsBasic_tags_1[0]), /* 1 */ + asn_DEF_DangerousGoodsBasic_tags_1, /* Same as above */ + sizeof(asn_DEF_DangerousGoodsBasic_tags_1) + /sizeof(asn_DEF_DangerousGoodsBasic_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_DangerousGoodsBasic_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DangerousGoodsBasic_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_DangerousGoodsBasic_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/DangerousGoodsBasic.h b/vanetza/asn1/its2/DangerousGoodsBasic.h new file mode 100644 index 000000000..e52828a3c --- /dev/null +++ b/vanetza/asn1/its2/DangerousGoodsBasic.h @@ -0,0 +1,72 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _DangerousGoodsBasic_H_ +#define _DangerousGoodsBasic_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum DangerousGoodsBasic { + DangerousGoodsBasic_explosives1 = 0, + DangerousGoodsBasic_explosives2 = 1, + DangerousGoodsBasic_explosives3 = 2, + DangerousGoodsBasic_explosives4 = 3, + DangerousGoodsBasic_explosives5 = 4, + DangerousGoodsBasic_explosives6 = 5, + DangerousGoodsBasic_flammableGases = 6, + DangerousGoodsBasic_nonFlammableGases = 7, + DangerousGoodsBasic_toxicGases = 8, + DangerousGoodsBasic_flammableLiquids = 9, + DangerousGoodsBasic_flammableSolids = 10, + DangerousGoodsBasic_substancesLiableToSpontaneousCombustion = 11, + DangerousGoodsBasic_substancesEmittingFlammableGasesUponContactWithWater = 12, + DangerousGoodsBasic_oxidizingSubstances = 13, + DangerousGoodsBasic_organicPeroxides = 14, + DangerousGoodsBasic_toxicSubstances = 15, + DangerousGoodsBasic_infectiousSubstances = 16, + DangerousGoodsBasic_radioactiveMaterial = 17, + DangerousGoodsBasic_corrosiveSubstances = 18, + DangerousGoodsBasic_miscellaneousDangerousSubstances = 19 +} e_DangerousGoodsBasic; + +/* DangerousGoodsBasic */ +typedef long DangerousGoodsBasic_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_DangerousGoodsBasic_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_DangerousGoodsBasic; +extern const asn_INTEGER_specifics_t asn_SPC_DangerousGoodsBasic_specs_1; +asn_struct_free_f DangerousGoodsBasic_free; +asn_struct_print_f DangerousGoodsBasic_print; +asn_constr_check_f DangerousGoodsBasic_constraint; +ber_type_decoder_f DangerousGoodsBasic_decode_ber; +der_type_encoder_f DangerousGoodsBasic_encode_der; +xer_type_decoder_f DangerousGoodsBasic_decode_xer; +xer_type_encoder_f DangerousGoodsBasic_encode_xer; +jer_type_encoder_f DangerousGoodsBasic_encode_jer; +oer_type_decoder_f DangerousGoodsBasic_decode_oer; +oer_type_encoder_f DangerousGoodsBasic_encode_oer; +per_type_decoder_f DangerousGoodsBasic_decode_uper; +per_type_encoder_f DangerousGoodsBasic_encode_uper; +per_type_decoder_f DangerousGoodsBasic_decode_aper; +per_type_encoder_f DangerousGoodsBasic_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _DangerousGoodsBasic_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/DangerousGoodsContainer.c b/vanetza/asn1/its2/DangerousGoodsContainer.c new file mode 100644 index 000000000..a5072a4da --- /dev/null +++ b/vanetza/asn1/its2/DangerousGoodsContainer.c @@ -0,0 +1,72 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/TS103900v211-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DangerousGoodsContainer.h" + +asn_TYPE_member_t asn_MBR_DangerousGoodsContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct DangerousGoodsContainer, dangerousGoodsBasic), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DangerousGoodsBasic, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dangerousGoodsBasic" + }, +}; +static const ber_tlv_tag_t asn_DEF_DangerousGoodsContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DangerousGoodsContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* dangerousGoodsBasic */ +}; +asn_SEQUENCE_specifics_t asn_SPC_DangerousGoodsContainer_specs_1 = { + sizeof(struct DangerousGoodsContainer), + offsetof(struct DangerousGoodsContainer, _asn_ctx), + asn_MAP_DangerousGoodsContainer_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_DangerousGoodsContainer = { + "DangerousGoodsContainer", + "DangerousGoodsContainer", + &asn_OP_SEQUENCE, + asn_DEF_DangerousGoodsContainer_tags_1, + sizeof(asn_DEF_DangerousGoodsContainer_tags_1) + /sizeof(asn_DEF_DangerousGoodsContainer_tags_1[0]), /* 1 */ + asn_DEF_DangerousGoodsContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_DangerousGoodsContainer_tags_1) + /sizeof(asn_DEF_DangerousGoodsContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DangerousGoodsContainer_1, + 1, /* Elements count */ + &asn_SPC_DangerousGoodsContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/DangerousGoodsContainer.h b/vanetza/asn1/its2/DangerousGoodsContainer.h new file mode 100644 index 000000000..ee3d3713c --- /dev/null +++ b/vanetza/asn1/its2/DangerousGoodsContainer.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/TS103900v211-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _DangerousGoodsContainer_H_ +#define _DangerousGoodsContainer_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "DangerousGoodsBasic.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* DangerousGoodsContainer */ +typedef struct DangerousGoodsContainer { + DangerousGoodsBasic_t dangerousGoodsBasic; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} DangerousGoodsContainer_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_DangerousGoodsContainer; +extern asn_SEQUENCE_specifics_t asn_SPC_DangerousGoodsContainer_specs_1; +extern asn_TYPE_member_t asn_MBR_DangerousGoodsContainer_1[1]; + +#ifdef __cplusplus +} +#endif + +#endif /* _DangerousGoodsContainer_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/DangerousGoodsExtended.c b/vanetza/asn1/its2/DangerousGoodsExtended.c new file mode 100644 index 000000000..e0cf57090 --- /dev/null +++ b/vanetza/asn1/its2/DangerousGoodsExtended.c @@ -0,0 +1,354 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DangerousGoodsExtended.h" + +static int check_permitted_alphabet_7(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_unNumber_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 9999L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_emergencyActionCode_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_7(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_companyName_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const UTF8String_t *st = (const UTF8String_t *)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 = UTF8String_length(st); + if((ssize_t)size < 0) { + ASN__CTFAIL(app_key, td, sptr, + "%s: UTF-8: broken encoding (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if((size >= 1UL && 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_unNumber_constr_3 CC_NOTUSED = { + { 2, 1 } /* (0..9999) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_unNumber_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 0, 9999 } /* (0..9999) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_emergencyActionCode_constr_7 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..24)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_emergencyActionCode_constr_7 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_companyName_constr_9 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_companyName_constr_9 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 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) */ +asn_TYPE_member_t asn_MBR_DangerousGoodsExtended_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct DangerousGoodsExtended, dangerousGoodsType), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DangerousGoodsBasic, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dangerousGoodsType" + }, + { ATF_NOFLAGS, 0, offsetof(struct DangerousGoodsExtended, unNumber), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_unNumber_constr_3, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_unNumber_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_unNumber_constraint_1 + }, + 0, 0, /* No default value */ + "unNumber" + }, + { ATF_NOFLAGS, 0, offsetof(struct DangerousGoodsExtended, elevatedTemperature), + (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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "elevatedTemperature" + }, + { ATF_NOFLAGS, 0, offsetof(struct DangerousGoodsExtended, tunnelsRestricted), + (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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "tunnelsRestricted" + }, + { ATF_NOFLAGS, 0, offsetof(struct DangerousGoodsExtended, limitedQuantity), + (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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "limitedQuantity" + }, + { ATF_POINTER, 3, offsetof(struct DangerousGoodsExtended, emergencyActionCode), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_IA5String, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_emergencyActionCode_constr_7, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_emergencyActionCode_constr_7, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_emergencyActionCode_constraint_1 + }, + 0, 0, /* No default value */ + "emergencyActionCode" + }, + { ATF_POINTER, 2, offsetof(struct DangerousGoodsExtended, phoneNumber), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PhoneNumber, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "phoneNumber" + }, + { ATF_POINTER, 1, offsetof(struct DangerousGoodsExtended, companyName), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UTF8String, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_companyName_constr_9, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_companyName_constr_9, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_companyName_constraint_1 + }, + 0, 0, /* No default value */ + "companyName" + }, +}; +static const int asn_MAP_DangerousGoodsExtended_oms_1[] = { 5, 6, 7 }; +static const ber_tlv_tag_t asn_DEF_DangerousGoodsExtended_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DangerousGoodsExtended_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dangerousGoodsType */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* unNumber */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* elevatedTemperature */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* tunnelsRestricted */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* limitedQuantity */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* emergencyActionCode */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* phoneNumber */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* companyName */ +}; +asn_SEQUENCE_specifics_t asn_SPC_DangerousGoodsExtended_specs_1 = { + sizeof(struct DangerousGoodsExtended), + offsetof(struct DangerousGoodsExtended, _asn_ctx), + asn_MAP_DangerousGoodsExtended_tag2el_1, + 8, /* Count of tags in the map */ + asn_MAP_DangerousGoodsExtended_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 8, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_DangerousGoodsExtended = { + "DangerousGoodsExtended", + "DangerousGoodsExtended", + &asn_OP_SEQUENCE, + asn_DEF_DangerousGoodsExtended_tags_1, + sizeof(asn_DEF_DangerousGoodsExtended_tags_1) + /sizeof(asn_DEF_DangerousGoodsExtended_tags_1[0]), /* 1 */ + asn_DEF_DangerousGoodsExtended_tags_1, /* Same as above */ + sizeof(asn_DEF_DangerousGoodsExtended_tags_1) + /sizeof(asn_DEF_DangerousGoodsExtended_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DangerousGoodsExtended_1, + 8, /* Elements count */ + &asn_SPC_DangerousGoodsExtended_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/DangerousGoodsExtended.h b/vanetza/asn1/its2/DangerousGoodsExtended.h new file mode 100644 index 000000000..341aa901a --- /dev/null +++ b/vanetza/asn1/its2/DangerousGoodsExtended.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _DangerousGoodsExtended_H_ +#define _DangerousGoodsExtended_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "DangerousGoodsBasic.h" +#include "NativeInteger.h" +#include "BOOLEAN.h" +#include "IA5String.h" +#include "PhoneNumber.h" +#include "UTF8String.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* DangerousGoodsExtended */ +typedef struct DangerousGoodsExtended { + DangerousGoodsBasic_t dangerousGoodsType; + long unNumber; + BOOLEAN_t elevatedTemperature; + BOOLEAN_t tunnelsRestricted; + BOOLEAN_t limitedQuantity; + IA5String_t *emergencyActionCode; /* OPTIONAL */ + PhoneNumber_t *phoneNumber; /* OPTIONAL */ + UTF8String_t *companyName; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} DangerousGoodsExtended_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_DangerousGoodsExtended; +extern asn_SEQUENCE_specifics_t asn_SPC_DangerousGoodsExtended_specs_1; +extern asn_TYPE_member_t asn_MBR_DangerousGoodsExtended_1[8]; + +#ifdef __cplusplus +} +#endif + +#endif /* _DangerousGoodsExtended_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/DangerousSituationSubCauseCode.c b/vanetza/asn1/its2/DangerousSituationSubCauseCode.c new file mode 100644 index 000000000..b063b6d43 --- /dev/null +++ b/vanetza/asn1/its2/DangerousSituationSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DangerousSituationSubCauseCode.h" + +int +DangerousSituationSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_DangerousSituationSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DangerousSituationSubCauseCode_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_DangerousSituationSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_DangerousSituationSubCauseCode = { + "DangerousSituationSubCauseCode", + "DangerousSituationSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_DangerousSituationSubCauseCode_tags_1, + sizeof(asn_DEF_DangerousSituationSubCauseCode_tags_1) + /sizeof(asn_DEF_DangerousSituationSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_DangerousSituationSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_DangerousSituationSubCauseCode_tags_1) + /sizeof(asn_DEF_DangerousSituationSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_DangerousSituationSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DangerousSituationSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + DangerousSituationSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/DangerousSituationSubCauseCode.h b/vanetza/asn1/its2/DangerousSituationSubCauseCode.h new file mode 100644 index 000000000..3b8859a45 --- /dev/null +++ b/vanetza/asn1/its2/DangerousSituationSubCauseCode.h @@ -0,0 +1,59 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _DangerousSituationSubCauseCode_H_ +#define _DangerousSituationSubCauseCode_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum DangerousSituationSubCauseCode { + DangerousSituationSubCauseCode_unavailable = 0, + DangerousSituationSubCauseCode_emergencyElectronicBrakeEngaged = 1, + DangerousSituationSubCauseCode_preCrashSystemEngaged = 2, + DangerousSituationSubCauseCode_espEngaged = 3, + DangerousSituationSubCauseCode_absEngaged = 4, + DangerousSituationSubCauseCode_ebEngaged = 5, + DangerousSituationSubCauseCode_brakeWarningEngaged = 6, + DangerousSituationSubCauseCode_collisionRiskWarningEngaged = 7 +} e_DangerousSituationSubCauseCode; + +/* DangerousSituationSubCauseCode */ +typedef long DangerousSituationSubCauseCode_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_DangerousSituationSubCauseCode_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_DangerousSituationSubCauseCode; +asn_struct_free_f DangerousSituationSubCauseCode_free; +asn_struct_print_f DangerousSituationSubCauseCode_print; +asn_constr_check_f DangerousSituationSubCauseCode_constraint; +ber_type_decoder_f DangerousSituationSubCauseCode_decode_ber; +der_type_encoder_f DangerousSituationSubCauseCode_encode_der; +xer_type_decoder_f DangerousSituationSubCauseCode_decode_xer; +xer_type_encoder_f DangerousSituationSubCauseCode_encode_xer; +jer_type_encoder_f DangerousSituationSubCauseCode_encode_jer; +oer_type_decoder_f DangerousSituationSubCauseCode_decode_oer; +oer_type_encoder_f DangerousSituationSubCauseCode_encode_oer; +per_type_decoder_f DangerousSituationSubCauseCode_decode_uper; +per_type_encoder_f DangerousSituationSubCauseCode_encode_uper; +per_type_decoder_f DangerousSituationSubCauseCode_decode_aper; +per_type_encoder_f DangerousSituationSubCauseCode_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _DangerousSituationSubCauseCode_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/DeltaAltitude.c b/vanetza/asn1/its2/DeltaAltitude.c new file mode 100644 index 000000000..26ac68f3f --- /dev/null +++ b/vanetza/asn1/its2/DeltaAltitude.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DeltaAltitude.h" + +int +DeltaAltitude_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 >= -12700L && value <= 12800L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_DeltaAltitude_constr_1 CC_NOTUSED = { + { 2, 0 } /* (-12700..12800) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DeltaAltitude_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, -12700, 12800 } /* (-12700..12800) */, + { 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_DeltaAltitude_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_DeltaAltitude = { + "DeltaAltitude", + "DeltaAltitude", + &asn_OP_NativeInteger, + asn_DEF_DeltaAltitude_tags_1, + sizeof(asn_DEF_DeltaAltitude_tags_1) + /sizeof(asn_DEF_DeltaAltitude_tags_1[0]), /* 1 */ + asn_DEF_DeltaAltitude_tags_1, /* Same as above */ + sizeof(asn_DEF_DeltaAltitude_tags_1) + /sizeof(asn_DEF_DeltaAltitude_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_DeltaAltitude_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DeltaAltitude_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + DeltaAltitude_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/DeltaAltitude.h b/vanetza/asn1/its2/DeltaAltitude.h new file mode 100644 index 000000000..98de52ac2 --- /dev/null +++ b/vanetza/asn1/its2/DeltaAltitude.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _DeltaAltitude_H_ +#define _DeltaAltitude_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum DeltaAltitude { + DeltaAltitude_negativeOutOfRange = -12700, + DeltaAltitude_positiveOutOfRange = 12799, + DeltaAltitude_unavailable = 12800 +} e_DeltaAltitude; + +/* DeltaAltitude */ +typedef long DeltaAltitude_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_DeltaAltitude_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_DeltaAltitude; +asn_struct_free_f DeltaAltitude_free; +asn_struct_print_f DeltaAltitude_print; +asn_constr_check_f DeltaAltitude_constraint; +ber_type_decoder_f DeltaAltitude_decode_ber; +der_type_encoder_f DeltaAltitude_encode_der; +xer_type_decoder_f DeltaAltitude_decode_xer; +xer_type_encoder_f DeltaAltitude_encode_xer; +jer_type_encoder_f DeltaAltitude_encode_jer; +oer_type_decoder_f DeltaAltitude_decode_oer; +oer_type_encoder_f DeltaAltitude_encode_oer; +per_type_decoder_f DeltaAltitude_decode_uper; +per_type_encoder_f DeltaAltitude_encode_uper; +per_type_decoder_f DeltaAltitude_decode_aper; +per_type_encoder_f DeltaAltitude_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _DeltaAltitude_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/DeltaLatitude.c b/vanetza/asn1/its2/DeltaLatitude.c new file mode 100644 index 000000000..4513087fc --- /dev/null +++ b/vanetza/asn1/its2/DeltaLatitude.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DeltaLatitude.h" + +int +DeltaLatitude_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 >= -131071L && value <= 131072L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_DeltaLatitude_constr_1 CC_NOTUSED = { + { 4, 0 } /* (-131071..131072) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DeltaLatitude_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 18, -1, -131071, 131072 } /* (-131071..131072) */, + { 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_DeltaLatitude_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_DeltaLatitude = { + "DeltaLatitude", + "DeltaLatitude", + &asn_OP_NativeInteger, + asn_DEF_DeltaLatitude_tags_1, + sizeof(asn_DEF_DeltaLatitude_tags_1) + /sizeof(asn_DEF_DeltaLatitude_tags_1[0]), /* 1 */ + asn_DEF_DeltaLatitude_tags_1, /* Same as above */ + sizeof(asn_DEF_DeltaLatitude_tags_1) + /sizeof(asn_DEF_DeltaLatitude_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_DeltaLatitude_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DeltaLatitude_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + DeltaLatitude_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/DeltaLatitude.h b/vanetza/asn1/its2/DeltaLatitude.h new file mode 100644 index 000000000..4a08b0eb4 --- /dev/null +++ b/vanetza/asn1/its2/DeltaLatitude.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _DeltaLatitude_H_ +#define _DeltaLatitude_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum DeltaLatitude { + DeltaLatitude_unavailable = 131072 +} e_DeltaLatitude; + +/* DeltaLatitude */ +typedef long DeltaLatitude_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_DeltaLatitude_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_DeltaLatitude; +asn_struct_free_f DeltaLatitude_free; +asn_struct_print_f DeltaLatitude_print; +asn_constr_check_f DeltaLatitude_constraint; +ber_type_decoder_f DeltaLatitude_decode_ber; +der_type_encoder_f DeltaLatitude_encode_der; +xer_type_decoder_f DeltaLatitude_decode_xer; +xer_type_encoder_f DeltaLatitude_encode_xer; +jer_type_encoder_f DeltaLatitude_encode_jer; +oer_type_decoder_f DeltaLatitude_decode_oer; +oer_type_encoder_f DeltaLatitude_encode_oer; +per_type_decoder_f DeltaLatitude_decode_uper; +per_type_encoder_f DeltaLatitude_encode_uper; +per_type_decoder_f DeltaLatitude_decode_aper; +per_type_encoder_f DeltaLatitude_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _DeltaLatitude_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/DeltaLongitude.c b/vanetza/asn1/its2/DeltaLongitude.c new file mode 100644 index 000000000..3b61b64ef --- /dev/null +++ b/vanetza/asn1/its2/DeltaLongitude.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DeltaLongitude.h" + +int +DeltaLongitude_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 >= -131071L && value <= 131072L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_DeltaLongitude_constr_1 CC_NOTUSED = { + { 4, 0 } /* (-131071..131072) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DeltaLongitude_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 18, -1, -131071, 131072 } /* (-131071..131072) */, + { 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_DeltaLongitude_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_DeltaLongitude = { + "DeltaLongitude", + "DeltaLongitude", + &asn_OP_NativeInteger, + asn_DEF_DeltaLongitude_tags_1, + sizeof(asn_DEF_DeltaLongitude_tags_1) + /sizeof(asn_DEF_DeltaLongitude_tags_1[0]), /* 1 */ + asn_DEF_DeltaLongitude_tags_1, /* Same as above */ + sizeof(asn_DEF_DeltaLongitude_tags_1) + /sizeof(asn_DEF_DeltaLongitude_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_DeltaLongitude_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DeltaLongitude_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + DeltaLongitude_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/DeltaLongitude.h b/vanetza/asn1/its2/DeltaLongitude.h new file mode 100644 index 000000000..ad21008d9 --- /dev/null +++ b/vanetza/asn1/its2/DeltaLongitude.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _DeltaLongitude_H_ +#define _DeltaLongitude_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum DeltaLongitude { + DeltaLongitude_unavailable = 131072 +} e_DeltaLongitude; + +/* DeltaLongitude */ +typedef long DeltaLongitude_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_DeltaLongitude_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_DeltaLongitude; +asn_struct_free_f DeltaLongitude_free; +asn_struct_print_f DeltaLongitude_print; +asn_constr_check_f DeltaLongitude_constraint; +ber_type_decoder_f DeltaLongitude_decode_ber; +der_type_encoder_f DeltaLongitude_encode_der; +xer_type_decoder_f DeltaLongitude_decode_xer; +xer_type_encoder_f DeltaLongitude_encode_xer; +jer_type_encoder_f DeltaLongitude_encode_jer; +oer_type_decoder_f DeltaLongitude_decode_oer; +oer_type_encoder_f DeltaLongitude_encode_oer; +per_type_decoder_f DeltaLongitude_decode_uper; +per_type_encoder_f DeltaLongitude_encode_uper; +per_type_decoder_f DeltaLongitude_decode_aper; +per_type_encoder_f DeltaLongitude_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _DeltaLongitude_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/DeltaReferencePosition.c b/vanetza/asn1/its2/DeltaReferencePosition.c new file mode 100644 index 000000000..b8ee0ab95 --- /dev/null +++ b/vanetza/asn1/its2/DeltaReferencePosition.c @@ -0,0 +1,114 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DeltaReferencePosition.h" + +asn_TYPE_member_t asn_MBR_DeltaReferencePosition_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct DeltaReferencePosition, deltaLatitude), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DeltaLatitude, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "deltaLatitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct DeltaReferencePosition, deltaLongitude), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DeltaLongitude, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "deltaLongitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct DeltaReferencePosition, deltaAltitude), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DeltaAltitude, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "deltaAltitude" + }, +}; +static const ber_tlv_tag_t asn_DEF_DeltaReferencePosition_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DeltaReferencePosition_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* deltaLatitude */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* deltaLongitude */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* deltaAltitude */ +}; +asn_SEQUENCE_specifics_t asn_SPC_DeltaReferencePosition_specs_1 = { + sizeof(struct DeltaReferencePosition), + offsetof(struct DeltaReferencePosition, _asn_ctx), + asn_MAP_DeltaReferencePosition_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_DeltaReferencePosition = { + "DeltaReferencePosition", + "DeltaReferencePosition", + &asn_OP_SEQUENCE, + asn_DEF_DeltaReferencePosition_tags_1, + sizeof(asn_DEF_DeltaReferencePosition_tags_1) + /sizeof(asn_DEF_DeltaReferencePosition_tags_1[0]), /* 1 */ + asn_DEF_DeltaReferencePosition_tags_1, /* Same as above */ + sizeof(asn_DEF_DeltaReferencePosition_tags_1) + /sizeof(asn_DEF_DeltaReferencePosition_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DeltaReferencePosition_1, + 3, /* Elements count */ + &asn_SPC_DeltaReferencePosition_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/DeltaReferencePosition.h b/vanetza/asn1/its2/DeltaReferencePosition.h new file mode 100644 index 000000000..e985c2b24 --- /dev/null +++ b/vanetza/asn1/its2/DeltaReferencePosition.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _DeltaReferencePosition_H_ +#define _DeltaReferencePosition_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "DeltaLatitude.h" +#include "DeltaLongitude.h" +#include "DeltaAltitude.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* DeltaReferencePosition */ +typedef struct DeltaReferencePosition { + DeltaLatitude_t deltaLatitude; + DeltaLongitude_t deltaLongitude; + DeltaAltitude_t deltaAltitude; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} DeltaReferencePosition_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_DeltaReferencePosition; +extern asn_SEQUENCE_specifics_t asn_SPC_DeltaReferencePosition_specs_1; +extern asn_TYPE_member_t asn_MBR_DeltaReferencePosition_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _DeltaReferencePosition_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/DeltaTimeMilliSecondPositive.c b/vanetza/asn1/its2/DeltaTimeMilliSecondPositive.c new file mode 100644 index 000000000..6bf595784 --- /dev/null +++ b/vanetza/asn1/its2/DeltaTimeMilliSecondPositive.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DeltaTimeMilliSecondPositive.h" + +int +DeltaTimeMilliSecondPositive_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 <= 10000L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_DeltaTimeMilliSecondPositive_constr_1 CC_NOTUSED = { + { 2, 1 } /* (1..10000) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DeltaTimeMilliSecondPositive_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 1, 10000 } /* (1..10000) */, + { 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_DeltaTimeMilliSecondPositive_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_DeltaTimeMilliSecondPositive = { + "DeltaTimeMilliSecondPositive", + "DeltaTimeMilliSecondPositive", + &asn_OP_NativeInteger, + asn_DEF_DeltaTimeMilliSecondPositive_tags_1, + sizeof(asn_DEF_DeltaTimeMilliSecondPositive_tags_1) + /sizeof(asn_DEF_DeltaTimeMilliSecondPositive_tags_1[0]), /* 1 */ + asn_DEF_DeltaTimeMilliSecondPositive_tags_1, /* Same as above */ + sizeof(asn_DEF_DeltaTimeMilliSecondPositive_tags_1) + /sizeof(asn_DEF_DeltaTimeMilliSecondPositive_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_DeltaTimeMilliSecondPositive_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DeltaTimeMilliSecondPositive_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + DeltaTimeMilliSecondPositive_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/DeltaTimeMilliSecondPositive.h b/vanetza/asn1/its2/DeltaTimeMilliSecondPositive.h new file mode 100644 index 000000000..cf6a1e881 --- /dev/null +++ b/vanetza/asn1/its2/DeltaTimeMilliSecondPositive.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _DeltaTimeMilliSecondPositive_H_ +#define _DeltaTimeMilliSecondPositive_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* DeltaTimeMilliSecondPositive */ +typedef long DeltaTimeMilliSecondPositive_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_DeltaTimeMilliSecondPositive_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_DeltaTimeMilliSecondPositive; +asn_struct_free_f DeltaTimeMilliSecondPositive_free; +asn_struct_print_f DeltaTimeMilliSecondPositive_print; +asn_constr_check_f DeltaTimeMilliSecondPositive_constraint; +ber_type_decoder_f DeltaTimeMilliSecondPositive_decode_ber; +der_type_encoder_f DeltaTimeMilliSecondPositive_encode_der; +xer_type_decoder_f DeltaTimeMilliSecondPositive_decode_xer; +xer_type_encoder_f DeltaTimeMilliSecondPositive_encode_xer; +jer_type_encoder_f DeltaTimeMilliSecondPositive_encode_jer; +oer_type_decoder_f DeltaTimeMilliSecondPositive_decode_oer; +oer_type_encoder_f DeltaTimeMilliSecondPositive_encode_oer; +per_type_decoder_f DeltaTimeMilliSecondPositive_decode_uper; +per_type_encoder_f DeltaTimeMilliSecondPositive_encode_uper; +per_type_decoder_f DeltaTimeMilliSecondPositive_decode_aper; +per_type_encoder_f DeltaTimeMilliSecondPositive_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _DeltaTimeMilliSecondPositive_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/DeltaTimeMilliSecondSigned.c b/vanetza/asn1/its2/DeltaTimeMilliSecondSigned.c new file mode 100644 index 000000000..04f162bbd --- /dev/null +++ b/vanetza/asn1/its2/DeltaTimeMilliSecondSigned.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DeltaTimeMilliSecondSigned.h" + +int +DeltaTimeMilliSecondSigned_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 >= -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; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_DeltaTimeMilliSecondSigned_constr_1 CC_NOTUSED = { + { 2, 0 } /* (-2048..2047) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DeltaTimeMilliSecondSigned_constr_1 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 const ber_tlv_tag_t asn_DEF_DeltaTimeMilliSecondSigned_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_DeltaTimeMilliSecondSigned = { + "DeltaTimeMilliSecondSigned", + "DeltaTimeMilliSecondSigned", + &asn_OP_NativeInteger, + asn_DEF_DeltaTimeMilliSecondSigned_tags_1, + sizeof(asn_DEF_DeltaTimeMilliSecondSigned_tags_1) + /sizeof(asn_DEF_DeltaTimeMilliSecondSigned_tags_1[0]), /* 1 */ + asn_DEF_DeltaTimeMilliSecondSigned_tags_1, /* Same as above */ + sizeof(asn_DEF_DeltaTimeMilliSecondSigned_tags_1) + /sizeof(asn_DEF_DeltaTimeMilliSecondSigned_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_DeltaTimeMilliSecondSigned_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DeltaTimeMilliSecondSigned_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + DeltaTimeMilliSecondSigned_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/DeltaTimeMilliSecondSigned.h b/vanetza/asn1/its2/DeltaTimeMilliSecondSigned.h new file mode 100644 index 000000000..1cf674ae9 --- /dev/null +++ b/vanetza/asn1/its2/DeltaTimeMilliSecondSigned.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _DeltaTimeMilliSecondSigned_H_ +#define _DeltaTimeMilliSecondSigned_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* DeltaTimeMilliSecondSigned */ +typedef long DeltaTimeMilliSecondSigned_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_DeltaTimeMilliSecondSigned_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_DeltaTimeMilliSecondSigned; +asn_struct_free_f DeltaTimeMilliSecondSigned_free; +asn_struct_print_f DeltaTimeMilliSecondSigned_print; +asn_constr_check_f DeltaTimeMilliSecondSigned_constraint; +ber_type_decoder_f DeltaTimeMilliSecondSigned_decode_ber; +der_type_encoder_f DeltaTimeMilliSecondSigned_encode_der; +xer_type_decoder_f DeltaTimeMilliSecondSigned_decode_xer; +xer_type_encoder_f DeltaTimeMilliSecondSigned_encode_xer; +jer_type_encoder_f DeltaTimeMilliSecondSigned_encode_jer; +oer_type_decoder_f DeltaTimeMilliSecondSigned_decode_oer; +oer_type_encoder_f DeltaTimeMilliSecondSigned_encode_oer; +per_type_decoder_f DeltaTimeMilliSecondSigned_decode_uper; +per_type_encoder_f DeltaTimeMilliSecondSigned_encode_uper; +per_type_decoder_f DeltaTimeMilliSecondSigned_decode_aper; +per_type_encoder_f DeltaTimeMilliSecondSigned_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _DeltaTimeMilliSecondSigned_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/DeltaTimeQuarterSecond.c b/vanetza/asn1/its2/DeltaTimeQuarterSecond.c new file mode 100644 index 000000000..ebe30b0f8 --- /dev/null +++ b/vanetza/asn1/its2/DeltaTimeQuarterSecond.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DeltaTimeQuarterSecond.h" + +int +DeltaTimeQuarterSecond_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 <= 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_DeltaTimeQuarterSecond_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DeltaTimeQuarterSecond_constr_1 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) */ +static const ber_tlv_tag_t asn_DEF_DeltaTimeQuarterSecond_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_DeltaTimeQuarterSecond = { + "DeltaTimeQuarterSecond", + "DeltaTimeQuarterSecond", + &asn_OP_NativeInteger, + asn_DEF_DeltaTimeQuarterSecond_tags_1, + sizeof(asn_DEF_DeltaTimeQuarterSecond_tags_1) + /sizeof(asn_DEF_DeltaTimeQuarterSecond_tags_1[0]), /* 1 */ + asn_DEF_DeltaTimeQuarterSecond_tags_1, /* Same as above */ + sizeof(asn_DEF_DeltaTimeQuarterSecond_tags_1) + /sizeof(asn_DEF_DeltaTimeQuarterSecond_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_DeltaTimeQuarterSecond_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DeltaTimeQuarterSecond_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + DeltaTimeQuarterSecond_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/DeltaTimeQuarterSecond.h b/vanetza/asn1/its2/DeltaTimeQuarterSecond.h new file mode 100644 index 000000000..1b73407b9 --- /dev/null +++ b/vanetza/asn1/its2/DeltaTimeQuarterSecond.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _DeltaTimeQuarterSecond_H_ +#define _DeltaTimeQuarterSecond_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum DeltaTimeQuarterSecond { + DeltaTimeQuarterSecond_unavailable = 255 +} e_DeltaTimeQuarterSecond; + +/* DeltaTimeQuarterSecond */ +typedef long DeltaTimeQuarterSecond_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_DeltaTimeQuarterSecond_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_DeltaTimeQuarterSecond; +asn_struct_free_f DeltaTimeQuarterSecond_free; +asn_struct_print_f DeltaTimeQuarterSecond_print; +asn_constr_check_f DeltaTimeQuarterSecond_constraint; +ber_type_decoder_f DeltaTimeQuarterSecond_decode_ber; +der_type_encoder_f DeltaTimeQuarterSecond_encode_der; +xer_type_decoder_f DeltaTimeQuarterSecond_decode_xer; +xer_type_encoder_f DeltaTimeQuarterSecond_encode_xer; +jer_type_encoder_f DeltaTimeQuarterSecond_encode_jer; +oer_type_decoder_f DeltaTimeQuarterSecond_decode_oer; +oer_type_encoder_f DeltaTimeQuarterSecond_encode_oer; +per_type_decoder_f DeltaTimeQuarterSecond_decode_uper; +per_type_encoder_f DeltaTimeQuarterSecond_encode_uper; +per_type_decoder_f DeltaTimeQuarterSecond_decode_aper; +per_type_encoder_f DeltaTimeQuarterSecond_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _DeltaTimeQuarterSecond_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/DeltaTimeSecond.c b/vanetza/asn1/its2/DeltaTimeSecond.c new file mode 100644 index 000000000..0ff080be7 --- /dev/null +++ b/vanetza/asn1/its2/DeltaTimeSecond.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DeltaTimeSecond.h" + +int +DeltaTimeSecond_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 <= 86400L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_DeltaTimeSecond_constr_1 CC_NOTUSED = { + { 4, 1 } /* (0..86400) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DeltaTimeSecond_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 17, -1, 0, 86400 } /* (0..86400) */, + { 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_DeltaTimeSecond_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_DeltaTimeSecond = { + "DeltaTimeSecond", + "DeltaTimeSecond", + &asn_OP_NativeInteger, + asn_DEF_DeltaTimeSecond_tags_1, + sizeof(asn_DEF_DeltaTimeSecond_tags_1) + /sizeof(asn_DEF_DeltaTimeSecond_tags_1[0]), /* 1 */ + asn_DEF_DeltaTimeSecond_tags_1, /* Same as above */ + sizeof(asn_DEF_DeltaTimeSecond_tags_1) + /sizeof(asn_DEF_DeltaTimeSecond_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_DeltaTimeSecond_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DeltaTimeSecond_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + DeltaTimeSecond_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/DeltaTimeSecond.h b/vanetza/asn1/its2/DeltaTimeSecond.h new file mode 100644 index 000000000..b105a3b80 --- /dev/null +++ b/vanetza/asn1/its2/DeltaTimeSecond.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _DeltaTimeSecond_H_ +#define _DeltaTimeSecond_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* DeltaTimeSecond */ +typedef long DeltaTimeSecond_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_DeltaTimeSecond_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_DeltaTimeSecond; +asn_struct_free_f DeltaTimeSecond_free; +asn_struct_print_f DeltaTimeSecond_print; +asn_constr_check_f DeltaTimeSecond_constraint; +ber_type_decoder_f DeltaTimeSecond_decode_ber; +der_type_encoder_f DeltaTimeSecond_encode_der; +xer_type_decoder_f DeltaTimeSecond_decode_xer; +xer_type_encoder_f DeltaTimeSecond_encode_xer; +jer_type_encoder_f DeltaTimeSecond_encode_jer; +oer_type_decoder_f DeltaTimeSecond_decode_oer; +oer_type_encoder_f DeltaTimeSecond_encode_oer; +per_type_decoder_f DeltaTimeSecond_decode_uper; +per_type_encoder_f DeltaTimeSecond_encode_uper; +per_type_decoder_f DeltaTimeSecond_decode_aper; +per_type_encoder_f DeltaTimeSecond_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _DeltaTimeSecond_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/DeltaTimeTenSeconds.c b/vanetza/asn1/its2/DeltaTimeTenSeconds.c new file mode 100644 index 000000000..a0943e35e --- /dev/null +++ b/vanetza/asn1/its2/DeltaTimeTenSeconds.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DeltaTimeTenSeconds.h" + +int +DeltaTimeTenSeconds_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_DeltaTimeTenSeconds_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..127) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DeltaTimeTenSeconds_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_DeltaTimeTenSeconds_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_DeltaTimeTenSeconds = { + "DeltaTimeTenSeconds", + "DeltaTimeTenSeconds", + &asn_OP_NativeInteger, + asn_DEF_DeltaTimeTenSeconds_tags_1, + sizeof(asn_DEF_DeltaTimeTenSeconds_tags_1) + /sizeof(asn_DEF_DeltaTimeTenSeconds_tags_1[0]), /* 1 */ + asn_DEF_DeltaTimeTenSeconds_tags_1, /* Same as above */ + sizeof(asn_DEF_DeltaTimeTenSeconds_tags_1) + /sizeof(asn_DEF_DeltaTimeTenSeconds_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_DeltaTimeTenSeconds_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DeltaTimeTenSeconds_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + DeltaTimeTenSeconds_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/DeltaTimeTenSeconds.h b/vanetza/asn1/its2/DeltaTimeTenSeconds.h new file mode 100644 index 000000000..a4766f9fe --- /dev/null +++ b/vanetza/asn1/its2/DeltaTimeTenSeconds.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _DeltaTimeTenSeconds_H_ +#define _DeltaTimeTenSeconds_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* DeltaTimeTenSeconds */ +typedef long DeltaTimeTenSeconds_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_DeltaTimeTenSeconds_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_DeltaTimeTenSeconds; +asn_struct_free_f DeltaTimeTenSeconds_free; +asn_struct_print_f DeltaTimeTenSeconds_print; +asn_constr_check_f DeltaTimeTenSeconds_constraint; +ber_type_decoder_f DeltaTimeTenSeconds_decode_ber; +der_type_encoder_f DeltaTimeTenSeconds_encode_der; +xer_type_decoder_f DeltaTimeTenSeconds_decode_xer; +xer_type_encoder_f DeltaTimeTenSeconds_encode_xer; +jer_type_encoder_f DeltaTimeTenSeconds_encode_jer; +oer_type_decoder_f DeltaTimeTenSeconds_decode_oer; +oer_type_encoder_f DeltaTimeTenSeconds_encode_oer; +per_type_decoder_f DeltaTimeTenSeconds_decode_uper; +per_type_encoder_f DeltaTimeTenSeconds_encode_uper; +per_type_decoder_f DeltaTimeTenSeconds_decode_aper; +per_type_encoder_f DeltaTimeTenSeconds_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _DeltaTimeTenSeconds_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/DeltaTimeTenthOfSecond.c b/vanetza/asn1/its2/DeltaTimeTenthOfSecond.c new file mode 100644 index 000000000..1847aa68d --- /dev/null +++ b/vanetza/asn1/its2/DeltaTimeTenthOfSecond.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DeltaTimeTenthOfSecond.h" + +int +DeltaTimeTenthOfSecond_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_DeltaTimeTenthOfSecond_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..127) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DeltaTimeTenthOfSecond_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_DeltaTimeTenthOfSecond_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_DeltaTimeTenthOfSecond = { + "DeltaTimeTenthOfSecond", + "DeltaTimeTenthOfSecond", + &asn_OP_NativeInteger, + asn_DEF_DeltaTimeTenthOfSecond_tags_1, + sizeof(asn_DEF_DeltaTimeTenthOfSecond_tags_1) + /sizeof(asn_DEF_DeltaTimeTenthOfSecond_tags_1[0]), /* 1 */ + asn_DEF_DeltaTimeTenthOfSecond_tags_1, /* Same as above */ + sizeof(asn_DEF_DeltaTimeTenthOfSecond_tags_1) + /sizeof(asn_DEF_DeltaTimeTenthOfSecond_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_DeltaTimeTenthOfSecond_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DeltaTimeTenthOfSecond_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + DeltaTimeTenthOfSecond_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/DeltaTimeTenthOfSecond.h b/vanetza/asn1/its2/DeltaTimeTenthOfSecond.h new file mode 100644 index 000000000..5e498e99d --- /dev/null +++ b/vanetza/asn1/its2/DeltaTimeTenthOfSecond.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _DeltaTimeTenthOfSecond_H_ +#define _DeltaTimeTenthOfSecond_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum DeltaTimeTenthOfSecond { + DeltaTimeTenthOfSecond_unavailable = 127 +} e_DeltaTimeTenthOfSecond; + +/* DeltaTimeTenthOfSecond */ +typedef long DeltaTimeTenthOfSecond_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_DeltaTimeTenthOfSecond_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_DeltaTimeTenthOfSecond; +asn_struct_free_f DeltaTimeTenthOfSecond_free; +asn_struct_print_f DeltaTimeTenthOfSecond_print; +asn_constr_check_f DeltaTimeTenthOfSecond_constraint; +ber_type_decoder_f DeltaTimeTenthOfSecond_decode_ber; +der_type_encoder_f DeltaTimeTenthOfSecond_encode_der; +xer_type_decoder_f DeltaTimeTenthOfSecond_decode_xer; +xer_type_encoder_f DeltaTimeTenthOfSecond_encode_xer; +jer_type_encoder_f DeltaTimeTenthOfSecond_encode_jer; +oer_type_decoder_f DeltaTimeTenthOfSecond_decode_oer; +oer_type_encoder_f DeltaTimeTenthOfSecond_encode_oer; +per_type_decoder_f DeltaTimeTenthOfSecond_decode_uper; +per_type_encoder_f DeltaTimeTenthOfSecond_encode_uper; +per_type_decoder_f DeltaTimeTenthOfSecond_decode_aper; +per_type_encoder_f DeltaTimeTenthOfSecond_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _DeltaTimeTenthOfSecond_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/DenmPayload.c b/vanetza/asn1/its2/DenmPayload.c new file mode 100644 index 000000000..7fe82e2b7 --- /dev/null +++ b/vanetza/asn1/its2/DenmPayload.c @@ -0,0 +1,137 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "DENM-PDU-Description" + * found in "asn1/TS103831v211-DENM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DenmPayload.h" + +asn_TYPE_member_t asn_MBR_DenmPayload_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct DenmPayload, management), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DENM_PDU_Description_ManagementContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "management" + }, + { ATF_POINTER, 3, offsetof(struct DenmPayload, situation), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SituationContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "situation" + }, + { ATF_POINTER, 2, offsetof(struct DenmPayload, location), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LocationContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "location" + }, + { ATF_POINTER, 1, offsetof(struct DenmPayload, alacarte), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AlacarteContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "alacarte" + }, +}; +static const int asn_MAP_DenmPayload_oms_1[] = { 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_DenmPayload_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_DenmPayload_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* management */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* situation */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* location */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* alacarte */ +}; +asn_SEQUENCE_specifics_t asn_SPC_DenmPayload_specs_1 = { + sizeof(struct DenmPayload), + offsetof(struct DenmPayload, _asn_ctx), + asn_MAP_DenmPayload_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_DenmPayload_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_DenmPayload = { + "DenmPayload", + "DenmPayload", + &asn_OP_SEQUENCE, + asn_DEF_DenmPayload_tags_1, + sizeof(asn_DEF_DenmPayload_tags_1) + /sizeof(asn_DEF_DenmPayload_tags_1[0]), /* 1 */ + asn_DEF_DenmPayload_tags_1, /* Same as above */ + sizeof(asn_DEF_DenmPayload_tags_1) + /sizeof(asn_DEF_DenmPayload_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_DenmPayload_1, + 4, /* Elements count */ + &asn_SPC_DenmPayload_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/DenmPayload.h b/vanetza/asn1/its2/DenmPayload.h new file mode 100644 index 000000000..b85a47d68 --- /dev/null +++ b/vanetza/asn1/its2/DenmPayload.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "DENM-PDU-Description" + * found in "asn1/TS103831v211-DENM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _DenmPayload_H_ +#define _DenmPayload_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "DENM-PDU-Description_ManagementContainer.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct SituationContainer; +struct LocationContainer; +struct AlacarteContainer; + +/* DenmPayload */ +typedef struct DenmPayload { + DENM_PDU_Description_ManagementContainer_t management; + struct SituationContainer *situation; /* OPTIONAL */ + struct LocationContainer *location; /* OPTIONAL */ + struct AlacarteContainer *alacarte; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} DenmPayload_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_DenmPayload; +extern asn_SEQUENCE_specifics_t asn_SPC_DenmPayload_specs_1; +extern asn_TYPE_member_t asn_MBR_DenmPayload_1[4]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "SituationContainer.h" +#include "LocationContainer.h" +#include "AlacarteContainer.h" + +#endif /* _DenmPayload_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/DigitalMap.c b/vanetza/asn1/its2/DigitalMap.c new file mode 100644 index 000000000..0d7ef53e3 --- /dev/null +++ b/vanetza/asn1/its2/DigitalMap.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DigitalMap.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_DigitalMap_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..256)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_DigitalMap_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) */ +static asn_TYPE_member_t asn_MBR_DigitalMap_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_ReferencePosition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_DigitalMap_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_DigitalMap_specs_1 = { + sizeof(struct DigitalMap), + offsetof(struct DigitalMap, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_DigitalMap = { + "DigitalMap", + "DigitalMap", + &asn_OP_SEQUENCE_OF, + asn_DEF_DigitalMap_tags_1, + sizeof(asn_DEF_DigitalMap_tags_1) + /sizeof(asn_DEF_DigitalMap_tags_1[0]), /* 1 */ + asn_DEF_DigitalMap_tags_1, /* Same as above */ + sizeof(asn_DEF_DigitalMap_tags_1) + /sizeof(asn_DEF_DigitalMap_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_DigitalMap_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DigitalMap_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_DigitalMap_1, + 1, /* Single element */ + &asn_SPC_DigitalMap_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/DigitalMap.h b/vanetza/asn1/its2/DigitalMap.h new file mode 100644 index 000000000..638d10f97 --- /dev/null +++ b/vanetza/asn1/its2/DigitalMap.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _DigitalMap_H_ +#define _DigitalMap_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct ReferencePosition; + +/* DigitalMap */ +typedef struct DigitalMap { + A_SEQUENCE_OF(struct ReferencePosition) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} DigitalMap_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_DigitalMap; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "ReferencePosition.h" + +#endif /* _DigitalMap_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/Direction.c b/vanetza/asn1/its2/Direction.c new file mode 100644 index 000000000..5123a5281 --- /dev/null +++ b/vanetza/asn1/its2/Direction.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Direction.h" + +int +Direction_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 <= 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 NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_Direction_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..3) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Direction_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) */ +static const ber_tlv_tag_t asn_DEF_Direction_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_Direction = { + "Direction", + "Direction", + &asn_OP_NativeInteger, + asn_DEF_Direction_tags_1, + sizeof(asn_DEF_Direction_tags_1) + /sizeof(asn_DEF_Direction_tags_1[0]), /* 1 */ + asn_DEF_Direction_tags_1, /* Same as above */ + sizeof(asn_DEF_Direction_tags_1) + /sizeof(asn_DEF_Direction_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_Direction_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Direction_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + Direction_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/Direction.h b/vanetza/asn1/its2/Direction.h new file mode 100644 index 000000000..35e3b0cd1 --- /dev/null +++ b/vanetza/asn1/its2/Direction.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _Direction_H_ +#define _Direction_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum Direction { + Direction_sameDirection = 0, + Direction_oppositeDirection = 1, + Direction_bothDirections = 2, + Direction_unavailable = 3 +} e_Direction; + +/* Direction */ +typedef long Direction_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_Direction_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_Direction; +asn_struct_free_f Direction_free; +asn_struct_print_f Direction_print; +asn_constr_check_f Direction_constraint; +ber_type_decoder_f Direction_decode_ber; +der_type_encoder_f Direction_encode_der; +xer_type_decoder_f Direction_decode_xer; +xer_type_encoder_f Direction_encode_xer; +jer_type_encoder_f Direction_encode_jer; +oer_type_decoder_f Direction_decode_oer; +oer_type_encoder_f Direction_encode_oer; +per_type_decoder_f Direction_decode_uper; +per_type_encoder_f Direction_encode_uper; +per_type_decoder_f Direction_decode_aper; +per_type_encoder_f Direction_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _Direction_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/DriveDirection.c b/vanetza/asn1/its2/DriveDirection.c new file mode 100644 index 000000000..7962c5910 --- /dev/null +++ b/vanetza/asn1/its2/DriveDirection.c @@ -0,0 +1,73 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DriveDirection.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_DriveDirection_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DriveDirection_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_DriveDirection_value2enum_1[] = { + { 0, 7, "forward" }, + { 1, 8, "backward" }, + { 2, 11, "unavailable" } +}; +static const unsigned int asn_MAP_DriveDirection_enum2value_1[] = { + 1, /* backward(1) */ + 0, /* forward(0) */ + 2 /* unavailable(2) */ +}; +const asn_INTEGER_specifics_t asn_SPC_DriveDirection_specs_1 = { + asn_MAP_DriveDirection_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_DriveDirection_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_DriveDirection_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_DriveDirection = { + "DriveDirection", + "DriveDirection", + &asn_OP_NativeEnumerated, + asn_DEF_DriveDirection_tags_1, + sizeof(asn_DEF_DriveDirection_tags_1) + /sizeof(asn_DEF_DriveDirection_tags_1[0]), /* 1 */ + asn_DEF_DriveDirection_tags_1, /* Same as above */ + sizeof(asn_DEF_DriveDirection_tags_1) + /sizeof(asn_DEF_DriveDirection_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_DriveDirection_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DriveDirection_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_DriveDirection_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/DriveDirection.h b/vanetza/asn1/its2/DriveDirection.h new file mode 100644 index 000000000..75d0bafc4 --- /dev/null +++ b/vanetza/asn1/its2/DriveDirection.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _DriveDirection_H_ +#define _DriveDirection_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum DriveDirection { + DriveDirection_forward = 0, + DriveDirection_backward = 1, + DriveDirection_unavailable = 2 +} e_DriveDirection; + +/* DriveDirection */ +typedef long DriveDirection_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_DriveDirection_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_DriveDirection; +extern const asn_INTEGER_specifics_t asn_SPC_DriveDirection_specs_1; +asn_struct_free_f DriveDirection_free; +asn_struct_print_f DriveDirection_print; +asn_constr_check_f DriveDirection_constraint; +ber_type_decoder_f DriveDirection_decode_ber; +der_type_encoder_f DriveDirection_encode_der; +xer_type_decoder_f DriveDirection_decode_xer; +xer_type_encoder_f DriveDirection_encode_xer; +jer_type_encoder_f DriveDirection_encode_jer; +oer_type_decoder_f DriveDirection_decode_oer; +oer_type_encoder_f DriveDirection_encode_oer; +per_type_decoder_f DriveDirection_decode_uper; +per_type_encoder_f DriveDirection_encode_uper; +per_type_decoder_f DriveDirection_decode_aper; +per_type_encoder_f DriveDirection_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _DriveDirection_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/DrivingLaneStatus.c b/vanetza/asn1/its2/DrivingLaneStatus.c new file mode 100644 index 000000000..f17be893f --- /dev/null +++ b/vanetza/asn1/its2/DrivingLaneStatus.c @@ -0,0 +1,89 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "DrivingLaneStatus.h" + +int +DrivingLaneStatus_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 <= 13UL)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_DrivingLaneStatus_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..13)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_DrivingLaneStatus_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 4, 4, 1, 13 } /* (SIZE(1..13)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_DrivingLaneStatus_constr_1 CC_NOTUSED = { + -1}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_DrivingLaneStatus_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_DrivingLaneStatus = { + "DrivingLaneStatus", + "DrivingLaneStatus", + &asn_OP_BIT_STRING, + asn_DEF_DrivingLaneStatus_tags_1, + sizeof(asn_DEF_DrivingLaneStatus_tags_1) + /sizeof(asn_DEF_DrivingLaneStatus_tags_1[0]), /* 1 */ + asn_DEF_DrivingLaneStatus_tags_1, /* Same as above */ + sizeof(asn_DEF_DrivingLaneStatus_tags_1) + /sizeof(asn_DEF_DrivingLaneStatus_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_DrivingLaneStatus_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_DrivingLaneStatus_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_DrivingLaneStatus_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + DrivingLaneStatus_constraint + }, + 0, 0, /* No members */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/DrivingLaneStatus.h b/vanetza/asn1/its2/DrivingLaneStatus.h new file mode 100644 index 000000000..a52105046 --- /dev/null +++ b/vanetza/asn1/its2/DrivingLaneStatus.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _DrivingLaneStatus_H_ +#define _DrivingLaneStatus_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "BIT_STRING.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* DrivingLaneStatus */ +typedef BIT_STRING_t DrivingLaneStatus_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_DrivingLaneStatus_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_DrivingLaneStatus; +asn_struct_free_f DrivingLaneStatus_free; +asn_struct_print_f DrivingLaneStatus_print; +asn_constr_check_f DrivingLaneStatus_constraint; +ber_type_decoder_f DrivingLaneStatus_decode_ber; +der_type_encoder_f DrivingLaneStatus_encode_der; +xer_type_decoder_f DrivingLaneStatus_decode_xer; +xer_type_encoder_f DrivingLaneStatus_encode_xer; +jer_type_encoder_f DrivingLaneStatus_encode_jer; +oer_type_decoder_f DrivingLaneStatus_decode_oer; +oer_type_encoder_f DrivingLaneStatus_encode_oer; +per_type_decoder_f DrivingLaneStatus_decode_uper; +per_type_encoder_f DrivingLaneStatus_encode_uper; +per_type_decoder_f DrivingLaneStatus_decode_aper; +per_type_encoder_f DrivingLaneStatus_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _DrivingLaneStatus_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/EXTERNAL.c b/vanetza/asn1/its2/EXTERNAL.c new file mode 100644 index 000000000..b9ec9db97 --- /dev/null +++ b/vanetza/asn1/its2/EXTERNAL.c @@ -0,0 +1,255 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ASN1C-UsefulInformationObjectClasses" + * found in "/usr/local/share/asn1c/standard-modules/ASN1C-UsefulInformationObjectClasses.asn1" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "EXTERNAL.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_encoding_constr_5 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_encoding_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) */ +static asn_TYPE_member_t asn_MBR_encoding_5[] = { + { ATF_NOFLAGS, 0, offsetof(struct EXTERNAL__encoding, choice.single_ASN1_type), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_ANY, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "single-ASN1-type" + }, + { ATF_NOFLAGS, 0, offsetof(struct EXTERNAL__encoding, choice.octet_aligned), + (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) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "octet-aligned" + }, + { ATF_NOFLAGS, 0, offsetof(struct EXTERNAL__encoding, choice.arbitrary), + (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) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "arbitrary" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_encoding_tag2el_5[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* single-ASN1-type */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* octet-aligned */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* arbitrary */ +}; +static asn_CHOICE_specifics_t asn_SPC_encoding_specs_5 = { + sizeof(struct EXTERNAL__encoding), + offsetof(struct EXTERNAL__encoding, _asn_ctx), + offsetof(struct EXTERNAL__encoding, present), + sizeof(((struct EXTERNAL__encoding *)0)->present), + asn_MAP_encoding_tag2el_5, + 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_encoding_5 = { + "encoding", + "encoding", + &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) + &asn_OER_type_encoding_constr_5, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_encoding_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_encoding_5, + 3, /* Elements count */ + &asn_SPC_encoding_specs_5 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_EXTERNAL_1[] = { + { ATF_POINTER, 3, offsetof(struct EXTERNAL, direct_reference), + (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), + 0, + &asn_DEF_OBJECT_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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "direct-reference" + }, + { ATF_POINTER, 2, offsetof(struct EXTERNAL, indirect_reference), + (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) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "indirect-reference" + }, + { ATF_POINTER, 1, offsetof(struct EXTERNAL, data_value_descriptor), + (ASN_TAG_CLASS_UNIVERSAL | (7 << 2)), + 0, + &asn_DEF_ObjectDescriptor, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "data-value-descriptor" + }, + { ATF_NOFLAGS, 0, offsetof(struct EXTERNAL, encoding), + -1 /* Ambiguous tag (CHOICE?) */, + 0, + &asn_DEF_encoding_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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "encoding" + }, +}; +static const int asn_MAP_EXTERNAL_oms_1[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_EXTERNAL_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (8 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_EXTERNAL_tag2el_1[] = { + { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* indirect-reference */ + { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 0, 0, 0 }, /* direct-reference */ + { (ASN_TAG_CLASS_UNIVERSAL | (7 << 2)), 2, 0, 0 }, /* data-value-descriptor */ + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 3, 0, 0 }, /* single-ASN1-type */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 3, 0, 0 }, /* octet-aligned */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 3, 0, 0 } /* arbitrary */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_EXTERNAL_specs_1 = { + sizeof(struct EXTERNAL), + offsetof(struct EXTERNAL, _asn_ctx), + asn_MAP_EXTERNAL_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_EXTERNAL_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_EXTERNAL = { + "EXTERNAL", + "EXTERNAL", + &asn_OP_SEQUENCE, + asn_DEF_EXTERNAL_tags_1, + sizeof(asn_DEF_EXTERNAL_tags_1) + /sizeof(asn_DEF_EXTERNAL_tags_1[0]) - 1, /* 1 */ + asn_DEF_EXTERNAL_tags_1, /* Same as above */ + sizeof(asn_DEF_EXTERNAL_tags_1) + /sizeof(asn_DEF_EXTERNAL_tags_1[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_EXTERNAL_1, + 4, /* Elements count */ + &asn_SPC_EXTERNAL_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/EXTERNAL.h b/vanetza/asn1/its2/EXTERNAL.h new file mode 100644 index 000000000..73f8b91a6 --- /dev/null +++ b/vanetza/asn1/its2/EXTERNAL.h @@ -0,0 +1,65 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ASN1C-UsefulInformationObjectClasses" + * found in "/usr/local/share/asn1c/standard-modules/ASN1C-UsefulInformationObjectClasses.asn1" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _EXTERNAL_H_ +#define _EXTERNAL_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "OBJECT_IDENTIFIER.h" +#include "NativeInteger.h" +#include "ObjectDescriptor.h" +#include "ANY.h" +#include "OCTET_STRING.h" +#include "BIT_STRING.h" +#include "constr_CHOICE.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum EXTERNAL__encoding_PR { + EXTERNAL__encoding_PR_NOTHING, /* No components present */ + EXTERNAL__encoding_PR_single_ASN1_type, + EXTERNAL__encoding_PR_octet_aligned, + EXTERNAL__encoding_PR_arbitrary +} EXTERNAL__encoding_PR; + +/* EXTERNAL */ +typedef struct EXTERNAL { + OBJECT_IDENTIFIER_t *direct_reference; /* OPTIONAL */ + long *indirect_reference; /* OPTIONAL */ + ObjectDescriptor_t *data_value_descriptor; /* OPTIONAL */ + struct EXTERNAL__encoding { + EXTERNAL__encoding_PR present; + union EXTERNAL__encoding_u { + ANY_t single_ASN1_type; + OCTET_STRING_t octet_aligned; + BIT_STRING_t arbitrary; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } encoding; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} EXTERNAL_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_EXTERNAL; + +#ifdef __cplusplus +} +#endif + +#endif /* _EXTERNAL_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/EllipticalShape.c b/vanetza/asn1/its2/EllipticalShape.c new file mode 100644 index 000000000..32dbde1b6 --- /dev/null +++ b/vanetza/asn1/its2/EllipticalShape.c @@ -0,0 +1,158 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "EllipticalShape.h" + +asn_TYPE_member_t asn_MBR_EllipticalShape_1[] = { + { ATF_POINTER, 1, offsetof(struct EllipticalShape, shapeReferencePoint), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianPosition3d, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "shapeReferencePoint" + }, + { ATF_NOFLAGS, 0, offsetof(struct EllipticalShape, semiMajorAxisLength), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StandardLength12b, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "semiMajorAxisLength" + }, + { ATF_NOFLAGS, 0, offsetof(struct EllipticalShape, semiMinorAxisLength), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StandardLength12b, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "semiMinorAxisLength" + }, + { ATF_POINTER, 2, offsetof(struct EllipticalShape, orientation), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianAngleValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "orientation" + }, + { ATF_POINTER, 1, offsetof(struct EllipticalShape, height), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StandardLength12b, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "height" + }, +}; +static const int asn_MAP_EllipticalShape_oms_1[] = { 0, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_EllipticalShape_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_EllipticalShape_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* shapeReferencePoint */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* semiMajorAxisLength */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* semiMinorAxisLength */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* orientation */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* height */ +}; +asn_SEQUENCE_specifics_t asn_SPC_EllipticalShape_specs_1 = { + sizeof(struct EllipticalShape), + offsetof(struct EllipticalShape, _asn_ctx), + asn_MAP_EllipticalShape_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_EllipticalShape_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_EllipticalShape = { + "EllipticalShape", + "EllipticalShape", + &asn_OP_SEQUENCE, + asn_DEF_EllipticalShape_tags_1, + sizeof(asn_DEF_EllipticalShape_tags_1) + /sizeof(asn_DEF_EllipticalShape_tags_1[0]), /* 1 */ + asn_DEF_EllipticalShape_tags_1, /* Same as above */ + sizeof(asn_DEF_EllipticalShape_tags_1) + /sizeof(asn_DEF_EllipticalShape_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_EllipticalShape_1, + 5, /* Elements count */ + &asn_SPC_EllipticalShape_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/EllipticalShape.h b/vanetza/asn1/its2/EllipticalShape.h new file mode 100644 index 000000000..4e87eee7c --- /dev/null +++ b/vanetza/asn1/its2/EllipticalShape.h @@ -0,0 +1,51 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _EllipticalShape_H_ +#define _EllipticalShape_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "StandardLength12b.h" +#include "CartesianAngleValue.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct CartesianPosition3d; + +/* EllipticalShape */ +typedef struct EllipticalShape { + struct CartesianPosition3d *shapeReferencePoint; /* OPTIONAL */ + StandardLength12b_t semiMajorAxisLength; + StandardLength12b_t semiMinorAxisLength; + CartesianAngleValue_t *orientation; /* OPTIONAL */ + StandardLength12b_t *height; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} EllipticalShape_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_EllipticalShape; +extern asn_SEQUENCE_specifics_t asn_SPC_EllipticalShape_specs_1; +extern asn_TYPE_member_t asn_MBR_EllipticalShape_1[5]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "CartesianPosition3d.h" + +#endif /* _EllipticalShape_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/EmbarkationStatus.c b/vanetza/asn1/its2/EmbarkationStatus.c new file mode 100644 index 000000000..0cc370b4e --- /dev/null +++ b/vanetza/asn1/its2/EmbarkationStatus.c @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "EmbarkationStatus.h" + +/* + * This type is implemented using BOOLEAN, + * so here we adjust the DEF accordingly. + */ +static const ber_tlv_tag_t asn_DEF_EmbarkationStatus_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_EmbarkationStatus = { + "EmbarkationStatus", + "EmbarkationStatus", + &asn_OP_BOOLEAN, + asn_DEF_EmbarkationStatus_tags_1, + sizeof(asn_DEF_EmbarkationStatus_tags_1) + /sizeof(asn_DEF_EmbarkationStatus_tags_1[0]), /* 1 */ + asn_DEF_EmbarkationStatus_tags_1, /* Same as above */ + sizeof(asn_DEF_EmbarkationStatus_tags_1) + /sizeof(asn_DEF_EmbarkationStatus_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + BOOLEAN_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/EmbarkationStatus.h b/vanetza/asn1/its2/EmbarkationStatus.h new file mode 100644 index 000000000..a1534d500 --- /dev/null +++ b/vanetza/asn1/its2/EmbarkationStatus.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _EmbarkationStatus_H_ +#define _EmbarkationStatus_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "BOOLEAN.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* EmbarkationStatus */ +typedef BOOLEAN_t EmbarkationStatus_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_EmbarkationStatus; +asn_struct_free_f EmbarkationStatus_free; +asn_struct_print_f EmbarkationStatus_print; +asn_constr_check_f EmbarkationStatus_constraint; +ber_type_decoder_f EmbarkationStatus_decode_ber; +der_type_encoder_f EmbarkationStatus_encode_der; +xer_type_decoder_f EmbarkationStatus_decode_xer; +xer_type_encoder_f EmbarkationStatus_encode_xer; +jer_type_encoder_f EmbarkationStatus_encode_jer; +oer_type_decoder_f EmbarkationStatus_decode_oer; +oer_type_encoder_f EmbarkationStatus_encode_oer; +per_type_decoder_f EmbarkationStatus_decode_uper; +per_type_encoder_f EmbarkationStatus_encode_uper; +per_type_decoder_f EmbarkationStatus_decode_aper; +per_type_encoder_f EmbarkationStatus_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _EmbarkationStatus_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/EmergencyContainer.c b/vanetza/asn1/its2/EmergencyContainer.c new file mode 100644 index 000000000..8dfd8d166 --- /dev/null +++ b/vanetza/asn1/its2/EmergencyContainer.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/TS103900v211-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "EmergencyContainer.h" + +asn_TYPE_member_t asn_MBR_EmergencyContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct EmergencyContainer, lightBarSirenInUse), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LightBarSirenInUse, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lightBarSirenInUse" + }, + { ATF_POINTER, 2, offsetof(struct EmergencyContainer, incidentIndication), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CauseCodeV2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "incidentIndication" + }, + { ATF_POINTER, 1, offsetof(struct EmergencyContainer, emergencyPriority), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EmergencyPriority, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "emergencyPriority" + }, +}; +static const int asn_MAP_EmergencyContainer_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_EmergencyContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_EmergencyContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* lightBarSirenInUse */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* incidentIndication */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* emergencyPriority */ +}; +asn_SEQUENCE_specifics_t asn_SPC_EmergencyContainer_specs_1 = { + sizeof(struct EmergencyContainer), + offsetof(struct EmergencyContainer, _asn_ctx), + asn_MAP_EmergencyContainer_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_EmergencyContainer_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_EmergencyContainer = { + "EmergencyContainer", + "EmergencyContainer", + &asn_OP_SEQUENCE, + asn_DEF_EmergencyContainer_tags_1, + sizeof(asn_DEF_EmergencyContainer_tags_1) + /sizeof(asn_DEF_EmergencyContainer_tags_1[0]), /* 1 */ + asn_DEF_EmergencyContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_EmergencyContainer_tags_1) + /sizeof(asn_DEF_EmergencyContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_EmergencyContainer_1, + 3, /* Elements count */ + &asn_SPC_EmergencyContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/EmergencyContainer.h b/vanetza/asn1/its2/EmergencyContainer.h new file mode 100644 index 000000000..0e1b088f7 --- /dev/null +++ b/vanetza/asn1/its2/EmergencyContainer.h @@ -0,0 +1,49 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/TS103900v211-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _EmergencyContainer_H_ +#define _EmergencyContainer_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "LightBarSirenInUse.h" +#include "EmergencyPriority.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct CauseCodeV2; + +/* EmergencyContainer */ +typedef struct EmergencyContainer { + LightBarSirenInUse_t lightBarSirenInUse; + struct CauseCodeV2 *incidentIndication; /* OPTIONAL */ + EmergencyPriority_t *emergencyPriority; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} EmergencyContainer_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_EmergencyContainer; +extern asn_SEQUENCE_specifics_t asn_SPC_EmergencyContainer_specs_1; +extern asn_TYPE_member_t asn_MBR_EmergencyContainer_1[3]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "CauseCodeV2.h" + +#endif /* _EmergencyContainer_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/EmergencyPriority.c b/vanetza/asn1/its2/EmergencyPriority.c new file mode 100644 index 000000000..c57dca6b7 --- /dev/null +++ b/vanetza/asn1/its2/EmergencyPriority.c @@ -0,0 +1,89 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "EmergencyPriority.h" + +int +EmergencyPriority_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 == 2UL)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_EmergencyPriority_constr_1 CC_NOTUSED = { + { 0, 0 }, + 2 /* (SIZE(2..2)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_EmergencyPriority_constr_1 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_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_EmergencyPriority_constr_1 CC_NOTUSED = { + 2}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_EmergencyPriority_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_EmergencyPriority = { + "EmergencyPriority", + "EmergencyPriority", + &asn_OP_BIT_STRING, + asn_DEF_EmergencyPriority_tags_1, + sizeof(asn_DEF_EmergencyPriority_tags_1) + /sizeof(asn_DEF_EmergencyPriority_tags_1[0]), /* 1 */ + asn_DEF_EmergencyPriority_tags_1, /* Same as above */ + sizeof(asn_DEF_EmergencyPriority_tags_1) + /sizeof(asn_DEF_EmergencyPriority_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_EmergencyPriority_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_EmergencyPriority_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_EmergencyPriority_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + EmergencyPriority_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/EmergencyPriority.h b/vanetza/asn1/its2/EmergencyPriority.h new file mode 100644 index 000000000..b0296e107 --- /dev/null +++ b/vanetza/asn1/its2/EmergencyPriority.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _EmergencyPriority_H_ +#define _EmergencyPriority_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "BIT_STRING.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum EmergencyPriority { + EmergencyPriority_requestForRightOfWay = 0, + EmergencyPriority_requestForFreeCrossingAtATrafficLight = 1 +} e_EmergencyPriority; + +/* EmergencyPriority */ +typedef BIT_STRING_t EmergencyPriority_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_EmergencyPriority_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_EmergencyPriority; +asn_struct_free_f EmergencyPriority_free; +asn_struct_print_f EmergencyPriority_print; +asn_constr_check_f EmergencyPriority_constraint; +ber_type_decoder_f EmergencyPriority_decode_ber; +der_type_encoder_f EmergencyPriority_encode_der; +xer_type_decoder_f EmergencyPriority_decode_xer; +xer_type_encoder_f EmergencyPriority_encode_xer; +jer_type_encoder_f EmergencyPriority_encode_jer; +oer_type_decoder_f EmergencyPriority_decode_oer; +oer_type_encoder_f EmergencyPriority_encode_oer; +per_type_decoder_f EmergencyPriority_decode_uper; +per_type_encoder_f EmergencyPriority_encode_uper; +per_type_decoder_f EmergencyPriority_decode_aper; +per_type_encoder_f EmergencyPriority_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _EmergencyPriority_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/EmergencyVehicleApproachingSubCauseCode.c b/vanetza/asn1/its2/EmergencyVehicleApproachingSubCauseCode.c new file mode 100644 index 000000000..ae085f23c --- /dev/null +++ b/vanetza/asn1/its2/EmergencyVehicleApproachingSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "EmergencyVehicleApproachingSubCauseCode.h" + +int +EmergencyVehicleApproachingSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_EmergencyVehicleApproachingSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_EmergencyVehicleApproachingSubCauseCode_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_EmergencyVehicleApproachingSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_EmergencyVehicleApproachingSubCauseCode = { + "EmergencyVehicleApproachingSubCauseCode", + "EmergencyVehicleApproachingSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_EmergencyVehicleApproachingSubCauseCode_tags_1, + sizeof(asn_DEF_EmergencyVehicleApproachingSubCauseCode_tags_1) + /sizeof(asn_DEF_EmergencyVehicleApproachingSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_EmergencyVehicleApproachingSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_EmergencyVehicleApproachingSubCauseCode_tags_1) + /sizeof(asn_DEF_EmergencyVehicleApproachingSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_EmergencyVehicleApproachingSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_EmergencyVehicleApproachingSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + EmergencyVehicleApproachingSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/EmergencyVehicleApproachingSubCauseCode.h b/vanetza/asn1/its2/EmergencyVehicleApproachingSubCauseCode.h new file mode 100644 index 000000000..e7a49e47d --- /dev/null +++ b/vanetza/asn1/its2/EmergencyVehicleApproachingSubCauseCode.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _EmergencyVehicleApproachingSubCauseCode_H_ +#define _EmergencyVehicleApproachingSubCauseCode_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum EmergencyVehicleApproachingSubCauseCode { + EmergencyVehicleApproachingSubCauseCode_unavailable = 0, + EmergencyVehicleApproachingSubCauseCode_emergencyVehicleApproaching = 1, + EmergencyVehicleApproachingSubCauseCode_prioritizedVehicleApproaching = 2 +} e_EmergencyVehicleApproachingSubCauseCode; + +/* EmergencyVehicleApproachingSubCauseCode */ +typedef long EmergencyVehicleApproachingSubCauseCode_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_EmergencyVehicleApproachingSubCauseCode_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_EmergencyVehicleApproachingSubCauseCode; +asn_struct_free_f EmergencyVehicleApproachingSubCauseCode_free; +asn_struct_print_f EmergencyVehicleApproachingSubCauseCode_print; +asn_constr_check_f EmergencyVehicleApproachingSubCauseCode_constraint; +ber_type_decoder_f EmergencyVehicleApproachingSubCauseCode_decode_ber; +der_type_encoder_f EmergencyVehicleApproachingSubCauseCode_encode_der; +xer_type_decoder_f EmergencyVehicleApproachingSubCauseCode_decode_xer; +xer_type_encoder_f EmergencyVehicleApproachingSubCauseCode_encode_xer; +jer_type_encoder_f EmergencyVehicleApproachingSubCauseCode_encode_jer; +oer_type_decoder_f EmergencyVehicleApproachingSubCauseCode_decode_oer; +oer_type_encoder_f EmergencyVehicleApproachingSubCauseCode_encode_oer; +per_type_decoder_f EmergencyVehicleApproachingSubCauseCode_decode_uper; +per_type_encoder_f EmergencyVehicleApproachingSubCauseCode_encode_uper; +per_type_decoder_f EmergencyVehicleApproachingSubCauseCode_decode_aper; +per_type_encoder_f EmergencyVehicleApproachingSubCauseCode_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _EmergencyVehicleApproachingSubCauseCode_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/EnergyStorageType.c b/vanetza/asn1/its2/EnergyStorageType.c new file mode 100644 index 000000000..94494e8e3 --- /dev/null +++ b/vanetza/asn1/its2/EnergyStorageType.c @@ -0,0 +1,89 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "EnergyStorageType.h" + +int +EnergyStorageType_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 == 7UL)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_EnergyStorageType_constr_1 CC_NOTUSED = { + { 0, 0 }, + 7 /* (SIZE(7..7)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_EnergyStorageType_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 7, 7 } /* (SIZE(7..7)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_EnergyStorageType_constr_1 CC_NOTUSED = { + 7}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_EnergyStorageType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_EnergyStorageType = { + "EnergyStorageType", + "EnergyStorageType", + &asn_OP_BIT_STRING, + asn_DEF_EnergyStorageType_tags_1, + sizeof(asn_DEF_EnergyStorageType_tags_1) + /sizeof(asn_DEF_EnergyStorageType_tags_1[0]), /* 1 */ + asn_DEF_EnergyStorageType_tags_1, /* Same as above */ + sizeof(asn_DEF_EnergyStorageType_tags_1) + /sizeof(asn_DEF_EnergyStorageType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_EnergyStorageType_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_EnergyStorageType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_EnergyStorageType_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + EnergyStorageType_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/EnergyStorageType.h b/vanetza/asn1/its2/EnergyStorageType.h new file mode 100644 index 000000000..85a2661bc --- /dev/null +++ b/vanetza/asn1/its2/EnergyStorageType.h @@ -0,0 +1,58 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _EnergyStorageType_H_ +#define _EnergyStorageType_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "BIT_STRING.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum EnergyStorageType { + EnergyStorageType_hydrogenStorage = 0, + EnergyStorageType_electricEnergyStorage = 1, + EnergyStorageType_liquidPropaneGas = 2, + EnergyStorageType_compressedNaturalGas = 3, + EnergyStorageType_diesel = 4, + EnergyStorageType_gasoline = 5, + EnergyStorageType_ammonia = 6 +} e_EnergyStorageType; + +/* EnergyStorageType */ +typedef BIT_STRING_t EnergyStorageType_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_EnergyStorageType_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_EnergyStorageType; +asn_struct_free_f EnergyStorageType_free; +asn_struct_print_f EnergyStorageType_print; +asn_constr_check_f EnergyStorageType_constraint; +ber_type_decoder_f EnergyStorageType_decode_ber; +der_type_encoder_f EnergyStorageType_encode_der; +xer_type_decoder_f EnergyStorageType_decode_xer; +xer_type_encoder_f EnergyStorageType_encode_xer; +jer_type_encoder_f EnergyStorageType_encode_jer; +oer_type_decoder_f EnergyStorageType_decode_oer; +oer_type_encoder_f EnergyStorageType_encode_oer; +per_type_decoder_f EnergyStorageType_decode_uper; +per_type_encoder_f EnergyStorageType_encode_uper; +per_type_decoder_f EnergyStorageType_decode_aper; +per_type_encoder_f EnergyStorageType_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _EnergyStorageType_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/EuVehicleCategoryCode.c b/vanetza/asn1/its2/EuVehicleCategoryCode.c new file mode 100644 index 000000000..7995aab10 --- /dev/null +++ b/vanetza/asn1/its2/EuVehicleCategoryCode.c @@ -0,0 +1,186 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "EuVehicleCategoryCode.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_EuVehicleCategoryCode_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_EuVehicleCategoryCode_constr_1 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 asn_TYPE_member_t asn_MBR_EuVehicleCategoryCode_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct EuVehicleCategoryCode, choice.euVehicleCategoryL), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EuVehicleCategoryL, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "euVehicleCategoryL" + }, + { ATF_NOFLAGS, 0, offsetof(struct EuVehicleCategoryCode, choice.euVehicleCategoryM), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EuVehicleCategoryM, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "euVehicleCategoryM" + }, + { ATF_NOFLAGS, 0, offsetof(struct EuVehicleCategoryCode, choice.euVehicleCategoryN), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EuVehicleCategoryN, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "euVehicleCategoryN" + }, + { ATF_NOFLAGS, 0, offsetof(struct EuVehicleCategoryCode, choice.euVehicleCategoryO), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EuVehicleCategoryO, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "euVehicleCategoryO" + }, + { ATF_NOFLAGS, 0, offsetof(struct EuVehicleCategoryCode, choice.euVehicleCategoryT), + (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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "euVehicleCategoryT" + }, + { ATF_NOFLAGS, 0, offsetof(struct EuVehicleCategoryCode, choice.euVehicleCategoryG), + (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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "euVehicleCategoryG" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_EuVehicleCategoryCode_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* euVehicleCategoryL */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* euVehicleCategoryM */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* euVehicleCategoryN */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* euVehicleCategoryO */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* euVehicleCategoryT */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* euVehicleCategoryG */ +}; +static asn_CHOICE_specifics_t asn_SPC_EuVehicleCategoryCode_specs_1 = { + sizeof(struct EuVehicleCategoryCode), + offsetof(struct EuVehicleCategoryCode, _asn_ctx), + offsetof(struct EuVehicleCategoryCode, present), + sizeof(((struct EuVehicleCategoryCode *)0)->present), + asn_MAP_EuVehicleCategoryCode_tag2el_1, + 6, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_EuVehicleCategoryCode = { + "EuVehicleCategoryCode", + "EuVehicleCategoryCode", + &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) + &asn_OER_type_EuVehicleCategoryCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_EuVehicleCategoryCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_EuVehicleCategoryCode_1, + 6, /* Elements count */ + &asn_SPC_EuVehicleCategoryCode_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/EuVehicleCategoryCode.h b/vanetza/asn1/its2/EuVehicleCategoryCode.h new file mode 100644 index 000000000..2f3926c98 --- /dev/null +++ b/vanetza/asn1/its2/EuVehicleCategoryCode.h @@ -0,0 +1,61 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _EuVehicleCategoryCode_H_ +#define _EuVehicleCategoryCode_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "EuVehicleCategoryL.h" +#include "EuVehicleCategoryM.h" +#include "EuVehicleCategoryN.h" +#include "EuVehicleCategoryO.h" +#include "NULL.h" +#include "constr_CHOICE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum EuVehicleCategoryCode_PR { + EuVehicleCategoryCode_PR_NOTHING, /* No components present */ + EuVehicleCategoryCode_PR_euVehicleCategoryL, + EuVehicleCategoryCode_PR_euVehicleCategoryM, + EuVehicleCategoryCode_PR_euVehicleCategoryN, + EuVehicleCategoryCode_PR_euVehicleCategoryO, + EuVehicleCategoryCode_PR_euVehicleCategoryT, + EuVehicleCategoryCode_PR_euVehicleCategoryG +} EuVehicleCategoryCode_PR; + +/* EuVehicleCategoryCode */ +typedef struct EuVehicleCategoryCode { + EuVehicleCategoryCode_PR present; + union EuVehicleCategoryCode_u { + EuVehicleCategoryL_t euVehicleCategoryL; + EuVehicleCategoryM_t euVehicleCategoryM; + EuVehicleCategoryN_t euVehicleCategoryN; + EuVehicleCategoryO_t euVehicleCategoryO; + NULL_t euVehicleCategoryT; + NULL_t euVehicleCategoryG; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} EuVehicleCategoryCode_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_EuVehicleCategoryCode; + +#ifdef __cplusplus +} +#endif + +#endif /* _EuVehicleCategoryCode_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/EuVehicleCategoryL.c b/vanetza/asn1/its2/EuVehicleCategoryL.c new file mode 100644 index 000000000..77f758a16 --- /dev/null +++ b/vanetza/asn1/its2/EuVehicleCategoryL.c @@ -0,0 +1,81 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "EuVehicleCategoryL.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_EuVehicleCategoryL_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_EuVehicleCategoryL_constr_1 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_EuVehicleCategoryL_value2enum_1[] = { + { 0, 2, "l1" }, + { 1, 2, "l2" }, + { 2, 2, "l3" }, + { 3, 2, "l4" }, + { 4, 2, "l5" }, + { 5, 2, "l6" }, + { 6, 2, "l7" } +}; +static const unsigned int asn_MAP_EuVehicleCategoryL_enum2value_1[] = { + 0, /* l1(0) */ + 1, /* l2(1) */ + 2, /* l3(2) */ + 3, /* l4(3) */ + 4, /* l5(4) */ + 5, /* l6(5) */ + 6 /* l7(6) */ +}; +const asn_INTEGER_specifics_t asn_SPC_EuVehicleCategoryL_specs_1 = { + asn_MAP_EuVehicleCategoryL_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_EuVehicleCategoryL_enum2value_1, /* 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_EuVehicleCategoryL_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_EuVehicleCategoryL = { + "EuVehicleCategoryL", + "EuVehicleCategoryL", + &asn_OP_NativeEnumerated, + asn_DEF_EuVehicleCategoryL_tags_1, + sizeof(asn_DEF_EuVehicleCategoryL_tags_1) + /sizeof(asn_DEF_EuVehicleCategoryL_tags_1[0]), /* 1 */ + asn_DEF_EuVehicleCategoryL_tags_1, /* Same as above */ + sizeof(asn_DEF_EuVehicleCategoryL_tags_1) + /sizeof(asn_DEF_EuVehicleCategoryL_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_EuVehicleCategoryL_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_EuVehicleCategoryL_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_EuVehicleCategoryL_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/EuVehicleCategoryL.h b/vanetza/asn1/its2/EuVehicleCategoryL.h new file mode 100644 index 000000000..d3da217c8 --- /dev/null +++ b/vanetza/asn1/its2/EuVehicleCategoryL.h @@ -0,0 +1,59 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _EuVehicleCategoryL_H_ +#define _EuVehicleCategoryL_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum EuVehicleCategoryL { + EuVehicleCategoryL_l1 = 0, + EuVehicleCategoryL_l2 = 1, + EuVehicleCategoryL_l3 = 2, + EuVehicleCategoryL_l4 = 3, + EuVehicleCategoryL_l5 = 4, + EuVehicleCategoryL_l6 = 5, + EuVehicleCategoryL_l7 = 6 +} e_EuVehicleCategoryL; + +/* EuVehicleCategoryL */ +typedef long EuVehicleCategoryL_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_EuVehicleCategoryL_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_EuVehicleCategoryL; +extern const asn_INTEGER_specifics_t asn_SPC_EuVehicleCategoryL_specs_1; +asn_struct_free_f EuVehicleCategoryL_free; +asn_struct_print_f EuVehicleCategoryL_print; +asn_constr_check_f EuVehicleCategoryL_constraint; +ber_type_decoder_f EuVehicleCategoryL_decode_ber; +der_type_encoder_f EuVehicleCategoryL_encode_der; +xer_type_decoder_f EuVehicleCategoryL_decode_xer; +xer_type_encoder_f EuVehicleCategoryL_encode_xer; +jer_type_encoder_f EuVehicleCategoryL_encode_jer; +oer_type_decoder_f EuVehicleCategoryL_decode_oer; +oer_type_encoder_f EuVehicleCategoryL_encode_oer; +per_type_decoder_f EuVehicleCategoryL_decode_uper; +per_type_encoder_f EuVehicleCategoryL_encode_uper; +per_type_decoder_f EuVehicleCategoryL_decode_aper; +per_type_encoder_f EuVehicleCategoryL_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _EuVehicleCategoryL_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/EuVehicleCategoryM.c b/vanetza/asn1/its2/EuVehicleCategoryM.c new file mode 100644 index 000000000..2fd55f12f --- /dev/null +++ b/vanetza/asn1/its2/EuVehicleCategoryM.c @@ -0,0 +1,73 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "EuVehicleCategoryM.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_EuVehicleCategoryM_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_EuVehicleCategoryM_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_EuVehicleCategoryM_value2enum_1[] = { + { 0, 2, "m1" }, + { 1, 2, "m2" }, + { 2, 2, "m3" } +}; +static const unsigned int asn_MAP_EuVehicleCategoryM_enum2value_1[] = { + 0, /* m1(0) */ + 1, /* m2(1) */ + 2 /* m3(2) */ +}; +const asn_INTEGER_specifics_t asn_SPC_EuVehicleCategoryM_specs_1 = { + asn_MAP_EuVehicleCategoryM_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_EuVehicleCategoryM_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_EuVehicleCategoryM_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_EuVehicleCategoryM = { + "EuVehicleCategoryM", + "EuVehicleCategoryM", + &asn_OP_NativeEnumerated, + asn_DEF_EuVehicleCategoryM_tags_1, + sizeof(asn_DEF_EuVehicleCategoryM_tags_1) + /sizeof(asn_DEF_EuVehicleCategoryM_tags_1[0]), /* 1 */ + asn_DEF_EuVehicleCategoryM_tags_1, /* Same as above */ + sizeof(asn_DEF_EuVehicleCategoryM_tags_1) + /sizeof(asn_DEF_EuVehicleCategoryM_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_EuVehicleCategoryM_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_EuVehicleCategoryM_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_EuVehicleCategoryM_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/EuVehicleCategoryM.h b/vanetza/asn1/its2/EuVehicleCategoryM.h new file mode 100644 index 000000000..898459a73 --- /dev/null +++ b/vanetza/asn1/its2/EuVehicleCategoryM.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _EuVehicleCategoryM_H_ +#define _EuVehicleCategoryM_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum EuVehicleCategoryM { + EuVehicleCategoryM_m1 = 0, + EuVehicleCategoryM_m2 = 1, + EuVehicleCategoryM_m3 = 2 +} e_EuVehicleCategoryM; + +/* EuVehicleCategoryM */ +typedef long EuVehicleCategoryM_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_EuVehicleCategoryM_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_EuVehicleCategoryM; +extern const asn_INTEGER_specifics_t asn_SPC_EuVehicleCategoryM_specs_1; +asn_struct_free_f EuVehicleCategoryM_free; +asn_struct_print_f EuVehicleCategoryM_print; +asn_constr_check_f EuVehicleCategoryM_constraint; +ber_type_decoder_f EuVehicleCategoryM_decode_ber; +der_type_encoder_f EuVehicleCategoryM_encode_der; +xer_type_decoder_f EuVehicleCategoryM_decode_xer; +xer_type_encoder_f EuVehicleCategoryM_encode_xer; +jer_type_encoder_f EuVehicleCategoryM_encode_jer; +oer_type_decoder_f EuVehicleCategoryM_decode_oer; +oer_type_encoder_f EuVehicleCategoryM_encode_oer; +per_type_decoder_f EuVehicleCategoryM_decode_uper; +per_type_encoder_f EuVehicleCategoryM_encode_uper; +per_type_decoder_f EuVehicleCategoryM_decode_aper; +per_type_encoder_f EuVehicleCategoryM_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _EuVehicleCategoryM_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/EuVehicleCategoryN.c b/vanetza/asn1/its2/EuVehicleCategoryN.c new file mode 100644 index 000000000..f12969a2d --- /dev/null +++ b/vanetza/asn1/its2/EuVehicleCategoryN.c @@ -0,0 +1,73 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "EuVehicleCategoryN.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_EuVehicleCategoryN_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_EuVehicleCategoryN_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_EuVehicleCategoryN_value2enum_1[] = { + { 0, 2, "n1" }, + { 1, 2, "n2" }, + { 2, 2, "n3" } +}; +static const unsigned int asn_MAP_EuVehicleCategoryN_enum2value_1[] = { + 0, /* n1(0) */ + 1, /* n2(1) */ + 2 /* n3(2) */ +}; +const asn_INTEGER_specifics_t asn_SPC_EuVehicleCategoryN_specs_1 = { + asn_MAP_EuVehicleCategoryN_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_EuVehicleCategoryN_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_EuVehicleCategoryN_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_EuVehicleCategoryN = { + "EuVehicleCategoryN", + "EuVehicleCategoryN", + &asn_OP_NativeEnumerated, + asn_DEF_EuVehicleCategoryN_tags_1, + sizeof(asn_DEF_EuVehicleCategoryN_tags_1) + /sizeof(asn_DEF_EuVehicleCategoryN_tags_1[0]), /* 1 */ + asn_DEF_EuVehicleCategoryN_tags_1, /* Same as above */ + sizeof(asn_DEF_EuVehicleCategoryN_tags_1) + /sizeof(asn_DEF_EuVehicleCategoryN_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_EuVehicleCategoryN_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_EuVehicleCategoryN_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_EuVehicleCategoryN_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/EuVehicleCategoryN.h b/vanetza/asn1/its2/EuVehicleCategoryN.h new file mode 100644 index 000000000..3fc5e7a41 --- /dev/null +++ b/vanetza/asn1/its2/EuVehicleCategoryN.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _EuVehicleCategoryN_H_ +#define _EuVehicleCategoryN_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum EuVehicleCategoryN { + EuVehicleCategoryN_n1 = 0, + EuVehicleCategoryN_n2 = 1, + EuVehicleCategoryN_n3 = 2 +} e_EuVehicleCategoryN; + +/* EuVehicleCategoryN */ +typedef long EuVehicleCategoryN_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_EuVehicleCategoryN_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_EuVehicleCategoryN; +extern const asn_INTEGER_specifics_t asn_SPC_EuVehicleCategoryN_specs_1; +asn_struct_free_f EuVehicleCategoryN_free; +asn_struct_print_f EuVehicleCategoryN_print; +asn_constr_check_f EuVehicleCategoryN_constraint; +ber_type_decoder_f EuVehicleCategoryN_decode_ber; +der_type_encoder_f EuVehicleCategoryN_encode_der; +xer_type_decoder_f EuVehicleCategoryN_decode_xer; +xer_type_encoder_f EuVehicleCategoryN_encode_xer; +jer_type_encoder_f EuVehicleCategoryN_encode_jer; +oer_type_decoder_f EuVehicleCategoryN_decode_oer; +oer_type_encoder_f EuVehicleCategoryN_encode_oer; +per_type_decoder_f EuVehicleCategoryN_decode_uper; +per_type_encoder_f EuVehicleCategoryN_encode_uper; +per_type_decoder_f EuVehicleCategoryN_decode_aper; +per_type_encoder_f EuVehicleCategoryN_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _EuVehicleCategoryN_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/EuVehicleCategoryO.c b/vanetza/asn1/its2/EuVehicleCategoryO.c new file mode 100644 index 000000000..ab9f3d669 --- /dev/null +++ b/vanetza/asn1/its2/EuVehicleCategoryO.c @@ -0,0 +1,75 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "EuVehicleCategoryO.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_EuVehicleCategoryO_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_EuVehicleCategoryO_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) */ +static const asn_INTEGER_enum_map_t asn_MAP_EuVehicleCategoryO_value2enum_1[] = { + { 0, 2, "o1" }, + { 1, 2, "o2" }, + { 2, 2, "o3" }, + { 3, 2, "o4" } +}; +static const unsigned int asn_MAP_EuVehicleCategoryO_enum2value_1[] = { + 0, /* o1(0) */ + 1, /* o2(1) */ + 2, /* o3(2) */ + 3 /* o4(3) */ +}; +const asn_INTEGER_specifics_t asn_SPC_EuVehicleCategoryO_specs_1 = { + asn_MAP_EuVehicleCategoryO_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_EuVehicleCategoryO_enum2value_1, /* 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_EuVehicleCategoryO_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_EuVehicleCategoryO = { + "EuVehicleCategoryO", + "EuVehicleCategoryO", + &asn_OP_NativeEnumerated, + asn_DEF_EuVehicleCategoryO_tags_1, + sizeof(asn_DEF_EuVehicleCategoryO_tags_1) + /sizeof(asn_DEF_EuVehicleCategoryO_tags_1[0]), /* 1 */ + asn_DEF_EuVehicleCategoryO_tags_1, /* Same as above */ + sizeof(asn_DEF_EuVehicleCategoryO_tags_1) + /sizeof(asn_DEF_EuVehicleCategoryO_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_EuVehicleCategoryO_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_EuVehicleCategoryO_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_EuVehicleCategoryO_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/EuVehicleCategoryO.h b/vanetza/asn1/its2/EuVehicleCategoryO.h new file mode 100644 index 000000000..4987814c1 --- /dev/null +++ b/vanetza/asn1/its2/EuVehicleCategoryO.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _EuVehicleCategoryO_H_ +#define _EuVehicleCategoryO_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum EuVehicleCategoryO { + EuVehicleCategoryO_o1 = 0, + EuVehicleCategoryO_o2 = 1, + EuVehicleCategoryO_o3 = 2, + EuVehicleCategoryO_o4 = 3 +} e_EuVehicleCategoryO; + +/* EuVehicleCategoryO */ +typedef long EuVehicleCategoryO_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_EuVehicleCategoryO_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_EuVehicleCategoryO; +extern const asn_INTEGER_specifics_t asn_SPC_EuVehicleCategoryO_specs_1; +asn_struct_free_f EuVehicleCategoryO_free; +asn_struct_print_f EuVehicleCategoryO_print; +asn_constr_check_f EuVehicleCategoryO_constraint; +ber_type_decoder_f EuVehicleCategoryO_decode_ber; +der_type_encoder_f EuVehicleCategoryO_encode_der; +xer_type_decoder_f EuVehicleCategoryO_decode_xer; +xer_type_encoder_f EuVehicleCategoryO_encode_xer; +jer_type_encoder_f EuVehicleCategoryO_encode_jer; +oer_type_decoder_f EuVehicleCategoryO_decode_oer; +oer_type_encoder_f EuVehicleCategoryO_encode_oer; +per_type_decoder_f EuVehicleCategoryO_decode_uper; +per_type_encoder_f EuVehicleCategoryO_encode_uper; +per_type_decoder_f EuVehicleCategoryO_decode_aper; +per_type_encoder_f EuVehicleCategoryO_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _EuVehicleCategoryO_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/EulerAnglesWithConfidence.c b/vanetza/asn1/its2/EulerAnglesWithConfidence.c new file mode 100644 index 000000000..e51870914 --- /dev/null +++ b/vanetza/asn1/its2/EulerAnglesWithConfidence.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "EulerAnglesWithConfidence.h" + +asn_TYPE_member_t asn_MBR_EulerAnglesWithConfidence_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct EulerAnglesWithConfidence, zAngle), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianAngle, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "zAngle" + }, + { ATF_POINTER, 2, offsetof(struct EulerAnglesWithConfidence, yAngle), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianAngle, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "yAngle" + }, + { ATF_POINTER, 1, offsetof(struct EulerAnglesWithConfidence, xAngle), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianAngle, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "xAngle" + }, +}; +static const int asn_MAP_EulerAnglesWithConfidence_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_EulerAnglesWithConfidence_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_EulerAnglesWithConfidence_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* zAngle */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* yAngle */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* xAngle */ +}; +asn_SEQUENCE_specifics_t asn_SPC_EulerAnglesWithConfidence_specs_1 = { + sizeof(struct EulerAnglesWithConfidence), + offsetof(struct EulerAnglesWithConfidence, _asn_ctx), + asn_MAP_EulerAnglesWithConfidence_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_EulerAnglesWithConfidence_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_EulerAnglesWithConfidence = { + "EulerAnglesWithConfidence", + "EulerAnglesWithConfidence", + &asn_OP_SEQUENCE, + asn_DEF_EulerAnglesWithConfidence_tags_1, + sizeof(asn_DEF_EulerAnglesWithConfidence_tags_1) + /sizeof(asn_DEF_EulerAnglesWithConfidence_tags_1[0]), /* 1 */ + asn_DEF_EulerAnglesWithConfidence_tags_1, /* Same as above */ + sizeof(asn_DEF_EulerAnglesWithConfidence_tags_1) + /sizeof(asn_DEF_EulerAnglesWithConfidence_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_EulerAnglesWithConfidence_1, + 3, /* Elements count */ + &asn_SPC_EulerAnglesWithConfidence_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/EulerAnglesWithConfidence.h b/vanetza/asn1/its2/EulerAnglesWithConfidence.h new file mode 100644 index 000000000..d24a1a8e0 --- /dev/null +++ b/vanetza/asn1/its2/EulerAnglesWithConfidence.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _EulerAnglesWithConfidence_H_ +#define _EulerAnglesWithConfidence_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "CartesianAngle.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct CartesianAngle; + +/* EulerAnglesWithConfidence */ +typedef struct EulerAnglesWithConfidence { + CartesianAngle_t zAngle; + struct CartesianAngle *yAngle; /* OPTIONAL */ + struct CartesianAngle *xAngle; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} EulerAnglesWithConfidence_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_EulerAnglesWithConfidence; +extern asn_SEQUENCE_specifics_t asn_SPC_EulerAnglesWithConfidence_specs_1; +extern asn_TYPE_member_t asn_MBR_EulerAnglesWithConfidence_1[3]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "CartesianAngle.h" + +#endif /* _EulerAnglesWithConfidence_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/EventHistory.c b/vanetza/asn1/its2/EventHistory.c new file mode 100644 index 000000000..173aba260 --- /dev/null +++ b/vanetza/asn1/its2/EventHistory.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "EventHistory.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_EventHistory_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..23)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_EventHistory_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_EventHistory_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_EventPoint, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_EventHistory_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_EventHistory_specs_1 = { + sizeof(struct EventHistory), + offsetof(struct EventHistory, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_EventHistory = { + "EventHistory", + "EventHistory", + &asn_OP_SEQUENCE_OF, + asn_DEF_EventHistory_tags_1, + sizeof(asn_DEF_EventHistory_tags_1) + /sizeof(asn_DEF_EventHistory_tags_1[0]), /* 1 */ + asn_DEF_EventHistory_tags_1, /* Same as above */ + sizeof(asn_DEF_EventHistory_tags_1) + /sizeof(asn_DEF_EventHistory_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_EventHistory_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_EventHistory_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_EventHistory_1, + 1, /* Single element */ + &asn_SPC_EventHistory_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/EventHistory.h b/vanetza/asn1/its2/EventHistory.h new file mode 100644 index 000000000..e8c09e37a --- /dev/null +++ b/vanetza/asn1/its2/EventHistory.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _EventHistory_H_ +#define _EventHistory_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct EventPoint; + +/* EventHistory */ +typedef struct EventHistory { + A_SEQUENCE_OF(struct EventPoint) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} EventHistory_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_EventHistory; +extern asn_SET_OF_specifics_t asn_SPC_EventHistory_specs_1; +extern asn_TYPE_member_t asn_MBR_EventHistory_1[1]; +extern asn_per_constraints_t asn_PER_type_EventHistory_constr_1; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "EventPoint.h" + +#endif /* _EventHistory_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/EventPoint.c b/vanetza/asn1/its2/EventPoint.c new file mode 100644 index 000000000..f79766dbc --- /dev/null +++ b/vanetza/asn1/its2/EventPoint.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "EventPoint.h" + +asn_TYPE_member_t asn_MBR_EventPoint_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct EventPoint, eventPosition), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DeltaReferencePosition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "eventPosition" + }, + { ATF_POINTER, 1, offsetof(struct EventPoint, eventDeltaTime), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PathDeltaTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "eventDeltaTime" + }, + { ATF_NOFLAGS, 0, offsetof(struct EventPoint, informationQuality), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_InformationQuality, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "informationQuality" + }, +}; +static const int asn_MAP_EventPoint_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_EventPoint_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_EventPoint_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* eventPosition */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* eventDeltaTime */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* informationQuality */ +}; +asn_SEQUENCE_specifics_t asn_SPC_EventPoint_specs_1 = { + sizeof(struct EventPoint), + offsetof(struct EventPoint, _asn_ctx), + asn_MAP_EventPoint_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_EventPoint_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_EventPoint = { + "EventPoint", + "EventPoint", + &asn_OP_SEQUENCE, + asn_DEF_EventPoint_tags_1, + sizeof(asn_DEF_EventPoint_tags_1) + /sizeof(asn_DEF_EventPoint_tags_1[0]), /* 1 */ + asn_DEF_EventPoint_tags_1, /* Same as above */ + sizeof(asn_DEF_EventPoint_tags_1) + /sizeof(asn_DEF_EventPoint_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_EventPoint_1, + 3, /* Elements count */ + &asn_SPC_EventPoint_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/EventPoint.h b/vanetza/asn1/its2/EventPoint.h new file mode 100644 index 000000000..23a3c06c0 --- /dev/null +++ b/vanetza/asn1/its2/EventPoint.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _EventPoint_H_ +#define _EventPoint_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "DeltaReferencePosition.h" +#include "PathDeltaTime.h" +#include "InformationQuality.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* EventPoint */ +typedef struct EventPoint { + DeltaReferencePosition_t eventPosition; + PathDeltaTime_t *eventDeltaTime; /* OPTIONAL */ + InformationQuality_t informationQuality; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} EventPoint_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_EventPoint; +extern asn_SEQUENCE_specifics_t asn_SPC_EventPoint_specs_1; +extern asn_TYPE_member_t asn_MBR_EventPoint_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _EventPoint_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/EventZone.c b/vanetza/asn1/its2/EventZone.c new file mode 100644 index 000000000..df5f9a59d --- /dev/null +++ b/vanetza/asn1/its2/EventZone.c @@ -0,0 +1,81 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "EventZone.h" + +int +EventZone_constraint(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 <= 23UL)) { + /* 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 EventHistory, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_EventZone_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..23)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_EventZone_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) */ +static const ber_tlv_tag_t asn_DEF_EventZone_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_EventZone = { + "EventZone", + "EventZone", + &asn_OP_SEQUENCE_OF, + asn_DEF_EventZone_tags_1, + sizeof(asn_DEF_EventZone_tags_1) + /sizeof(asn_DEF_EventZone_tags_1[0]), /* 1 */ + asn_DEF_EventZone_tags_1, /* Same as above */ + sizeof(asn_DEF_EventZone_tags_1) + /sizeof(asn_DEF_EventZone_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_EventZone_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_EventZone_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + EventZone_constraint + }, + asn_MBR_EventHistory_1, + 1, /* Single element */ + &asn_SPC_EventHistory_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/EventZone.h b/vanetza/asn1/its2/EventZone.h new file mode 100644 index 000000000..9142dee4d --- /dev/null +++ b/vanetza/asn1/its2/EventZone.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _EventZone_H_ +#define _EventZone_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "EventHistory.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* EventZone */ +typedef EventHistory_t EventZone_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_EventZone_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_EventZone; +asn_struct_free_f EventZone_free; +asn_struct_print_f EventZone_print; +asn_constr_check_f EventZone_constraint; +ber_type_decoder_f EventZone_decode_ber; +der_type_encoder_f EventZone_encode_der; +xer_type_decoder_f EventZone_decode_xer; +xer_type_encoder_f EventZone_encode_xer; +jer_type_encoder_f EventZone_encode_jer; +oer_type_decoder_f EventZone_decode_oer; +oer_type_encoder_f EventZone_encode_oer; +per_type_decoder_f EventZone_decode_uper; +per_type_encoder_f EventZone_encode_uper; +per_type_decoder_f EventZone_decode_aper; +per_type_encoder_f EventZone_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _EventZone_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/Ext1.c b/vanetza/asn1/its2/Ext1.c new file mode 100644 index 000000000..c39ace897 --- /dev/null +++ b/vanetza/asn1/its2/Ext1.c @@ -0,0 +1,139 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Ext1.h" + +static int +memb_content_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + 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 <= 16511L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_content_constr_2 CC_NOTUSED = { + { 2, 1 } /* (128..16511) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_content_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 128, 16511 } /* (128..16511) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_Ext1_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Ext1_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_Ext1_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Ext1, choice.content), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_content_constr_2, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_content_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_content_constraint_1 + }, + 0, 0, /* No default value */ + "content" + }, + { ATF_NOFLAGS, 0, offsetof(struct Ext1, choice.extension), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_Ext2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "extension" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_Ext1_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* content */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* extension */ +}; +asn_CHOICE_specifics_t asn_SPC_Ext1_specs_1 = { + sizeof(struct Ext1), + offsetof(struct Ext1, _asn_ctx), + offsetof(struct Ext1, present), + sizeof(((struct Ext1 *)0)->present), + asn_MAP_Ext1_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_Ext1 = { + "Ext1", + "Ext1", + &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) + &asn_OER_type_Ext1_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Ext1_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_Ext1_1, + 2, /* Elements count */ + &asn_SPC_Ext1_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/Ext1.h b/vanetza/asn1/its2/Ext1.h new file mode 100644 index 000000000..cdfc88324 --- /dev/null +++ b/vanetza/asn1/its2/Ext1.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _Ext1_H_ +#define _Ext1_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" +#include "Ext2.h" +#include "constr_CHOICE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum Ext1_PR { + Ext1_PR_NOTHING, /* No components present */ + Ext1_PR_content, + Ext1_PR_extension +} Ext1_PR; + +/* Ext1 */ +typedef struct Ext1 { + Ext1_PR present; + union Ext1_u { + long content; + Ext2_t extension; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Ext1_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Ext1; +extern asn_CHOICE_specifics_t asn_SPC_Ext1_specs_1; +extern asn_TYPE_member_t asn_MBR_Ext1_1[2]; +extern asn_per_constraints_t asn_PER_type_Ext1_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _Ext1_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/Ext2.c b/vanetza/asn1/its2/Ext2.c new file mode 100644 index 000000000..3174b6340 --- /dev/null +++ b/vanetza/asn1/its2/Ext2.c @@ -0,0 +1,139 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Ext2.h" + +static int +memb_content_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 16512L && value <= 2113663L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_content_constr_2 CC_NOTUSED = { + { 4, 1 } /* (16512..2113663) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_content_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 21, -1, 16512, 2113663 } /* (16512..2113663) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_Ext2_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Ext2_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_Ext2_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Ext2, choice.content), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_content_constr_2, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_content_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_content_constraint_1 + }, + 0, 0, /* No default value */ + "content" + }, + { ATF_NOFLAGS, 0, offsetof(struct Ext2, choice.extension), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Ext3, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "extension" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_Ext2_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* content */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* extension */ +}; +asn_CHOICE_specifics_t asn_SPC_Ext2_specs_1 = { + sizeof(struct Ext2), + offsetof(struct Ext2, _asn_ctx), + offsetof(struct Ext2, present), + sizeof(((struct Ext2 *)0)->present), + asn_MAP_Ext2_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_Ext2 = { + "Ext2", + "Ext2", + &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) + &asn_OER_type_Ext2_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Ext2_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_Ext2_1, + 2, /* Elements count */ + &asn_SPC_Ext2_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/Ext2.h b/vanetza/asn1/its2/Ext2.h new file mode 100644 index 000000000..befa09fc5 --- /dev/null +++ b/vanetza/asn1/its2/Ext2.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _Ext2_H_ +#define _Ext2_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" +#include "Ext3.h" +#include "constr_CHOICE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum Ext2_PR { + Ext2_PR_NOTHING, /* No components present */ + Ext2_PR_content, + Ext2_PR_extension +} Ext2_PR; + +/* Ext2 */ +typedef struct Ext2 { + Ext2_PR present; + union Ext2_u { + long content; + Ext3_t extension; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Ext2_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Ext2; +extern asn_CHOICE_specifics_t asn_SPC_Ext2_specs_1; +extern asn_TYPE_member_t asn_MBR_Ext2_1[2]; +extern asn_per_constraints_t asn_PER_type_Ext2_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _Ext2_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/Ext3.c b/vanetza/asn1/its2/Ext3.c new file mode 100644 index 000000000..b11418021 --- /dev/null +++ b/vanetza/asn1/its2/Ext3.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Ext3.h" + +int +Ext3_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 >= 2113664L && value <= 270549119L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_Ext3_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Ext3_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 28, -1, 2113664, 270549119 } /* (2113664..270549119,...) */, + { 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_Ext3_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_Ext3 = { + "Ext3", + "Ext3", + &asn_OP_NativeInteger, + asn_DEF_Ext3_tags_1, + sizeof(asn_DEF_Ext3_tags_1) + /sizeof(asn_DEF_Ext3_tags_1[0]), /* 1 */ + asn_DEF_Ext3_tags_1, /* Same as above */ + sizeof(asn_DEF_Ext3_tags_1) + /sizeof(asn_DEF_Ext3_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_Ext3_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Ext3_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + Ext3_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/Ext3.h b/vanetza/asn1/its2/Ext3.h new file mode 100644 index 000000000..fb720ffc0 --- /dev/null +++ b/vanetza/asn1/its2/Ext3.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _Ext3_H_ +#define _Ext3_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Ext3 */ +typedef long Ext3_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_Ext3_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_Ext3; +asn_struct_free_f Ext3_free; +asn_struct_print_f Ext3_print; +asn_constr_check_f Ext3_constraint; +ber_type_decoder_f Ext3_decode_ber; +der_type_encoder_f Ext3_encode_der; +xer_type_decoder_f Ext3_decode_xer; +xer_type_encoder_f Ext3_encode_xer; +jer_type_encoder_f Ext3_encode_jer; +oer_type_decoder_f Ext3_decode_oer; +oer_type_encoder_f Ext3_encode_oer; +per_type_decoder_f Ext3_decode_uper; +per_type_encoder_f Ext3_encode_uper; +per_type_decoder_f Ext3_decode_aper; +per_type_encoder_f Ext3_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _Ext3_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ExteriorLights.c b/vanetza/asn1/its2/ExteriorLights.c new file mode 100644 index 000000000..318cd8837 --- /dev/null +++ b/vanetza/asn1/its2/ExteriorLights.c @@ -0,0 +1,89 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ExteriorLights.h" + +int +ExteriorLights_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_ExteriorLights_constr_1 CC_NOTUSED = { + { 0, 0 }, + 8 /* (SIZE(8..8)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ExteriorLights_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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_ExteriorLights_constr_1 CC_NOTUSED = { + 8}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_ExteriorLights_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_ExteriorLights = { + "ExteriorLights", + "ExteriorLights", + &asn_OP_BIT_STRING, + asn_DEF_ExteriorLights_tags_1, + sizeof(asn_DEF_ExteriorLights_tags_1) + /sizeof(asn_DEF_ExteriorLights_tags_1[0]), /* 1 */ + asn_DEF_ExteriorLights_tags_1, /* Same as above */ + sizeof(asn_DEF_ExteriorLights_tags_1) + /sizeof(asn_DEF_ExteriorLights_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_ExteriorLights_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ExteriorLights_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_ExteriorLights_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + ExteriorLights_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/ExteriorLights.h b/vanetza/asn1/its2/ExteriorLights.h new file mode 100644 index 000000000..fed32b31e --- /dev/null +++ b/vanetza/asn1/its2/ExteriorLights.h @@ -0,0 +1,59 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ExteriorLights_H_ +#define _ExteriorLights_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "BIT_STRING.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum ExteriorLights { + ExteriorLights_lowBeamHeadlightsOn = 0, + ExteriorLights_highBeamHeadlightsOn = 1, + ExteriorLights_leftTurnSignalOn = 2, + ExteriorLights_rightTurnSignalOn = 3, + ExteriorLights_daytimeRunningLightsOn = 4, + ExteriorLights_reverseLightOn = 5, + ExteriorLights_fogLightOn = 6, + ExteriorLights_parkingLightsOn = 7 +} e_ExteriorLights; + +/* ExteriorLights */ +typedef BIT_STRING_t ExteriorLights_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_ExteriorLights_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_ExteriorLights; +asn_struct_free_f ExteriorLights_free; +asn_struct_print_f ExteriorLights_print; +asn_constr_check_f ExteriorLights_constraint; +ber_type_decoder_f ExteriorLights_decode_ber; +der_type_encoder_f ExteriorLights_encode_der; +xer_type_decoder_f ExteriorLights_decode_xer; +xer_type_encoder_f ExteriorLights_encode_xer; +jer_type_encoder_f ExteriorLights_encode_jer; +oer_type_decoder_f ExteriorLights_decode_oer; +oer_type_encoder_f ExteriorLights_encode_oer; +per_type_decoder_f ExteriorLights_decode_uper; +per_type_encoder_f ExteriorLights_encode_uper; +per_type_decoder_f ExteriorLights_decode_aper; +per_type_encoder_f ExteriorLights_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _ExteriorLights_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/GeneralizedLanePosition.c b/vanetza/asn1/its2/GeneralizedLanePosition.c new file mode 100644 index 000000000..cc0174d68 --- /dev/null +++ b/vanetza/asn1/its2/GeneralizedLanePosition.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "GeneralizedLanePosition.h" + +asn_TYPE_member_t asn_MBR_GeneralizedLanePosition_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GeneralizedLanePosition, lanePositionBased), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_LanePositionOptions, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lanePositionBased" + }, + { ATF_POINTER, 1, offsetof(struct GeneralizedLanePosition, mapBased), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MapPosition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "mapBased" + }, + { ATF_NOFLAGS, 0, offsetof(struct GeneralizedLanePosition, confidence), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MetaInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "confidence" + }, +}; +static const int asn_MAP_GeneralizedLanePosition_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_GeneralizedLanePosition_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GeneralizedLanePosition_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* lanePositionBased */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* mapBased */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* confidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GeneralizedLanePosition_specs_1 = { + sizeof(struct GeneralizedLanePosition), + offsetof(struct GeneralizedLanePosition, _asn_ctx), + asn_MAP_GeneralizedLanePosition_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_GeneralizedLanePosition_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GeneralizedLanePosition = { + "GeneralizedLanePosition", + "GeneralizedLanePosition", + &asn_OP_SEQUENCE, + asn_DEF_GeneralizedLanePosition_tags_1, + sizeof(asn_DEF_GeneralizedLanePosition_tags_1) + /sizeof(asn_DEF_GeneralizedLanePosition_tags_1[0]), /* 1 */ + asn_DEF_GeneralizedLanePosition_tags_1, /* Same as above */ + sizeof(asn_DEF_GeneralizedLanePosition_tags_1) + /sizeof(asn_DEF_GeneralizedLanePosition_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GeneralizedLanePosition_1, + 3, /* Elements count */ + &asn_SPC_GeneralizedLanePosition_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/GeneralizedLanePosition.h b/vanetza/asn1/its2/GeneralizedLanePosition.h new file mode 100644 index 000000000..2365d15b0 --- /dev/null +++ b/vanetza/asn1/its2/GeneralizedLanePosition.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _GeneralizedLanePosition_H_ +#define _GeneralizedLanePosition_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "LanePositionOptions.h" +#include "MetaInformation.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct MapPosition; + +/* GeneralizedLanePosition */ +typedef struct GeneralizedLanePosition { + LanePositionOptions_t lanePositionBased; + struct MapPosition *mapBased; /* OPTIONAL */ + MetaInformation_t confidence; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GeneralizedLanePosition_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GeneralizedLanePosition; +extern asn_SEQUENCE_specifics_t asn_SPC_GeneralizedLanePosition_specs_1; +extern asn_TYPE_member_t asn_MBR_GeneralizedLanePosition_1[3]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "MapPosition.h" + +#endif /* _GeneralizedLanePosition_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/GeneralizedLanePositions.c b/vanetza/asn1/its2/GeneralizedLanePositions.c new file mode 100644 index 000000000..dbc307a20 --- /dev/null +++ b/vanetza/asn1/its2/GeneralizedLanePositions.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "GeneralizedLanePositions.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_GeneralizedLanePositions_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..4)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_GeneralizedLanePositions_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) */ +static asn_TYPE_member_t asn_MBR_GeneralizedLanePositions_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_GeneralizedLanePosition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_GeneralizedLanePositions_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_GeneralizedLanePositions_specs_1 = { + sizeof(struct GeneralizedLanePositions), + offsetof(struct GeneralizedLanePositions, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_GeneralizedLanePositions = { + "GeneralizedLanePositions", + "GeneralizedLanePositions", + &asn_OP_SEQUENCE_OF, + asn_DEF_GeneralizedLanePositions_tags_1, + sizeof(asn_DEF_GeneralizedLanePositions_tags_1) + /sizeof(asn_DEF_GeneralizedLanePositions_tags_1[0]), /* 1 */ + asn_DEF_GeneralizedLanePositions_tags_1, /* Same as above */ + sizeof(asn_DEF_GeneralizedLanePositions_tags_1) + /sizeof(asn_DEF_GeneralizedLanePositions_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_GeneralizedLanePositions_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GeneralizedLanePositions_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_GeneralizedLanePositions_1, + 1, /* Single element */ + &asn_SPC_GeneralizedLanePositions_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/GeneralizedLanePositions.h b/vanetza/asn1/its2/GeneralizedLanePositions.h new file mode 100644 index 000000000..16fcd6de7 --- /dev/null +++ b/vanetza/asn1/its2/GeneralizedLanePositions.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _GeneralizedLanePositions_H_ +#define _GeneralizedLanePositions_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct GeneralizedLanePosition; + +/* GeneralizedLanePositions */ +typedef struct GeneralizedLanePositions { + A_SEQUENCE_OF(struct GeneralizedLanePosition) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GeneralizedLanePositions_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GeneralizedLanePositions; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "GeneralizedLanePosition.h" + +#endif /* _GeneralizedLanePositions_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/GenerationDeltaTime.c b/vanetza/asn1/its2/GenerationDeltaTime.c new file mode 100644 index 000000000..53abab1aa --- /dev/null +++ b/vanetza/asn1/its2/GenerationDeltaTime.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "GenerationDeltaTime.h" + +int +GenerationDeltaTime_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_GenerationDeltaTime_constr_1 CC_NOTUSED = { + { 2, 1 } /* (0..65535) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_GenerationDeltaTime_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_GenerationDeltaTime_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_GenerationDeltaTime = { + "GenerationDeltaTime", + "GenerationDeltaTime", + &asn_OP_NativeInteger, + asn_DEF_GenerationDeltaTime_tags_1, + sizeof(asn_DEF_GenerationDeltaTime_tags_1) + /sizeof(asn_DEF_GenerationDeltaTime_tags_1[0]), /* 1 */ + asn_DEF_GenerationDeltaTime_tags_1, /* Same as above */ + sizeof(asn_DEF_GenerationDeltaTime_tags_1) + /sizeof(asn_DEF_GenerationDeltaTime_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_GenerationDeltaTime_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_GenerationDeltaTime_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + GenerationDeltaTime_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/GenerationDeltaTime.h b/vanetza/asn1/its2/GenerationDeltaTime.h new file mode 100644 index 000000000..cae796595 --- /dev/null +++ b/vanetza/asn1/its2/GenerationDeltaTime.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _GenerationDeltaTime_H_ +#define _GenerationDeltaTime_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum GenerationDeltaTime { + GenerationDeltaTime_oneMilliSec = 1 +} e_GenerationDeltaTime; + +/* GenerationDeltaTime */ +typedef long GenerationDeltaTime_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_GenerationDeltaTime_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_GenerationDeltaTime; +asn_struct_free_f GenerationDeltaTime_free; +asn_struct_print_f GenerationDeltaTime_print; +asn_constr_check_f GenerationDeltaTime_constraint; +ber_type_decoder_f GenerationDeltaTime_decode_ber; +der_type_encoder_f GenerationDeltaTime_encode_der; +xer_type_decoder_f GenerationDeltaTime_decode_xer; +xer_type_encoder_f GenerationDeltaTime_encode_xer; +jer_type_encoder_f GenerationDeltaTime_encode_jer; +oer_type_decoder_f GenerationDeltaTime_decode_oer; +oer_type_encoder_f GenerationDeltaTime_encode_oer; +per_type_decoder_f GenerationDeltaTime_decode_uper; +per_type_encoder_f GenerationDeltaTime_encode_uper; +per_type_decoder_f GenerationDeltaTime_decode_aper; +per_type_encoder_f GenerationDeltaTime_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _GenerationDeltaTime_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/GeoPosition.c b/vanetza/asn1/its2/GeoPosition.c new file mode 100644 index 000000000..1f9cb0ba8 --- /dev/null +++ b/vanetza/asn1/its2/GeoPosition.c @@ -0,0 +1,139 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "GeoPosition.h" + +static int asn_DFL_4_cmp_800001(const void *sptr) { + const AltitudeValue_t *st = sptr; + + if(!st) { + return -1; /* No value is not a default value */ + } + + /* Test default value 800001 */ + return (*st != 800001); +} +static int asn_DFL_4_set_800001(void **sptr) { + AltitudeValue_t *st = *sptr; + + if(!st) { + st = (*sptr = CALLOC(1, sizeof(*st))); + if(!st) return -1; + } + + /* Install default value 800001 */ + *st = 800001; + return 0; +} +asn_TYPE_member_t asn_MBR_GeoPosition_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct GeoPosition, latitude), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Latitude, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "latitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct GeoPosition, longitude), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Longitude, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "longitude" + }, + { ATF_POINTER, 1, offsetof(struct GeoPosition, altitude), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AltitudeValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + &asn_DFL_4_cmp_800001, /* Compare DEFAULT 800001 */ + &asn_DFL_4_set_800001, /* Set DEFAULT 800001 */ + "altitude" + }, +}; +static const int asn_MAP_GeoPosition_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_GeoPosition_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_GeoPosition_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* latitude */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* longitude */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* altitude */ +}; +asn_SEQUENCE_specifics_t asn_SPC_GeoPosition_specs_1 = { + sizeof(struct GeoPosition), + offsetof(struct GeoPosition, _asn_ctx), + asn_MAP_GeoPosition_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_GeoPosition_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_GeoPosition = { + "GeoPosition", + "GeoPosition", + &asn_OP_SEQUENCE, + asn_DEF_GeoPosition_tags_1, + sizeof(asn_DEF_GeoPosition_tags_1) + /sizeof(asn_DEF_GeoPosition_tags_1[0]), /* 1 */ + asn_DEF_GeoPosition_tags_1, /* Same as above */ + sizeof(asn_DEF_GeoPosition_tags_1) + /sizeof(asn_DEF_GeoPosition_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_GeoPosition_1, + 3, /* Elements count */ + &asn_SPC_GeoPosition_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/GeoPosition.h b/vanetza/asn1/its2/GeoPosition.h new file mode 100644 index 000000000..5cb7fa70b --- /dev/null +++ b/vanetza/asn1/its2/GeoPosition.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _GeoPosition_H_ +#define _GeoPosition_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "Latitude.h" +#include "Longitude.h" +#include "AltitudeValue.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* GeoPosition */ +typedef struct GeoPosition { + Latitude_t latitude; + Longitude_t longitude; + AltitudeValue_t *altitude; /* DEFAULT 800001 */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} GeoPosition_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_GeoPosition; +extern asn_SEQUENCE_specifics_t asn_SPC_GeoPosition_specs_1; +extern asn_TYPE_member_t asn_MBR_GeoPosition_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _GeoPosition_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/HardShoulderStatus.c b/vanetza/asn1/its2/HardShoulderStatus.c new file mode 100644 index 000000000..d5c749e35 --- /dev/null +++ b/vanetza/asn1/its2/HardShoulderStatus.c @@ -0,0 +1,73 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "HardShoulderStatus.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_HardShoulderStatus_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_HardShoulderStatus_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_HardShoulderStatus_value2enum_1[] = { + { 0, 20, "availableForStopping" }, + { 1, 6, "closed" }, + { 2, 19, "availableForDriving" } +}; +static const unsigned int asn_MAP_HardShoulderStatus_enum2value_1[] = { + 2, /* availableForDriving(2) */ + 0, /* availableForStopping(0) */ + 1 /* closed(1) */ +}; +const asn_INTEGER_specifics_t asn_SPC_HardShoulderStatus_specs_1 = { + asn_MAP_HardShoulderStatus_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_HardShoulderStatus_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_HardShoulderStatus_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_HardShoulderStatus = { + "HardShoulderStatus", + "HardShoulderStatus", + &asn_OP_NativeEnumerated, + asn_DEF_HardShoulderStatus_tags_1, + sizeof(asn_DEF_HardShoulderStatus_tags_1) + /sizeof(asn_DEF_HardShoulderStatus_tags_1[0]), /* 1 */ + asn_DEF_HardShoulderStatus_tags_1, /* Same as above */ + sizeof(asn_DEF_HardShoulderStatus_tags_1) + /sizeof(asn_DEF_HardShoulderStatus_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_HardShoulderStatus_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_HardShoulderStatus_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_HardShoulderStatus_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/HardShoulderStatus.h b/vanetza/asn1/its2/HardShoulderStatus.h new file mode 100644 index 000000000..63b5c44fe --- /dev/null +++ b/vanetza/asn1/its2/HardShoulderStatus.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _HardShoulderStatus_H_ +#define _HardShoulderStatus_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HardShoulderStatus { + HardShoulderStatus_availableForStopping = 0, + HardShoulderStatus_closed = 1, + HardShoulderStatus_availableForDriving = 2 +} e_HardShoulderStatus; + +/* HardShoulderStatus */ +typedef long HardShoulderStatus_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_HardShoulderStatus_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_HardShoulderStatus; +extern const asn_INTEGER_specifics_t asn_SPC_HardShoulderStatus_specs_1; +asn_struct_free_f HardShoulderStatus_free; +asn_struct_print_f HardShoulderStatus_print; +asn_constr_check_f HardShoulderStatus_constraint; +ber_type_decoder_f HardShoulderStatus_decode_ber; +der_type_encoder_f HardShoulderStatus_encode_der; +xer_type_decoder_f HardShoulderStatus_decode_xer; +xer_type_encoder_f HardShoulderStatus_encode_xer; +jer_type_encoder_f HardShoulderStatus_encode_jer; +oer_type_decoder_f HardShoulderStatus_decode_oer; +oer_type_encoder_f HardShoulderStatus_encode_oer; +per_type_decoder_f HardShoulderStatus_decode_uper; +per_type_encoder_f HardShoulderStatus_encode_uper; +per_type_decoder_f HardShoulderStatus_decode_aper; +per_type_encoder_f HardShoulderStatus_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HardShoulderStatus_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/HazardousLocation-AnimalOnTheRoadSubCauseCode.c b/vanetza/asn1/its2/HazardousLocation-AnimalOnTheRoadSubCauseCode.c new file mode 100644 index 000000000..3bb0005ae --- /dev/null +++ b/vanetza/asn1/its2/HazardousLocation-AnimalOnTheRoadSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "HazardousLocation-AnimalOnTheRoadSubCauseCode.h" + +int +HazardousLocation_AnimalOnTheRoadSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_HazardousLocation_AnimalOnTheRoadSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_HazardousLocation_AnimalOnTheRoadSubCauseCode_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_HazardousLocation_AnimalOnTheRoadSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_HazardousLocation_AnimalOnTheRoadSubCauseCode = { + "HazardousLocation-AnimalOnTheRoadSubCauseCode", + "HazardousLocation-AnimalOnTheRoadSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_HazardousLocation_AnimalOnTheRoadSubCauseCode_tags_1, + sizeof(asn_DEF_HazardousLocation_AnimalOnTheRoadSubCauseCode_tags_1) + /sizeof(asn_DEF_HazardousLocation_AnimalOnTheRoadSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_HazardousLocation_AnimalOnTheRoadSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_HazardousLocation_AnimalOnTheRoadSubCauseCode_tags_1) + /sizeof(asn_DEF_HazardousLocation_AnimalOnTheRoadSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_HazardousLocation_AnimalOnTheRoadSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_HazardousLocation_AnimalOnTheRoadSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + HazardousLocation_AnimalOnTheRoadSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/HazardousLocation-AnimalOnTheRoadSubCauseCode.h b/vanetza/asn1/its2/HazardousLocation-AnimalOnTheRoadSubCauseCode.h new file mode 100644 index 000000000..678fb9843 --- /dev/null +++ b/vanetza/asn1/its2/HazardousLocation-AnimalOnTheRoadSubCauseCode.h @@ -0,0 +1,61 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _HazardousLocation_AnimalOnTheRoadSubCauseCode_H_ +#define _HazardousLocation_AnimalOnTheRoadSubCauseCode_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HazardousLocation_AnimalOnTheRoadSubCauseCode { + HazardousLocation_AnimalOnTheRoadSubCauseCode_unavailable = 0, + HazardousLocation_AnimalOnTheRoadSubCauseCode_wildAnimals = 1, + HazardousLocation_AnimalOnTheRoadSubCauseCode_herdOfAnimals = 2, + HazardousLocation_AnimalOnTheRoadSubCauseCode_smallAnimals = 3, + HazardousLocation_AnimalOnTheRoadSubCauseCode_largeAnimals = 4, + HazardousLocation_AnimalOnTheRoadSubCauseCode_wildAnimalsSmall = 5, + HazardousLocation_AnimalOnTheRoadSubCauseCode_wildAnimalsLarge = 6, + HazardousLocation_AnimalOnTheRoadSubCauseCode_domesticAnimals = 7, + HazardousLocation_AnimalOnTheRoadSubCauseCode_domesticAnimalsSmall = 8, + HazardousLocation_AnimalOnTheRoadSubCauseCode_domesticAnimalsLarge = 9 +} e_HazardousLocation_AnimalOnTheRoadSubCauseCode; + +/* HazardousLocation-AnimalOnTheRoadSubCauseCode */ +typedef long HazardousLocation_AnimalOnTheRoadSubCauseCode_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_HazardousLocation_AnimalOnTheRoadSubCauseCode_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_HazardousLocation_AnimalOnTheRoadSubCauseCode; +asn_struct_free_f HazardousLocation_AnimalOnTheRoadSubCauseCode_free; +asn_struct_print_f HazardousLocation_AnimalOnTheRoadSubCauseCode_print; +asn_constr_check_f HazardousLocation_AnimalOnTheRoadSubCauseCode_constraint; +ber_type_decoder_f HazardousLocation_AnimalOnTheRoadSubCauseCode_decode_ber; +der_type_encoder_f HazardousLocation_AnimalOnTheRoadSubCauseCode_encode_der; +xer_type_decoder_f HazardousLocation_AnimalOnTheRoadSubCauseCode_decode_xer; +xer_type_encoder_f HazardousLocation_AnimalOnTheRoadSubCauseCode_encode_xer; +jer_type_encoder_f HazardousLocation_AnimalOnTheRoadSubCauseCode_encode_jer; +oer_type_decoder_f HazardousLocation_AnimalOnTheRoadSubCauseCode_decode_oer; +oer_type_encoder_f HazardousLocation_AnimalOnTheRoadSubCauseCode_encode_oer; +per_type_decoder_f HazardousLocation_AnimalOnTheRoadSubCauseCode_decode_uper; +per_type_encoder_f HazardousLocation_AnimalOnTheRoadSubCauseCode_encode_uper; +per_type_decoder_f HazardousLocation_AnimalOnTheRoadSubCauseCode_decode_aper; +per_type_encoder_f HazardousLocation_AnimalOnTheRoadSubCauseCode_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HazardousLocation_AnimalOnTheRoadSubCauseCode_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/HazardousLocation-DangerousCurveSubCauseCode.c b/vanetza/asn1/its2/HazardousLocation-DangerousCurveSubCauseCode.c new file mode 100644 index 000000000..c120b7c9b --- /dev/null +++ b/vanetza/asn1/its2/HazardousLocation-DangerousCurveSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "HazardousLocation-DangerousCurveSubCauseCode.h" + +int +HazardousLocation_DangerousCurveSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_HazardousLocation_DangerousCurveSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_HazardousLocation_DangerousCurveSubCauseCode_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_HazardousLocation_DangerousCurveSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_HazardousLocation_DangerousCurveSubCauseCode = { + "HazardousLocation-DangerousCurveSubCauseCode", + "HazardousLocation-DangerousCurveSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_HazardousLocation_DangerousCurveSubCauseCode_tags_1, + sizeof(asn_DEF_HazardousLocation_DangerousCurveSubCauseCode_tags_1) + /sizeof(asn_DEF_HazardousLocation_DangerousCurveSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_HazardousLocation_DangerousCurveSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_HazardousLocation_DangerousCurveSubCauseCode_tags_1) + /sizeof(asn_DEF_HazardousLocation_DangerousCurveSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_HazardousLocation_DangerousCurveSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_HazardousLocation_DangerousCurveSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + HazardousLocation_DangerousCurveSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/HazardousLocation-DangerousCurveSubCauseCode.h b/vanetza/asn1/its2/HazardousLocation-DangerousCurveSubCauseCode.h new file mode 100644 index 000000000..09a856f84 --- /dev/null +++ b/vanetza/asn1/its2/HazardousLocation-DangerousCurveSubCauseCode.h @@ -0,0 +1,57 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _HazardousLocation_DangerousCurveSubCauseCode_H_ +#define _HazardousLocation_DangerousCurveSubCauseCode_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HazardousLocation_DangerousCurveSubCauseCode { + HazardousLocation_DangerousCurveSubCauseCode_unavailable = 0, + HazardousLocation_DangerousCurveSubCauseCode_dangerousLeftTurnCurve = 1, + HazardousLocation_DangerousCurveSubCauseCode_dangerousRightTurnCurve = 2, + HazardousLocation_DangerousCurveSubCauseCode_multipleCurvesStartingWithUnknownTurningDirection = 3, + HazardousLocation_DangerousCurveSubCauseCode_multipleCurvesStartingWithLeftTurn = 4, + HazardousLocation_DangerousCurveSubCauseCode_multipleCurvesStartingWithRightTurn = 5 +} e_HazardousLocation_DangerousCurveSubCauseCode; + +/* HazardousLocation-DangerousCurveSubCauseCode */ +typedef long HazardousLocation_DangerousCurveSubCauseCode_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_HazardousLocation_DangerousCurveSubCauseCode_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_HazardousLocation_DangerousCurveSubCauseCode; +asn_struct_free_f HazardousLocation_DangerousCurveSubCauseCode_free; +asn_struct_print_f HazardousLocation_DangerousCurveSubCauseCode_print; +asn_constr_check_f HazardousLocation_DangerousCurveSubCauseCode_constraint; +ber_type_decoder_f HazardousLocation_DangerousCurveSubCauseCode_decode_ber; +der_type_encoder_f HazardousLocation_DangerousCurveSubCauseCode_encode_der; +xer_type_decoder_f HazardousLocation_DangerousCurveSubCauseCode_decode_xer; +xer_type_encoder_f HazardousLocation_DangerousCurveSubCauseCode_encode_xer; +jer_type_encoder_f HazardousLocation_DangerousCurveSubCauseCode_encode_jer; +oer_type_decoder_f HazardousLocation_DangerousCurveSubCauseCode_decode_oer; +oer_type_encoder_f HazardousLocation_DangerousCurveSubCauseCode_encode_oer; +per_type_decoder_f HazardousLocation_DangerousCurveSubCauseCode_decode_uper; +per_type_encoder_f HazardousLocation_DangerousCurveSubCauseCode_encode_uper; +per_type_decoder_f HazardousLocation_DangerousCurveSubCauseCode_decode_aper; +per_type_encoder_f HazardousLocation_DangerousCurveSubCauseCode_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HazardousLocation_DangerousCurveSubCauseCode_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/HazardousLocation-ObstacleOnTheRoadSubCauseCode.c b/vanetza/asn1/its2/HazardousLocation-ObstacleOnTheRoadSubCauseCode.c new file mode 100644 index 000000000..a807019ad --- /dev/null +++ b/vanetza/asn1/its2/HazardousLocation-ObstacleOnTheRoadSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "HazardousLocation-ObstacleOnTheRoadSubCauseCode.h" + +int +HazardousLocation_ObstacleOnTheRoadSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_HazardousLocation_ObstacleOnTheRoadSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_HazardousLocation_ObstacleOnTheRoadSubCauseCode_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_HazardousLocation_ObstacleOnTheRoadSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_HazardousLocation_ObstacleOnTheRoadSubCauseCode = { + "HazardousLocation-ObstacleOnTheRoadSubCauseCode", + "HazardousLocation-ObstacleOnTheRoadSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_HazardousLocation_ObstacleOnTheRoadSubCauseCode_tags_1, + sizeof(asn_DEF_HazardousLocation_ObstacleOnTheRoadSubCauseCode_tags_1) + /sizeof(asn_DEF_HazardousLocation_ObstacleOnTheRoadSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_HazardousLocation_ObstacleOnTheRoadSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_HazardousLocation_ObstacleOnTheRoadSubCauseCode_tags_1) + /sizeof(asn_DEF_HazardousLocation_ObstacleOnTheRoadSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_HazardousLocation_ObstacleOnTheRoadSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_HazardousLocation_ObstacleOnTheRoadSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + HazardousLocation_ObstacleOnTheRoadSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/HazardousLocation-ObstacleOnTheRoadSubCauseCode.h b/vanetza/asn1/its2/HazardousLocation-ObstacleOnTheRoadSubCauseCode.h new file mode 100644 index 000000000..4a3a31bbc --- /dev/null +++ b/vanetza/asn1/its2/HazardousLocation-ObstacleOnTheRoadSubCauseCode.h @@ -0,0 +1,59 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _HazardousLocation_ObstacleOnTheRoadSubCauseCode_H_ +#define _HazardousLocation_ObstacleOnTheRoadSubCauseCode_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HazardousLocation_ObstacleOnTheRoadSubCauseCode { + HazardousLocation_ObstacleOnTheRoadSubCauseCode_unavailable = 0, + HazardousLocation_ObstacleOnTheRoadSubCauseCode_shedLoad = 1, + HazardousLocation_ObstacleOnTheRoadSubCauseCode_partsOfVehicles = 2, + HazardousLocation_ObstacleOnTheRoadSubCauseCode_partsOfTyres = 3, + HazardousLocation_ObstacleOnTheRoadSubCauseCode_bigObjects = 4, + HazardousLocation_ObstacleOnTheRoadSubCauseCode_fallenTrees = 5, + HazardousLocation_ObstacleOnTheRoadSubCauseCode_hubCaps = 6, + HazardousLocation_ObstacleOnTheRoadSubCauseCode_waitingVehicles = 7 +} e_HazardousLocation_ObstacleOnTheRoadSubCauseCode; + +/* HazardousLocation-ObstacleOnTheRoadSubCauseCode */ +typedef long HazardousLocation_ObstacleOnTheRoadSubCauseCode_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_HazardousLocation_ObstacleOnTheRoadSubCauseCode_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_HazardousLocation_ObstacleOnTheRoadSubCauseCode; +asn_struct_free_f HazardousLocation_ObstacleOnTheRoadSubCauseCode_free; +asn_struct_print_f HazardousLocation_ObstacleOnTheRoadSubCauseCode_print; +asn_constr_check_f HazardousLocation_ObstacleOnTheRoadSubCauseCode_constraint; +ber_type_decoder_f HazardousLocation_ObstacleOnTheRoadSubCauseCode_decode_ber; +der_type_encoder_f HazardousLocation_ObstacleOnTheRoadSubCauseCode_encode_der; +xer_type_decoder_f HazardousLocation_ObstacleOnTheRoadSubCauseCode_decode_xer; +xer_type_encoder_f HazardousLocation_ObstacleOnTheRoadSubCauseCode_encode_xer; +jer_type_encoder_f HazardousLocation_ObstacleOnTheRoadSubCauseCode_encode_jer; +oer_type_decoder_f HazardousLocation_ObstacleOnTheRoadSubCauseCode_decode_oer; +oer_type_encoder_f HazardousLocation_ObstacleOnTheRoadSubCauseCode_encode_oer; +per_type_decoder_f HazardousLocation_ObstacleOnTheRoadSubCauseCode_decode_uper; +per_type_encoder_f HazardousLocation_ObstacleOnTheRoadSubCauseCode_encode_uper; +per_type_decoder_f HazardousLocation_ObstacleOnTheRoadSubCauseCode_decode_aper; +per_type_encoder_f HazardousLocation_ObstacleOnTheRoadSubCauseCode_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HazardousLocation_ObstacleOnTheRoadSubCauseCode_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/HazardousLocation-SurfaceConditionSubCauseCode.c b/vanetza/asn1/its2/HazardousLocation-SurfaceConditionSubCauseCode.c new file mode 100644 index 000000000..12b3bfc52 --- /dev/null +++ b/vanetza/asn1/its2/HazardousLocation-SurfaceConditionSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "HazardousLocation-SurfaceConditionSubCauseCode.h" + +int +HazardousLocation_SurfaceConditionSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_HazardousLocation_SurfaceConditionSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_HazardousLocation_SurfaceConditionSubCauseCode_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_HazardousLocation_SurfaceConditionSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_HazardousLocation_SurfaceConditionSubCauseCode = { + "HazardousLocation-SurfaceConditionSubCauseCode", + "HazardousLocation-SurfaceConditionSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_HazardousLocation_SurfaceConditionSubCauseCode_tags_1, + sizeof(asn_DEF_HazardousLocation_SurfaceConditionSubCauseCode_tags_1) + /sizeof(asn_DEF_HazardousLocation_SurfaceConditionSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_HazardousLocation_SurfaceConditionSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_HazardousLocation_SurfaceConditionSubCauseCode_tags_1) + /sizeof(asn_DEF_HazardousLocation_SurfaceConditionSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_HazardousLocation_SurfaceConditionSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_HazardousLocation_SurfaceConditionSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + HazardousLocation_SurfaceConditionSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/HazardousLocation-SurfaceConditionSubCauseCode.h b/vanetza/asn1/its2/HazardousLocation-SurfaceConditionSubCauseCode.h new file mode 100644 index 000000000..04fe124a8 --- /dev/null +++ b/vanetza/asn1/its2/HazardousLocation-SurfaceConditionSubCauseCode.h @@ -0,0 +1,62 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _HazardousLocation_SurfaceConditionSubCauseCode_H_ +#define _HazardousLocation_SurfaceConditionSubCauseCode_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HazardousLocation_SurfaceConditionSubCauseCode { + HazardousLocation_SurfaceConditionSubCauseCode_unavailable = 0, + HazardousLocation_SurfaceConditionSubCauseCode_rockfalls = 1, + HazardousLocation_SurfaceConditionSubCauseCode_earthquakeDamage = 2, + HazardousLocation_SurfaceConditionSubCauseCode_sewerCollapse = 3, + HazardousLocation_SurfaceConditionSubCauseCode_subsidence = 4, + HazardousLocation_SurfaceConditionSubCauseCode_snowDrifts = 5, + HazardousLocation_SurfaceConditionSubCauseCode_stormDamage = 6, + HazardousLocation_SurfaceConditionSubCauseCode_burstPipe = 7, + HazardousLocation_SurfaceConditionSubCauseCode_volcanoEruption = 8, + HazardousLocation_SurfaceConditionSubCauseCode_fallingIce = 9, + HazardousLocation_SurfaceConditionSubCauseCode_fire = 10 +} e_HazardousLocation_SurfaceConditionSubCauseCode; + +/* HazardousLocation-SurfaceConditionSubCauseCode */ +typedef long HazardousLocation_SurfaceConditionSubCauseCode_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_HazardousLocation_SurfaceConditionSubCauseCode_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_HazardousLocation_SurfaceConditionSubCauseCode; +asn_struct_free_f HazardousLocation_SurfaceConditionSubCauseCode_free; +asn_struct_print_f HazardousLocation_SurfaceConditionSubCauseCode_print; +asn_constr_check_f HazardousLocation_SurfaceConditionSubCauseCode_constraint; +ber_type_decoder_f HazardousLocation_SurfaceConditionSubCauseCode_decode_ber; +der_type_encoder_f HazardousLocation_SurfaceConditionSubCauseCode_encode_der; +xer_type_decoder_f HazardousLocation_SurfaceConditionSubCauseCode_decode_xer; +xer_type_encoder_f HazardousLocation_SurfaceConditionSubCauseCode_encode_xer; +jer_type_encoder_f HazardousLocation_SurfaceConditionSubCauseCode_encode_jer; +oer_type_decoder_f HazardousLocation_SurfaceConditionSubCauseCode_decode_oer; +oer_type_encoder_f HazardousLocation_SurfaceConditionSubCauseCode_encode_oer; +per_type_decoder_f HazardousLocation_SurfaceConditionSubCauseCode_decode_uper; +per_type_encoder_f HazardousLocation_SurfaceConditionSubCauseCode_encode_uper; +per_type_decoder_f HazardousLocation_SurfaceConditionSubCauseCode_decode_aper; +per_type_encoder_f HazardousLocation_SurfaceConditionSubCauseCode_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HazardousLocation_SurfaceConditionSubCauseCode_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/Heading.c b/vanetza/asn1/its2/Heading.c new file mode 100644 index 000000000..4de9a7a1a --- /dev/null +++ b/vanetza/asn1/its2/Heading.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Heading.h" + +asn_TYPE_member_t asn_MBR_Heading_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Heading, headingValue), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HeadingValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "headingValue" + }, + { ATF_NOFLAGS, 0, offsetof(struct Heading, headingConfidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HeadingConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "headingConfidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_Heading_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Heading_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* headingValue */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* headingConfidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Heading_specs_1 = { + sizeof(struct Heading), + offsetof(struct Heading, _asn_ctx), + asn_MAP_Heading_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_Heading = { + "Heading", + "Heading", + &asn_OP_SEQUENCE, + asn_DEF_Heading_tags_1, + sizeof(asn_DEF_Heading_tags_1) + /sizeof(asn_DEF_Heading_tags_1[0]), /* 1 */ + asn_DEF_Heading_tags_1, /* Same as above */ + sizeof(asn_DEF_Heading_tags_1) + /sizeof(asn_DEF_Heading_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Heading_1, + 2, /* Elements count */ + &asn_SPC_Heading_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/Heading.h b/vanetza/asn1/its2/Heading.h new file mode 100644 index 000000000..9cb9e8cb5 --- /dev/null +++ b/vanetza/asn1/its2/Heading.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _Heading_H_ +#define _Heading_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "HeadingValue.h" +#include "HeadingConfidence.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Heading */ +typedef struct Heading { + HeadingValue_t headingValue; + HeadingConfidence_t headingConfidence; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Heading_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Heading; +extern asn_SEQUENCE_specifics_t asn_SPC_Heading_specs_1; +extern asn_TYPE_member_t asn_MBR_Heading_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Heading_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/HeadingChangeIndication.c b/vanetza/asn1/its2/HeadingChangeIndication.c new file mode 100644 index 000000000..cb8c0f09f --- /dev/null +++ b/vanetza/asn1/its2/HeadingChangeIndication.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "HeadingChangeIndication.h" + +asn_TYPE_member_t asn_MBR_HeadingChangeIndication_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HeadingChangeIndication, direction), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TurningDirection, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "direction" + }, + { ATF_NOFLAGS, 0, offsetof(struct HeadingChangeIndication, actionDeltaTime), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DeltaTimeTenthOfSecond, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "actionDeltaTime" + }, +}; +static const ber_tlv_tag_t asn_DEF_HeadingChangeIndication_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_HeadingChangeIndication_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* direction */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* actionDeltaTime */ +}; +asn_SEQUENCE_specifics_t asn_SPC_HeadingChangeIndication_specs_1 = { + sizeof(struct HeadingChangeIndication), + offsetof(struct HeadingChangeIndication, _asn_ctx), + asn_MAP_HeadingChangeIndication_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_HeadingChangeIndication = { + "HeadingChangeIndication", + "HeadingChangeIndication", + &asn_OP_SEQUENCE, + asn_DEF_HeadingChangeIndication_tags_1, + sizeof(asn_DEF_HeadingChangeIndication_tags_1) + /sizeof(asn_DEF_HeadingChangeIndication_tags_1[0]), /* 1 */ + asn_DEF_HeadingChangeIndication_tags_1, /* Same as above */ + sizeof(asn_DEF_HeadingChangeIndication_tags_1) + /sizeof(asn_DEF_HeadingChangeIndication_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_HeadingChangeIndication_1, + 2, /* Elements count */ + &asn_SPC_HeadingChangeIndication_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/HeadingChangeIndication.h b/vanetza/asn1/its2/HeadingChangeIndication.h new file mode 100644 index 000000000..eed3d7ebe --- /dev/null +++ b/vanetza/asn1/its2/HeadingChangeIndication.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _HeadingChangeIndication_H_ +#define _HeadingChangeIndication_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "TurningDirection.h" +#include "DeltaTimeTenthOfSecond.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* HeadingChangeIndication */ +typedef struct HeadingChangeIndication { + TurningDirection_t direction; + DeltaTimeTenthOfSecond_t actionDeltaTime; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HeadingChangeIndication_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HeadingChangeIndication; +extern asn_SEQUENCE_specifics_t asn_SPC_HeadingChangeIndication_specs_1; +extern asn_TYPE_member_t asn_MBR_HeadingChangeIndication_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _HeadingChangeIndication_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/HeadingConfidence.c b/vanetza/asn1/its2/HeadingConfidence.c new file mode 100644 index 000000000..46950f22b --- /dev/null +++ b/vanetza/asn1/its2/HeadingConfidence.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "HeadingConfidence.h" + +int +HeadingConfidence_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 <= 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_HeadingConfidence_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..127) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_HeadingConfidence_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 1, 127 } /* (1..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_HeadingConfidence_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_HeadingConfidence = { + "HeadingConfidence", + "HeadingConfidence", + &asn_OP_NativeInteger, + asn_DEF_HeadingConfidence_tags_1, + sizeof(asn_DEF_HeadingConfidence_tags_1) + /sizeof(asn_DEF_HeadingConfidence_tags_1[0]), /* 1 */ + asn_DEF_HeadingConfidence_tags_1, /* Same as above */ + sizeof(asn_DEF_HeadingConfidence_tags_1) + /sizeof(asn_DEF_HeadingConfidence_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_HeadingConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_HeadingConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + HeadingConfidence_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/HeadingConfidence.h b/vanetza/asn1/its2/HeadingConfidence.h new file mode 100644 index 000000000..41cbb6664 --- /dev/null +++ b/vanetza/asn1/its2/HeadingConfidence.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _HeadingConfidence_H_ +#define _HeadingConfidence_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HeadingConfidence { + HeadingConfidence_outOfRange = 126, + HeadingConfidence_unavailable = 127 +} e_HeadingConfidence; + +/* HeadingConfidence */ +typedef long HeadingConfidence_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_HeadingConfidence_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_HeadingConfidence; +asn_struct_free_f HeadingConfidence_free; +asn_struct_print_f HeadingConfidence_print; +asn_constr_check_f HeadingConfidence_constraint; +ber_type_decoder_f HeadingConfidence_decode_ber; +der_type_encoder_f HeadingConfidence_encode_der; +xer_type_decoder_f HeadingConfidence_decode_xer; +xer_type_encoder_f HeadingConfidence_encode_xer; +jer_type_encoder_f HeadingConfidence_encode_jer; +oer_type_decoder_f HeadingConfidence_decode_oer; +oer_type_encoder_f HeadingConfidence_encode_oer; +per_type_decoder_f HeadingConfidence_decode_uper; +per_type_encoder_f HeadingConfidence_encode_uper; +per_type_decoder_f HeadingConfidence_decode_aper; +per_type_encoder_f HeadingConfidence_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HeadingConfidence_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/HeadingValue.c b/vanetza/asn1/its2/HeadingValue.c new file mode 100644 index 000000000..b513effca --- /dev/null +++ b/vanetza/asn1/its2/HeadingValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "HeadingValue.h" + +int +HeadingValue_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 <= 3601L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_HeadingValue_constr_1 CC_NOTUSED = { + { 2, 1 } /* (0..3601) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_HeadingValue_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 3601 } /* (0..3601) */, + { 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_HeadingValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_HeadingValue = { + "HeadingValue", + "HeadingValue", + &asn_OP_NativeInteger, + asn_DEF_HeadingValue_tags_1, + sizeof(asn_DEF_HeadingValue_tags_1) + /sizeof(asn_DEF_HeadingValue_tags_1[0]), /* 1 */ + asn_DEF_HeadingValue_tags_1, /* Same as above */ + sizeof(asn_DEF_HeadingValue_tags_1) + /sizeof(asn_DEF_HeadingValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_HeadingValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_HeadingValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + HeadingValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/HeadingValue.h b/vanetza/asn1/its2/HeadingValue.h new file mode 100644 index 000000000..e49fee430 --- /dev/null +++ b/vanetza/asn1/its2/HeadingValue.h @@ -0,0 +1,57 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _HeadingValue_H_ +#define _HeadingValue_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HeadingValue { + HeadingValue_wgs84North = 0, + HeadingValue_wgs84East = 900, + HeadingValue_wgs84South = 1800, + HeadingValue_wgs84West = 2700, + HeadingValue_doNotUse = 3600, + HeadingValue_unavailable = 3601 +} e_HeadingValue; + +/* HeadingValue */ +typedef long HeadingValue_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_HeadingValue_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_HeadingValue; +asn_struct_free_f HeadingValue_free; +asn_struct_print_f HeadingValue_print; +asn_constr_check_f HeadingValue_constraint; +ber_type_decoder_f HeadingValue_decode_ber; +der_type_encoder_f HeadingValue_encode_der; +xer_type_decoder_f HeadingValue_decode_xer; +xer_type_encoder_f HeadingValue_encode_xer; +jer_type_encoder_f HeadingValue_encode_jer; +oer_type_decoder_f HeadingValue_decode_oer; +oer_type_encoder_f HeadingValue_encode_oer; +per_type_decoder_f HeadingValue_decode_uper; +per_type_encoder_f HeadingValue_encode_uper; +per_type_decoder_f HeadingValue_decode_aper; +per_type_encoder_f HeadingValue_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HeadingValue_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/HeightLonCarr.c b/vanetza/asn1/its2/HeightLonCarr.c new file mode 100644 index 000000000..8714eec5a --- /dev/null +++ b/vanetza/asn1/its2/HeightLonCarr.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "HeightLonCarr.h" + +int +HeightLonCarr_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 <= 100L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_HeightLonCarr_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..100) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_HeightLonCarr_constr_1 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) */ +static const ber_tlv_tag_t asn_DEF_HeightLonCarr_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_HeightLonCarr = { + "HeightLonCarr", + "HeightLonCarr", + &asn_OP_NativeInteger, + asn_DEF_HeightLonCarr_tags_1, + sizeof(asn_DEF_HeightLonCarr_tags_1) + /sizeof(asn_DEF_HeightLonCarr_tags_1[0]), /* 1 */ + asn_DEF_HeightLonCarr_tags_1, /* Same as above */ + sizeof(asn_DEF_HeightLonCarr_tags_1) + /sizeof(asn_DEF_HeightLonCarr_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_HeightLonCarr_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_HeightLonCarr_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + HeightLonCarr_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/HeightLonCarr.h b/vanetza/asn1/its2/HeightLonCarr.h new file mode 100644 index 000000000..1f2ec205a --- /dev/null +++ b/vanetza/asn1/its2/HeightLonCarr.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _HeightLonCarr_H_ +#define _HeightLonCarr_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HeightLonCarr { + HeightLonCarr_outOfRange = 99, + HeightLonCarr_unavailable = 100 +} e_HeightLonCarr; + +/* HeightLonCarr */ +typedef long HeightLonCarr_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_HeightLonCarr_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_HeightLonCarr; +asn_struct_free_f HeightLonCarr_free; +asn_struct_print_f HeightLonCarr_print; +asn_constr_check_f HeightLonCarr_constraint; +ber_type_decoder_f HeightLonCarr_decode_ber; +der_type_encoder_f HeightLonCarr_encode_der; +xer_type_decoder_f HeightLonCarr_decode_xer; +xer_type_encoder_f HeightLonCarr_encode_xer; +jer_type_encoder_f HeightLonCarr_encode_jer; +oer_type_decoder_f HeightLonCarr_decode_oer; +oer_type_encoder_f HeightLonCarr_encode_oer; +per_type_decoder_f HeightLonCarr_decode_uper; +per_type_encoder_f HeightLonCarr_encode_uper; +per_type_decoder_f HeightLonCarr_decode_aper; +per_type_encoder_f HeightLonCarr_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HeightLonCarr_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/HighFrequencyContainer.c b/vanetza/asn1/its2/HighFrequencyContainer.c new file mode 100644 index 000000000..33abf642d --- /dev/null +++ b/vanetza/asn1/its2/HighFrequencyContainer.c @@ -0,0 +1,102 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/TS103900v211-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "HighFrequencyContainer.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_HighFrequencyContainer_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_HighFrequencyContainer_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_HighFrequencyContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HighFrequencyContainer, choice.basicVehicleContainerHighFrequency), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BasicVehicleContainerHighFrequency, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "basicVehicleContainerHighFrequency" + }, + { ATF_NOFLAGS, 0, offsetof(struct HighFrequencyContainer, choice.rsuContainerHighFrequency), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RSUContainerHighFrequency, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rsuContainerHighFrequency" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_HighFrequencyContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* basicVehicleContainerHighFrequency */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* rsuContainerHighFrequency */ +}; +asn_CHOICE_specifics_t asn_SPC_HighFrequencyContainer_specs_1 = { + sizeof(struct HighFrequencyContainer), + offsetof(struct HighFrequencyContainer, _asn_ctx), + offsetof(struct HighFrequencyContainer, present), + sizeof(((struct HighFrequencyContainer *)0)->present), + asn_MAP_HighFrequencyContainer_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + 2 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_HighFrequencyContainer = { + "HighFrequencyContainer", + "HighFrequencyContainer", + &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) + &asn_OER_type_HighFrequencyContainer_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_HighFrequencyContainer_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_HighFrequencyContainer_1, + 2, /* Elements count */ + &asn_SPC_HighFrequencyContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/HighFrequencyContainer.h b/vanetza/asn1/its2/HighFrequencyContainer.h new file mode 100644 index 000000000..90f7f8927 --- /dev/null +++ b/vanetza/asn1/its2/HighFrequencyContainer.h @@ -0,0 +1,59 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/TS103900v211-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _HighFrequencyContainer_H_ +#define _HighFrequencyContainer_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "BasicVehicleContainerHighFrequency.h" +#include "RSUContainerHighFrequency.h" +#include "constr_CHOICE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HighFrequencyContainer_PR { + HighFrequencyContainer_PR_NOTHING, /* No components present */ + HighFrequencyContainer_PR_basicVehicleContainerHighFrequency, + HighFrequencyContainer_PR_rsuContainerHighFrequency + /* Extensions may appear below */ + +} HighFrequencyContainer_PR; + +/* HighFrequencyContainer */ +typedef struct HighFrequencyContainer { + HighFrequencyContainer_PR present; + union HighFrequencyContainer_u { + BasicVehicleContainerHighFrequency_t basicVehicleContainerHighFrequency; + RSUContainerHighFrequency_t rsuContainerHighFrequency; + /* + * This type is extensible, + * possible extensions are below. + */ + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HighFrequencyContainer_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HighFrequencyContainer; +extern asn_CHOICE_specifics_t asn_SPC_HighFrequencyContainer_specs_1; +extern asn_TYPE_member_t asn_MBR_HighFrequencyContainer_1[2]; +extern asn_per_constraints_t asn_PER_type_HighFrequencyContainer_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _HighFrequencyContainer_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/HumanPresenceOnTheRoadSubCauseCode.c b/vanetza/asn1/its2/HumanPresenceOnTheRoadSubCauseCode.c new file mode 100644 index 000000000..654e91a82 --- /dev/null +++ b/vanetza/asn1/its2/HumanPresenceOnTheRoadSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "HumanPresenceOnTheRoadSubCauseCode.h" + +int +HumanPresenceOnTheRoadSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_HumanPresenceOnTheRoadSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_HumanPresenceOnTheRoadSubCauseCode_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_HumanPresenceOnTheRoadSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_HumanPresenceOnTheRoadSubCauseCode = { + "HumanPresenceOnTheRoadSubCauseCode", + "HumanPresenceOnTheRoadSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_HumanPresenceOnTheRoadSubCauseCode_tags_1, + sizeof(asn_DEF_HumanPresenceOnTheRoadSubCauseCode_tags_1) + /sizeof(asn_DEF_HumanPresenceOnTheRoadSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_HumanPresenceOnTheRoadSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_HumanPresenceOnTheRoadSubCauseCode_tags_1) + /sizeof(asn_DEF_HumanPresenceOnTheRoadSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_HumanPresenceOnTheRoadSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_HumanPresenceOnTheRoadSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + HumanPresenceOnTheRoadSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/HumanPresenceOnTheRoadSubCauseCode.h b/vanetza/asn1/its2/HumanPresenceOnTheRoadSubCauseCode.h new file mode 100644 index 000000000..882840996 --- /dev/null +++ b/vanetza/asn1/its2/HumanPresenceOnTheRoadSubCauseCode.h @@ -0,0 +1,73 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _HumanPresenceOnTheRoadSubCauseCode_H_ +#define _HumanPresenceOnTheRoadSubCauseCode_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HumanPresenceOnTheRoadSubCauseCode { + HumanPresenceOnTheRoadSubCauseCode_unavailable = 0, + HumanPresenceOnTheRoadSubCauseCode_childrenOnRoadway = 1, + HumanPresenceOnTheRoadSubCauseCode_cyclistOnRoadway = 2, + HumanPresenceOnTheRoadSubCauseCode_motorcyclistOnRoadway = 3, + HumanPresenceOnTheRoadSubCauseCode_pedestrian = 4, + HumanPresenceOnTheRoadSubCauseCode_ordinary_pedestrian = 5, + HumanPresenceOnTheRoadSubCauseCode_road_worker = 6, + HumanPresenceOnTheRoadSubCauseCode_first_responder = 7, + HumanPresenceOnTheRoadSubCauseCode_lightVruVehicle = 8, + HumanPresenceOnTheRoadSubCauseCode_bicyclist = 9, + HumanPresenceOnTheRoadSubCauseCode_wheelchair_user = 10, + HumanPresenceOnTheRoadSubCauseCode_horse_and_rider = 11, + HumanPresenceOnTheRoadSubCauseCode_rollerskater = 12, + HumanPresenceOnTheRoadSubCauseCode_e_scooter = 13, + HumanPresenceOnTheRoadSubCauseCode_personal_transporter = 14, + HumanPresenceOnTheRoadSubCauseCode_pedelec = 15, + HumanPresenceOnTheRoadSubCauseCode_speed_pedelec = 16, + HumanPresenceOnTheRoadSubCauseCode_ptw = 17, + HumanPresenceOnTheRoadSubCauseCode_moped = 18, + HumanPresenceOnTheRoadSubCauseCode_motorcycle = 19, + HumanPresenceOnTheRoadSubCauseCode_motorcycle_and_sidecar_right = 20, + HumanPresenceOnTheRoadSubCauseCode_motorcycle_and_sidecar_left = 21 +} e_HumanPresenceOnTheRoadSubCauseCode; + +/* HumanPresenceOnTheRoadSubCauseCode */ +typedef long HumanPresenceOnTheRoadSubCauseCode_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_HumanPresenceOnTheRoadSubCauseCode_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_HumanPresenceOnTheRoadSubCauseCode; +asn_struct_free_f HumanPresenceOnTheRoadSubCauseCode_free; +asn_struct_print_f HumanPresenceOnTheRoadSubCauseCode_print; +asn_constr_check_f HumanPresenceOnTheRoadSubCauseCode_constraint; +ber_type_decoder_f HumanPresenceOnTheRoadSubCauseCode_decode_ber; +der_type_encoder_f HumanPresenceOnTheRoadSubCauseCode_encode_der; +xer_type_decoder_f HumanPresenceOnTheRoadSubCauseCode_decode_xer; +xer_type_encoder_f HumanPresenceOnTheRoadSubCauseCode_encode_xer; +jer_type_encoder_f HumanPresenceOnTheRoadSubCauseCode_encode_jer; +oer_type_decoder_f HumanPresenceOnTheRoadSubCauseCode_decode_oer; +oer_type_encoder_f HumanPresenceOnTheRoadSubCauseCode_encode_oer; +per_type_decoder_f HumanPresenceOnTheRoadSubCauseCode_decode_uper; +per_type_encoder_f HumanPresenceOnTheRoadSubCauseCode_encode_uper; +per_type_decoder_f HumanPresenceOnTheRoadSubCauseCode_decode_aper; +per_type_encoder_f HumanPresenceOnTheRoadSubCauseCode_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HumanPresenceOnTheRoadSubCauseCode_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/HumanProblemSubCauseCode.c b/vanetza/asn1/its2/HumanProblemSubCauseCode.c new file mode 100644 index 000000000..f399f970e --- /dev/null +++ b/vanetza/asn1/its2/HumanProblemSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "HumanProblemSubCauseCode.h" + +int +HumanProblemSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_HumanProblemSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_HumanProblemSubCauseCode_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_HumanProblemSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_HumanProblemSubCauseCode = { + "HumanProblemSubCauseCode", + "HumanProblemSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_HumanProblemSubCauseCode_tags_1, + sizeof(asn_DEF_HumanProblemSubCauseCode_tags_1) + /sizeof(asn_DEF_HumanProblemSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_HumanProblemSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_HumanProblemSubCauseCode_tags_1) + /sizeof(asn_DEF_HumanProblemSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_HumanProblemSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_HumanProblemSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + HumanProblemSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/HumanProblemSubCauseCode.h b/vanetza/asn1/its2/HumanProblemSubCauseCode.h new file mode 100644 index 000000000..54ceea9da --- /dev/null +++ b/vanetza/asn1/its2/HumanProblemSubCauseCode.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _HumanProblemSubCauseCode_H_ +#define _HumanProblemSubCauseCode_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HumanProblemSubCauseCode { + HumanProblemSubCauseCode_unavailable = 0, + HumanProblemSubCauseCode_glycemiaProblem = 1, + HumanProblemSubCauseCode_heartProblem = 2 +} e_HumanProblemSubCauseCode; + +/* HumanProblemSubCauseCode */ +typedef long HumanProblemSubCauseCode_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_HumanProblemSubCauseCode_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_HumanProblemSubCauseCode; +asn_struct_free_f HumanProblemSubCauseCode_free; +asn_struct_print_f HumanProblemSubCauseCode_print; +asn_constr_check_f HumanProblemSubCauseCode_constraint; +ber_type_decoder_f HumanProblemSubCauseCode_decode_ber; +der_type_encoder_f HumanProblemSubCauseCode_encode_der; +xer_type_decoder_f HumanProblemSubCauseCode_decode_xer; +xer_type_encoder_f HumanProblemSubCauseCode_encode_xer; +jer_type_encoder_f HumanProblemSubCauseCode_encode_jer; +oer_type_decoder_f HumanProblemSubCauseCode_decode_oer; +oer_type_encoder_f HumanProblemSubCauseCode_encode_oer; +per_type_decoder_f HumanProblemSubCauseCode_decode_uper; +per_type_encoder_f HumanProblemSubCauseCode_encode_uper; +per_type_decoder_f HumanProblemSubCauseCode_decode_aper; +per_type_encoder_f HumanProblemSubCauseCode_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HumanProblemSubCauseCode_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/Identifier1B.c b/vanetza/asn1/its2/Identifier1B.c new file mode 100644 index 000000000..37923c833 --- /dev/null +++ b/vanetza/asn1/its2/Identifier1B.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Identifier1B.h" + +int +Identifier1B_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_Identifier1B_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Identifier1B_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_Identifier1B_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_Identifier1B = { + "Identifier1B", + "Identifier1B", + &asn_OP_NativeInteger, + asn_DEF_Identifier1B_tags_1, + sizeof(asn_DEF_Identifier1B_tags_1) + /sizeof(asn_DEF_Identifier1B_tags_1[0]), /* 1 */ + asn_DEF_Identifier1B_tags_1, /* Same as above */ + sizeof(asn_DEF_Identifier1B_tags_1) + /sizeof(asn_DEF_Identifier1B_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_Identifier1B_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Identifier1B_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + Identifier1B_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/Identifier1B.h b/vanetza/asn1/its2/Identifier1B.h new file mode 100644 index 000000000..4398f140b --- /dev/null +++ b/vanetza/asn1/its2/Identifier1B.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _Identifier1B_H_ +#define _Identifier1B_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Identifier1B */ +typedef long Identifier1B_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_Identifier1B_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_Identifier1B; +asn_struct_free_f Identifier1B_free; +asn_struct_print_f Identifier1B_print; +asn_constr_check_f Identifier1B_constraint; +ber_type_decoder_f Identifier1B_decode_ber; +der_type_encoder_f Identifier1B_encode_der; +xer_type_decoder_f Identifier1B_decode_xer; +xer_type_encoder_f Identifier1B_encode_xer; +jer_type_encoder_f Identifier1B_encode_jer; +oer_type_decoder_f Identifier1B_decode_oer; +oer_type_encoder_f Identifier1B_encode_oer; +per_type_decoder_f Identifier1B_decode_uper; +per_type_encoder_f Identifier1B_encode_uper; +per_type_decoder_f Identifier1B_decode_aper; +per_type_encoder_f Identifier1B_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _Identifier1B_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/Identifier2B.c b/vanetza/asn1/its2/Identifier2B.c new file mode 100644 index 000000000..b0f3453e2 --- /dev/null +++ b/vanetza/asn1/its2/Identifier2B.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Identifier2B.h" + +int +Identifier2B_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_Identifier2B_constr_1 CC_NOTUSED = { + { 2, 1 } /* (0..65535) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Identifier2B_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_Identifier2B_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_Identifier2B = { + "Identifier2B", + "Identifier2B", + &asn_OP_NativeInteger, + asn_DEF_Identifier2B_tags_1, + sizeof(asn_DEF_Identifier2B_tags_1) + /sizeof(asn_DEF_Identifier2B_tags_1[0]), /* 1 */ + asn_DEF_Identifier2B_tags_1, /* Same as above */ + sizeof(asn_DEF_Identifier2B_tags_1) + /sizeof(asn_DEF_Identifier2B_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_Identifier2B_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Identifier2B_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + Identifier2B_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/Identifier2B.h b/vanetza/asn1/its2/Identifier2B.h new file mode 100644 index 000000000..61ae1978f --- /dev/null +++ b/vanetza/asn1/its2/Identifier2B.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _Identifier2B_H_ +#define _Identifier2B_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Identifier2B */ +typedef long Identifier2B_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_Identifier2B_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_Identifier2B; +asn_struct_free_f Identifier2B_free; +asn_struct_print_f Identifier2B_print; +asn_constr_check_f Identifier2B_constraint; +ber_type_decoder_f Identifier2B_decode_ber; +der_type_encoder_f Identifier2B_encode_der; +xer_type_decoder_f Identifier2B_decode_xer; +xer_type_encoder_f Identifier2B_encode_xer; +jer_type_encoder_f Identifier2B_encode_jer; +oer_type_decoder_f Identifier2B_decode_oer; +oer_type_encoder_f Identifier2B_encode_oer; +per_type_decoder_f Identifier2B_decode_uper; +per_type_encoder_f Identifier2B_encode_uper; +per_type_decoder_f Identifier2B_decode_aper; +per_type_encoder_f Identifier2B_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _Identifier2B_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ImpactReductionContainer.c b/vanetza/asn1/its2/ImpactReductionContainer.c new file mode 100644 index 000000000..af7ac784d --- /dev/null +++ b/vanetza/asn1/its2/ImpactReductionContainer.c @@ -0,0 +1,303 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "DENM-PDU-Description" + * found in "asn1/TS103831v211-DENM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ImpactReductionContainer.h" + +asn_TYPE_member_t asn_MBR_ImpactReductionContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, heightLonCarrLeft), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HeightLonCarr, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "heightLonCarrLeft" + }, + { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, heightLonCarrRight), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HeightLonCarr, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "heightLonCarrRight" + }, + { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, posLonCarrLeft), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PosLonCarr, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posLonCarrLeft" + }, + { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, posLonCarrRight), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PosLonCarr, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posLonCarrRight" + }, + { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, positionOfPillars), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PositionOfPillars, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "positionOfPillars" + }, + { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, posCentMass), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PosCentMass, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posCentMass" + }, + { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, wheelBaseVehicle), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_WheelBaseVehicle, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wheelBaseVehicle" + }, + { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, turningRadius), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TurningRadius, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "turningRadius" + }, + { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, posFrontAx), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PosFrontAx, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "posFrontAx" + }, + { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, positionOfOccupants), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PositionOfOccupants, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "positionOfOccupants" + }, + { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, vehicleMass), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VehicleMass, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vehicleMass" + }, + { ATF_NOFLAGS, 0, offsetof(struct ImpactReductionContainer, requestResponseIndication), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RequestResponseIndication, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "requestResponseIndication" + }, +}; +static const ber_tlv_tag_t asn_DEF_ImpactReductionContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ImpactReductionContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* heightLonCarrLeft */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* heightLonCarrRight */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* posLonCarrLeft */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* posLonCarrRight */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* positionOfPillars */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* posCentMass */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* wheelBaseVehicle */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* turningRadius */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* posFrontAx */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* positionOfOccupants */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* vehicleMass */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 } /* requestResponseIndication */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ImpactReductionContainer_specs_1 = { + sizeof(struct ImpactReductionContainer), + offsetof(struct ImpactReductionContainer, _asn_ctx), + asn_MAP_ImpactReductionContainer_tag2el_1, + 12, /* Count of tags in the map */ + 0, 0, 0, /* Optional elements (not needed) */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ImpactReductionContainer = { + "ImpactReductionContainer", + "ImpactReductionContainer", + &asn_OP_SEQUENCE, + asn_DEF_ImpactReductionContainer_tags_1, + sizeof(asn_DEF_ImpactReductionContainer_tags_1) + /sizeof(asn_DEF_ImpactReductionContainer_tags_1[0]), /* 1 */ + asn_DEF_ImpactReductionContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_ImpactReductionContainer_tags_1) + /sizeof(asn_DEF_ImpactReductionContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ImpactReductionContainer_1, + 12, /* Elements count */ + &asn_SPC_ImpactReductionContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/ImpactReductionContainer.h b/vanetza/asn1/its2/ImpactReductionContainer.h new file mode 100644 index 000000000..e843c0a1f --- /dev/null +++ b/vanetza/asn1/its2/ImpactReductionContainer.h @@ -0,0 +1,60 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "DENM-PDU-Description" + * found in "asn1/TS103831v211-DENM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ImpactReductionContainer_H_ +#define _ImpactReductionContainer_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "HeightLonCarr.h" +#include "PosLonCarr.h" +#include "PositionOfPillars.h" +#include "PosCentMass.h" +#include "WheelBaseVehicle.h" +#include "TurningRadius.h" +#include "PosFrontAx.h" +#include "PositionOfOccupants.h" +#include "VehicleMass.h" +#include "RequestResponseIndication.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* ImpactReductionContainer */ +typedef struct ImpactReductionContainer { + HeightLonCarr_t heightLonCarrLeft; + HeightLonCarr_t heightLonCarrRight; + PosLonCarr_t posLonCarrLeft; + PosLonCarr_t posLonCarrRight; + PositionOfPillars_t positionOfPillars; + PosCentMass_t posCentMass; + WheelBaseVehicle_t wheelBaseVehicle; + TurningRadius_t turningRadius; + PosFrontAx_t posFrontAx; + PositionOfOccupants_t positionOfOccupants; + VehicleMass_t vehicleMass; + RequestResponseIndication_t requestResponseIndication; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ImpactReductionContainer_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ImpactReductionContainer; +extern asn_SEQUENCE_specifics_t asn_SPC_ImpactReductionContainer_specs_1; +extern asn_TYPE_member_t asn_MBR_ImpactReductionContainer_1[12]; + +#ifdef __cplusplus +} +#endif + +#endif /* _ImpactReductionContainer_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ImpassabilitySubCauseCode.c b/vanetza/asn1/its2/ImpassabilitySubCauseCode.c new file mode 100644 index 000000000..6e5bf0a05 --- /dev/null +++ b/vanetza/asn1/its2/ImpassabilitySubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ImpassabilitySubCauseCode.h" + +int +ImpassabilitySubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_ImpassabilitySubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ImpassabilitySubCauseCode_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_ImpassabilitySubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_ImpassabilitySubCauseCode = { + "ImpassabilitySubCauseCode", + "ImpassabilitySubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_ImpassabilitySubCauseCode_tags_1, + sizeof(asn_DEF_ImpassabilitySubCauseCode_tags_1) + /sizeof(asn_DEF_ImpassabilitySubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_ImpassabilitySubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_ImpassabilitySubCauseCode_tags_1) + /sizeof(asn_DEF_ImpassabilitySubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_ImpassabilitySubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ImpassabilitySubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + ImpassabilitySubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/ImpassabilitySubCauseCode.h b/vanetza/asn1/its2/ImpassabilitySubCauseCode.h new file mode 100644 index 000000000..8c563d35e --- /dev/null +++ b/vanetza/asn1/its2/ImpassabilitySubCauseCode.h @@ -0,0 +1,69 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ImpassabilitySubCauseCode_H_ +#define _ImpassabilitySubCauseCode_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum ImpassabilitySubCauseCode { + ImpassabilitySubCauseCode_unavailable = 0, + ImpassabilitySubCauseCode_flooding = 1, + ImpassabilitySubCauseCode_dangerOfAvalanches = 2, + ImpassabilitySubCauseCode_blastingOfAvalanches = 3, + ImpassabilitySubCauseCode_landslips = 4, + ImpassabilitySubCauseCode_chemicalSpillage = 5, + ImpassabilitySubCauseCode_winterClosure = 6, + ImpassabilitySubCauseCode_sinkhole = 7, + ImpassabilitySubCauseCode_earthquakeDamage = 8, + ImpassabilitySubCauseCode_fallenTrees = 9, + ImpassabilitySubCauseCode_rockfalls = 10, + ImpassabilitySubCauseCode_sewerOverflow = 11, + ImpassabilitySubCauseCode_stormDamage = 12, + ImpassabilitySubCauseCode_subsidence = 13, + ImpassabilitySubCauseCode_burstPipe = 14, + ImpassabilitySubCauseCode_burstWaterMain = 15, + ImpassabilitySubCauseCode_fallenPowerCables = 16, + ImpassabilitySubCauseCode_snowDrifts = 17 +} e_ImpassabilitySubCauseCode; + +/* ImpassabilitySubCauseCode */ +typedef long ImpassabilitySubCauseCode_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_ImpassabilitySubCauseCode_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_ImpassabilitySubCauseCode; +asn_struct_free_f ImpassabilitySubCauseCode_free; +asn_struct_print_f ImpassabilitySubCauseCode_print; +asn_constr_check_f ImpassabilitySubCauseCode_constraint; +ber_type_decoder_f ImpassabilitySubCauseCode_decode_ber; +der_type_encoder_f ImpassabilitySubCauseCode_encode_der; +xer_type_decoder_f ImpassabilitySubCauseCode_decode_xer; +xer_type_encoder_f ImpassabilitySubCauseCode_encode_xer; +jer_type_encoder_f ImpassabilitySubCauseCode_encode_jer; +oer_type_decoder_f ImpassabilitySubCauseCode_decode_oer; +oer_type_encoder_f ImpassabilitySubCauseCode_encode_oer; +per_type_decoder_f ImpassabilitySubCauseCode_decode_uper; +per_type_encoder_f ImpassabilitySubCauseCode_encode_uper; +per_type_decoder_f ImpassabilitySubCauseCode_decode_aper; +per_type_encoder_f ImpassabilitySubCauseCode_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _ImpassabilitySubCauseCode_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/InformationQuality.c b/vanetza/asn1/its2/InformationQuality.c new file mode 100644 index 000000000..63c9163dd --- /dev/null +++ b/vanetza/asn1/its2/InformationQuality.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "InformationQuality.h" + +int +InformationQuality_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_InformationQuality_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..7) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_InformationQuality_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_InformationQuality_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_InformationQuality = { + "InformationQuality", + "InformationQuality", + &asn_OP_NativeInteger, + asn_DEF_InformationQuality_tags_1, + sizeof(asn_DEF_InformationQuality_tags_1) + /sizeof(asn_DEF_InformationQuality_tags_1[0]), /* 1 */ + asn_DEF_InformationQuality_tags_1, /* Same as above */ + sizeof(asn_DEF_InformationQuality_tags_1) + /sizeof(asn_DEF_InformationQuality_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_InformationQuality_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_InformationQuality_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + InformationQuality_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/InformationQuality.h b/vanetza/asn1/its2/InformationQuality.h new file mode 100644 index 000000000..2296ae26e --- /dev/null +++ b/vanetza/asn1/its2/InformationQuality.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _InformationQuality_H_ +#define _InformationQuality_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* InformationQuality */ +typedef long InformationQuality_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_InformationQuality_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_InformationQuality; +asn_struct_free_f InformationQuality_free; +asn_struct_print_f InformationQuality_print; +asn_constr_check_f InformationQuality_constraint; +ber_type_decoder_f InformationQuality_decode_ber; +der_type_encoder_f InformationQuality_encode_der; +xer_type_decoder_f InformationQuality_decode_xer; +xer_type_encoder_f InformationQuality_encode_xer; +jer_type_encoder_f InformationQuality_encode_jer; +oer_type_decoder_f InformationQuality_decode_oer; +oer_type_encoder_f InformationQuality_encode_oer; +per_type_decoder_f InformationQuality_decode_uper; +per_type_encoder_f InformationQuality_encode_uper; +per_type_decoder_f InformationQuality_decode_aper; +per_type_encoder_f InformationQuality_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _InformationQuality_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/InterferenceManagementChannel.c b/vanetza/asn1/its2/InterferenceManagementChannel.c new file mode 100644 index 000000000..ad18bbfff --- /dev/null +++ b/vanetza/asn1/its2/InterferenceManagementChannel.c @@ -0,0 +1,225 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "InterferenceManagementChannel.h" + +static int +memb_centreFrequency_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + 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 <= 99999L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_channelWidth_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 9999L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_exponent_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_centreFrequency_constr_2 CC_NOTUSED = { + { 4, 1 } /* (1..99999) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_centreFrequency_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 17, -1, 1, 99999 } /* (1..99999) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_channelWidth_constr_3 CC_NOTUSED = { + { 2, 1 } /* (0..9999) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_channelWidth_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 0, 9999 } /* (0..9999) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_exponent_constr_4 CC_NOTUSED = { + { 1, 1 } /* (0..15) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_exponent_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_InterferenceManagementChannel_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct InterferenceManagementChannel, centreFrequency), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_centreFrequency_constr_2, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_centreFrequency_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_centreFrequency_constraint_1 + }, + 0, 0, /* No default value */ + "centreFrequency" + }, + { ATF_NOFLAGS, 0, offsetof(struct InterferenceManagementChannel, channelWidth), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_channelWidth_constr_3, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_channelWidth_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_channelWidth_constraint_1 + }, + 0, 0, /* No default value */ + "channelWidth" + }, + { ATF_NOFLAGS, 0, offsetof(struct InterferenceManagementChannel, exponent), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_exponent_constr_4, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_exponent_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_exponent_constraint_1 + }, + 0, 0, /* No default value */ + "exponent" + }, +}; +static const ber_tlv_tag_t asn_DEF_InterferenceManagementChannel_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_InterferenceManagementChannel_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* centreFrequency */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* channelWidth */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* exponent */ +}; +asn_SEQUENCE_specifics_t asn_SPC_InterferenceManagementChannel_specs_1 = { + sizeof(struct InterferenceManagementChannel), + offsetof(struct InterferenceManagementChannel, _asn_ctx), + asn_MAP_InterferenceManagementChannel_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_InterferenceManagementChannel = { + "InterferenceManagementChannel", + "InterferenceManagementChannel", + &asn_OP_SEQUENCE, + asn_DEF_InterferenceManagementChannel_tags_1, + sizeof(asn_DEF_InterferenceManagementChannel_tags_1) + /sizeof(asn_DEF_InterferenceManagementChannel_tags_1[0]), /* 1 */ + asn_DEF_InterferenceManagementChannel_tags_1, /* Same as above */ + sizeof(asn_DEF_InterferenceManagementChannel_tags_1) + /sizeof(asn_DEF_InterferenceManagementChannel_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_InterferenceManagementChannel_1, + 3, /* Elements count */ + &asn_SPC_InterferenceManagementChannel_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/InterferenceManagementChannel.h b/vanetza/asn1/its2/InterferenceManagementChannel.h new file mode 100644 index 000000000..c051c15a1 --- /dev/null +++ b/vanetza/asn1/its2/InterferenceManagementChannel.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _InterferenceManagementChannel_H_ +#define _InterferenceManagementChannel_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* InterferenceManagementChannel */ +typedef struct InterferenceManagementChannel { + long centreFrequency; + long channelWidth; + long exponent; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} InterferenceManagementChannel_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_InterferenceManagementChannel; +extern asn_SEQUENCE_specifics_t asn_SPC_InterferenceManagementChannel_specs_1; +extern asn_TYPE_member_t asn_MBR_InterferenceManagementChannel_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _InterferenceManagementChannel_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/InterferenceManagementInfo.c b/vanetza/asn1/its2/InterferenceManagementInfo.c new file mode 100644 index 000000000..c066438dd --- /dev/null +++ b/vanetza/asn1/its2/InterferenceManagementInfo.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "InterferenceManagementInfo.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_InterferenceManagementInfo_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_InterferenceManagementInfo_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 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_InterferenceManagementInfo_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_InterferenceManagementInfoPerChannel, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_InterferenceManagementInfo_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_InterferenceManagementInfo_specs_1 = { + sizeof(struct InterferenceManagementInfo), + offsetof(struct InterferenceManagementInfo, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_InterferenceManagementInfo = { + "InterferenceManagementInfo", + "InterferenceManagementInfo", + &asn_OP_SEQUENCE_OF, + asn_DEF_InterferenceManagementInfo_tags_1, + sizeof(asn_DEF_InterferenceManagementInfo_tags_1) + /sizeof(asn_DEF_InterferenceManagementInfo_tags_1[0]), /* 1 */ + asn_DEF_InterferenceManagementInfo_tags_1, /* Same as above */ + sizeof(asn_DEF_InterferenceManagementInfo_tags_1) + /sizeof(asn_DEF_InterferenceManagementInfo_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_InterferenceManagementInfo_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_InterferenceManagementInfo_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_InterferenceManagementInfo_1, + 1, /* Single element */ + &asn_SPC_InterferenceManagementInfo_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/InterferenceManagementInfo.h b/vanetza/asn1/its2/InterferenceManagementInfo.h new file mode 100644 index 000000000..95ba20d2a --- /dev/null +++ b/vanetza/asn1/its2/InterferenceManagementInfo.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _InterferenceManagementInfo_H_ +#define _InterferenceManagementInfo_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct InterferenceManagementInfoPerChannel; + +/* InterferenceManagementInfo */ +typedef struct InterferenceManagementInfo { + A_SEQUENCE_OF(struct InterferenceManagementInfoPerChannel) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} InterferenceManagementInfo_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_InterferenceManagementInfo; +extern asn_SET_OF_specifics_t asn_SPC_InterferenceManagementInfo_specs_1; +extern asn_TYPE_member_t asn_MBR_InterferenceManagementInfo_1[1]; +extern asn_per_constraints_t asn_PER_type_InterferenceManagementInfo_constr_1; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "InterferenceManagementInfoPerChannel.h" + +#endif /* _InterferenceManagementInfo_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/InterferenceManagementInfoPerChannel.c b/vanetza/asn1/its2/InterferenceManagementInfoPerChannel.c new file mode 100644 index 000000000..30c2b3d42 --- /dev/null +++ b/vanetza/asn1/its2/InterferenceManagementInfoPerChannel.c @@ -0,0 +1,137 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "InterferenceManagementInfoPerChannel.h" + +asn_TYPE_member_t asn_MBR_InterferenceManagementInfoPerChannel_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct InterferenceManagementInfoPerChannel, interferenceManagementChannel), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_InterferenceManagementChannel, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "interferenceManagementChannel" + }, + { ATF_NOFLAGS, 0, offsetof(struct InterferenceManagementInfoPerChannel, interferenceManagementZoneType), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_InterferenceManagementZoneType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "interferenceManagementZoneType" + }, + { ATF_POINTER, 2, offsetof(struct InterferenceManagementInfoPerChannel, interferenceManagementMitigationType), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MitigationForTechnologies, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "interferenceManagementMitigationType" + }, + { ATF_POINTER, 1, offsetof(struct InterferenceManagementInfoPerChannel, expiryTime), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TimestampIts, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "expiryTime" + }, +}; +static const int asn_MAP_InterferenceManagementInfoPerChannel_oms_1[] = { 2, 3 }; +static const ber_tlv_tag_t asn_DEF_InterferenceManagementInfoPerChannel_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_InterferenceManagementInfoPerChannel_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* interferenceManagementChannel */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* interferenceManagementZoneType */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* interferenceManagementMitigationType */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* expiryTime */ +}; +asn_SEQUENCE_specifics_t asn_SPC_InterferenceManagementInfoPerChannel_specs_1 = { + sizeof(struct InterferenceManagementInfoPerChannel), + offsetof(struct InterferenceManagementInfoPerChannel, _asn_ctx), + asn_MAP_InterferenceManagementInfoPerChannel_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_InterferenceManagementInfoPerChannel_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_InterferenceManagementInfoPerChannel = { + "InterferenceManagementInfoPerChannel", + "InterferenceManagementInfoPerChannel", + &asn_OP_SEQUENCE, + asn_DEF_InterferenceManagementInfoPerChannel_tags_1, + sizeof(asn_DEF_InterferenceManagementInfoPerChannel_tags_1) + /sizeof(asn_DEF_InterferenceManagementInfoPerChannel_tags_1[0]), /* 1 */ + asn_DEF_InterferenceManagementInfoPerChannel_tags_1, /* Same as above */ + sizeof(asn_DEF_InterferenceManagementInfoPerChannel_tags_1) + /sizeof(asn_DEF_InterferenceManagementInfoPerChannel_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_InterferenceManagementInfoPerChannel_1, + 4, /* Elements count */ + &asn_SPC_InterferenceManagementInfoPerChannel_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/InterferenceManagementInfoPerChannel.h b/vanetza/asn1/its2/InterferenceManagementInfoPerChannel.h new file mode 100644 index 000000000..c2b00c532 --- /dev/null +++ b/vanetza/asn1/its2/InterferenceManagementInfoPerChannel.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _InterferenceManagementInfoPerChannel_H_ +#define _InterferenceManagementInfoPerChannel_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "InterferenceManagementChannel.h" +#include "InterferenceManagementZoneType.h" +#include "TimestampIts.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct MitigationForTechnologies; + +/* InterferenceManagementInfoPerChannel */ +typedef struct InterferenceManagementInfoPerChannel { + InterferenceManagementChannel_t interferenceManagementChannel; + InterferenceManagementZoneType_t interferenceManagementZoneType; + struct MitigationForTechnologies *interferenceManagementMitigationType; /* OPTIONAL */ + TimestampIts_t *expiryTime; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} InterferenceManagementInfoPerChannel_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_InterferenceManagementInfoPerChannel; +extern asn_SEQUENCE_specifics_t asn_SPC_InterferenceManagementInfoPerChannel_specs_1; +extern asn_TYPE_member_t asn_MBR_InterferenceManagementInfoPerChannel_1[4]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "MitigationForTechnologies.h" + +#endif /* _InterferenceManagementInfoPerChannel_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/InterferenceManagementZone.c b/vanetza/asn1/its2/InterferenceManagementZone.c new file mode 100644 index 000000000..5f8924591 --- /dev/null +++ b/vanetza/asn1/its2/InterferenceManagementZone.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "InterferenceManagementZone.h" + +asn_TYPE_member_t asn_MBR_InterferenceManagementZone_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct InterferenceManagementZone, zoneDefinition), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_InterferenceManagementZoneDefinition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "zoneDefinition" + }, + { ATF_NOFLAGS, 0, offsetof(struct InterferenceManagementZone, managementInfo), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_InterferenceManagementInfo, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "managementInfo" + }, +}; +static const ber_tlv_tag_t asn_DEF_InterferenceManagementZone_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_InterferenceManagementZone_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* zoneDefinition */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* managementInfo */ +}; +asn_SEQUENCE_specifics_t asn_SPC_InterferenceManagementZone_specs_1 = { + sizeof(struct InterferenceManagementZone), + offsetof(struct InterferenceManagementZone, _asn_ctx), + asn_MAP_InterferenceManagementZone_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_InterferenceManagementZone = { + "InterferenceManagementZone", + "InterferenceManagementZone", + &asn_OP_SEQUENCE, + asn_DEF_InterferenceManagementZone_tags_1, + sizeof(asn_DEF_InterferenceManagementZone_tags_1) + /sizeof(asn_DEF_InterferenceManagementZone_tags_1[0]), /* 1 */ + asn_DEF_InterferenceManagementZone_tags_1, /* Same as above */ + sizeof(asn_DEF_InterferenceManagementZone_tags_1) + /sizeof(asn_DEF_InterferenceManagementZone_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_InterferenceManagementZone_1, + 2, /* Elements count */ + &asn_SPC_InterferenceManagementZone_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/InterferenceManagementZone.h b/vanetza/asn1/its2/InterferenceManagementZone.h new file mode 100644 index 000000000..3d23f9b09 --- /dev/null +++ b/vanetza/asn1/its2/InterferenceManagementZone.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _InterferenceManagementZone_H_ +#define _InterferenceManagementZone_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "InterferenceManagementZoneDefinition.h" +#include "InterferenceManagementInfo.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* InterferenceManagementZone */ +typedef struct InterferenceManagementZone { + InterferenceManagementZoneDefinition_t zoneDefinition; + InterferenceManagementInfo_t managementInfo; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} InterferenceManagementZone_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_InterferenceManagementZone; +extern asn_SEQUENCE_specifics_t asn_SPC_InterferenceManagementZone_specs_1; +extern asn_TYPE_member_t asn_MBR_InterferenceManagementZone_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _InterferenceManagementZone_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/InterferenceManagementZoneDefinition.c b/vanetza/asn1/its2/InterferenceManagementZoneDefinition.c new file mode 100644 index 000000000..d66273ff8 --- /dev/null +++ b/vanetza/asn1/its2/InterferenceManagementZoneDefinition.c @@ -0,0 +1,168 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "InterferenceManagementZoneDefinition.h" + +static int +memb_interferenceManagementZoneShape_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; + } + + + if(1 /* No applicable constraints whatsoever */) { + /* Nothing is here. See below */ + } + + return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); +} + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_interferenceManagementZoneShape_constr_5 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_interferenceManagementZoneShape_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) */ +asn_TYPE_member_t asn_MBR_InterferenceManagementZoneDefinition_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct InterferenceManagementZoneDefinition, interferenceManagementZoneLatitude), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Latitude, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "interferenceManagementZoneLatitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct InterferenceManagementZoneDefinition, interferenceManagementZoneLongitude), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Longitude, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "interferenceManagementZoneLongitude" + }, + { ATF_POINTER, 2, offsetof(struct InterferenceManagementZoneDefinition, interferenceManagementZoneId), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ProtectedZoneId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "interferenceManagementZoneId" + }, + { ATF_POINTER, 1, offsetof(struct InterferenceManagementZoneDefinition, interferenceManagementZoneShape), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_Shape, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_interferenceManagementZoneShape_constr_5, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_interferenceManagementZoneShape_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_interferenceManagementZoneShape_constraint_1 + }, + 0, 0, /* No default value */ + "interferenceManagementZoneShape" + }, +}; +static const int asn_MAP_InterferenceManagementZoneDefinition_oms_1[] = { 2, 3 }; +static const ber_tlv_tag_t asn_DEF_InterferenceManagementZoneDefinition_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_InterferenceManagementZoneDefinition_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* interferenceManagementZoneLatitude */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* interferenceManagementZoneLongitude */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* interferenceManagementZoneId */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* interferenceManagementZoneShape */ +}; +asn_SEQUENCE_specifics_t asn_SPC_InterferenceManagementZoneDefinition_specs_1 = { + sizeof(struct InterferenceManagementZoneDefinition), + offsetof(struct InterferenceManagementZoneDefinition, _asn_ctx), + asn_MAP_InterferenceManagementZoneDefinition_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_InterferenceManagementZoneDefinition_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_InterferenceManagementZoneDefinition = { + "InterferenceManagementZoneDefinition", + "InterferenceManagementZoneDefinition", + &asn_OP_SEQUENCE, + asn_DEF_InterferenceManagementZoneDefinition_tags_1, + sizeof(asn_DEF_InterferenceManagementZoneDefinition_tags_1) + /sizeof(asn_DEF_InterferenceManagementZoneDefinition_tags_1[0]), /* 1 */ + asn_DEF_InterferenceManagementZoneDefinition_tags_1, /* Same as above */ + sizeof(asn_DEF_InterferenceManagementZoneDefinition_tags_1) + /sizeof(asn_DEF_InterferenceManagementZoneDefinition_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_InterferenceManagementZoneDefinition_1, + 4, /* Elements count */ + &asn_SPC_InterferenceManagementZoneDefinition_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/InterferenceManagementZoneDefinition.h b/vanetza/asn1/its2/InterferenceManagementZoneDefinition.h new file mode 100644 index 000000000..51161190f --- /dev/null +++ b/vanetza/asn1/its2/InterferenceManagementZoneDefinition.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _InterferenceManagementZoneDefinition_H_ +#define _InterferenceManagementZoneDefinition_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "Latitude.h" +#include "Longitude.h" +#include "ProtectedZoneId.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct Shape; + +/* InterferenceManagementZoneDefinition */ +typedef struct InterferenceManagementZoneDefinition { + Latitude_t interferenceManagementZoneLatitude; + Longitude_t interferenceManagementZoneLongitude; + ProtectedZoneId_t *interferenceManagementZoneId; /* OPTIONAL */ + struct Shape *interferenceManagementZoneShape; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} InterferenceManagementZoneDefinition_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_InterferenceManagementZoneDefinition; +extern asn_SEQUENCE_specifics_t asn_SPC_InterferenceManagementZoneDefinition_specs_1; +extern asn_TYPE_member_t asn_MBR_InterferenceManagementZoneDefinition_1[4]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "Shape.h" + +#endif /* _InterferenceManagementZoneDefinition_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/InterferenceManagementZoneType.c b/vanetza/asn1/its2/InterferenceManagementZoneType.c new file mode 100644 index 000000000..7eed9a520 --- /dev/null +++ b/vanetza/asn1/its2/InterferenceManagementZoneType.c @@ -0,0 +1,81 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "InterferenceManagementZoneType.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_InterferenceManagementZoneType_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_InterferenceManagementZoneType_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) */ +static const asn_INTEGER_enum_map_t asn_MAP_InterferenceManagementZoneType_value2enum_1[] = { + { 0, 23, "permanentCenDsrcTolling" }, + { 1, 23, "temporaryCenDsrcTolling" }, + { 2, 11, "unavailable" }, + { 3, 9, "urbanRail" }, + { 4, 16, "satelliteStation" }, + { 5, 10, "fixedLinks" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_InterferenceManagementZoneType_enum2value_1[] = { + 5, /* fixedLinks(5) */ + 0, /* permanentCenDsrcTolling(0) */ + 4, /* satelliteStation(4) */ + 1, /* temporaryCenDsrcTolling(1) */ + 2, /* unavailable(2) */ + 3 /* urbanRail(3) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_InterferenceManagementZoneType_specs_1 = { + asn_MAP_InterferenceManagementZoneType_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_InterferenceManagementZoneType_enum2value_1, /* 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_InterferenceManagementZoneType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_InterferenceManagementZoneType = { + "InterferenceManagementZoneType", + "InterferenceManagementZoneType", + &asn_OP_NativeEnumerated, + asn_DEF_InterferenceManagementZoneType_tags_1, + sizeof(asn_DEF_InterferenceManagementZoneType_tags_1) + /sizeof(asn_DEF_InterferenceManagementZoneType_tags_1[0]), /* 1 */ + asn_DEF_InterferenceManagementZoneType_tags_1, /* Same as above */ + sizeof(asn_DEF_InterferenceManagementZoneType_tags_1) + /sizeof(asn_DEF_InterferenceManagementZoneType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_InterferenceManagementZoneType_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_InterferenceManagementZoneType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_InterferenceManagementZoneType_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/InterferenceManagementZoneType.h b/vanetza/asn1/its2/InterferenceManagementZoneType.h new file mode 100644 index 000000000..90bb51c3f --- /dev/null +++ b/vanetza/asn1/its2/InterferenceManagementZoneType.h @@ -0,0 +1,61 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _InterferenceManagementZoneType_H_ +#define _InterferenceManagementZoneType_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum InterferenceManagementZoneType { + InterferenceManagementZoneType_permanentCenDsrcTolling = 0, + InterferenceManagementZoneType_temporaryCenDsrcTolling = 1, + InterferenceManagementZoneType_unavailable = 2, + InterferenceManagementZoneType_urbanRail = 3, + InterferenceManagementZoneType_satelliteStation = 4, + InterferenceManagementZoneType_fixedLinks = 5 + /* + * Enumeration is extensible + */ +} e_InterferenceManagementZoneType; + +/* InterferenceManagementZoneType */ +typedef long InterferenceManagementZoneType_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_InterferenceManagementZoneType_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_InterferenceManagementZoneType; +extern const asn_INTEGER_specifics_t asn_SPC_InterferenceManagementZoneType_specs_1; +asn_struct_free_f InterferenceManagementZoneType_free; +asn_struct_print_f InterferenceManagementZoneType_print; +asn_constr_check_f InterferenceManagementZoneType_constraint; +ber_type_decoder_f InterferenceManagementZoneType_decode_ber; +der_type_encoder_f InterferenceManagementZoneType_encode_der; +xer_type_decoder_f InterferenceManagementZoneType_decode_xer; +xer_type_encoder_f InterferenceManagementZoneType_encode_xer; +jer_type_encoder_f InterferenceManagementZoneType_encode_jer; +oer_type_decoder_f InterferenceManagementZoneType_decode_oer; +oer_type_encoder_f InterferenceManagementZoneType_encode_oer; +per_type_decoder_f InterferenceManagementZoneType_decode_uper; +per_type_encoder_f InterferenceManagementZoneType_encode_uper; +per_type_decoder_f InterferenceManagementZoneType_decode_aper; +per_type_encoder_f InterferenceManagementZoneType_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _InterferenceManagementZoneType_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/InterferenceManagementZones.c b/vanetza/asn1/its2/InterferenceManagementZones.c new file mode 100644 index 000000000..b9300e644 --- /dev/null +++ b/vanetza/asn1/its2/InterferenceManagementZones.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "InterferenceManagementZones.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_InterferenceManagementZones_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_InterferenceManagementZones_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 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_InterferenceManagementZones_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_InterferenceManagementZone, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_InterferenceManagementZones_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_InterferenceManagementZones_specs_1 = { + sizeof(struct InterferenceManagementZones), + offsetof(struct InterferenceManagementZones, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_InterferenceManagementZones = { + "InterferenceManagementZones", + "InterferenceManagementZones", + &asn_OP_SEQUENCE_OF, + asn_DEF_InterferenceManagementZones_tags_1, + sizeof(asn_DEF_InterferenceManagementZones_tags_1) + /sizeof(asn_DEF_InterferenceManagementZones_tags_1[0]), /* 1 */ + asn_DEF_InterferenceManagementZones_tags_1, /* Same as above */ + sizeof(asn_DEF_InterferenceManagementZones_tags_1) + /sizeof(asn_DEF_InterferenceManagementZones_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_InterferenceManagementZones_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_InterferenceManagementZones_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_InterferenceManagementZones_1, + 1, /* Single element */ + &asn_SPC_InterferenceManagementZones_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/InterferenceManagementZones.h b/vanetza/asn1/its2/InterferenceManagementZones.h new file mode 100644 index 000000000..c0798e9aa --- /dev/null +++ b/vanetza/asn1/its2/InterferenceManagementZones.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _InterferenceManagementZones_H_ +#define _InterferenceManagementZones_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct InterferenceManagementZone; + +/* InterferenceManagementZones */ +typedef struct InterferenceManagementZones { + A_SEQUENCE_OF(struct InterferenceManagementZone) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} InterferenceManagementZones_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_InterferenceManagementZones; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "InterferenceManagementZone.h" + +#endif /* _InterferenceManagementZones_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/IntersectionReferenceId.c b/vanetza/asn1/its2/IntersectionReferenceId.c new file mode 100644 index 000000000..a476171d1 --- /dev/null +++ b/vanetza/asn1/its2/IntersectionReferenceId.c @@ -0,0 +1,95 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "IntersectionReferenceId.h" + +asn_TYPE_member_t asn_MBR_IntersectionReferenceId_1[] = { + { ATF_POINTER, 1, offsetof(struct IntersectionReferenceId, region), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Identifier2B, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "region" + }, + { ATF_NOFLAGS, 0, offsetof(struct IntersectionReferenceId, id), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Identifier2B, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "id" + }, +}; +static const int asn_MAP_IntersectionReferenceId_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_IntersectionReferenceId_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_IntersectionReferenceId_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* region */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* id */ +}; +asn_SEQUENCE_specifics_t asn_SPC_IntersectionReferenceId_specs_1 = { + sizeof(struct IntersectionReferenceId), + offsetof(struct IntersectionReferenceId, _asn_ctx), + asn_MAP_IntersectionReferenceId_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_IntersectionReferenceId_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_IntersectionReferenceId = { + "IntersectionReferenceId", + "IntersectionReferenceId", + &asn_OP_SEQUENCE, + asn_DEF_IntersectionReferenceId_tags_1, + sizeof(asn_DEF_IntersectionReferenceId_tags_1) + /sizeof(asn_DEF_IntersectionReferenceId_tags_1[0]), /* 1 */ + asn_DEF_IntersectionReferenceId_tags_1, /* Same as above */ + sizeof(asn_DEF_IntersectionReferenceId_tags_1) + /sizeof(asn_DEF_IntersectionReferenceId_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_IntersectionReferenceId_1, + 2, /* Elements count */ + &asn_SPC_IntersectionReferenceId_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/IntersectionReferenceId.h b/vanetza/asn1/its2/IntersectionReferenceId.h new file mode 100644 index 000000000..fef5017a1 --- /dev/null +++ b/vanetza/asn1/its2/IntersectionReferenceId.h @@ -0,0 +1,41 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _IntersectionReferenceId_H_ +#define _IntersectionReferenceId_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "Identifier2B.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* IntersectionReferenceId */ +typedef struct IntersectionReferenceId { + Identifier2B_t *region; /* OPTIONAL */ + Identifier2B_t id; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} IntersectionReferenceId_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_IntersectionReferenceId; +extern asn_SEQUENCE_specifics_t asn_SPC_IntersectionReferenceId_specs_1; +extern asn_TYPE_member_t asn_MBR_IntersectionReferenceId_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _IntersectionReferenceId_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/Iso3833VehicleType.c b/vanetza/asn1/its2/Iso3833VehicleType.c new file mode 100644 index 000000000..b3628b3d2 --- /dev/null +++ b/vanetza/asn1/its2/Iso3833VehicleType.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Iso3833VehicleType.h" + +int +Iso3833VehicleType_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_Iso3833VehicleType_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_Iso3833VehicleType_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_Iso3833VehicleType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_Iso3833VehicleType = { + "Iso3833VehicleType", + "Iso3833VehicleType", + &asn_OP_NativeInteger, + asn_DEF_Iso3833VehicleType_tags_1, + sizeof(asn_DEF_Iso3833VehicleType_tags_1) + /sizeof(asn_DEF_Iso3833VehicleType_tags_1[0]), /* 1 */ + asn_DEF_Iso3833VehicleType_tags_1, /* Same as above */ + sizeof(asn_DEF_Iso3833VehicleType_tags_1) + /sizeof(asn_DEF_Iso3833VehicleType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_Iso3833VehicleType_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Iso3833VehicleType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + Iso3833VehicleType_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/Iso3833VehicleType.h b/vanetza/asn1/its2/Iso3833VehicleType.h new file mode 100644 index 000000000..1e334f68e --- /dev/null +++ b/vanetza/asn1/its2/Iso3833VehicleType.h @@ -0,0 +1,91 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _Iso3833VehicleType_H_ +#define _Iso3833VehicleType_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum Iso3833VehicleType { + Iso3833VehicleType_passengerCar = 0, + Iso3833VehicleType_saloon = 1, + Iso3833VehicleType_convertibleSaloon = 2, + Iso3833VehicleType_pullmanSaloon = 3, + Iso3833VehicleType_stationWagon = 4, + Iso3833VehicleType_truckStationWagon = 5, + Iso3833VehicleType_coupe = 6, + Iso3833VehicleType_convertible = 7, + Iso3833VehicleType_multipurposePassengerCar = 8, + Iso3833VehicleType_forwardControlPassengerCar = 9, + Iso3833VehicleType_specialPassengerCar = 10, + Iso3833VehicleType_bus = 11, + Iso3833VehicleType_minibus = 12, + Iso3833VehicleType_urbanBus = 13, + Iso3833VehicleType_interurbanCoach = 14, + Iso3833VehicleType_longDistanceCoach = 15, + Iso3833VehicleType_articulatedBus = 16, + Iso3833VehicleType_trolleyBus = 17, + Iso3833VehicleType_specialBus = 18, + Iso3833VehicleType_commercialVehicle = 19, + Iso3833VehicleType_specialCommercialVehicle = 20, + Iso3833VehicleType_specialVehicle = 21, + Iso3833VehicleType_trailingTowingVehicle = 22, + Iso3833VehicleType_semiTrailerTowingVehicle = 23, + Iso3833VehicleType_trailer = 24, + Iso3833VehicleType_busTrailer = 25, + Iso3833VehicleType_generalPurposeTrailer = 26, + Iso3833VehicleType_caravan = 27, + Iso3833VehicleType_specialTrailer = 28, + Iso3833VehicleType_semiTrailer = 29, + Iso3833VehicleType_busSemiTrailer = 30, + Iso3833VehicleType_generalPurposeSemiTrailer = 31, + Iso3833VehicleType_specialSemiTrailer = 32, + Iso3833VehicleType_roadTrain = 33, + Iso3833VehicleType_passengerRoadTrain = 34, + Iso3833VehicleType_articulatedRoadTrain = 35, + Iso3833VehicleType_doubleRoadTrain = 36, + Iso3833VehicleType_compositeRoadTrain = 37, + Iso3833VehicleType_specialRoadTrain = 38, + Iso3833VehicleType_moped = 39, + Iso3833VehicleType_motorCycle = 40 +} e_Iso3833VehicleType; + +/* Iso3833VehicleType */ +typedef long Iso3833VehicleType_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Iso3833VehicleType; +asn_struct_free_f Iso3833VehicleType_free; +asn_struct_print_f Iso3833VehicleType_print; +asn_constr_check_f Iso3833VehicleType_constraint; +ber_type_decoder_f Iso3833VehicleType_decode_ber; +der_type_encoder_f Iso3833VehicleType_encode_der; +xer_type_decoder_f Iso3833VehicleType_decode_xer; +xer_type_encoder_f Iso3833VehicleType_encode_xer; +jer_type_encoder_f Iso3833VehicleType_encode_jer; +oer_type_decoder_f Iso3833VehicleType_decode_oer; +oer_type_encoder_f Iso3833VehicleType_encode_oer; +per_type_decoder_f Iso3833VehicleType_decode_uper; +per_type_encoder_f Iso3833VehicleType_encode_uper; +per_type_decoder_f Iso3833VehicleType_decode_aper; +per_type_encoder_f Iso3833VehicleType_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _Iso3833VehicleType_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/IssuerIdentifier.c b/vanetza/asn1/its2/IssuerIdentifier.c new file mode 100644 index 000000000..52ebfd7de --- /dev/null +++ b/vanetza/asn1/its2/IssuerIdentifier.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "IssuerIdentifier.h" + +int +IssuerIdentifier_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_IssuerIdentifier_constr_1 CC_NOTUSED = { + { 2, 1 } /* (0..16383) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_IssuerIdentifier_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_IssuerIdentifier_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_IssuerIdentifier = { + "IssuerIdentifier", + "IssuerIdentifier", + &asn_OP_NativeInteger, + asn_DEF_IssuerIdentifier_tags_1, + sizeof(asn_DEF_IssuerIdentifier_tags_1) + /sizeof(asn_DEF_IssuerIdentifier_tags_1[0]), /* 1 */ + asn_DEF_IssuerIdentifier_tags_1, /* Same as above */ + sizeof(asn_DEF_IssuerIdentifier_tags_1) + /sizeof(asn_DEF_IssuerIdentifier_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_IssuerIdentifier_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_IssuerIdentifier_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + IssuerIdentifier_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/IssuerIdentifier.h b/vanetza/asn1/its2/IssuerIdentifier.h new file mode 100644 index 000000000..07340b54d --- /dev/null +++ b/vanetza/asn1/its2/IssuerIdentifier.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _IssuerIdentifier_H_ +#define _IssuerIdentifier_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* IssuerIdentifier */ +typedef long IssuerIdentifier_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_IssuerIdentifier_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_IssuerIdentifier; +asn_struct_free_f IssuerIdentifier_free; +asn_struct_print_f IssuerIdentifier_print; +asn_constr_check_f IssuerIdentifier_constraint; +ber_type_decoder_f IssuerIdentifier_decode_ber; +der_type_encoder_f IssuerIdentifier_encode_der; +xer_type_decoder_f IssuerIdentifier_decode_xer; +xer_type_encoder_f IssuerIdentifier_encode_xer; +jer_type_encoder_f IssuerIdentifier_encode_jer; +oer_type_decoder_f IssuerIdentifier_decode_oer; +oer_type_encoder_f IssuerIdentifier_encode_oer; +per_type_decoder_f IssuerIdentifier_decode_uper; +per_type_encoder_f IssuerIdentifier_encode_uper; +per_type_decoder_f IssuerIdentifier_decode_aper; +per_type_encoder_f IssuerIdentifier_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _IssuerIdentifier_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ItineraryPath.c b/vanetza/asn1/its2/ItineraryPath.c new file mode 100644 index 000000000..625110ff2 --- /dev/null +++ b/vanetza/asn1/its2/ItineraryPath.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ItineraryPath.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_ItineraryPath_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..40)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ItineraryPath_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 1, 40 } /* (SIZE(1..40)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_ItineraryPath_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_ReferencePosition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_ItineraryPath_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_ItineraryPath_specs_1 = { + sizeof(struct ItineraryPath), + offsetof(struct ItineraryPath, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_ItineraryPath = { + "ItineraryPath", + "ItineraryPath", + &asn_OP_SEQUENCE_OF, + asn_DEF_ItineraryPath_tags_1, + sizeof(asn_DEF_ItineraryPath_tags_1) + /sizeof(asn_DEF_ItineraryPath_tags_1[0]), /* 1 */ + asn_DEF_ItineraryPath_tags_1, /* Same as above */ + sizeof(asn_DEF_ItineraryPath_tags_1) + /sizeof(asn_DEF_ItineraryPath_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_ItineraryPath_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ItineraryPath_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_ItineraryPath_1, + 1, /* Single element */ + &asn_SPC_ItineraryPath_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/ItineraryPath.h b/vanetza/asn1/its2/ItineraryPath.h new file mode 100644 index 000000000..b50c02c22 --- /dev/null +++ b/vanetza/asn1/its2/ItineraryPath.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ItineraryPath_H_ +#define _ItineraryPath_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct ReferencePosition; + +/* ItineraryPath */ +typedef struct ItineraryPath { + A_SEQUENCE_OF(struct ReferencePosition) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ItineraryPath_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ItineraryPath; +extern asn_SET_OF_specifics_t asn_SPC_ItineraryPath_specs_1; +extern asn_TYPE_member_t asn_MBR_ItineraryPath_1[1]; +extern asn_per_constraints_t asn_PER_type_ItineraryPath_constr_1; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "ReferencePosition.h" + +#endif /* _ItineraryPath_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ItsPduHeader.c b/vanetza/asn1/its2/ItsPduHeader.c new file mode 100644 index 000000000..f0dd33884 --- /dev/null +++ b/vanetza/asn1/its2/ItsPduHeader.c @@ -0,0 +1,114 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ItsPduHeader.h" + +asn_TYPE_member_t asn_MBR_ItsPduHeader_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ItsPduHeader, protocolVersion), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OrdinalNumber1B, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "protocolVersion" + }, + { ATF_NOFLAGS, 0, offsetof(struct ItsPduHeader, messageId), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MessageId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "messageId" + }, + { ATF_NOFLAGS, 0, offsetof(struct ItsPduHeader, stationId), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StationId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "stationId" + }, +}; +static const ber_tlv_tag_t asn_DEF_ItsPduHeader_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ItsPduHeader_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* protocolVersion */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* messageId */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* stationId */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ItsPduHeader_specs_1 = { + sizeof(struct ItsPduHeader), + offsetof(struct ItsPduHeader, _asn_ctx), + asn_MAP_ItsPduHeader_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_ItsPduHeader = { + "ItsPduHeader", + "ItsPduHeader", + &asn_OP_SEQUENCE, + asn_DEF_ItsPduHeader_tags_1, + sizeof(asn_DEF_ItsPduHeader_tags_1) + /sizeof(asn_DEF_ItsPduHeader_tags_1[0]), /* 1 */ + asn_DEF_ItsPduHeader_tags_1, /* Same as above */ + sizeof(asn_DEF_ItsPduHeader_tags_1) + /sizeof(asn_DEF_ItsPduHeader_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ItsPduHeader_1, + 3, /* Elements count */ + &asn_SPC_ItsPduHeader_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/ItsPduHeader.h b/vanetza/asn1/its2/ItsPduHeader.h new file mode 100644 index 000000000..570628040 --- /dev/null +++ b/vanetza/asn1/its2/ItsPduHeader.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ItsPduHeader_H_ +#define _ItsPduHeader_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "OrdinalNumber1B.h" +#include "MessageId.h" +#include "StationId.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* ItsPduHeader */ +typedef struct ItsPduHeader { + OrdinalNumber1B_t protocolVersion; + MessageId_t messageId; + StationId_t stationId; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ItsPduHeader_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ItsPduHeader; +extern asn_SEQUENCE_specifics_t asn_SPC_ItsPduHeader_specs_1; +extern asn_TYPE_member_t asn_MBR_ItsPduHeader_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _ItsPduHeader_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ItsPduHeaderVam.c b/vanetza/asn1/its2/ItsPduHeaderVam.c new file mode 100644 index 000000000..c9f49a9a4 --- /dev/null +++ b/vanetza/asn1/its2/ItsPduHeaderVam.c @@ -0,0 +1,74 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "VAM-PDU-Descriptions" + * found in "asn1/TS103300-3v221-VAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ItsPduHeaderVam.h" + +int +ItsPduHeaderVam_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; + } + + + if(1 /* No applicable constraints whatsoever */) { + /* Nothing is here. See below */ + } + + return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); +} + +/* + * This type is implemented using ItsPduHeader, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_ItsPduHeaderVam_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ItsPduHeaderVam_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 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 ber_tlv_tag_t asn_DEF_ItsPduHeaderVam_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_ItsPduHeaderVam = { + "ItsPduHeaderVam", + "ItsPduHeaderVam", + &asn_OP_SEQUENCE, + asn_DEF_ItsPduHeaderVam_tags_1, + sizeof(asn_DEF_ItsPduHeaderVam_tags_1) + /sizeof(asn_DEF_ItsPduHeaderVam_tags_1[0]), /* 1 */ + asn_DEF_ItsPduHeaderVam_tags_1, /* Same as above */ + sizeof(asn_DEF_ItsPduHeaderVam_tags_1) + /sizeof(asn_DEF_ItsPduHeaderVam_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_ItsPduHeaderVam_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ItsPduHeaderVam_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + ItsPduHeaderVam_constraint + }, + asn_MBR_ItsPduHeader_1, + 3, /* Elements count */ + &asn_SPC_ItsPduHeader_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/ItsPduHeaderVam.h b/vanetza/asn1/its2/ItsPduHeaderVam.h new file mode 100644 index 000000000..ab54d4a60 --- /dev/null +++ b/vanetza/asn1/its2/ItsPduHeaderVam.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "VAM-PDU-Descriptions" + * found in "asn1/TS103300-3v221-VAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ItsPduHeaderVam_H_ +#define _ItsPduHeaderVam_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "ItsPduHeader.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* ItsPduHeaderVam */ +typedef ItsPduHeader_t ItsPduHeaderVam_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_ItsPduHeaderVam_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_ItsPduHeaderVam; +asn_struct_free_f ItsPduHeaderVam_free; +asn_struct_print_f ItsPduHeaderVam_print; +asn_constr_check_f ItsPduHeaderVam_constraint; +ber_type_decoder_f ItsPduHeaderVam_decode_ber; +der_type_encoder_f ItsPduHeaderVam_encode_der; +xer_type_decoder_f ItsPduHeaderVam_decode_xer; +xer_type_encoder_f ItsPduHeaderVam_encode_xer; +jer_type_encoder_f ItsPduHeaderVam_encode_jer; +oer_type_decoder_f ItsPduHeaderVam_decode_oer; +oer_type_encoder_f ItsPduHeaderVam_encode_oer; +per_type_decoder_f ItsPduHeaderVam_decode_uper; +per_type_encoder_f ItsPduHeaderVam_encode_uper; +per_type_decoder_f ItsPduHeaderVam_decode_aper; +per_type_encoder_f ItsPduHeaderVam_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _ItsPduHeaderVam_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/IviIdentificationNumber.c b/vanetza/asn1/its2/IviIdentificationNumber.c new file mode 100644 index 000000000..4074d92b7 --- /dev/null +++ b/vanetza/asn1/its2/IviIdentificationNumber.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "IviIdentificationNumber.h" + +int +IviIdentificationNumber_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 <= 32767L) || (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; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_IviIdentificationNumber_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_IviIdentificationNumber_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 23, -1, 1, 8388607 } /* (1..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 ber_tlv_tag_t asn_DEF_IviIdentificationNumber_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_IviIdentificationNumber = { + "IviIdentificationNumber", + "IviIdentificationNumber", + &asn_OP_NativeInteger, + asn_DEF_IviIdentificationNumber_tags_1, + sizeof(asn_DEF_IviIdentificationNumber_tags_1) + /sizeof(asn_DEF_IviIdentificationNumber_tags_1[0]), /* 1 */ + asn_DEF_IviIdentificationNumber_tags_1, /* Same as above */ + sizeof(asn_DEF_IviIdentificationNumber_tags_1) + /sizeof(asn_DEF_IviIdentificationNumber_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_IviIdentificationNumber_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_IviIdentificationNumber_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + IviIdentificationNumber_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/IviIdentificationNumber.h b/vanetza/asn1/its2/IviIdentificationNumber.h new file mode 100644 index 000000000..dac6f0a83 --- /dev/null +++ b/vanetza/asn1/its2/IviIdentificationNumber.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _IviIdentificationNumber_H_ +#define _IviIdentificationNumber_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* IviIdentificationNumber */ +typedef long IviIdentificationNumber_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_IviIdentificationNumber_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_IviIdentificationNumber; +asn_struct_free_f IviIdentificationNumber_free; +asn_struct_print_f IviIdentificationNumber_print; +asn_constr_check_f IviIdentificationNumber_constraint; +ber_type_decoder_f IviIdentificationNumber_decode_ber; +der_type_encoder_f IviIdentificationNumber_encode_der; +xer_type_decoder_f IviIdentificationNumber_decode_xer; +xer_type_encoder_f IviIdentificationNumber_encode_xer; +jer_type_encoder_f IviIdentificationNumber_encode_jer; +oer_type_decoder_f IviIdentificationNumber_decode_oer; +oer_type_encoder_f IviIdentificationNumber_encode_oer; +per_type_decoder_f IviIdentificationNumber_decode_uper; +per_type_encoder_f IviIdentificationNumber_encode_uper; +per_type_decoder_f IviIdentificationNumber_decode_aper; +per_type_encoder_f IviIdentificationNumber_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _IviIdentificationNumber_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/IvimReference.c b/vanetza/asn1/its2/IvimReference.c new file mode 100644 index 000000000..e3c04ea06 --- /dev/null +++ b/vanetza/asn1/its2/IvimReference.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "IvimReference.h" + +asn_TYPE_member_t asn_MBR_IvimReference_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct IvimReference, serviceProviderId), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Provider, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "serviceProviderId" + }, + { ATF_NOFLAGS, 0, offsetof(struct IvimReference, iviIdentificationNumber), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_IviIdentificationNumber, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "iviIdentificationNumber" + }, +}; +static const ber_tlv_tag_t asn_DEF_IvimReference_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_IvimReference_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* serviceProviderId */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* iviIdentificationNumber */ +}; +asn_SEQUENCE_specifics_t asn_SPC_IvimReference_specs_1 = { + sizeof(struct IvimReference), + offsetof(struct IvimReference, _asn_ctx), + asn_MAP_IvimReference_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_IvimReference = { + "IvimReference", + "IvimReference", + &asn_OP_SEQUENCE, + asn_DEF_IvimReference_tags_1, + sizeof(asn_DEF_IvimReference_tags_1) + /sizeof(asn_DEF_IvimReference_tags_1[0]), /* 1 */ + asn_DEF_IvimReference_tags_1, /* Same as above */ + sizeof(asn_DEF_IvimReference_tags_1) + /sizeof(asn_DEF_IvimReference_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_IvimReference_1, + 2, /* Elements count */ + &asn_SPC_IvimReference_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/IvimReference.h b/vanetza/asn1/its2/IvimReference.h new file mode 100644 index 000000000..9a6052ca8 --- /dev/null +++ b/vanetza/asn1/its2/IvimReference.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _IvimReference_H_ +#define _IvimReference_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "Provider.h" +#include "IviIdentificationNumber.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* IvimReference */ +typedef struct IvimReference { + Provider_t serviceProviderId; + IviIdentificationNumber_t iviIdentificationNumber; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} IvimReference_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_IvimReference; +extern asn_SEQUENCE_specifics_t asn_SPC_IvimReference_specs_1; +extern asn_TYPE_member_t asn_MBR_IvimReference_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _IvimReference_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/IvimReferences.c b/vanetza/asn1/its2/IvimReferences.c new file mode 100644 index 000000000..035aca891 --- /dev/null +++ b/vanetza/asn1/its2/IvimReferences.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "IvimReferences.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_IvimReferences_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_IvimReferences_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 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_IvimReferences_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_IvimReference, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_IvimReferences_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_IvimReferences_specs_1 = { + sizeof(struct IvimReferences), + offsetof(struct IvimReferences, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_IvimReferences = { + "IvimReferences", + "IvimReferences", + &asn_OP_SEQUENCE_OF, + asn_DEF_IvimReferences_tags_1, + sizeof(asn_DEF_IvimReferences_tags_1) + /sizeof(asn_DEF_IvimReferences_tags_1[0]), /* 1 */ + asn_DEF_IvimReferences_tags_1, /* Same as above */ + sizeof(asn_DEF_IvimReferences_tags_1) + /sizeof(asn_DEF_IvimReferences_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_IvimReferences_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_IvimReferences_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_IvimReferences_1, + 1, /* Single element */ + &asn_SPC_IvimReferences_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/IvimReferences.h b/vanetza/asn1/its2/IvimReferences.h new file mode 100644 index 000000000..0868e29ff --- /dev/null +++ b/vanetza/asn1/its2/IvimReferences.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _IvimReferences_H_ +#define _IvimReferences_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct IvimReference; + +/* IvimReferences */ +typedef struct IvimReferences { + A_SEQUENCE_OF(struct IvimReference) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} IvimReferences_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_IvimReferences; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "IvimReference.h" + +#endif /* _IvimReferences_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/LanePosition.c b/vanetza/asn1/its2/LanePosition.c new file mode 100644 index 000000000..b257f3534 --- /dev/null +++ b/vanetza/asn1/its2/LanePosition.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "LanePosition.h" + +int +LanePosition_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 <= 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_LanePosition_constr_1 CC_NOTUSED = { + { 1, 0 } /* (-1..14) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_LanePosition_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, -1, 14 } /* (-1..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_LanePosition_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_LanePosition = { + "LanePosition", + "LanePosition", + &asn_OP_NativeInteger, + asn_DEF_LanePosition_tags_1, + sizeof(asn_DEF_LanePosition_tags_1) + /sizeof(asn_DEF_LanePosition_tags_1[0]), /* 1 */ + asn_DEF_LanePosition_tags_1, /* Same as above */ + sizeof(asn_DEF_LanePosition_tags_1) + /sizeof(asn_DEF_LanePosition_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_LanePosition_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_LanePosition_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + LanePosition_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/LanePosition.h b/vanetza/asn1/its2/LanePosition.h new file mode 100644 index 000000000..76c55811f --- /dev/null +++ b/vanetza/asn1/its2/LanePosition.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _LanePosition_H_ +#define _LanePosition_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum LanePosition { + LanePosition_offTheRoad = -1, + LanePosition_innerHardShoulder = 0, + LanePosition_outerHardShoulder = 14 +} e_LanePosition; + +/* LanePosition */ +typedef long LanePosition_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_LanePosition_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_LanePosition; +asn_struct_free_f LanePosition_free; +asn_struct_print_f LanePosition_print; +asn_constr_check_f LanePosition_constraint; +ber_type_decoder_f LanePosition_decode_ber; +der_type_encoder_f LanePosition_encode_der; +xer_type_decoder_f LanePosition_decode_xer; +xer_type_encoder_f LanePosition_encode_xer; +jer_type_encoder_f LanePosition_encode_jer; +oer_type_decoder_f LanePosition_decode_oer; +oer_type_encoder_f LanePosition_encode_oer; +per_type_decoder_f LanePosition_decode_uper; +per_type_encoder_f LanePosition_encode_uper; +per_type_decoder_f LanePosition_decode_aper; +per_type_encoder_f LanePosition_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _LanePosition_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/LanePositionAndType.c b/vanetza/asn1/its2/LanePositionAndType.c new file mode 100644 index 000000000..ea69220db --- /dev/null +++ b/vanetza/asn1/its2/LanePositionAndType.c @@ -0,0 +1,162 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "LanePositionAndType.h" + +static int asn_DFL_3_cmp_0(const void *sptr) { + const LaneType_t *st = sptr; + + if(!st) { + return -1; /* No value is not a default value */ + } + + /* Test default value 0 */ + return (*st != 0); +} +static int asn_DFL_3_set_0(void **sptr) { + LaneType_t *st = *sptr; + + if(!st) { + st = (*sptr = CALLOC(1, sizeof(*st))); + if(!st) return -1; + } + + /* Install default value 0 */ + *st = 0; + return 0; +} +static int asn_DFL_4_cmp_0(const void *sptr) { + const Direction_t *st = sptr; + + if(!st) { + return -1; /* No value is not a default value */ + } + + /* Test default value 0 */ + return (*st != 0); +} +static int asn_DFL_4_set_0(void **sptr) { + Direction_t *st = *sptr; + + if(!st) { + st = (*sptr = CALLOC(1, sizeof(*st))); + if(!st) return -1; + } + + /* Install default value 0 */ + *st = 0; + return 0; +} +asn_TYPE_member_t asn_MBR_LanePositionAndType_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct LanePositionAndType, transversalPosition), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LanePosition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "transversalPosition" + }, + { ATF_NOFLAGS, 2, offsetof(struct LanePositionAndType, laneType), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LaneType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + &asn_DFL_3_cmp_0, /* Compare DEFAULT 0 */ + &asn_DFL_3_set_0, /* Set DEFAULT 0 */ + "laneType" + }, + { ATF_NOFLAGS, 1, offsetof(struct LanePositionAndType, direction), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Direction, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + &asn_DFL_4_cmp_0, /* Compare DEFAULT 0 */ + &asn_DFL_4_set_0, /* Set DEFAULT 0 */ + "direction" + }, +}; +static const int asn_MAP_LanePositionAndType_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_LanePositionAndType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_LanePositionAndType_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* transversalPosition */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* laneType */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* direction */ +}; +asn_SEQUENCE_specifics_t asn_SPC_LanePositionAndType_specs_1 = { + sizeof(struct LanePositionAndType), + offsetof(struct LanePositionAndType, _asn_ctx), + asn_MAP_LanePositionAndType_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_LanePositionAndType_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_LanePositionAndType = { + "LanePositionAndType", + "LanePositionAndType", + &asn_OP_SEQUENCE, + asn_DEF_LanePositionAndType_tags_1, + sizeof(asn_DEF_LanePositionAndType_tags_1) + /sizeof(asn_DEF_LanePositionAndType_tags_1[0]), /* 1 */ + asn_DEF_LanePositionAndType_tags_1, /* Same as above */ + sizeof(asn_DEF_LanePositionAndType_tags_1) + /sizeof(asn_DEF_LanePositionAndType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_LanePositionAndType_1, + 3, /* Elements count */ + &asn_SPC_LanePositionAndType_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/LanePositionAndType.h b/vanetza/asn1/its2/LanePositionAndType.h new file mode 100644 index 000000000..177dea063 --- /dev/null +++ b/vanetza/asn1/its2/LanePositionAndType.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _LanePositionAndType_H_ +#define _LanePositionAndType_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "LanePosition.h" +#include "LaneType.h" +#include "Direction.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* LanePositionAndType */ +typedef struct LanePositionAndType { + LanePosition_t transversalPosition; + LaneType_t laneType; /* DEFAULT 0 */ + Direction_t direction; /* DEFAULT 0 */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} LanePositionAndType_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_LanePositionAndType; +extern asn_SEQUENCE_specifics_t asn_SPC_LanePositionAndType_specs_1; +extern asn_TYPE_member_t asn_MBR_LanePositionAndType_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _LanePositionAndType_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/LanePositionOptions.c b/vanetza/asn1/its2/LanePositionOptions.c new file mode 100644 index 000000000..90446e842 --- /dev/null +++ b/vanetza/asn1/its2/LanePositionOptions.c @@ -0,0 +1,165 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "LanePositionOptions.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_LanePositionOptions_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_LanePositionOptions_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_LanePositionOptions_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct LanePositionOptions, choice.simplelanePosition), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LanePosition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "simplelanePosition" + }, + { ATF_NOFLAGS, 0, offsetof(struct LanePositionOptions, choice.simpleLaneType), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LaneType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "simpleLaneType" + }, + { ATF_NOFLAGS, 0, offsetof(struct LanePositionOptions, choice.detailedlanePosition), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LanePositionAndType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "detailedlanePosition" + }, + { ATF_NOFLAGS, 0, offsetof(struct LanePositionOptions, choice.lanePositionWithLateralDetails), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LanePositionWithLateralDetails, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lanePositionWithLateralDetails" + }, + { ATF_NOFLAGS, 0, offsetof(struct LanePositionOptions, choice.trafficIslandPosition), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TrafficIslandPosition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "trafficIslandPosition" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_LanePositionOptions_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* simplelanePosition */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* simpleLaneType */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* detailedlanePosition */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* lanePositionWithLateralDetails */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* trafficIslandPosition */ +}; +asn_CHOICE_specifics_t asn_SPC_LanePositionOptions_specs_1 = { + sizeof(struct LanePositionOptions), + offsetof(struct LanePositionOptions, _asn_ctx), + offsetof(struct LanePositionOptions, present), + sizeof(((struct LanePositionOptions *)0)->present), + asn_MAP_LanePositionOptions_tag2el_1, + 5, /* Count of tags in the map */ + 0, 0, + 5 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_LanePositionOptions = { + "LanePositionOptions", + "LanePositionOptions", + &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) + &asn_OER_type_LanePositionOptions_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_LanePositionOptions_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_LanePositionOptions_1, + 5, /* Elements count */ + &asn_SPC_LanePositionOptions_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/LanePositionOptions.h b/vanetza/asn1/its2/LanePositionOptions.h new file mode 100644 index 000000000..89a4dcd6d --- /dev/null +++ b/vanetza/asn1/its2/LanePositionOptions.h @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _LanePositionOptions_H_ +#define _LanePositionOptions_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "LanePosition.h" +#include "LaneType.h" +#include "LanePositionAndType.h" +#include "LanePositionWithLateralDetails.h" +#include "TrafficIslandPosition.h" +#include "constr_CHOICE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum LanePositionOptions_PR { + LanePositionOptions_PR_NOTHING, /* No components present */ + LanePositionOptions_PR_simplelanePosition, + LanePositionOptions_PR_simpleLaneType, + LanePositionOptions_PR_detailedlanePosition, + LanePositionOptions_PR_lanePositionWithLateralDetails, + LanePositionOptions_PR_trafficIslandPosition + /* Extensions may appear below */ + +} LanePositionOptions_PR; + +/* LanePositionOptions */ +typedef struct LanePositionOptions { + LanePositionOptions_PR present; + union LanePositionOptions_u { + LanePosition_t simplelanePosition; + LaneType_t simpleLaneType; + LanePositionAndType_t detailedlanePosition; + LanePositionWithLateralDetails_t lanePositionWithLateralDetails; + TrafficIslandPosition_t trafficIslandPosition; + /* + * This type is extensible, + * possible extensions are below. + */ + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} LanePositionOptions_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_LanePositionOptions; +extern asn_CHOICE_specifics_t asn_SPC_LanePositionOptions_specs_1; +extern asn_TYPE_member_t asn_MBR_LanePositionOptions_1[5]; +extern asn_per_constraints_t asn_PER_type_LanePositionOptions_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _LanePositionOptions_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/LanePositionWithLateralDetails.c b/vanetza/asn1/its2/LanePositionWithLateralDetails.c new file mode 100644 index 000000000..286224d69 --- /dev/null +++ b/vanetza/asn1/its2/LanePositionWithLateralDetails.c @@ -0,0 +1,204 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "LanePositionWithLateralDetails.h" + +static int asn_DFL_3_cmp_0(const void *sptr) { + const LaneType_t *st = sptr; + + if(!st) { + return -1; /* No value is not a default value */ + } + + /* Test default value 0 */ + return (*st != 0); +} +static int asn_DFL_3_set_0(void **sptr) { + LaneType_t *st = *sptr; + + if(!st) { + st = (*sptr = CALLOC(1, sizeof(*st))); + if(!st) return -1; + } + + /* Install default value 0 */ + *st = 0; + return 0; +} +static int asn_DFL_4_cmp_0(const void *sptr) { + const Direction_t *st = sptr; + + if(!st) { + return -1; /* No value is not a default value */ + } + + /* Test default value 0 */ + return (*st != 0); +} +static int asn_DFL_4_set_0(void **sptr) { + Direction_t *st = *sptr; + + if(!st) { + st = (*sptr = CALLOC(1, sizeof(*st))); + if(!st) return -1; + } + + /* Install default value 0 */ + *st = 0; + return 0; +} +asn_TYPE_member_t asn_MBR_LanePositionWithLateralDetails_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct LanePositionWithLateralDetails, transversalPosition), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LanePosition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "transversalPosition" + }, + { ATF_NOFLAGS, 2, offsetof(struct LanePositionWithLateralDetails, laneType), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LaneType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + &asn_DFL_3_cmp_0, /* Compare DEFAULT 0 */ + &asn_DFL_3_set_0, /* Set DEFAULT 0 */ + "laneType" + }, + { ATF_NOFLAGS, 1, offsetof(struct LanePositionWithLateralDetails, direction), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Direction, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + &asn_DFL_4_cmp_0, /* Compare DEFAULT 0 */ + &asn_DFL_4_set_0, /* Set DEFAULT 0 */ + "direction" + }, + { ATF_NOFLAGS, 0, offsetof(struct LanePositionWithLateralDetails, distanceToLeftBorder), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StandardLength9b, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "distanceToLeftBorder" + }, + { ATF_NOFLAGS, 0, offsetof(struct LanePositionWithLateralDetails, distanceToRightBorder), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StandardLength9b, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "distanceToRightBorder" + }, +}; +static const int asn_MAP_LanePositionWithLateralDetails_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_LanePositionWithLateralDetails_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_LanePositionWithLateralDetails_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* transversalPosition */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* laneType */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* direction */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* distanceToLeftBorder */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* distanceToRightBorder */ +}; +asn_SEQUENCE_specifics_t asn_SPC_LanePositionWithLateralDetails_specs_1 = { + sizeof(struct LanePositionWithLateralDetails), + offsetof(struct LanePositionWithLateralDetails, _asn_ctx), + asn_MAP_LanePositionWithLateralDetails_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_LanePositionWithLateralDetails_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_LanePositionWithLateralDetails = { + "LanePositionWithLateralDetails", + "LanePositionWithLateralDetails", + &asn_OP_SEQUENCE, + asn_DEF_LanePositionWithLateralDetails_tags_1, + sizeof(asn_DEF_LanePositionWithLateralDetails_tags_1) + /sizeof(asn_DEF_LanePositionWithLateralDetails_tags_1[0]), /* 1 */ + asn_DEF_LanePositionWithLateralDetails_tags_1, /* Same as above */ + sizeof(asn_DEF_LanePositionWithLateralDetails_tags_1) + /sizeof(asn_DEF_LanePositionWithLateralDetails_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_LanePositionWithLateralDetails_1, + 5, /* Elements count */ + &asn_SPC_LanePositionWithLateralDetails_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/LanePositionWithLateralDetails.h b/vanetza/asn1/its2/LanePositionWithLateralDetails.h new file mode 100644 index 000000000..b8ab0b05b --- /dev/null +++ b/vanetza/asn1/its2/LanePositionWithLateralDetails.h @@ -0,0 +1,51 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _LanePositionWithLateralDetails_H_ +#define _LanePositionWithLateralDetails_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "LanePosition.h" +#include "LaneType.h" +#include "Direction.h" +#include "StandardLength9b.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* LanePositionWithLateralDetails */ +typedef struct LanePositionWithLateralDetails { + LanePosition_t transversalPosition; + LaneType_t laneType; /* DEFAULT 0 */ + Direction_t direction; /* DEFAULT 0 */ + StandardLength9b_t distanceToLeftBorder; + StandardLength9b_t distanceToRightBorder; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} LanePositionWithLateralDetails_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_LanePositionWithLateralDetails; +extern asn_SEQUENCE_specifics_t asn_SPC_LanePositionWithLateralDetails_specs_1; +extern asn_TYPE_member_t asn_MBR_LanePositionWithLateralDetails_1[5]; + +#ifdef __cplusplus +} +#endif + +#endif /* _LanePositionWithLateralDetails_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/LaneType.c b/vanetza/asn1/its2/LaneType.c new file mode 100644 index 000000000..b4ed0d93d --- /dev/null +++ b/vanetza/asn1/its2/LaneType.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "LaneType.h" + +int +LaneType_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 <= 31L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_LaneType_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..31) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_LaneType_constr_1 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 ber_tlv_tag_t asn_DEF_LaneType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_LaneType = { + "LaneType", + "LaneType", + &asn_OP_NativeInteger, + asn_DEF_LaneType_tags_1, + sizeof(asn_DEF_LaneType_tags_1) + /sizeof(asn_DEF_LaneType_tags_1[0]), /* 1 */ + asn_DEF_LaneType_tags_1, /* Same as above */ + sizeof(asn_DEF_LaneType_tags_1) + /sizeof(asn_DEF_LaneType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_LaneType_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_LaneType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + LaneType_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/LaneType.h b/vanetza/asn1/its2/LaneType.h new file mode 100644 index 000000000..821fea22c --- /dev/null +++ b/vanetza/asn1/its2/LaneType.h @@ -0,0 +1,74 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _LaneType_H_ +#define _LaneType_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum LaneType { + LaneType_traffic = 0, + LaneType_through = 1, + LaneType_reversible = 2, + LaneType_acceleration = 3, + LaneType_deceleration = 4, + LaneType_leftHandTurning = 5, + LaneType_rightHandTurning = 6, + LaneType_dedicatedVehicle = 7, + LaneType_bus = 8, + LaneType_taxi = 9, + LaneType_hov = 10, + LaneType_hot = 11, + LaneType_pedestrian = 12, + LaneType_cycleLane = 13, + LaneType_median = 14, + LaneType_striping = 15, + LaneType_trackedVehicle = 16, + LaneType_parking = 17, + LaneType_emergency = 18, + LaneType_verge = 19, + LaneType_minimumRiskManoeuvre = 20, + LaneType_exclusiveCycleLane = 21, + LaneType_unknown = 31 +} e_LaneType; + +/* LaneType */ +typedef long LaneType_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_LaneType_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_LaneType; +asn_struct_free_f LaneType_free; +asn_struct_print_f LaneType_print; +asn_constr_check_f LaneType_constraint; +ber_type_decoder_f LaneType_decode_ber; +der_type_encoder_f LaneType_encode_der; +xer_type_decoder_f LaneType_decode_xer; +xer_type_encoder_f LaneType_encode_xer; +jer_type_encoder_f LaneType_encode_jer; +oer_type_decoder_f LaneType_decode_oer; +oer_type_encoder_f LaneType_encode_oer; +per_type_decoder_f LaneType_decode_uper; +per_type_encoder_f LaneType_encode_uper; +per_type_decoder_f LaneType_decode_aper; +per_type_encoder_f LaneType_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _LaneType_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/LaneWidth.c b/vanetza/asn1/its2/LaneWidth.c new file mode 100644 index 000000000..1b64883ce --- /dev/null +++ b/vanetza/asn1/its2/LaneWidth.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "LaneWidth.h" + +int +LaneWidth_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 <= 1023L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_LaneWidth_constr_1 CC_NOTUSED = { + { 2, 1 } /* (0..1023) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_LaneWidth_constr_1 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 ber_tlv_tag_t asn_DEF_LaneWidth_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_LaneWidth = { + "LaneWidth", + "LaneWidth", + &asn_OP_NativeInteger, + asn_DEF_LaneWidth_tags_1, + sizeof(asn_DEF_LaneWidth_tags_1) + /sizeof(asn_DEF_LaneWidth_tags_1[0]), /* 1 */ + asn_DEF_LaneWidth_tags_1, /* Same as above */ + sizeof(asn_DEF_LaneWidth_tags_1) + /sizeof(asn_DEF_LaneWidth_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_LaneWidth_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_LaneWidth_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + LaneWidth_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/LaneWidth.h b/vanetza/asn1/its2/LaneWidth.h new file mode 100644 index 000000000..be5ff97e7 --- /dev/null +++ b/vanetza/asn1/its2/LaneWidth.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _LaneWidth_H_ +#define _LaneWidth_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* LaneWidth */ +typedef long LaneWidth_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_LaneWidth_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_LaneWidth; +asn_struct_free_f LaneWidth_free; +asn_struct_print_f LaneWidth_print; +asn_constr_check_f LaneWidth_constraint; +ber_type_decoder_f LaneWidth_decode_ber; +der_type_encoder_f LaneWidth_encode_der; +xer_type_decoder_f LaneWidth_decode_xer; +xer_type_encoder_f LaneWidth_encode_xer; +jer_type_encoder_f LaneWidth_encode_jer; +oer_type_decoder_f LaneWidth_decode_oer; +oer_type_encoder_f LaneWidth_encode_oer; +per_type_decoder_f LaneWidth_decode_uper; +per_type_encoder_f LaneWidth_encode_uper; +per_type_decoder_f LaneWidth_decode_aper; +per_type_encoder_f LaneWidth_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _LaneWidth_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/LateralAcceleration.c b/vanetza/asn1/its2/LateralAcceleration.c new file mode 100644 index 000000000..455beafd2 --- /dev/null +++ b/vanetza/asn1/its2/LateralAcceleration.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "LateralAcceleration.h" + +asn_TYPE_member_t asn_MBR_LateralAcceleration_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct LateralAcceleration, lateralAccelerationValue), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LateralAccelerationValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lateralAccelerationValue" + }, + { ATF_NOFLAGS, 0, offsetof(struct LateralAcceleration, lateralAccelerationConfidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AccelerationConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lateralAccelerationConfidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_LateralAcceleration_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_LateralAcceleration_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* lateralAccelerationValue */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* lateralAccelerationConfidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_LateralAcceleration_specs_1 = { + sizeof(struct LateralAcceleration), + offsetof(struct LateralAcceleration, _asn_ctx), + asn_MAP_LateralAcceleration_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_LateralAcceleration = { + "LateralAcceleration", + "LateralAcceleration", + &asn_OP_SEQUENCE, + asn_DEF_LateralAcceleration_tags_1, + sizeof(asn_DEF_LateralAcceleration_tags_1) + /sizeof(asn_DEF_LateralAcceleration_tags_1[0]), /* 1 */ + asn_DEF_LateralAcceleration_tags_1, /* Same as above */ + sizeof(asn_DEF_LateralAcceleration_tags_1) + /sizeof(asn_DEF_LateralAcceleration_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_LateralAcceleration_1, + 2, /* Elements count */ + &asn_SPC_LateralAcceleration_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/LateralAcceleration.h b/vanetza/asn1/its2/LateralAcceleration.h new file mode 100644 index 000000000..446dfc288 --- /dev/null +++ b/vanetza/asn1/its2/LateralAcceleration.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _LateralAcceleration_H_ +#define _LateralAcceleration_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "LateralAccelerationValue.h" +#include "AccelerationConfidence.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* LateralAcceleration */ +typedef struct LateralAcceleration { + LateralAccelerationValue_t lateralAccelerationValue; + AccelerationConfidence_t lateralAccelerationConfidence; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} LateralAcceleration_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_LateralAcceleration; +extern asn_SEQUENCE_specifics_t asn_SPC_LateralAcceleration_specs_1; +extern asn_TYPE_member_t asn_MBR_LateralAcceleration_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _LateralAcceleration_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/LateralAccelerationValue.c b/vanetza/asn1/its2/LateralAccelerationValue.c new file mode 100644 index 000000000..c80e6b686 --- /dev/null +++ b/vanetza/asn1/its2/LateralAccelerationValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "LateralAccelerationValue.h" + +int +LateralAccelerationValue_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 >= -160L && value <= 161L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_LateralAccelerationValue_constr_1 CC_NOTUSED = { + { 2, 0 } /* (-160..161) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_LateralAccelerationValue_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, -160, 161 } /* (-160..161) */, + { 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_LateralAccelerationValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_LateralAccelerationValue = { + "LateralAccelerationValue", + "LateralAccelerationValue", + &asn_OP_NativeInteger, + asn_DEF_LateralAccelerationValue_tags_1, + sizeof(asn_DEF_LateralAccelerationValue_tags_1) + /sizeof(asn_DEF_LateralAccelerationValue_tags_1[0]), /* 1 */ + asn_DEF_LateralAccelerationValue_tags_1, /* Same as above */ + sizeof(asn_DEF_LateralAccelerationValue_tags_1) + /sizeof(asn_DEF_LateralAccelerationValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_LateralAccelerationValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_LateralAccelerationValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + LateralAccelerationValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/LateralAccelerationValue.h b/vanetza/asn1/its2/LateralAccelerationValue.h new file mode 100644 index 000000000..dd80d78be --- /dev/null +++ b/vanetza/asn1/its2/LateralAccelerationValue.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _LateralAccelerationValue_H_ +#define _LateralAccelerationValue_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum LateralAccelerationValue { + LateralAccelerationValue_negativeOutOfRange = -160, + LateralAccelerationValue_positiveOutOfRange = 160, + LateralAccelerationValue_unavailable = 161 +} e_LateralAccelerationValue; + +/* LateralAccelerationValue */ +typedef long LateralAccelerationValue_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_LateralAccelerationValue_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_LateralAccelerationValue; +asn_struct_free_f LateralAccelerationValue_free; +asn_struct_print_f LateralAccelerationValue_print; +asn_constr_check_f LateralAccelerationValue_constraint; +ber_type_decoder_f LateralAccelerationValue_decode_ber; +der_type_encoder_f LateralAccelerationValue_encode_der; +xer_type_decoder_f LateralAccelerationValue_decode_xer; +xer_type_encoder_f LateralAccelerationValue_encode_xer; +jer_type_encoder_f LateralAccelerationValue_encode_jer; +oer_type_decoder_f LateralAccelerationValue_decode_oer; +oer_type_encoder_f LateralAccelerationValue_encode_oer; +per_type_decoder_f LateralAccelerationValue_decode_uper; +per_type_encoder_f LateralAccelerationValue_encode_uper; +per_type_decoder_f LateralAccelerationValue_decode_aper; +per_type_encoder_f LateralAccelerationValue_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _LateralAccelerationValue_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/Latitude.c b/vanetza/asn1/its2/Latitude.c new file mode 100644 index 000000000..23d0dff66 --- /dev/null +++ b/vanetza/asn1/its2/Latitude.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Latitude.h" + +int +Latitude_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 >= -900000000L && value <= 900000001L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_Latitude_constr_1 CC_NOTUSED = { + { 4, 0 } /* (-900000000..900000001) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Latitude_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 31, -1, -900000000, 900000001 } /* (-900000000..900000001) */, + { 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_Latitude_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_Latitude = { + "Latitude", + "Latitude", + &asn_OP_NativeInteger, + asn_DEF_Latitude_tags_1, + sizeof(asn_DEF_Latitude_tags_1) + /sizeof(asn_DEF_Latitude_tags_1[0]), /* 1 */ + asn_DEF_Latitude_tags_1, /* Same as above */ + sizeof(asn_DEF_Latitude_tags_1) + /sizeof(asn_DEF_Latitude_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_Latitude_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Latitude_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + Latitude_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/Latitude.h b/vanetza/asn1/its2/Latitude.h new file mode 100644 index 000000000..7a44f04fd --- /dev/null +++ b/vanetza/asn1/its2/Latitude.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _Latitude_H_ +#define _Latitude_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum Latitude { + Latitude_unavailable = 900000001 +} e_Latitude; + +/* Latitude */ +typedef long Latitude_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_Latitude_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_Latitude; +asn_struct_free_f Latitude_free; +asn_struct_print_f Latitude_print; +asn_constr_check_f Latitude_constraint; +ber_type_decoder_f Latitude_decode_ber; +der_type_encoder_f Latitude_encode_der; +xer_type_decoder_f Latitude_decode_xer; +xer_type_encoder_f Latitude_encode_xer; +jer_type_encoder_f Latitude_encode_jer; +oer_type_decoder_f Latitude_decode_oer; +oer_type_encoder_f Latitude_encode_oer; +per_type_decoder_f Latitude_decode_uper; +per_type_encoder_f Latitude_encode_uper; +per_type_decoder_f Latitude_decode_aper; +per_type_encoder_f Latitude_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _Latitude_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/LightBarSirenInUse.c b/vanetza/asn1/its2/LightBarSirenInUse.c new file mode 100644 index 000000000..2d9eb7bcd --- /dev/null +++ b/vanetza/asn1/its2/LightBarSirenInUse.c @@ -0,0 +1,89 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "LightBarSirenInUse.h" + +int +LightBarSirenInUse_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 == 2UL)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_LightBarSirenInUse_constr_1 CC_NOTUSED = { + { 0, 0 }, + 2 /* (SIZE(2..2)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_LightBarSirenInUse_constr_1 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_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_LightBarSirenInUse_constr_1 CC_NOTUSED = { + 2}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_LightBarSirenInUse_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_LightBarSirenInUse = { + "LightBarSirenInUse", + "LightBarSirenInUse", + &asn_OP_BIT_STRING, + asn_DEF_LightBarSirenInUse_tags_1, + sizeof(asn_DEF_LightBarSirenInUse_tags_1) + /sizeof(asn_DEF_LightBarSirenInUse_tags_1[0]), /* 1 */ + asn_DEF_LightBarSirenInUse_tags_1, /* Same as above */ + sizeof(asn_DEF_LightBarSirenInUse_tags_1) + /sizeof(asn_DEF_LightBarSirenInUse_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_LightBarSirenInUse_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_LightBarSirenInUse_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_LightBarSirenInUse_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + LightBarSirenInUse_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/LightBarSirenInUse.h b/vanetza/asn1/its2/LightBarSirenInUse.h new file mode 100644 index 000000000..26252da1a --- /dev/null +++ b/vanetza/asn1/its2/LightBarSirenInUse.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _LightBarSirenInUse_H_ +#define _LightBarSirenInUse_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "BIT_STRING.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum LightBarSirenInUse { + LightBarSirenInUse_lightBarActivated = 0, + LightBarSirenInUse_sirenActivated = 1 +} e_LightBarSirenInUse; + +/* LightBarSirenInUse */ +typedef BIT_STRING_t LightBarSirenInUse_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_LightBarSirenInUse_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_LightBarSirenInUse; +asn_struct_free_f LightBarSirenInUse_free; +asn_struct_print_f LightBarSirenInUse_print; +asn_constr_check_f LightBarSirenInUse_constraint; +ber_type_decoder_f LightBarSirenInUse_decode_ber; +der_type_encoder_f LightBarSirenInUse_encode_der; +xer_type_decoder_f LightBarSirenInUse_decode_xer; +xer_type_encoder_f LightBarSirenInUse_encode_xer; +jer_type_encoder_f LightBarSirenInUse_encode_jer; +oer_type_decoder_f LightBarSirenInUse_decode_oer; +oer_type_encoder_f LightBarSirenInUse_encode_oer; +per_type_decoder_f LightBarSirenInUse_decode_uper; +per_type_encoder_f LightBarSirenInUse_encode_uper; +per_type_decoder_f LightBarSirenInUse_decode_aper; +per_type_encoder_f LightBarSirenInUse_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _LightBarSirenInUse_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/LocationContainer.c b/vanetza/asn1/its2/LocationContainer.c new file mode 100644 index 000000000..6d50107e3 --- /dev/null +++ b/vanetza/asn1/its2/LocationContainer.c @@ -0,0 +1,137 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "DENM-PDU-Description" + * found in "asn1/TS103831v211-DENM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "LocationContainer.h" + +asn_TYPE_member_t asn_MBR_LocationContainer_1[] = { + { ATF_POINTER, 2, offsetof(struct LocationContainer, eventSpeed), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Speed, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "eventSpeed" + }, + { ATF_POINTER, 1, offsetof(struct LocationContainer, eventPositionHeading), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Wgs84Angle, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "eventPositionHeading" + }, + { ATF_NOFLAGS, 0, offsetof(struct LocationContainer, traces), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Traces, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "traces" + }, + { ATF_POINTER, 1, offsetof(struct LocationContainer, roadType), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RoadType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "roadType" + }, +}; +static const int asn_MAP_LocationContainer_oms_1[] = { 0, 1, 3 }; +static const ber_tlv_tag_t asn_DEF_LocationContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_LocationContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* eventSpeed */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* eventPositionHeading */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* traces */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* roadType */ +}; +asn_SEQUENCE_specifics_t asn_SPC_LocationContainer_specs_1 = { + sizeof(struct LocationContainer), + offsetof(struct LocationContainer, _asn_ctx), + asn_MAP_LocationContainer_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_LocationContainer_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_LocationContainer = { + "LocationContainer", + "LocationContainer", + &asn_OP_SEQUENCE, + asn_DEF_LocationContainer_tags_1, + sizeof(asn_DEF_LocationContainer_tags_1) + /sizeof(asn_DEF_LocationContainer_tags_1[0]), /* 1 */ + asn_DEF_LocationContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_LocationContainer_tags_1) + /sizeof(asn_DEF_LocationContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_LocationContainer_1, + 4, /* Elements count */ + &asn_SPC_LocationContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/LocationContainer.h b/vanetza/asn1/its2/LocationContainer.h new file mode 100644 index 000000000..50cd6bc26 --- /dev/null +++ b/vanetza/asn1/its2/LocationContainer.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "DENM-PDU-Description" + * found in "asn1/TS103831v211-DENM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _LocationContainer_H_ +#define _LocationContainer_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "Traces.h" +#include "RoadType.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct Speed; +struct Wgs84Angle; + +/* LocationContainer */ +typedef struct LocationContainer { + struct Speed *eventSpeed; /* OPTIONAL */ + struct Wgs84Angle *eventPositionHeading; /* OPTIONAL */ + Traces_t traces; + RoadType_t *roadType; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} LocationContainer_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_LocationContainer; +extern asn_SEQUENCE_specifics_t asn_SPC_LocationContainer_specs_1; +extern asn_TYPE_member_t asn_MBR_LocationContainer_1[4]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "Speed.h" +#include "Wgs84Angle.h" + +#endif /* _LocationContainer_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/Longitude.c b/vanetza/asn1/its2/Longitude.c new file mode 100644 index 000000000..267965d19 --- /dev/null +++ b/vanetza/asn1/its2/Longitude.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Longitude.h" + +int +Longitude_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 >= -1800000000L && value <= 1800000001L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_Longitude_constr_1 CC_NOTUSED = { + { 4, 0 } /* (-1800000000..1800000001) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Longitude_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 32, -1, -1800000000, 1800000001 } /* (-1800000000..1800000001) */, + { 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_Longitude_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_Longitude = { + "Longitude", + "Longitude", + &asn_OP_NativeInteger, + asn_DEF_Longitude_tags_1, + sizeof(asn_DEF_Longitude_tags_1) + /sizeof(asn_DEF_Longitude_tags_1[0]), /* 1 */ + asn_DEF_Longitude_tags_1, /* Same as above */ + sizeof(asn_DEF_Longitude_tags_1) + /sizeof(asn_DEF_Longitude_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_Longitude_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Longitude_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + Longitude_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/Longitude.h b/vanetza/asn1/its2/Longitude.h new file mode 100644 index 000000000..9f2b4983d --- /dev/null +++ b/vanetza/asn1/its2/Longitude.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _Longitude_H_ +#define _Longitude_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum Longitude { + Longitude_valueNotUsed = -1800000000, + Longitude_unavailable = 1800000001 +} e_Longitude; + +/* Longitude */ +typedef long Longitude_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_Longitude_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_Longitude; +asn_struct_free_f Longitude_free; +asn_struct_print_f Longitude_print; +asn_constr_check_f Longitude_constraint; +ber_type_decoder_f Longitude_decode_ber; +der_type_encoder_f Longitude_encode_der; +xer_type_decoder_f Longitude_decode_xer; +xer_type_encoder_f Longitude_encode_xer; +jer_type_encoder_f Longitude_encode_jer; +oer_type_decoder_f Longitude_decode_oer; +oer_type_encoder_f Longitude_encode_oer; +per_type_decoder_f Longitude_decode_uper; +per_type_encoder_f Longitude_encode_uper; +per_type_decoder_f Longitude_decode_aper; +per_type_encoder_f Longitude_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _Longitude_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/LongitudinalAcceleration.c b/vanetza/asn1/its2/LongitudinalAcceleration.c new file mode 100644 index 000000000..ca800c08d --- /dev/null +++ b/vanetza/asn1/its2/LongitudinalAcceleration.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "LongitudinalAcceleration.h" + +asn_TYPE_member_t asn_MBR_LongitudinalAcceleration_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct LongitudinalAcceleration, longitudinalAccelerationValue), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LongitudinalAccelerationValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "longitudinalAccelerationValue" + }, + { ATF_NOFLAGS, 0, offsetof(struct LongitudinalAcceleration, longitudinalAccelerationConfidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AccelerationConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "longitudinalAccelerationConfidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_LongitudinalAcceleration_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_LongitudinalAcceleration_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* longitudinalAccelerationValue */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* longitudinalAccelerationConfidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_LongitudinalAcceleration_specs_1 = { + sizeof(struct LongitudinalAcceleration), + offsetof(struct LongitudinalAcceleration, _asn_ctx), + asn_MAP_LongitudinalAcceleration_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_LongitudinalAcceleration = { + "LongitudinalAcceleration", + "LongitudinalAcceleration", + &asn_OP_SEQUENCE, + asn_DEF_LongitudinalAcceleration_tags_1, + sizeof(asn_DEF_LongitudinalAcceleration_tags_1) + /sizeof(asn_DEF_LongitudinalAcceleration_tags_1[0]), /* 1 */ + asn_DEF_LongitudinalAcceleration_tags_1, /* Same as above */ + sizeof(asn_DEF_LongitudinalAcceleration_tags_1) + /sizeof(asn_DEF_LongitudinalAcceleration_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_LongitudinalAcceleration_1, + 2, /* Elements count */ + &asn_SPC_LongitudinalAcceleration_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/LongitudinalAcceleration.h b/vanetza/asn1/its2/LongitudinalAcceleration.h new file mode 100644 index 000000000..a9e916d60 --- /dev/null +++ b/vanetza/asn1/its2/LongitudinalAcceleration.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _LongitudinalAcceleration_H_ +#define _LongitudinalAcceleration_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "LongitudinalAccelerationValue.h" +#include "AccelerationConfidence.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* LongitudinalAcceleration */ +typedef struct LongitudinalAcceleration { + LongitudinalAccelerationValue_t longitudinalAccelerationValue; + AccelerationConfidence_t longitudinalAccelerationConfidence; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} LongitudinalAcceleration_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_LongitudinalAcceleration; +extern asn_SEQUENCE_specifics_t asn_SPC_LongitudinalAcceleration_specs_1; +extern asn_TYPE_member_t asn_MBR_LongitudinalAcceleration_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _LongitudinalAcceleration_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/LongitudinalAccelerationValue.c b/vanetza/asn1/its2/LongitudinalAccelerationValue.c new file mode 100644 index 000000000..be8d73fb1 --- /dev/null +++ b/vanetza/asn1/its2/LongitudinalAccelerationValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "LongitudinalAccelerationValue.h" + +int +LongitudinalAccelerationValue_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 >= -160L && value <= 161L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_LongitudinalAccelerationValue_constr_1 CC_NOTUSED = { + { 2, 0 } /* (-160..161) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_LongitudinalAccelerationValue_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, -160, 161 } /* (-160..161) */, + { 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_LongitudinalAccelerationValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_LongitudinalAccelerationValue = { + "LongitudinalAccelerationValue", + "LongitudinalAccelerationValue", + &asn_OP_NativeInteger, + asn_DEF_LongitudinalAccelerationValue_tags_1, + sizeof(asn_DEF_LongitudinalAccelerationValue_tags_1) + /sizeof(asn_DEF_LongitudinalAccelerationValue_tags_1[0]), /* 1 */ + asn_DEF_LongitudinalAccelerationValue_tags_1, /* Same as above */ + sizeof(asn_DEF_LongitudinalAccelerationValue_tags_1) + /sizeof(asn_DEF_LongitudinalAccelerationValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_LongitudinalAccelerationValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_LongitudinalAccelerationValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + LongitudinalAccelerationValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/LongitudinalAccelerationValue.h b/vanetza/asn1/its2/LongitudinalAccelerationValue.h new file mode 100644 index 000000000..61069911b --- /dev/null +++ b/vanetza/asn1/its2/LongitudinalAccelerationValue.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _LongitudinalAccelerationValue_H_ +#define _LongitudinalAccelerationValue_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum LongitudinalAccelerationValue { + LongitudinalAccelerationValue_negativeOutOfRange = -160, + LongitudinalAccelerationValue_positiveOutOfRange = 160, + LongitudinalAccelerationValue_unavailable = 161 +} e_LongitudinalAccelerationValue; + +/* LongitudinalAccelerationValue */ +typedef long LongitudinalAccelerationValue_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_LongitudinalAccelerationValue_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_LongitudinalAccelerationValue; +asn_struct_free_f LongitudinalAccelerationValue_free; +asn_struct_print_f LongitudinalAccelerationValue_print; +asn_constr_check_f LongitudinalAccelerationValue_constraint; +ber_type_decoder_f LongitudinalAccelerationValue_decode_ber; +der_type_encoder_f LongitudinalAccelerationValue_encode_der; +xer_type_decoder_f LongitudinalAccelerationValue_decode_xer; +xer_type_encoder_f LongitudinalAccelerationValue_encode_xer; +jer_type_encoder_f LongitudinalAccelerationValue_encode_jer; +oer_type_decoder_f LongitudinalAccelerationValue_decode_oer; +oer_type_encoder_f LongitudinalAccelerationValue_encode_oer; +per_type_decoder_f LongitudinalAccelerationValue_decode_uper; +per_type_encoder_f LongitudinalAccelerationValue_encode_uper; +per_type_decoder_f LongitudinalAccelerationValue_decode_aper; +per_type_encoder_f LongitudinalAccelerationValue_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _LongitudinalAccelerationValue_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/LongitudinalLanePosition.c b/vanetza/asn1/its2/LongitudinalLanePosition.c new file mode 100644 index 000000000..109eb36c2 --- /dev/null +++ b/vanetza/asn1/its2/LongitudinalLanePosition.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "LongitudinalLanePosition.h" + +asn_TYPE_member_t asn_MBR_LongitudinalLanePosition_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct LongitudinalLanePosition, longitudinalLanePositionValue), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LongitudinalLanePositionValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "longitudinalLanePositionValue" + }, + { ATF_NOFLAGS, 0, offsetof(struct LongitudinalLanePosition, longitudinalLanePositionConfidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LongitudinalLanePositionConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "longitudinalLanePositionConfidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_LongitudinalLanePosition_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_LongitudinalLanePosition_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* longitudinalLanePositionValue */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* longitudinalLanePositionConfidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_LongitudinalLanePosition_specs_1 = { + sizeof(struct LongitudinalLanePosition), + offsetof(struct LongitudinalLanePosition, _asn_ctx), + asn_MAP_LongitudinalLanePosition_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_LongitudinalLanePosition = { + "LongitudinalLanePosition", + "LongitudinalLanePosition", + &asn_OP_SEQUENCE, + asn_DEF_LongitudinalLanePosition_tags_1, + sizeof(asn_DEF_LongitudinalLanePosition_tags_1) + /sizeof(asn_DEF_LongitudinalLanePosition_tags_1[0]), /* 1 */ + asn_DEF_LongitudinalLanePosition_tags_1, /* Same as above */ + sizeof(asn_DEF_LongitudinalLanePosition_tags_1) + /sizeof(asn_DEF_LongitudinalLanePosition_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_LongitudinalLanePosition_1, + 2, /* Elements count */ + &asn_SPC_LongitudinalLanePosition_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/LongitudinalLanePosition.h b/vanetza/asn1/its2/LongitudinalLanePosition.h new file mode 100644 index 000000000..42c269bd6 --- /dev/null +++ b/vanetza/asn1/its2/LongitudinalLanePosition.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _LongitudinalLanePosition_H_ +#define _LongitudinalLanePosition_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "LongitudinalLanePositionValue.h" +#include "LongitudinalLanePositionConfidence.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* LongitudinalLanePosition */ +typedef struct LongitudinalLanePosition { + LongitudinalLanePositionValue_t longitudinalLanePositionValue; + LongitudinalLanePositionConfidence_t longitudinalLanePositionConfidence; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} LongitudinalLanePosition_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_LongitudinalLanePosition; +extern asn_SEQUENCE_specifics_t asn_SPC_LongitudinalLanePosition_specs_1; +extern asn_TYPE_member_t asn_MBR_LongitudinalLanePosition_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _LongitudinalLanePosition_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/LongitudinalLanePositionConfidence.c b/vanetza/asn1/its2/LongitudinalLanePositionConfidence.c new file mode 100644 index 000000000..4da9ea7c9 --- /dev/null +++ b/vanetza/asn1/its2/LongitudinalLanePositionConfidence.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "LongitudinalLanePositionConfidence.h" + +int +LongitudinalLanePositionConfidence_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 <= 1023L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_LongitudinalLanePositionConfidence_constr_1 CC_NOTUSED = { + { 2, 1 } /* (0..1023) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_LongitudinalLanePositionConfidence_constr_1 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 ber_tlv_tag_t asn_DEF_LongitudinalLanePositionConfidence_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_LongitudinalLanePositionConfidence = { + "LongitudinalLanePositionConfidence", + "LongitudinalLanePositionConfidence", + &asn_OP_NativeInteger, + asn_DEF_LongitudinalLanePositionConfidence_tags_1, + sizeof(asn_DEF_LongitudinalLanePositionConfidence_tags_1) + /sizeof(asn_DEF_LongitudinalLanePositionConfidence_tags_1[0]), /* 1 */ + asn_DEF_LongitudinalLanePositionConfidence_tags_1, /* Same as above */ + sizeof(asn_DEF_LongitudinalLanePositionConfidence_tags_1) + /sizeof(asn_DEF_LongitudinalLanePositionConfidence_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_LongitudinalLanePositionConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_LongitudinalLanePositionConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + LongitudinalLanePositionConfidence_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/LongitudinalLanePositionConfidence.h b/vanetza/asn1/its2/LongitudinalLanePositionConfidence.h new file mode 100644 index 000000000..e4bd2dac6 --- /dev/null +++ b/vanetza/asn1/its2/LongitudinalLanePositionConfidence.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _LongitudinalLanePositionConfidence_H_ +#define _LongitudinalLanePositionConfidence_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum LongitudinalLanePositionConfidence { + LongitudinalLanePositionConfidence_outOfRange = 1022, + LongitudinalLanePositionConfidence_unavailable = 1023 +} e_LongitudinalLanePositionConfidence; + +/* LongitudinalLanePositionConfidence */ +typedef long LongitudinalLanePositionConfidence_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_LongitudinalLanePositionConfidence_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_LongitudinalLanePositionConfidence; +asn_struct_free_f LongitudinalLanePositionConfidence_free; +asn_struct_print_f LongitudinalLanePositionConfidence_print; +asn_constr_check_f LongitudinalLanePositionConfidence_constraint; +ber_type_decoder_f LongitudinalLanePositionConfidence_decode_ber; +der_type_encoder_f LongitudinalLanePositionConfidence_encode_der; +xer_type_decoder_f LongitudinalLanePositionConfidence_decode_xer; +xer_type_encoder_f LongitudinalLanePositionConfidence_encode_xer; +jer_type_encoder_f LongitudinalLanePositionConfidence_encode_jer; +oer_type_decoder_f LongitudinalLanePositionConfidence_decode_oer; +oer_type_encoder_f LongitudinalLanePositionConfidence_encode_oer; +per_type_decoder_f LongitudinalLanePositionConfidence_decode_uper; +per_type_encoder_f LongitudinalLanePositionConfidence_encode_uper; +per_type_decoder_f LongitudinalLanePositionConfidence_decode_aper; +per_type_encoder_f LongitudinalLanePositionConfidence_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _LongitudinalLanePositionConfidence_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/LongitudinalLanePositionValue.c b/vanetza/asn1/its2/LongitudinalLanePositionValue.c new file mode 100644 index 000000000..f4851044e --- /dev/null +++ b/vanetza/asn1/its2/LongitudinalLanePositionValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "LongitudinalLanePositionValue.h" + +int +LongitudinalLanePositionValue_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 <= 32767L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_LongitudinalLanePositionValue_constr_1 CC_NOTUSED = { + { 2, 1 } /* (0..32767) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_LongitudinalLanePositionValue_constr_1 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 ber_tlv_tag_t asn_DEF_LongitudinalLanePositionValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_LongitudinalLanePositionValue = { + "LongitudinalLanePositionValue", + "LongitudinalLanePositionValue", + &asn_OP_NativeInteger, + asn_DEF_LongitudinalLanePositionValue_tags_1, + sizeof(asn_DEF_LongitudinalLanePositionValue_tags_1) + /sizeof(asn_DEF_LongitudinalLanePositionValue_tags_1[0]), /* 1 */ + asn_DEF_LongitudinalLanePositionValue_tags_1, /* Same as above */ + sizeof(asn_DEF_LongitudinalLanePositionValue_tags_1) + /sizeof(asn_DEF_LongitudinalLanePositionValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_LongitudinalLanePositionValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_LongitudinalLanePositionValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + LongitudinalLanePositionValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/LongitudinalLanePositionValue.h b/vanetza/asn1/its2/LongitudinalLanePositionValue.h new file mode 100644 index 000000000..f1598a6ed --- /dev/null +++ b/vanetza/asn1/its2/LongitudinalLanePositionValue.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _LongitudinalLanePositionValue_H_ +#define _LongitudinalLanePositionValue_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum LongitudinalLanePositionValue { + LongitudinalLanePositionValue_outOfRange = 32766, + LongitudinalLanePositionValue_unavailable = 32767 +} e_LongitudinalLanePositionValue; + +/* LongitudinalLanePositionValue */ +typedef long LongitudinalLanePositionValue_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_LongitudinalLanePositionValue_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_LongitudinalLanePositionValue; +asn_struct_free_f LongitudinalLanePositionValue_free; +asn_struct_print_f LongitudinalLanePositionValue_print; +asn_constr_check_f LongitudinalLanePositionValue_constraint; +ber_type_decoder_f LongitudinalLanePositionValue_decode_ber; +der_type_encoder_f LongitudinalLanePositionValue_encode_der; +xer_type_decoder_f LongitudinalLanePositionValue_decode_xer; +xer_type_encoder_f LongitudinalLanePositionValue_encode_xer; +jer_type_encoder_f LongitudinalLanePositionValue_encode_jer; +oer_type_decoder_f LongitudinalLanePositionValue_decode_oer; +oer_type_encoder_f LongitudinalLanePositionValue_encode_oer; +per_type_decoder_f LongitudinalLanePositionValue_decode_uper; +per_type_encoder_f LongitudinalLanePositionValue_encode_uper; +per_type_decoder_f LongitudinalLanePositionValue_decode_aper; +per_type_encoder_f LongitudinalLanePositionValue_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _LongitudinalLanePositionValue_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/LowFrequencyContainer.c b/vanetza/asn1/its2/LowFrequencyContainer.c new file mode 100644 index 000000000..06d449964 --- /dev/null +++ b/vanetza/asn1/its2/LowFrequencyContainer.c @@ -0,0 +1,81 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/TS103900v211-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "LowFrequencyContainer.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_LowFrequencyContainer_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_LowFrequencyContainer_constr_1 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) */ +asn_TYPE_member_t asn_MBR_LowFrequencyContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct LowFrequencyContainer, choice.basicVehicleContainerLowFrequency), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BasicVehicleContainerLowFrequency, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "basicVehicleContainerLowFrequency" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_LowFrequencyContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* basicVehicleContainerLowFrequency */ +}; +asn_CHOICE_specifics_t asn_SPC_LowFrequencyContainer_specs_1 = { + sizeof(struct LowFrequencyContainer), + offsetof(struct LowFrequencyContainer, _asn_ctx), + offsetof(struct LowFrequencyContainer, present), + sizeof(((struct LowFrequencyContainer *)0)->present), + asn_MAP_LowFrequencyContainer_tag2el_1, + 1, /* Count of tags in the map */ + 0, 0, + 1 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_LowFrequencyContainer = { + "LowFrequencyContainer", + "LowFrequencyContainer", + &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) + &asn_OER_type_LowFrequencyContainer_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_LowFrequencyContainer_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_LowFrequencyContainer_1, + 1, /* Elements count */ + &asn_SPC_LowFrequencyContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/LowFrequencyContainer.h b/vanetza/asn1/its2/LowFrequencyContainer.h new file mode 100644 index 000000000..5064c5829 --- /dev/null +++ b/vanetza/asn1/its2/LowFrequencyContainer.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/TS103900v211-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _LowFrequencyContainer_H_ +#define _LowFrequencyContainer_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "BasicVehicleContainerLowFrequency.h" +#include "constr_CHOICE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum LowFrequencyContainer_PR { + LowFrequencyContainer_PR_NOTHING, /* No components present */ + LowFrequencyContainer_PR_basicVehicleContainerLowFrequency + /* Extensions may appear below */ + +} LowFrequencyContainer_PR; + +/* LowFrequencyContainer */ +typedef struct LowFrequencyContainer { + LowFrequencyContainer_PR present; + union LowFrequencyContainer_u { + BasicVehicleContainerLowFrequency_t basicVehicleContainerLowFrequency; + /* + * This type is extensible, + * possible extensions are below. + */ + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} LowFrequencyContainer_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_LowFrequencyContainer; +extern asn_CHOICE_specifics_t asn_SPC_LowFrequencyContainer_specs_1; +extern asn_TYPE_member_t asn_MBR_LowFrequencyContainer_1[1]; +extern asn_per_constraints_t asn_PER_type_LowFrequencyContainer_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _LowFrequencyContainer_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/LowerTriangularPositiveSemidefiniteMatrices.c b/vanetza/asn1/its2/LowerTriangularPositiveSemidefiniteMatrices.c new file mode 100644 index 000000000..2e3fc6a35 --- /dev/null +++ b/vanetza/asn1/its2/LowerTriangularPositiveSemidefiniteMatrices.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "LowerTriangularPositiveSemidefiniteMatrices.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_LowerTriangularPositiveSemidefiniteMatrices_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..4)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_LowerTriangularPositiveSemidefiniteMatrices_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_LowerTriangularPositiveSemidefiniteMatrices_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_LowerTriangularPositiveSemidefiniteMatrix, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_LowerTriangularPositiveSemidefiniteMatrices_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_LowerTriangularPositiveSemidefiniteMatrices_specs_1 = { + sizeof(struct LowerTriangularPositiveSemidefiniteMatrices), + offsetof(struct LowerTriangularPositiveSemidefiniteMatrices, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_LowerTriangularPositiveSemidefiniteMatrices = { + "LowerTriangularPositiveSemidefiniteMatrices", + "LowerTriangularPositiveSemidefiniteMatrices", + &asn_OP_SEQUENCE_OF, + asn_DEF_LowerTriangularPositiveSemidefiniteMatrices_tags_1, + sizeof(asn_DEF_LowerTriangularPositiveSemidefiniteMatrices_tags_1) + /sizeof(asn_DEF_LowerTriangularPositiveSemidefiniteMatrices_tags_1[0]), /* 1 */ + asn_DEF_LowerTriangularPositiveSemidefiniteMatrices_tags_1, /* Same as above */ + sizeof(asn_DEF_LowerTriangularPositiveSemidefiniteMatrices_tags_1) + /sizeof(asn_DEF_LowerTriangularPositiveSemidefiniteMatrices_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_LowerTriangularPositiveSemidefiniteMatrices_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_LowerTriangularPositiveSemidefiniteMatrices_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_LowerTriangularPositiveSemidefiniteMatrices_1, + 1, /* Single element */ + &asn_SPC_LowerTriangularPositiveSemidefiniteMatrices_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/LowerTriangularPositiveSemidefiniteMatrices.h b/vanetza/asn1/its2/LowerTriangularPositiveSemidefiniteMatrices.h new file mode 100644 index 000000000..52c83e887 --- /dev/null +++ b/vanetza/asn1/its2/LowerTriangularPositiveSemidefiniteMatrices.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _LowerTriangularPositiveSemidefiniteMatrices_H_ +#define _LowerTriangularPositiveSemidefiniteMatrices_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct LowerTriangularPositiveSemidefiniteMatrix; + +/* LowerTriangularPositiveSemidefiniteMatrices */ +typedef struct LowerTriangularPositiveSemidefiniteMatrices { + A_SEQUENCE_OF(struct LowerTriangularPositiveSemidefiniteMatrix) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} LowerTriangularPositiveSemidefiniteMatrices_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_LowerTriangularPositiveSemidefiniteMatrices; +extern asn_SET_OF_specifics_t asn_SPC_LowerTriangularPositiveSemidefiniteMatrices_specs_1; +extern asn_TYPE_member_t asn_MBR_LowerTriangularPositiveSemidefiniteMatrices_1[1]; +extern asn_per_constraints_t asn_PER_type_LowerTriangularPositiveSemidefiniteMatrices_constr_1; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "LowerTriangularPositiveSemidefiniteMatrix.h" + +#endif /* _LowerTriangularPositiveSemidefiniteMatrices_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/LowerTriangularPositiveSemidefiniteMatrix.c b/vanetza/asn1/its2/LowerTriangularPositiveSemidefiniteMatrix.c new file mode 100644 index 000000000..4cf999211 --- /dev/null +++ b/vanetza/asn1/its2/LowerTriangularPositiveSemidefiniteMatrix.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "LowerTriangularPositiveSemidefiniteMatrix.h" + +asn_TYPE_member_t asn_MBR_LowerTriangularPositiveSemidefiniteMatrix_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct LowerTriangularPositiveSemidefiniteMatrix, componentsIncludedIntheMatrix), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MatrixIncludedComponents, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "componentsIncludedIntheMatrix" + }, + { ATF_NOFLAGS, 0, offsetof(struct LowerTriangularPositiveSemidefiniteMatrix, matrix), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LowerTriangularPositiveSemidefiniteMatrixColumns, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "matrix" + }, +}; +static const ber_tlv_tag_t asn_DEF_LowerTriangularPositiveSemidefiniteMatrix_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_LowerTriangularPositiveSemidefiniteMatrix_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* componentsIncludedIntheMatrix */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* matrix */ +}; +asn_SEQUENCE_specifics_t asn_SPC_LowerTriangularPositiveSemidefiniteMatrix_specs_1 = { + sizeof(struct LowerTriangularPositiveSemidefiniteMatrix), + offsetof(struct LowerTriangularPositiveSemidefiniteMatrix, _asn_ctx), + asn_MAP_LowerTriangularPositiveSemidefiniteMatrix_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_LowerTriangularPositiveSemidefiniteMatrix = { + "LowerTriangularPositiveSemidefiniteMatrix", + "LowerTriangularPositiveSemidefiniteMatrix", + &asn_OP_SEQUENCE, + asn_DEF_LowerTriangularPositiveSemidefiniteMatrix_tags_1, + sizeof(asn_DEF_LowerTriangularPositiveSemidefiniteMatrix_tags_1) + /sizeof(asn_DEF_LowerTriangularPositiveSemidefiniteMatrix_tags_1[0]), /* 1 */ + asn_DEF_LowerTriangularPositiveSemidefiniteMatrix_tags_1, /* Same as above */ + sizeof(asn_DEF_LowerTriangularPositiveSemidefiniteMatrix_tags_1) + /sizeof(asn_DEF_LowerTriangularPositiveSemidefiniteMatrix_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_LowerTriangularPositiveSemidefiniteMatrix_1, + 2, /* Elements count */ + &asn_SPC_LowerTriangularPositiveSemidefiniteMatrix_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/LowerTriangularPositiveSemidefiniteMatrix.h b/vanetza/asn1/its2/LowerTriangularPositiveSemidefiniteMatrix.h new file mode 100644 index 000000000..1d8eba87e --- /dev/null +++ b/vanetza/asn1/its2/LowerTriangularPositiveSemidefiniteMatrix.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _LowerTriangularPositiveSemidefiniteMatrix_H_ +#define _LowerTriangularPositiveSemidefiniteMatrix_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "MatrixIncludedComponents.h" +#include "LowerTriangularPositiveSemidefiniteMatrixColumns.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* LowerTriangularPositiveSemidefiniteMatrix */ +typedef struct LowerTriangularPositiveSemidefiniteMatrix { + MatrixIncludedComponents_t componentsIncludedIntheMatrix; + LowerTriangularPositiveSemidefiniteMatrixColumns_t matrix; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} LowerTriangularPositiveSemidefiniteMatrix_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_LowerTriangularPositiveSemidefiniteMatrix; +extern asn_SEQUENCE_specifics_t asn_SPC_LowerTriangularPositiveSemidefiniteMatrix_specs_1; +extern asn_TYPE_member_t asn_MBR_LowerTriangularPositiveSemidefiniteMatrix_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _LowerTriangularPositiveSemidefiniteMatrix_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/LowerTriangularPositiveSemidefiniteMatrixColumns.c b/vanetza/asn1/its2/LowerTriangularPositiveSemidefiniteMatrixColumns.c new file mode 100644 index 000000000..3c4dd26cb --- /dev/null +++ b/vanetza/asn1/its2/LowerTriangularPositiveSemidefiniteMatrixColumns.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "LowerTriangularPositiveSemidefiniteMatrixColumns.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_LowerTriangularPositiveSemidefiniteMatrixColumns_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_LowerTriangularPositiveSemidefiniteMatrixColumns_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 4, 4, 1, 13 } /* (SIZE(1..13,...)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_LowerTriangularPositiveSemidefiniteMatrixColumns_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_CorrelationColumn, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_LowerTriangularPositiveSemidefiniteMatrixColumns_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_LowerTriangularPositiveSemidefiniteMatrixColumns_specs_1 = { + sizeof(struct LowerTriangularPositiveSemidefiniteMatrixColumns), + offsetof(struct LowerTriangularPositiveSemidefiniteMatrixColumns, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_LowerTriangularPositiveSemidefiniteMatrixColumns = { + "LowerTriangularPositiveSemidefiniteMatrixColumns", + "LowerTriangularPositiveSemidefiniteMatrixColumns", + &asn_OP_SEQUENCE_OF, + asn_DEF_LowerTriangularPositiveSemidefiniteMatrixColumns_tags_1, + sizeof(asn_DEF_LowerTriangularPositiveSemidefiniteMatrixColumns_tags_1) + /sizeof(asn_DEF_LowerTriangularPositiveSemidefiniteMatrixColumns_tags_1[0]), /* 1 */ + asn_DEF_LowerTriangularPositiveSemidefiniteMatrixColumns_tags_1, /* Same as above */ + sizeof(asn_DEF_LowerTriangularPositiveSemidefiniteMatrixColumns_tags_1) + /sizeof(asn_DEF_LowerTriangularPositiveSemidefiniteMatrixColumns_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_LowerTriangularPositiveSemidefiniteMatrixColumns_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_LowerTriangularPositiveSemidefiniteMatrixColumns_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_LowerTriangularPositiveSemidefiniteMatrixColumns_1, + 1, /* Single element */ + &asn_SPC_LowerTriangularPositiveSemidefiniteMatrixColumns_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/LowerTriangularPositiveSemidefiniteMatrixColumns.h b/vanetza/asn1/its2/LowerTriangularPositiveSemidefiniteMatrixColumns.h new file mode 100644 index 000000000..60eb0be78 --- /dev/null +++ b/vanetza/asn1/its2/LowerTriangularPositiveSemidefiniteMatrixColumns.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _LowerTriangularPositiveSemidefiniteMatrixColumns_H_ +#define _LowerTriangularPositiveSemidefiniteMatrixColumns_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct CorrelationColumn; + +/* LowerTriangularPositiveSemidefiniteMatrixColumns */ +typedef struct LowerTriangularPositiveSemidefiniteMatrixColumns { + A_SEQUENCE_OF(struct CorrelationColumn) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} LowerTriangularPositiveSemidefiniteMatrixColumns_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_LowerTriangularPositiveSemidefiniteMatrixColumns; +extern asn_SET_OF_specifics_t asn_SPC_LowerTriangularPositiveSemidefiniteMatrixColumns_specs_1; +extern asn_TYPE_member_t asn_MBR_LowerTriangularPositiveSemidefiniteMatrixColumns_1[1]; +extern asn_per_constraints_t asn_PER_type_LowerTriangularPositiveSemidefiniteMatrixColumns_constr_1; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "CorrelationColumn.h" + +#endif /* _LowerTriangularPositiveSemidefiniteMatrixColumns_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/MapPosition.c b/vanetza/asn1/its2/MapPosition.c new file mode 100644 index 000000000..d1bd4fb0b --- /dev/null +++ b/vanetza/asn1/its2/MapPosition.c @@ -0,0 +1,149 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "MapPosition.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_MapPosition_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_MapPosition_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 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) */ +asn_TYPE_member_t asn_MBR_MapPosition_1[] = { + { ATF_POINTER, 4, offsetof(struct MapPosition, mapReference), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_MapReference, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "mapReference" + }, + { ATF_POINTER, 3, offsetof(struct MapPosition, laneId), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Identifier1B, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "laneId" + }, + { ATF_POINTER, 2, offsetof(struct MapPosition, connectionId), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Identifier1B, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "connectionId" + }, + { ATF_POINTER, 1, offsetof(struct MapPosition, longitudinalLanePosition), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LongitudinalLanePosition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "longitudinalLanePosition" + }, +}; +static const int asn_MAP_MapPosition_oms_1[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_MapPosition_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_MapPosition_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mapReference */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* laneId */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* connectionId */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* longitudinalLanePosition */ +}; +asn_SEQUENCE_specifics_t asn_SPC_MapPosition_specs_1 = { + sizeof(struct MapPosition), + offsetof(struct MapPosition, _asn_ctx), + asn_MAP_MapPosition_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_MapPosition_oms_1, /* Optional members */ + 4, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_MapPosition = { + "MapPosition", + "MapPosition", + &asn_OP_SEQUENCE, + asn_DEF_MapPosition_tags_1, + sizeof(asn_DEF_MapPosition_tags_1) + /sizeof(asn_DEF_MapPosition_tags_1[0]), /* 1 */ + asn_DEF_MapPosition_tags_1, /* Same as above */ + sizeof(asn_DEF_MapPosition_tags_1) + /sizeof(asn_DEF_MapPosition_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_MapPosition_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_MapPosition_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_MapPosition_1, + 4, /* Elements count */ + &asn_SPC_MapPosition_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/MapPosition.h b/vanetza/asn1/its2/MapPosition.h new file mode 100644 index 000000000..4369fb220 --- /dev/null +++ b/vanetza/asn1/its2/MapPosition.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _MapPosition_H_ +#define _MapPosition_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "Identifier1B.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct MapReference; +struct LongitudinalLanePosition; + +/* MapPosition */ +typedef struct MapPosition { + struct MapReference *mapReference; /* OPTIONAL */ + Identifier1B_t *laneId; /* OPTIONAL */ + Identifier1B_t *connectionId; /* OPTIONAL */ + struct LongitudinalLanePosition *longitudinalLanePosition; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} MapPosition_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_MapPosition; +extern asn_SEQUENCE_specifics_t asn_SPC_MapPosition_specs_1; +extern asn_TYPE_member_t asn_MBR_MapPosition_1[4]; +extern asn_per_constraints_t asn_PER_type_MapPosition_constr_1; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "MapReference.h" +#include "LongitudinalLanePosition.h" + +#endif /* _MapPosition_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/MapReference.c b/vanetza/asn1/its2/MapReference.c new file mode 100644 index 000000000..0e839fffb --- /dev/null +++ b/vanetza/asn1/its2/MapReference.c @@ -0,0 +1,102 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "MapReference.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_MapReference_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_MapReference_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_MapReference_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct MapReference, choice.roadsegment), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RoadSegmentReferenceId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "roadsegment" + }, + { ATF_NOFLAGS, 0, offsetof(struct MapReference, choice.intersection), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_IntersectionReferenceId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "intersection" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_MapReference_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* roadsegment */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* intersection */ +}; +asn_CHOICE_specifics_t asn_SPC_MapReference_specs_1 = { + sizeof(struct MapReference), + offsetof(struct MapReference, _asn_ctx), + offsetof(struct MapReference, present), + sizeof(((struct MapReference *)0)->present), + asn_MAP_MapReference_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_MapReference = { + "MapReference", + "MapReference", + &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) + &asn_OER_type_MapReference_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_MapReference_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_MapReference_1, + 2, /* Elements count */ + &asn_SPC_MapReference_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/MapReference.h b/vanetza/asn1/its2/MapReference.h new file mode 100644 index 000000000..68769256e --- /dev/null +++ b/vanetza/asn1/its2/MapReference.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _MapReference_H_ +#define _MapReference_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "RoadSegmentReferenceId.h" +#include "IntersectionReferenceId.h" +#include "constr_CHOICE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum MapReference_PR { + MapReference_PR_NOTHING, /* No components present */ + MapReference_PR_roadsegment, + MapReference_PR_intersection +} MapReference_PR; + +/* MapReference */ +typedef struct MapReference { + MapReference_PR present; + union MapReference_u { + RoadSegmentReferenceId_t roadsegment; + IntersectionReferenceId_t intersection; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} MapReference_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_MapReference; +extern asn_CHOICE_specifics_t asn_SPC_MapReference_specs_1; +extern asn_TYPE_member_t asn_MBR_MapReference_1[2]; +extern asn_per_constraints_t asn_PER_type_MapReference_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _MapReference_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/MapReferences.c b/vanetza/asn1/its2/MapReferences.c new file mode 100644 index 000000000..e0361ed14 --- /dev/null +++ b/vanetza/asn1/its2/MapReferences.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "MapReferences.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_MapReferences_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_MapReferences_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 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_MapReferences_1[] = { + { ATF_POINTER, 0, 0, + -1 /* Ambiguous tag (CHOICE?) */, + 0, + &asn_DEF_MapReference, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_MapReferences_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_MapReferences_specs_1 = { + sizeof(struct MapReferences), + offsetof(struct MapReferences, _asn_ctx), + 2, /* XER encoding is XMLValueList */ +}; +asn_TYPE_descriptor_t asn_DEF_MapReferences = { + "MapReferences", + "MapReferences", + &asn_OP_SEQUENCE_OF, + asn_DEF_MapReferences_tags_1, + sizeof(asn_DEF_MapReferences_tags_1) + /sizeof(asn_DEF_MapReferences_tags_1[0]), /* 1 */ + asn_DEF_MapReferences_tags_1, /* Same as above */ + sizeof(asn_DEF_MapReferences_tags_1) + /sizeof(asn_DEF_MapReferences_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_MapReferences_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_MapReferences_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_MapReferences_1, + 1, /* Single element */ + &asn_SPC_MapReferences_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/MapReferences.h b/vanetza/asn1/its2/MapReferences.h new file mode 100644 index 000000000..e22828693 --- /dev/null +++ b/vanetza/asn1/its2/MapReferences.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _MapReferences_H_ +#define _MapReferences_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct MapReference; + +/* MapReferences */ +typedef struct MapReferences { + A_SEQUENCE_OF(struct MapReference) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} MapReferences_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_MapReferences; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "MapReference.h" + +#endif /* _MapReferences_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/MapemConfiguration.c b/vanetza/asn1/its2/MapemConfiguration.c new file mode 100644 index 000000000..1ede53bf2 --- /dev/null +++ b/vanetza/asn1/its2/MapemConfiguration.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "MapemConfiguration.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_MapemConfiguration_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_MapemConfiguration_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 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_MapemConfiguration_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_MapemElementReference, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_MapemConfiguration_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_MapemConfiguration_specs_1 = { + sizeof(struct MapemConfiguration), + offsetof(struct MapemConfiguration, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_MapemConfiguration = { + "MapemConfiguration", + "MapemConfiguration", + &asn_OP_SEQUENCE_OF, + asn_DEF_MapemConfiguration_tags_1, + sizeof(asn_DEF_MapemConfiguration_tags_1) + /sizeof(asn_DEF_MapemConfiguration_tags_1[0]), /* 1 */ + asn_DEF_MapemConfiguration_tags_1, /* Same as above */ + sizeof(asn_DEF_MapemConfiguration_tags_1) + /sizeof(asn_DEF_MapemConfiguration_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_MapemConfiguration_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_MapemConfiguration_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_MapemConfiguration_1, + 1, /* Single element */ + &asn_SPC_MapemConfiguration_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/MapemConfiguration.h b/vanetza/asn1/its2/MapemConfiguration.h new file mode 100644 index 000000000..5f2f3b192 --- /dev/null +++ b/vanetza/asn1/its2/MapemConfiguration.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _MapemConfiguration_H_ +#define _MapemConfiguration_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct MapemElementReference; + +/* MapemConfiguration */ +typedef struct MapemConfiguration { + A_SEQUENCE_OF(struct MapemElementReference) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} MapemConfiguration_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_MapemConfiguration; +extern asn_SET_OF_specifics_t asn_SPC_MapemConfiguration_specs_1; +extern asn_TYPE_member_t asn_MBR_MapemConfiguration_1[1]; +extern asn_per_constraints_t asn_PER_type_MapemConfiguration_constr_1; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "MapemElementReference.h" + +#endif /* _MapemConfiguration_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/MapemConnectionList.c b/vanetza/asn1/its2/MapemConnectionList.c new file mode 100644 index 000000000..f0352cb54 --- /dev/null +++ b/vanetza/asn1/its2/MapemConnectionList.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "MapemConnectionList.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_MapemConnectionList_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_MapemConnectionList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 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_MapemConnectionList_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_Identifier1B, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_MapemConnectionList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_MapemConnectionList_specs_1 = { + sizeof(struct MapemConnectionList), + offsetof(struct MapemConnectionList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_MapemConnectionList = { + "MapemConnectionList", + "MapemConnectionList", + &asn_OP_SEQUENCE_OF, + asn_DEF_MapemConnectionList_tags_1, + sizeof(asn_DEF_MapemConnectionList_tags_1) + /sizeof(asn_DEF_MapemConnectionList_tags_1[0]), /* 1 */ + asn_DEF_MapemConnectionList_tags_1, /* Same as above */ + sizeof(asn_DEF_MapemConnectionList_tags_1) + /sizeof(asn_DEF_MapemConnectionList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_MapemConnectionList_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_MapemConnectionList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_MapemConnectionList_1, + 1, /* Single element */ + &asn_SPC_MapemConnectionList_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/MapemConnectionList.h b/vanetza/asn1/its2/MapemConnectionList.h new file mode 100644 index 000000000..c452a3dc3 --- /dev/null +++ b/vanetza/asn1/its2/MapemConnectionList.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _MapemConnectionList_H_ +#define _MapemConnectionList_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "Identifier1B.h" +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* MapemConnectionList */ +typedef struct MapemConnectionList { + A_SEQUENCE_OF(Identifier1B_t) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} MapemConnectionList_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_MapemConnectionList; +extern asn_SET_OF_specifics_t asn_SPC_MapemConnectionList_specs_1; +extern asn_TYPE_member_t asn_MBR_MapemConnectionList_1[1]; +extern asn_per_constraints_t asn_PER_type_MapemConnectionList_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _MapemConnectionList_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/MapemElementReference.c b/vanetza/asn1/its2/MapemElementReference.c new file mode 100644 index 000000000..71f442aff --- /dev/null +++ b/vanetza/asn1/its2/MapemElementReference.c @@ -0,0 +1,128 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "MapemElementReference.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_MapemElementReference_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_MapemElementReference_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 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) */ +asn_TYPE_member_t asn_MBR_MapemElementReference_1[] = { + { ATF_POINTER, 3, offsetof(struct MapemElementReference, mapReference), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_MapReference, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "mapReference" + }, + { ATF_POINTER, 2, offsetof(struct MapemElementReference, laneIds), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MapemLaneList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "laneIds" + }, + { ATF_POINTER, 1, offsetof(struct MapemElementReference, connectionIds), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MapemConnectionList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "connectionIds" + }, +}; +static const int asn_MAP_MapemElementReference_oms_1[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_MapemElementReference_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_MapemElementReference_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mapReference */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* laneIds */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* connectionIds */ +}; +asn_SEQUENCE_specifics_t asn_SPC_MapemElementReference_specs_1 = { + sizeof(struct MapemElementReference), + offsetof(struct MapemElementReference, _asn_ctx), + asn_MAP_MapemElementReference_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_MapemElementReference_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_MapemElementReference = { + "MapemElementReference", + "MapemElementReference", + &asn_OP_SEQUENCE, + asn_DEF_MapemElementReference_tags_1, + sizeof(asn_DEF_MapemElementReference_tags_1) + /sizeof(asn_DEF_MapemElementReference_tags_1[0]), /* 1 */ + asn_DEF_MapemElementReference_tags_1, /* Same as above */ + sizeof(asn_DEF_MapemElementReference_tags_1) + /sizeof(asn_DEF_MapemElementReference_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_MapemElementReference_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_MapemElementReference_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_MapemElementReference_1, + 3, /* Elements count */ + &asn_SPC_MapemElementReference_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/MapemElementReference.h b/vanetza/asn1/its2/MapemElementReference.h new file mode 100644 index 000000000..ec216655d --- /dev/null +++ b/vanetza/asn1/its2/MapemElementReference.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _MapemElementReference_H_ +#define _MapemElementReference_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct MapReference; +struct MapemLaneList; +struct MapemConnectionList; + +/* MapemElementReference */ +typedef struct MapemElementReference { + struct MapReference *mapReference; /* OPTIONAL */ + struct MapemLaneList *laneIds; /* OPTIONAL */ + struct MapemConnectionList *connectionIds; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} MapemElementReference_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_MapemElementReference; +extern asn_SEQUENCE_specifics_t asn_SPC_MapemElementReference_specs_1; +extern asn_TYPE_member_t asn_MBR_MapemElementReference_1[3]; +extern asn_per_constraints_t asn_PER_type_MapemElementReference_constr_1; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "MapReference.h" +#include "MapemLaneList.h" +#include "MapemConnectionList.h" + +#endif /* _MapemElementReference_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/MapemLaneList.c b/vanetza/asn1/its2/MapemLaneList.c new file mode 100644 index 000000000..f17499011 --- /dev/null +++ b/vanetza/asn1/its2/MapemLaneList.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "MapemLaneList.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_MapemLaneList_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_MapemLaneList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 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_MapemLaneList_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_Identifier1B, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_MapemLaneList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_MapemLaneList_specs_1 = { + sizeof(struct MapemLaneList), + offsetof(struct MapemLaneList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_MapemLaneList = { + "MapemLaneList", + "MapemLaneList", + &asn_OP_SEQUENCE_OF, + asn_DEF_MapemLaneList_tags_1, + sizeof(asn_DEF_MapemLaneList_tags_1) + /sizeof(asn_DEF_MapemLaneList_tags_1[0]), /* 1 */ + asn_DEF_MapemLaneList_tags_1, /* Same as above */ + sizeof(asn_DEF_MapemLaneList_tags_1) + /sizeof(asn_DEF_MapemLaneList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_MapemLaneList_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_MapemLaneList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_MapemLaneList_1, + 1, /* Single element */ + &asn_SPC_MapemLaneList_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/MapemLaneList.h b/vanetza/asn1/its2/MapemLaneList.h new file mode 100644 index 000000000..0d58883b8 --- /dev/null +++ b/vanetza/asn1/its2/MapemLaneList.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _MapemLaneList_H_ +#define _MapemLaneList_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "Identifier1B.h" +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* MapemLaneList */ +typedef struct MapemLaneList { + A_SEQUENCE_OF(Identifier1B_t) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} MapemLaneList_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_MapemLaneList; +extern asn_SET_OF_specifics_t asn_SPC_MapemLaneList_specs_1; +extern asn_TYPE_member_t asn_MBR_MapemLaneList_1[1]; +extern asn_per_constraints_t asn_PER_type_MapemLaneList_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _MapemLaneList_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/MatrixIncludedComponents.c b/vanetza/asn1/its2/MatrixIncludedComponents.c new file mode 100644 index 000000000..fc9f6046b --- /dev/null +++ b/vanetza/asn1/its2/MatrixIncludedComponents.c @@ -0,0 +1,89 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "MatrixIncludedComponents.h" + +int +MatrixIncludedComponents_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 == 13UL)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_MatrixIncludedComponents_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_MatrixIncludedComponents_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 13, 13 } /* (SIZE(13..13,...)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_MatrixIncludedComponents_constr_1 CC_NOTUSED = { + -1}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_MatrixIncludedComponents_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_MatrixIncludedComponents = { + "MatrixIncludedComponents", + "MatrixIncludedComponents", + &asn_OP_BIT_STRING, + asn_DEF_MatrixIncludedComponents_tags_1, + sizeof(asn_DEF_MatrixIncludedComponents_tags_1) + /sizeof(asn_DEF_MatrixIncludedComponents_tags_1[0]), /* 1 */ + asn_DEF_MatrixIncludedComponents_tags_1, /* Same as above */ + sizeof(asn_DEF_MatrixIncludedComponents_tags_1) + /sizeof(asn_DEF_MatrixIncludedComponents_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_MatrixIncludedComponents_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_MatrixIncludedComponents_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_MatrixIncludedComponents_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + MatrixIncludedComponents_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/MatrixIncludedComponents.h b/vanetza/asn1/its2/MatrixIncludedComponents.h new file mode 100644 index 000000000..4c4a874b5 --- /dev/null +++ b/vanetza/asn1/its2/MatrixIncludedComponents.h @@ -0,0 +1,64 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _MatrixIncludedComponents_H_ +#define _MatrixIncludedComponents_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "BIT_STRING.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum MatrixIncludedComponents { + MatrixIncludedComponents_xPosition = 0, + MatrixIncludedComponents_yPosition = 1, + MatrixIncludedComponents_zPosition = 2, + MatrixIncludedComponents_xVelocityOrVelocityMagnitude = 3, + MatrixIncludedComponents_yVelocityOrVelocityDirection = 4, + MatrixIncludedComponents_zSpeed = 5, + MatrixIncludedComponents_xAccelOrAccelMagnitude = 6, + MatrixIncludedComponents_yAccelOrAccelDirection = 7, + MatrixIncludedComponents_zAcceleration = 8, + MatrixIncludedComponents_zAngle = 9, + MatrixIncludedComponents_yAngle = 10, + MatrixIncludedComponents_xAngle = 11, + MatrixIncludedComponents_zAngularVelocity = 12 +} e_MatrixIncludedComponents; + +/* MatrixIncludedComponents */ +typedef BIT_STRING_t MatrixIncludedComponents_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_MatrixIncludedComponents_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_MatrixIncludedComponents; +asn_struct_free_f MatrixIncludedComponents_free; +asn_struct_print_f MatrixIncludedComponents_print; +asn_constr_check_f MatrixIncludedComponents_constraint; +ber_type_decoder_f MatrixIncludedComponents_decode_ber; +der_type_encoder_f MatrixIncludedComponents_encode_der; +xer_type_decoder_f MatrixIncludedComponents_decode_xer; +xer_type_encoder_f MatrixIncludedComponents_encode_xer; +jer_type_encoder_f MatrixIncludedComponents_encode_jer; +oer_type_decoder_f MatrixIncludedComponents_decode_oer; +oer_type_encoder_f MatrixIncludedComponents_encode_oer; +per_type_decoder_f MatrixIncludedComponents_decode_uper; +per_type_encoder_f MatrixIncludedComponents_encode_uper; +per_type_decoder_f MatrixIncludedComponents_decode_aper; +per_type_encoder_f MatrixIncludedComponents_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _MatrixIncludedComponents_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/MessageId.c b/vanetza/asn1/its2/MessageId.c new file mode 100644 index 000000000..c538afd8b --- /dev/null +++ b/vanetza/asn1/its2/MessageId.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "MessageId.h" + +int +MessageId_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_MessageId_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_MessageId_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_MessageId_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_MessageId = { + "MessageId", + "MessageId", + &asn_OP_NativeInteger, + asn_DEF_MessageId_tags_1, + sizeof(asn_DEF_MessageId_tags_1) + /sizeof(asn_DEF_MessageId_tags_1[0]), /* 1 */ + asn_DEF_MessageId_tags_1, /* Same as above */ + sizeof(asn_DEF_MessageId_tags_1) + /sizeof(asn_DEF_MessageId_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_MessageId_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_MessageId_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + MessageId_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/MessageId.h b/vanetza/asn1/its2/MessageId.h new file mode 100644 index 000000000..c60420cde --- /dev/null +++ b/vanetza/asn1/its2/MessageId.h @@ -0,0 +1,72 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _MessageId_H_ +#define _MessageId_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum MessageId { + MessageId_denm = 1, + MessageId_cam = 2, + MessageId_poim = 3, + MessageId_spatem = 4, + MessageId_mapem = 5, + MessageId_ivim = 6, + MessageId_rfu1 = 7, + MessageId_rfu2 = 8, + MessageId_srem = 9, + MessageId_ssem = 10, + MessageId_evcsn = 11, + MessageId_saem = 12, + MessageId_rtcmem = 13, + MessageId_cpm = 14, + MessageId_imzm = 15, + MessageId_vam = 16, + MessageId_dsm = 17, + MessageId_pcim = 18, + MessageId_pcvm = 19, + MessageId_mcm = 20, + MessageId_pam = 21 +} e_MessageId; + +/* MessageId */ +typedef long MessageId_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_MessageId_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_MessageId; +asn_struct_free_f MessageId_free; +asn_struct_print_f MessageId_print; +asn_constr_check_f MessageId_constraint; +ber_type_decoder_f MessageId_decode_ber; +der_type_encoder_f MessageId_encode_der; +xer_type_decoder_f MessageId_decode_xer; +xer_type_encoder_f MessageId_encode_xer; +jer_type_encoder_f MessageId_encode_jer; +oer_type_decoder_f MessageId_decode_oer; +oer_type_encoder_f MessageId_encode_oer; +per_type_decoder_f MessageId_decode_uper; +per_type_encoder_f MessageId_encode_uper; +per_type_decoder_f MessageId_decode_aper; +per_type_encoder_f MessageId_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _MessageId_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/MessageRateHz.c b/vanetza/asn1/its2/MessageRateHz.c new file mode 100644 index 000000000..5594ea412 --- /dev/null +++ b/vanetza/asn1/its2/MessageRateHz.c @@ -0,0 +1,167 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "MessageRateHz.h" + +static int +memb_mantissa_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + 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_exponent_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= -5L && 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; + } +} + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_mantissa_constr_2 CC_NOTUSED = { + { 1, 1 } /* (1..100) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_mantissa_constr_2 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_exponent_constr_3 CC_NOTUSED = { + { 1, 0 } /* (-5..2) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_exponent_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 3, 3, -5, 2 } /* (-5..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_MessageRateHz_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct MessageRateHz, mantissa), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_mantissa_constr_2, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_mantissa_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_mantissa_constraint_1 + }, + 0, 0, /* No default value */ + "mantissa" + }, + { ATF_NOFLAGS, 0, offsetof(struct MessageRateHz, exponent), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_exponent_constr_3, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_exponent_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_exponent_constraint_1 + }, + 0, 0, /* No default value */ + "exponent" + }, +}; +static const ber_tlv_tag_t asn_DEF_MessageRateHz_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_MessageRateHz_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mantissa */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* exponent */ +}; +asn_SEQUENCE_specifics_t asn_SPC_MessageRateHz_specs_1 = { + sizeof(struct MessageRateHz), + offsetof(struct MessageRateHz, _asn_ctx), + asn_MAP_MessageRateHz_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_MessageRateHz = { + "MessageRateHz", + "MessageRateHz", + &asn_OP_SEQUENCE, + asn_DEF_MessageRateHz_tags_1, + sizeof(asn_DEF_MessageRateHz_tags_1) + /sizeof(asn_DEF_MessageRateHz_tags_1[0]), /* 1 */ + asn_DEF_MessageRateHz_tags_1, /* Same as above */ + sizeof(asn_DEF_MessageRateHz_tags_1) + /sizeof(asn_DEF_MessageRateHz_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_MessageRateHz_1, + 2, /* Elements count */ + &asn_SPC_MessageRateHz_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/MessageRateHz.h b/vanetza/asn1/its2/MessageRateHz.h new file mode 100644 index 000000000..68672c28b --- /dev/null +++ b/vanetza/asn1/its2/MessageRateHz.h @@ -0,0 +1,41 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _MessageRateHz_H_ +#define _MessageRateHz_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* MessageRateHz */ +typedef struct MessageRateHz { + long mantissa; + long exponent; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} MessageRateHz_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_MessageRateHz; +extern asn_SEQUENCE_specifics_t asn_SPC_MessageRateHz_specs_1; +extern asn_TYPE_member_t asn_MBR_MessageRateHz_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _MessageRateHz_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/MessageRateRange.c b/vanetza/asn1/its2/MessageRateRange.c new file mode 100644 index 000000000..62c65ece0 --- /dev/null +++ b/vanetza/asn1/its2/MessageRateRange.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TS103324v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "MessageRateRange.h" + +asn_TYPE_member_t asn_MBR_MessageRateRange_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct MessageRateRange, messageRateMin), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MessageRateHz, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "messageRateMin" + }, + { ATF_NOFLAGS, 0, offsetof(struct MessageRateRange, messageRateMax), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MessageRateHz, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "messageRateMax" + }, +}; +static const ber_tlv_tag_t asn_DEF_MessageRateRange_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_MessageRateRange_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* messageRateMin */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* messageRateMax */ +}; +asn_SEQUENCE_specifics_t asn_SPC_MessageRateRange_specs_1 = { + sizeof(struct MessageRateRange), + offsetof(struct MessageRateRange, _asn_ctx), + asn_MAP_MessageRateRange_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_MessageRateRange = { + "MessageRateRange", + "MessageRateRange", + &asn_OP_SEQUENCE, + asn_DEF_MessageRateRange_tags_1, + sizeof(asn_DEF_MessageRateRange_tags_1) + /sizeof(asn_DEF_MessageRateRange_tags_1[0]), /* 1 */ + asn_DEF_MessageRateRange_tags_1, /* Same as above */ + sizeof(asn_DEF_MessageRateRange_tags_1) + /sizeof(asn_DEF_MessageRateRange_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_MessageRateRange_1, + 2, /* Elements count */ + &asn_SPC_MessageRateRange_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/MessageRateRange.h b/vanetza/asn1/its2/MessageRateRange.h new file mode 100644 index 000000000..02657922e --- /dev/null +++ b/vanetza/asn1/its2/MessageRateRange.h @@ -0,0 +1,41 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TS103324v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _MessageRateRange_H_ +#define _MessageRateRange_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "MessageRateHz.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* MessageRateRange */ +typedef struct MessageRateRange { + MessageRateHz_t messageRateMin; + MessageRateHz_t messageRateMax; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} MessageRateRange_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_MessageRateRange; +extern asn_SEQUENCE_specifics_t asn_SPC_MessageRateRange_specs_1; +extern asn_TYPE_member_t asn_MBR_MessageRateRange_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _MessageRateRange_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/MessageSegmentationInfo.c b/vanetza/asn1/its2/MessageSegmentationInfo.c new file mode 100644 index 000000000..ad80f1e68 --- /dev/null +++ b/vanetza/asn1/its2/MessageSegmentationInfo.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "MessageSegmentationInfo.h" + +asn_TYPE_member_t asn_MBR_MessageSegmentationInfo_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct MessageSegmentationInfo, totalMsgNo), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CardinalNumber3b, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "totalMsgNo" + }, + { ATF_NOFLAGS, 0, offsetof(struct MessageSegmentationInfo, thisMsgNo), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OrdinalNumber3b, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "thisMsgNo" + }, +}; +static const ber_tlv_tag_t asn_DEF_MessageSegmentationInfo_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_MessageSegmentationInfo_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* totalMsgNo */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* thisMsgNo */ +}; +asn_SEQUENCE_specifics_t asn_SPC_MessageSegmentationInfo_specs_1 = { + sizeof(struct MessageSegmentationInfo), + offsetof(struct MessageSegmentationInfo, _asn_ctx), + asn_MAP_MessageSegmentationInfo_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_MessageSegmentationInfo = { + "MessageSegmentationInfo", + "MessageSegmentationInfo", + &asn_OP_SEQUENCE, + asn_DEF_MessageSegmentationInfo_tags_1, + sizeof(asn_DEF_MessageSegmentationInfo_tags_1) + /sizeof(asn_DEF_MessageSegmentationInfo_tags_1[0]), /* 1 */ + asn_DEF_MessageSegmentationInfo_tags_1, /* Same as above */ + sizeof(asn_DEF_MessageSegmentationInfo_tags_1) + /sizeof(asn_DEF_MessageSegmentationInfo_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_MessageSegmentationInfo_1, + 2, /* Elements count */ + &asn_SPC_MessageSegmentationInfo_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/MessageSegmentationInfo.h b/vanetza/asn1/its2/MessageSegmentationInfo.h new file mode 100644 index 000000000..a3fcad9ba --- /dev/null +++ b/vanetza/asn1/its2/MessageSegmentationInfo.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _MessageSegmentationInfo_H_ +#define _MessageSegmentationInfo_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "CardinalNumber3b.h" +#include "OrdinalNumber3b.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* MessageSegmentationInfo */ +typedef struct MessageSegmentationInfo { + CardinalNumber3b_t totalMsgNo; + OrdinalNumber3b_t thisMsgNo; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} MessageSegmentationInfo_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_MessageSegmentationInfo; +extern asn_SEQUENCE_specifics_t asn_SPC_MessageSegmentationInfo_specs_1; +extern asn_TYPE_member_t asn_MBR_MessageSegmentationInfo_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _MessageSegmentationInfo_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/MetaInformation.c b/vanetza/asn1/its2/MetaInformation.c new file mode 100644 index 000000000..4238253df --- /dev/null +++ b/vanetza/asn1/its2/MetaInformation.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "MetaInformation.h" + +asn_TYPE_member_t asn_MBR_MetaInformation_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct MetaInformation, usedDetectionInformation), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SensorTypes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "usedDetectionInformation" + }, + { ATF_NOFLAGS, 0, offsetof(struct MetaInformation, usedStoredInformation), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StoredInformationType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "usedStoredInformation" + }, + { ATF_POINTER, 1, offsetof(struct MetaInformation, confidenceValue), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ConfidenceLevel, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "confidenceValue" + }, +}; +static const int asn_MAP_MetaInformation_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_MetaInformation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_MetaInformation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* usedDetectionInformation */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* usedStoredInformation */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* confidenceValue */ +}; +asn_SEQUENCE_specifics_t asn_SPC_MetaInformation_specs_1 = { + sizeof(struct MetaInformation), + offsetof(struct MetaInformation, _asn_ctx), + asn_MAP_MetaInformation_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_MetaInformation_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_MetaInformation = { + "MetaInformation", + "MetaInformation", + &asn_OP_SEQUENCE, + asn_DEF_MetaInformation_tags_1, + sizeof(asn_DEF_MetaInformation_tags_1) + /sizeof(asn_DEF_MetaInformation_tags_1[0]), /* 1 */ + asn_DEF_MetaInformation_tags_1, /* Same as above */ + sizeof(asn_DEF_MetaInformation_tags_1) + /sizeof(asn_DEF_MetaInformation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_MetaInformation_1, + 3, /* Elements count */ + &asn_SPC_MetaInformation_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/MetaInformation.h b/vanetza/asn1/its2/MetaInformation.h new file mode 100644 index 000000000..299ca5bbe --- /dev/null +++ b/vanetza/asn1/its2/MetaInformation.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _MetaInformation_H_ +#define _MetaInformation_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "SensorTypes.h" +#include "StoredInformationType.h" +#include "ConfidenceLevel.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* MetaInformation */ +typedef struct MetaInformation { + SensorTypes_t usedDetectionInformation; + StoredInformationType_t usedStoredInformation; + ConfidenceLevel_t *confidenceValue; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} MetaInformation_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_MetaInformation; +extern asn_SEQUENCE_specifics_t asn_SPC_MetaInformation_specs_1; +extern asn_TYPE_member_t asn_MBR_MetaInformation_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _MetaInformation_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/MitigationForTechnologies.c b/vanetza/asn1/its2/MitigationForTechnologies.c new file mode 100644 index 000000000..5f52033b4 --- /dev/null +++ b/vanetza/asn1/its2/MitigationForTechnologies.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "MitigationForTechnologies.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_MitigationForTechnologies_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..8)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_MitigationForTechnologies_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_MitigationForTechnologies_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_MitigationPerTechnologyClass, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_MitigationForTechnologies_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_MitigationForTechnologies_specs_1 = { + sizeof(struct MitigationForTechnologies), + offsetof(struct MitigationForTechnologies, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_MitigationForTechnologies = { + "MitigationForTechnologies", + "MitigationForTechnologies", + &asn_OP_SEQUENCE_OF, + asn_DEF_MitigationForTechnologies_tags_1, + sizeof(asn_DEF_MitigationForTechnologies_tags_1) + /sizeof(asn_DEF_MitigationForTechnologies_tags_1[0]), /* 1 */ + asn_DEF_MitigationForTechnologies_tags_1, /* Same as above */ + sizeof(asn_DEF_MitigationForTechnologies_tags_1) + /sizeof(asn_DEF_MitigationForTechnologies_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_MitigationForTechnologies_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_MitigationForTechnologies_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_MitigationForTechnologies_1, + 1, /* Single element */ + &asn_SPC_MitigationForTechnologies_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/MitigationForTechnologies.h b/vanetza/asn1/its2/MitigationForTechnologies.h new file mode 100644 index 000000000..9ddd1e972 --- /dev/null +++ b/vanetza/asn1/its2/MitigationForTechnologies.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _MitigationForTechnologies_H_ +#define _MitigationForTechnologies_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct MitigationPerTechnologyClass; + +/* MitigationForTechnologies */ +typedef struct MitigationForTechnologies { + A_SEQUENCE_OF(struct MitigationPerTechnologyClass) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} MitigationForTechnologies_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_MitigationForTechnologies; +extern asn_SET_OF_specifics_t asn_SPC_MitigationForTechnologies_specs_1; +extern asn_TYPE_member_t asn_MBR_MitigationForTechnologies_1[1]; +extern asn_per_constraints_t asn_PER_type_MitigationForTechnologies_constr_1; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "MitigationPerTechnologyClass.h" + +#endif /* _MitigationForTechnologies_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/MitigationPerTechnologyClass.c b/vanetza/asn1/its2/MitigationPerTechnologyClass.c new file mode 100644 index 000000000..f3374df24 --- /dev/null +++ b/vanetza/asn1/its2/MitigationPerTechnologyClass.c @@ -0,0 +1,306 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "MitigationPerTechnologyClass.h" + +static int +memb_lowDutyCycle_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && 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_powerReduction_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(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_dmcToffLimit_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 1200L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static int +memb_dmcTonLimit_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && 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; + } +} + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_lowDutyCycle_constr_3 CC_NOTUSED = { + { 2, 1 } /* (0..10000) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_lowDutyCycle_constr_3 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 0, 10000 } /* (0..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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_powerReduction_constr_4 CC_NOTUSED = { + { 1, 1 } /* (0..30) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_powerReduction_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_dmcToffLimit_constr_5 CC_NOTUSED = { + { 2, 1 } /* (0..1200) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dmcToffLimit_constr_5 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, 0, 1200 } /* (0..1200) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_dmcTonLimit_constr_6 CC_NOTUSED = { + { 1, 1 } /* (0..20) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_dmcTonLimit_constr_6 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) */ +asn_TYPE_member_t asn_MBR_MitigationPerTechnologyClass_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct MitigationPerTechnologyClass, accessTechnologyClass), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AccessTechnologyClass, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "accessTechnologyClass" + }, + { ATF_POINTER, 4, offsetof(struct MitigationPerTechnologyClass, lowDutyCycle), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_lowDutyCycle_constr_3, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_lowDutyCycle_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_lowDutyCycle_constraint_1 + }, + 0, 0, /* No default value */ + "lowDutyCycle" + }, + { ATF_POINTER, 3, offsetof(struct MitigationPerTechnologyClass, powerReduction), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_powerReduction_constr_4, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_powerReduction_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_powerReduction_constraint_1 + }, + 0, 0, /* No default value */ + "powerReduction" + }, + { ATF_POINTER, 2, offsetof(struct MitigationPerTechnologyClass, dmcToffLimit), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_dmcToffLimit_constr_5, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dmcToffLimit_constr_5, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_dmcToffLimit_constraint_1 + }, + 0, 0, /* No default value */ + "dmcToffLimit" + }, + { ATF_POINTER, 1, offsetof(struct MitigationPerTechnologyClass, dmcTonLimit), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_dmcTonLimit_constr_6, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_dmcTonLimit_constr_6, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_dmcTonLimit_constraint_1 + }, + 0, 0, /* No default value */ + "dmcTonLimit" + }, +}; +static const int asn_MAP_MitigationPerTechnologyClass_oms_1[] = { 1, 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_MitigationPerTechnologyClass_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_MitigationPerTechnologyClass_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* accessTechnologyClass */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* lowDutyCycle */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* powerReduction */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* dmcToffLimit */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* dmcTonLimit */ +}; +asn_SEQUENCE_specifics_t asn_SPC_MitigationPerTechnologyClass_specs_1 = { + sizeof(struct MitigationPerTechnologyClass), + offsetof(struct MitigationPerTechnologyClass, _asn_ctx), + asn_MAP_MitigationPerTechnologyClass_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_MitigationPerTechnologyClass_oms_1, /* Optional members */ + 4, 0, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_MitigationPerTechnologyClass = { + "MitigationPerTechnologyClass", + "MitigationPerTechnologyClass", + &asn_OP_SEQUENCE, + asn_DEF_MitigationPerTechnologyClass_tags_1, + sizeof(asn_DEF_MitigationPerTechnologyClass_tags_1) + /sizeof(asn_DEF_MitigationPerTechnologyClass_tags_1[0]), /* 1 */ + asn_DEF_MitigationPerTechnologyClass_tags_1, /* Same as above */ + sizeof(asn_DEF_MitigationPerTechnologyClass_tags_1) + /sizeof(asn_DEF_MitigationPerTechnologyClass_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_MitigationPerTechnologyClass_1, + 5, /* Elements count */ + &asn_SPC_MitigationPerTechnologyClass_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/MitigationPerTechnologyClass.h b/vanetza/asn1/its2/MitigationPerTechnologyClass.h new file mode 100644 index 000000000..767db478e --- /dev/null +++ b/vanetza/asn1/its2/MitigationPerTechnologyClass.h @@ -0,0 +1,49 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _MitigationPerTechnologyClass_H_ +#define _MitigationPerTechnologyClass_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "AccessTechnologyClass.h" +#include "NativeInteger.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* MitigationPerTechnologyClass */ +typedef struct MitigationPerTechnologyClass { + AccessTechnologyClass_t accessTechnologyClass; + long *lowDutyCycle; /* OPTIONAL */ + long *powerReduction; /* OPTIONAL */ + long *dmcToffLimit; /* OPTIONAL */ + long *dmcTonLimit; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} MitigationPerTechnologyClass_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_MitigationPerTechnologyClass; +extern asn_SEQUENCE_specifics_t asn_SPC_MitigationPerTechnologyClass_specs_1; +extern asn_TYPE_member_t asn_MBR_MitigationPerTechnologyClass_1[5]; + +#ifdef __cplusplus +} +#endif + +#endif /* _MitigationPerTechnologyClass_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/MotorcylistSpecialContainer.c b/vanetza/asn1/its2/MotorcylistSpecialContainer.c new file mode 100644 index 000000000..14e5ae817 --- /dev/null +++ b/vanetza/asn1/its2/MotorcylistSpecialContainer.c @@ -0,0 +1,200 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "VRU-Motorcyclist-Special-Container" + * found in "asn1/TS103300-3v221-VAM-MotorcylistSpecialContainer.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "MotorcylistSpecialContainer.h" + +static asn_TYPE_member_t asn_MBR_MotorcylistSpecialContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct MotorcylistSpecialContainer, motorcyclist), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VruSubProfileMotorcyclist, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "motorcyclist" + }, + { ATF_NOFLAGS, 0, offsetof(struct MotorcylistSpecialContainer, sizeClass), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VruSizeClass, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sizeClass" + }, + { ATF_POINTER, 5, offsetof(struct MotorcylistSpecialContainer, rollAngle), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianAngle, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rollAngle" + }, + { ATF_POINTER, 4, offsetof(struct MotorcylistSpecialContainer, orientation), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Wgs84Angle, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "orientation" + }, + { ATF_POINTER, 3, offsetof(struct MotorcylistSpecialContainer, safeDistance), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SequenceOfSafeDistanceIndication, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "safeDistance" + }, + { ATF_POINTER, 2, offsetof(struct MotorcylistSpecialContainer, pathPrediction), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PathPredicted, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "pathPrediction" + }, + { ATF_POINTER, 1, offsetof(struct MotorcylistSpecialContainer, stabilityChangeIndication), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StabilityChangeIndication, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "stabilityChangeIndication" + }, +}; +static const int asn_MAP_MotorcylistSpecialContainer_oms_1[] = { 2, 3, 4, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_MotorcylistSpecialContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_MotorcylistSpecialContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* motorcyclist */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sizeClass */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* rollAngle */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* orientation */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* safeDistance */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* pathPrediction */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* stabilityChangeIndication */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_MotorcylistSpecialContainer_specs_1 = { + sizeof(struct MotorcylistSpecialContainer), + offsetof(struct MotorcylistSpecialContainer, _asn_ctx), + asn_MAP_MotorcylistSpecialContainer_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_MotorcylistSpecialContainer_oms_1, /* Optional members */ + 5, 0, /* Root/Additions */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_MotorcylistSpecialContainer = { + "MotorcylistSpecialContainer", + "MotorcylistSpecialContainer", + &asn_OP_SEQUENCE, + asn_DEF_MotorcylistSpecialContainer_tags_1, + sizeof(asn_DEF_MotorcylistSpecialContainer_tags_1) + /sizeof(asn_DEF_MotorcylistSpecialContainer_tags_1[0]), /* 1 */ + asn_DEF_MotorcylistSpecialContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_MotorcylistSpecialContainer_tags_1) + /sizeof(asn_DEF_MotorcylistSpecialContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_MotorcylistSpecialContainer_1, + 7, /* Elements count */ + &asn_SPC_MotorcylistSpecialContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/MotorcylistSpecialContainer.h b/vanetza/asn1/its2/MotorcylistSpecialContainer.h new file mode 100644 index 000000000..1ba1bc8f3 --- /dev/null +++ b/vanetza/asn1/its2/MotorcylistSpecialContainer.h @@ -0,0 +1,63 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "VRU-Motorcyclist-Special-Container" + * found in "asn1/TS103300-3v221-VAM-MotorcylistSpecialContainer.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _MotorcylistSpecialContainer_H_ +#define _MotorcylistSpecialContainer_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "VruSubProfileMotorcyclist.h" +#include "VruSizeClass.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct CartesianAngle; +struct Wgs84Angle; +struct SequenceOfSafeDistanceIndication; +struct PathPredicted; +struct StabilityChangeIndication; + +/* MotorcylistSpecialContainer */ +typedef struct MotorcylistSpecialContainer { + VruSubProfileMotorcyclist_t motorcyclist; + VruSizeClass_t sizeClass; + struct CartesianAngle *rollAngle; /* OPTIONAL */ + struct Wgs84Angle *orientation; /* OPTIONAL */ + struct SequenceOfSafeDistanceIndication *safeDistance; /* OPTIONAL */ + struct PathPredicted *pathPrediction; /* OPTIONAL */ + struct StabilityChangeIndication *stabilityChangeIndication; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} MotorcylistSpecialContainer_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_MotorcylistSpecialContainer; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "CartesianAngle.h" +#include "Wgs84Angle.h" +#include "SequenceOfSafeDistanceIndication.h" +#include "PathPredicted.h" +#include "StabilityChangeIndication.h" + +#endif /* _MotorcylistSpecialContainer_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/NumberOfOccupants.c b/vanetza/asn1/its2/NumberOfOccupants.c new file mode 100644 index 000000000..e9271c433 --- /dev/null +++ b/vanetza/asn1/its2/NumberOfOccupants.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "NumberOfOccupants.h" + +int +NumberOfOccupants_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_NumberOfOccupants_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..127) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_NumberOfOccupants_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_NumberOfOccupants_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_NumberOfOccupants = { + "NumberOfOccupants", + "NumberOfOccupants", + &asn_OP_NativeInteger, + asn_DEF_NumberOfOccupants_tags_1, + sizeof(asn_DEF_NumberOfOccupants_tags_1) + /sizeof(asn_DEF_NumberOfOccupants_tags_1[0]), /* 1 */ + asn_DEF_NumberOfOccupants_tags_1, /* Same as above */ + sizeof(asn_DEF_NumberOfOccupants_tags_1) + /sizeof(asn_DEF_NumberOfOccupants_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_NumberOfOccupants_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_NumberOfOccupants_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NumberOfOccupants_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/NumberOfOccupants.h b/vanetza/asn1/its2/NumberOfOccupants.h new file mode 100644 index 000000000..375f7103e --- /dev/null +++ b/vanetza/asn1/its2/NumberOfOccupants.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _NumberOfOccupants_H_ +#define _NumberOfOccupants_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum NumberOfOccupants { + NumberOfOccupants_outOfRange = 126, + NumberOfOccupants_unavailable = 127 +} e_NumberOfOccupants; + +/* NumberOfOccupants */ +typedef long NumberOfOccupants_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_NumberOfOccupants_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_NumberOfOccupants; +asn_struct_free_f NumberOfOccupants_free; +asn_struct_print_f NumberOfOccupants_print; +asn_constr_check_f NumberOfOccupants_constraint; +ber_type_decoder_f NumberOfOccupants_decode_ber; +der_type_encoder_f NumberOfOccupants_encode_der; +xer_type_decoder_f NumberOfOccupants_decode_xer; +xer_type_encoder_f NumberOfOccupants_encode_xer; +jer_type_encoder_f NumberOfOccupants_encode_jer; +oer_type_decoder_f NumberOfOccupants_decode_oer; +oer_type_encoder_f NumberOfOccupants_encode_oer; +per_type_decoder_f NumberOfOccupants_decode_uper; +per_type_encoder_f NumberOfOccupants_encode_uper; +per_type_decoder_f NumberOfOccupants_decode_aper; +per_type_encoder_f NumberOfOccupants_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _NumberOfOccupants_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ObjectClass.c b/vanetza/asn1/its2/ObjectClass.c new file mode 100644 index 000000000..b980fa96c --- /dev/null +++ b/vanetza/asn1/its2/ObjectClass.c @@ -0,0 +1,212 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ObjectClass.h" + +static int +memb_vehicleSubClass_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(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 && value <= 11L) || (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; + } +} + +static int +memb_groupSubClass_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; + } + + + if(1 /* No applicable constraints whatsoever */) { + /* Nothing is here. See below */ + } + + return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); +} + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_vehicleSubClass_constr_2 CC_NOTUSED = { + { 1, 1 } /* (0..14) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_vehicleSubClass_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_groupSubClass_constr_4 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_groupSubClass_constr_4 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_ObjectClass_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ObjectClass_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_ObjectClass_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ObjectClass, choice.vehicleSubClass), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TrafficParticipantType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_vehicleSubClass_constr_2, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_vehicleSubClass_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_vehicleSubClass_constraint_1 + }, + 0, 0, /* No default value */ + "vehicleSubClass" + }, + { ATF_NOFLAGS, 0, offsetof(struct ObjectClass, choice.vruSubClass), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_VruProfileAndSubprofile, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vruSubClass" + }, + { ATF_NOFLAGS, 0, offsetof(struct ObjectClass, choice.groupSubClass), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VruClusterInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_groupSubClass_constr_4, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_groupSubClass_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_groupSubClass_constraint_1 + }, + 0, 0, /* No default value */ + "groupSubClass" + }, + { ATF_NOFLAGS, 0, offsetof(struct ObjectClass, choice.otherSubClass), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_OtherSubClass, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "otherSubClass" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_ObjectClass_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* vehicleSubClass */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* vruSubClass */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* groupSubClass */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* otherSubClass */ +}; +asn_CHOICE_specifics_t asn_SPC_ObjectClass_specs_1 = { + sizeof(struct ObjectClass), + offsetof(struct ObjectClass, _asn_ctx), + offsetof(struct ObjectClass, present), + sizeof(((struct ObjectClass *)0)->present), + asn_MAP_ObjectClass_tag2el_1, + 4, /* Count of tags in the map */ + 0, 0, + 4 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_ObjectClass = { + "ObjectClass", + "ObjectClass", + &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) + &asn_OER_type_ObjectClass_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ObjectClass_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_ObjectClass_1, + 4, /* Elements count */ + &asn_SPC_ObjectClass_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/ObjectClass.h b/vanetza/asn1/its2/ObjectClass.h new file mode 100644 index 000000000..a0638c58c --- /dev/null +++ b/vanetza/asn1/its2/ObjectClass.h @@ -0,0 +1,65 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ObjectClass_H_ +#define _ObjectClass_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "TrafficParticipantType.h" +#include "VruProfileAndSubprofile.h" +#include "VruClusterInformation.h" +#include "OtherSubClass.h" +#include "constr_CHOICE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum ObjectClass_PR { + ObjectClass_PR_NOTHING, /* No components present */ + ObjectClass_PR_vehicleSubClass, + ObjectClass_PR_vruSubClass, + ObjectClass_PR_groupSubClass, + ObjectClass_PR_otherSubClass + /* Extensions may appear below */ + +} ObjectClass_PR; + +/* ObjectClass */ +typedef struct ObjectClass { + ObjectClass_PR present; + union ObjectClass_u { + TrafficParticipantType_t vehicleSubClass; + VruProfileAndSubprofile_t vruSubClass; + VruClusterInformation_t groupSubClass; + OtherSubClass_t otherSubClass; + /* + * This type is extensible, + * possible extensions are below. + */ + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ObjectClass_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ObjectClass; +extern asn_CHOICE_specifics_t asn_SPC_ObjectClass_specs_1; +extern asn_TYPE_member_t asn_MBR_ObjectClass_1[4]; +extern asn_per_constraints_t asn_PER_type_ObjectClass_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _ObjectClass_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ObjectClassDescription.c b/vanetza/asn1/its2/ObjectClassDescription.c new file mode 100644 index 000000000..fb4d67942 --- /dev/null +++ b/vanetza/asn1/its2/ObjectClassDescription.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ObjectClassDescription.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_ObjectClassDescription_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..8)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ObjectClassDescription_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_ObjectClassDescription_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_ObjectClassWithConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_ObjectClassDescription_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_ObjectClassDescription_specs_1 = { + sizeof(struct ObjectClassDescription), + offsetof(struct ObjectClassDescription, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_ObjectClassDescription = { + "ObjectClassDescription", + "ObjectClassDescription", + &asn_OP_SEQUENCE_OF, + asn_DEF_ObjectClassDescription_tags_1, + sizeof(asn_DEF_ObjectClassDescription_tags_1) + /sizeof(asn_DEF_ObjectClassDescription_tags_1[0]), /* 1 */ + asn_DEF_ObjectClassDescription_tags_1, /* Same as above */ + sizeof(asn_DEF_ObjectClassDescription_tags_1) + /sizeof(asn_DEF_ObjectClassDescription_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_ObjectClassDescription_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ObjectClassDescription_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_ObjectClassDescription_1, + 1, /* Single element */ + &asn_SPC_ObjectClassDescription_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/ObjectClassDescription.h b/vanetza/asn1/its2/ObjectClassDescription.h new file mode 100644 index 000000000..5d73463cf --- /dev/null +++ b/vanetza/asn1/its2/ObjectClassDescription.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ObjectClassDescription_H_ +#define _ObjectClassDescription_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct ObjectClassWithConfidence; + +/* ObjectClassDescription */ +typedef struct ObjectClassDescription { + A_SEQUENCE_OF(struct ObjectClassWithConfidence) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ObjectClassDescription_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ObjectClassDescription; +extern asn_SET_OF_specifics_t asn_SPC_ObjectClassDescription_specs_1; +extern asn_TYPE_member_t asn_MBR_ObjectClassDescription_1[1]; +extern asn_per_constraints_t asn_PER_type_ObjectClassDescription_constr_1; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "ObjectClassWithConfidence.h" + +#endif /* _ObjectClassDescription_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ObjectClassWithConfidence.c b/vanetza/asn1/its2/ObjectClassWithConfidence.c new file mode 100644 index 000000000..b8eccd556 --- /dev/null +++ b/vanetza/asn1/its2/ObjectClassWithConfidence.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ObjectClassWithConfidence.h" + +asn_TYPE_member_t asn_MBR_ObjectClassWithConfidence_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ObjectClassWithConfidence, objectClass), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_ObjectClass, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "objectClass" + }, + { ATF_NOFLAGS, 0, offsetof(struct ObjectClassWithConfidence, confidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ConfidenceLevel, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "confidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_ObjectClassWithConfidence_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ObjectClassWithConfidence_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* objectClass */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* confidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ObjectClassWithConfidence_specs_1 = { + sizeof(struct ObjectClassWithConfidence), + offsetof(struct ObjectClassWithConfidence, _asn_ctx), + asn_MAP_ObjectClassWithConfidence_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_ObjectClassWithConfidence = { + "ObjectClassWithConfidence", + "ObjectClassWithConfidence", + &asn_OP_SEQUENCE, + asn_DEF_ObjectClassWithConfidence_tags_1, + sizeof(asn_DEF_ObjectClassWithConfidence_tags_1) + /sizeof(asn_DEF_ObjectClassWithConfidence_tags_1[0]), /* 1 */ + asn_DEF_ObjectClassWithConfidence_tags_1, /* Same as above */ + sizeof(asn_DEF_ObjectClassWithConfidence_tags_1) + /sizeof(asn_DEF_ObjectClassWithConfidence_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ObjectClassWithConfidence_1, + 2, /* Elements count */ + &asn_SPC_ObjectClassWithConfidence_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/ObjectClassWithConfidence.h b/vanetza/asn1/its2/ObjectClassWithConfidence.h new file mode 100644 index 000000000..84bb4e22b --- /dev/null +++ b/vanetza/asn1/its2/ObjectClassWithConfidence.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ObjectClassWithConfidence_H_ +#define _ObjectClassWithConfidence_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "ObjectClass.h" +#include "ConfidenceLevel.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* ObjectClassWithConfidence */ +typedef struct ObjectClassWithConfidence { + ObjectClass_t objectClass; + ConfidenceLevel_t confidence; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ObjectClassWithConfidence_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ObjectClassWithConfidence; +extern asn_SEQUENCE_specifics_t asn_SPC_ObjectClassWithConfidence_specs_1; +extern asn_TYPE_member_t asn_MBR_ObjectClassWithConfidence_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _ObjectClassWithConfidence_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ObjectDimension.c b/vanetza/asn1/its2/ObjectDimension.c new file mode 100644 index 000000000..216e8c97a --- /dev/null +++ b/vanetza/asn1/its2/ObjectDimension.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ObjectDimension.h" + +asn_TYPE_member_t asn_MBR_ObjectDimension_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ObjectDimension, value), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ObjectDimensionValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "value" + }, + { ATF_NOFLAGS, 0, offsetof(struct ObjectDimension, confidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ObjectDimensionConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "confidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_ObjectDimension_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ObjectDimension_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* value */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* confidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ObjectDimension_specs_1 = { + sizeof(struct ObjectDimension), + offsetof(struct ObjectDimension, _asn_ctx), + asn_MAP_ObjectDimension_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_ObjectDimension = { + "ObjectDimension", + "ObjectDimension", + &asn_OP_SEQUENCE, + asn_DEF_ObjectDimension_tags_1, + sizeof(asn_DEF_ObjectDimension_tags_1) + /sizeof(asn_DEF_ObjectDimension_tags_1[0]), /* 1 */ + asn_DEF_ObjectDimension_tags_1, /* Same as above */ + sizeof(asn_DEF_ObjectDimension_tags_1) + /sizeof(asn_DEF_ObjectDimension_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ObjectDimension_1, + 2, /* Elements count */ + &asn_SPC_ObjectDimension_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/ObjectDimension.h b/vanetza/asn1/its2/ObjectDimension.h new file mode 100644 index 000000000..84374745c --- /dev/null +++ b/vanetza/asn1/its2/ObjectDimension.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ObjectDimension_H_ +#define _ObjectDimension_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "ObjectDimensionValue.h" +#include "ObjectDimensionConfidence.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* ObjectDimension */ +typedef struct ObjectDimension { + ObjectDimensionValue_t value; + ObjectDimensionConfidence_t confidence; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ObjectDimension_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ObjectDimension; +extern asn_SEQUENCE_specifics_t asn_SPC_ObjectDimension_specs_1; +extern asn_TYPE_member_t asn_MBR_ObjectDimension_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _ObjectDimension_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ObjectDimensionConfidence.c b/vanetza/asn1/its2/ObjectDimensionConfidence.c new file mode 100644 index 000000000..16f31bd92 --- /dev/null +++ b/vanetza/asn1/its2/ObjectDimensionConfidence.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ObjectDimensionConfidence.h" + +int +ObjectDimensionConfidence_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_ObjectDimensionConfidence_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..32) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ObjectDimensionConfidence_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_ObjectDimensionConfidence_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_ObjectDimensionConfidence = { + "ObjectDimensionConfidence", + "ObjectDimensionConfidence", + &asn_OP_NativeInteger, + asn_DEF_ObjectDimensionConfidence_tags_1, + sizeof(asn_DEF_ObjectDimensionConfidence_tags_1) + /sizeof(asn_DEF_ObjectDimensionConfidence_tags_1[0]), /* 1 */ + asn_DEF_ObjectDimensionConfidence_tags_1, /* Same as above */ + sizeof(asn_DEF_ObjectDimensionConfidence_tags_1) + /sizeof(asn_DEF_ObjectDimensionConfidence_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_ObjectDimensionConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ObjectDimensionConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + ObjectDimensionConfidence_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/ObjectDimensionConfidence.h b/vanetza/asn1/its2/ObjectDimensionConfidence.h new file mode 100644 index 000000000..49bd31941 --- /dev/null +++ b/vanetza/asn1/its2/ObjectDimensionConfidence.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ObjectDimensionConfidence_H_ +#define _ObjectDimensionConfidence_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum ObjectDimensionConfidence { + ObjectDimensionConfidence_outOfRange = 31, + ObjectDimensionConfidence_unavailable = 32 +} e_ObjectDimensionConfidence; + +/* ObjectDimensionConfidence */ +typedef long ObjectDimensionConfidence_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_ObjectDimensionConfidence_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_ObjectDimensionConfidence; +asn_struct_free_f ObjectDimensionConfidence_free; +asn_struct_print_f ObjectDimensionConfidence_print; +asn_constr_check_f ObjectDimensionConfidence_constraint; +ber_type_decoder_f ObjectDimensionConfidence_decode_ber; +der_type_encoder_f ObjectDimensionConfidence_encode_der; +xer_type_decoder_f ObjectDimensionConfidence_decode_xer; +xer_type_encoder_f ObjectDimensionConfidence_encode_xer; +jer_type_encoder_f ObjectDimensionConfidence_encode_jer; +oer_type_decoder_f ObjectDimensionConfidence_decode_oer; +oer_type_encoder_f ObjectDimensionConfidence_encode_oer; +per_type_decoder_f ObjectDimensionConfidence_decode_uper; +per_type_encoder_f ObjectDimensionConfidence_encode_uper; +per_type_decoder_f ObjectDimensionConfidence_decode_aper; +per_type_encoder_f ObjectDimensionConfidence_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _ObjectDimensionConfidence_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ObjectDimensionValue.c b/vanetza/asn1/its2/ObjectDimensionValue.c new file mode 100644 index 000000000..c697495d7 --- /dev/null +++ b/vanetza/asn1/its2/ObjectDimensionValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ObjectDimensionValue.h" + +int +ObjectDimensionValue_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_ObjectDimensionValue_constr_1 CC_NOTUSED = { + { 2, 1 } /* (1..256) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ObjectDimensionValue_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_ObjectDimensionValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_ObjectDimensionValue = { + "ObjectDimensionValue", + "ObjectDimensionValue", + &asn_OP_NativeInteger, + asn_DEF_ObjectDimensionValue_tags_1, + sizeof(asn_DEF_ObjectDimensionValue_tags_1) + /sizeof(asn_DEF_ObjectDimensionValue_tags_1[0]), /* 1 */ + asn_DEF_ObjectDimensionValue_tags_1, /* Same as above */ + sizeof(asn_DEF_ObjectDimensionValue_tags_1) + /sizeof(asn_DEF_ObjectDimensionValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_ObjectDimensionValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ObjectDimensionValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + ObjectDimensionValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/ObjectDimensionValue.h b/vanetza/asn1/its2/ObjectDimensionValue.h new file mode 100644 index 000000000..334feccc3 --- /dev/null +++ b/vanetza/asn1/its2/ObjectDimensionValue.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ObjectDimensionValue_H_ +#define _ObjectDimensionValue_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum ObjectDimensionValue { + ObjectDimensionValue_outOfRange = 255, + ObjectDimensionValue_unavailable = 256 +} e_ObjectDimensionValue; + +/* ObjectDimensionValue */ +typedef long ObjectDimensionValue_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_ObjectDimensionValue_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_ObjectDimensionValue; +asn_struct_free_f ObjectDimensionValue_free; +asn_struct_print_f ObjectDimensionValue_print; +asn_constr_check_f ObjectDimensionValue_constraint; +ber_type_decoder_f ObjectDimensionValue_decode_ber; +der_type_encoder_f ObjectDimensionValue_encode_der; +xer_type_decoder_f ObjectDimensionValue_decode_xer; +xer_type_encoder_f ObjectDimensionValue_encode_xer; +jer_type_encoder_f ObjectDimensionValue_encode_jer; +oer_type_decoder_f ObjectDimensionValue_decode_oer; +oer_type_encoder_f ObjectDimensionValue_encode_oer; +per_type_decoder_f ObjectDimensionValue_decode_uper; +per_type_encoder_f ObjectDimensionValue_encode_uper; +per_type_decoder_f ObjectDimensionValue_decode_aper; +per_type_encoder_f ObjectDimensionValue_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _ObjectDimensionValue_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ObjectFace.c b/vanetza/asn1/its2/ObjectFace.c new file mode 100644 index 000000000..36b498474 --- /dev/null +++ b/vanetza/asn1/its2/ObjectFace.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ObjectFace.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_ObjectFace_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_ObjectFace_constr_1 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_ObjectFace_value2enum_1[] = { + { 0, 5, "front" }, + { 1, 13, "sideLeftFront" }, + { 2, 12, "sideLeftBack" }, + { 3, 14, "sideRightFront" }, + { 4, 13, "sideRightBack" }, + { 5, 4, "back" } +}; +static const unsigned int asn_MAP_ObjectFace_enum2value_1[] = { + 5, /* back(5) */ + 0, /* front(0) */ + 2, /* sideLeftBack(2) */ + 1, /* sideLeftFront(1) */ + 4, /* sideRightBack(4) */ + 3 /* sideRightFront(3) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_ObjectFace_specs_1 = { + asn_MAP_ObjectFace_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_ObjectFace_enum2value_1, /* 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_ObjectFace_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_ObjectFace = { + "ObjectFace", + "ObjectFace", + &asn_OP_NativeEnumerated, + asn_DEF_ObjectFace_tags_1, + sizeof(asn_DEF_ObjectFace_tags_1) + /sizeof(asn_DEF_ObjectFace_tags_1[0]), /* 1 */ + asn_DEF_ObjectFace_tags_1, /* Same as above */ + sizeof(asn_DEF_ObjectFace_tags_1) + /sizeof(asn_DEF_ObjectFace_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_ObjectFace_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ObjectFace_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_ObjectFace_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/ObjectFace.h b/vanetza/asn1/its2/ObjectFace.h new file mode 100644 index 000000000..600864403 --- /dev/null +++ b/vanetza/asn1/its2/ObjectFace.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ObjectFace_H_ +#define _ObjectFace_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum ObjectFace { + ObjectFace_front = 0, + ObjectFace_sideLeftFront = 1, + ObjectFace_sideLeftBack = 2, + ObjectFace_sideRightFront = 3, + ObjectFace_sideRightBack = 4, + ObjectFace_back = 5 +} e_ObjectFace; + +/* ObjectFace */ +typedef long ObjectFace_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ObjectFace; +asn_struct_free_f ObjectFace_free; +asn_struct_print_f ObjectFace_print; +asn_constr_check_f ObjectFace_constraint; +ber_type_decoder_f ObjectFace_decode_ber; +der_type_encoder_f ObjectFace_encode_der; +xer_type_decoder_f ObjectFace_decode_xer; +xer_type_encoder_f ObjectFace_encode_xer; +jer_type_encoder_f ObjectFace_encode_jer; +oer_type_decoder_f ObjectFace_decode_oer; +oer_type_encoder_f ObjectFace_encode_oer; +per_type_decoder_f ObjectFace_decode_uper; +per_type_encoder_f ObjectFace_encode_uper; +per_type_decoder_f ObjectFace_decode_aper; +per_type_encoder_f ObjectFace_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _ObjectFace_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ObjectPerceptionQuality.c b/vanetza/asn1/its2/ObjectPerceptionQuality.c new file mode 100644 index 000000000..db6cea066 --- /dev/null +++ b/vanetza/asn1/its2/ObjectPerceptionQuality.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ObjectPerceptionQuality.h" + +int +ObjectPerceptionQuality_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 <= 15L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_ObjectPerceptionQuality_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..15) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ObjectPerceptionQuality_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 ber_tlv_tag_t asn_DEF_ObjectPerceptionQuality_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_ObjectPerceptionQuality = { + "ObjectPerceptionQuality", + "ObjectPerceptionQuality", + &asn_OP_NativeInteger, + asn_DEF_ObjectPerceptionQuality_tags_1, + sizeof(asn_DEF_ObjectPerceptionQuality_tags_1) + /sizeof(asn_DEF_ObjectPerceptionQuality_tags_1[0]), /* 1 */ + asn_DEF_ObjectPerceptionQuality_tags_1, /* Same as above */ + sizeof(asn_DEF_ObjectPerceptionQuality_tags_1) + /sizeof(asn_DEF_ObjectPerceptionQuality_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_ObjectPerceptionQuality_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ObjectPerceptionQuality_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + ObjectPerceptionQuality_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/ObjectPerceptionQuality.h b/vanetza/asn1/its2/ObjectPerceptionQuality.h new file mode 100644 index 000000000..85a6bf25a --- /dev/null +++ b/vanetza/asn1/its2/ObjectPerceptionQuality.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ObjectPerceptionQuality_H_ +#define _ObjectPerceptionQuality_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum ObjectPerceptionQuality { + ObjectPerceptionQuality_noConfidence = 0, + ObjectPerceptionQuality_fullConfidence = 15 +} e_ObjectPerceptionQuality; + +/* ObjectPerceptionQuality */ +typedef long ObjectPerceptionQuality_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_ObjectPerceptionQuality_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_ObjectPerceptionQuality; +asn_struct_free_f ObjectPerceptionQuality_free; +asn_struct_print_f ObjectPerceptionQuality_print; +asn_constr_check_f ObjectPerceptionQuality_constraint; +ber_type_decoder_f ObjectPerceptionQuality_decode_ber; +der_type_encoder_f ObjectPerceptionQuality_encode_der; +xer_type_decoder_f ObjectPerceptionQuality_decode_xer; +xer_type_encoder_f ObjectPerceptionQuality_encode_xer; +jer_type_encoder_f ObjectPerceptionQuality_encode_jer; +oer_type_decoder_f ObjectPerceptionQuality_decode_oer; +oer_type_encoder_f ObjectPerceptionQuality_encode_oer; +per_type_decoder_f ObjectPerceptionQuality_decode_uper; +per_type_encoder_f ObjectPerceptionQuality_encode_uper; +per_type_decoder_f ObjectPerceptionQuality_decode_aper; +per_type_encoder_f ObjectPerceptionQuality_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _ObjectPerceptionQuality_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/OccupiedLanesWithConfidence.c b/vanetza/asn1/its2/OccupiedLanesWithConfidence.c new file mode 100644 index 000000000..7770458a9 --- /dev/null +++ b/vanetza/asn1/its2/OccupiedLanesWithConfidence.c @@ -0,0 +1,334 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "OccupiedLanesWithConfidence.h" + +static int +memb_lanePositionBased_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_mapBased_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_lanePositionBased_constr_2 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..4)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_lanePositionBased_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_mapBased_constr_4 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..4)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_mapBased_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_lanePositionBased_constr_2 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..4)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_lanePositionBased_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_mapBased_constr_4 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..4)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_mapBased_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_lanePositionBased_2[] = { + { ATF_POINTER, 0, 0, + -1 /* Ambiguous tag (CHOICE?) */, + 0, + &asn_DEF_LanePositionOptions, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_lanePositionBased_tags_2[] = { + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_lanePositionBased_specs_2 = { + sizeof(struct OccupiedLanesWithConfidence__lanePositionBased), + offsetof(struct OccupiedLanesWithConfidence__lanePositionBased, _asn_ctx), + 2, /* XER encoding is XMLValueList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_lanePositionBased_2 = { + "lanePositionBased", + "lanePositionBased", + &asn_OP_SEQUENCE_OF, + asn_DEF_lanePositionBased_tags_2, + sizeof(asn_DEF_lanePositionBased_tags_2) + /sizeof(asn_DEF_lanePositionBased_tags_2[0]) - 1, /* 1 */ + asn_DEF_lanePositionBased_tags_2, /* Same as above */ + sizeof(asn_DEF_lanePositionBased_tags_2) + /sizeof(asn_DEF_lanePositionBased_tags_2[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_lanePositionBased_constr_2, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_lanePositionBased_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_lanePositionBased_2, + 1, /* Single element */ + &asn_SPC_lanePositionBased_specs_2 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_mapBased_4[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_MapPosition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_mapBased_tags_4[] = { + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_mapBased_specs_4 = { + sizeof(struct OccupiedLanesWithConfidence__mapBased), + offsetof(struct OccupiedLanesWithConfidence__mapBased, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_mapBased_4 = { + "mapBased", + "mapBased", + &asn_OP_SEQUENCE_OF, + asn_DEF_mapBased_tags_4, + sizeof(asn_DEF_mapBased_tags_4) + /sizeof(asn_DEF_mapBased_tags_4[0]) - 1, /* 1 */ + asn_DEF_mapBased_tags_4, /* Same as above */ + sizeof(asn_DEF_mapBased_tags_4) + /sizeof(asn_DEF_mapBased_tags_4[0]), /* 2 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_mapBased_constr_4, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_mapBased_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_mapBased_4, + 1, /* Single element */ + &asn_SPC_mapBased_specs_4 /* Additional specs */ +}; + +static asn_TYPE_member_t asn_MBR_OccupiedLanesWithConfidence_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct OccupiedLanesWithConfidence, lanePositionBased), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + 0, + &asn_DEF_lanePositionBased_2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_lanePositionBased_constr_2, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_lanePositionBased_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_lanePositionBased_constraint_1 + }, + 0, 0, /* No default value */ + "lanePositionBased" + }, + { ATF_POINTER, 1, offsetof(struct OccupiedLanesWithConfidence, mapBased), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + 0, + &asn_DEF_mapBased_4, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_mapBased_constr_4, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_mapBased_constr_4, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_mapBased_constraint_1 + }, + 0, 0, /* No default value */ + "mapBased" + }, + { ATF_NOFLAGS, 0, offsetof(struct OccupiedLanesWithConfidence, confidence), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MetaInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "confidence" + }, +}; +static const int asn_MAP_OccupiedLanesWithConfidence_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_OccupiedLanesWithConfidence_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_OccupiedLanesWithConfidence_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* lanePositionBased */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* mapBased */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* confidence */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_OccupiedLanesWithConfidence_specs_1 = { + sizeof(struct OccupiedLanesWithConfidence), + offsetof(struct OccupiedLanesWithConfidence, _asn_ctx), + asn_MAP_OccupiedLanesWithConfidence_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_OccupiedLanesWithConfidence_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_OccupiedLanesWithConfidence = { + "OccupiedLanesWithConfidence", + "OccupiedLanesWithConfidence", + &asn_OP_SEQUENCE, + asn_DEF_OccupiedLanesWithConfidence_tags_1, + sizeof(asn_DEF_OccupiedLanesWithConfidence_tags_1) + /sizeof(asn_DEF_OccupiedLanesWithConfidence_tags_1[0]), /* 1 */ + asn_DEF_OccupiedLanesWithConfidence_tags_1, /* Same as above */ + sizeof(asn_DEF_OccupiedLanesWithConfidence_tags_1) + /sizeof(asn_DEF_OccupiedLanesWithConfidence_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_OccupiedLanesWithConfidence_1, + 3, /* Elements count */ + &asn_SPC_OccupiedLanesWithConfidence_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/OccupiedLanesWithConfidence.h b/vanetza/asn1/its2/OccupiedLanesWithConfidence.h new file mode 100644 index 000000000..dc1f5e41a --- /dev/null +++ b/vanetza/asn1/its2/OccupiedLanesWithConfidence.h @@ -0,0 +1,64 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _OccupiedLanesWithConfidence_H_ +#define _OccupiedLanesWithConfidence_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "MetaInformation.h" +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct LanePositionOptions; +struct MapPosition; + +/* OccupiedLanesWithConfidence */ +typedef struct OccupiedLanesWithConfidence { + struct OccupiedLanesWithConfidence__lanePositionBased { + A_SEQUENCE_OF(struct LanePositionOptions) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } lanePositionBased; + struct OccupiedLanesWithConfidence__mapBased { + A_SEQUENCE_OF(struct MapPosition) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } *mapBased; + MetaInformation_t confidence; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} OccupiedLanesWithConfidence_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_OccupiedLanesWithConfidence; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "LanePositionOptions.h" +#include "MapPosition.h" + +#endif /* _OccupiedLanesWithConfidence_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/OpeningDaysHours.c b/vanetza/asn1/its2/OpeningDaysHours.c new file mode 100644 index 000000000..108564639 --- /dev/null +++ b/vanetza/asn1/its2/OpeningDaysHours.c @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "OpeningDaysHours.h" + +/* + * This type is implemented using UTF8String, + * so here we adjust the DEF accordingly. + */ +static const ber_tlv_tag_t asn_DEF_OpeningDaysHours_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_OpeningDaysHours = { + "OpeningDaysHours", + "OpeningDaysHours", + &asn_OP_UTF8String, + asn_DEF_OpeningDaysHours_tags_1, + sizeof(asn_DEF_OpeningDaysHours_tags_1) + /sizeof(asn_DEF_OpeningDaysHours_tags_1[0]), /* 1 */ + asn_DEF_OpeningDaysHours_tags_1, /* Same as above */ + sizeof(asn_DEF_OpeningDaysHours_tags_1) + /sizeof(asn_DEF_OpeningDaysHours_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + UTF8String_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/OpeningDaysHours.h b/vanetza/asn1/its2/OpeningDaysHours.h new file mode 100644 index 000000000..f0312ea0a --- /dev/null +++ b/vanetza/asn1/its2/OpeningDaysHours.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _OpeningDaysHours_H_ +#define _OpeningDaysHours_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "UTF8String.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* OpeningDaysHours */ +typedef UTF8String_t OpeningDaysHours_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_OpeningDaysHours; +asn_struct_free_f OpeningDaysHours_free; +asn_struct_print_f OpeningDaysHours_print; +asn_constr_check_f OpeningDaysHours_constraint; +ber_type_decoder_f OpeningDaysHours_decode_ber; +der_type_encoder_f OpeningDaysHours_encode_der; +xer_type_decoder_f OpeningDaysHours_decode_xer; +xer_type_encoder_f OpeningDaysHours_encode_xer; +jer_type_encoder_f OpeningDaysHours_encode_jer; +oer_type_decoder_f OpeningDaysHours_decode_oer; +oer_type_encoder_f OpeningDaysHours_encode_oer; +per_type_decoder_f OpeningDaysHours_decode_uper; +per_type_encoder_f OpeningDaysHours_encode_uper; +per_type_decoder_f OpeningDaysHours_decode_aper; +per_type_encoder_f OpeningDaysHours_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _OpeningDaysHours_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/OrdinalNumber1B.c b/vanetza/asn1/its2/OrdinalNumber1B.c new file mode 100644 index 000000000..fbd67e518 --- /dev/null +++ b/vanetza/asn1/its2/OrdinalNumber1B.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "OrdinalNumber1B.h" + +int +OrdinalNumber1B_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_OrdinalNumber1B_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_OrdinalNumber1B_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_OrdinalNumber1B_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_OrdinalNumber1B = { + "OrdinalNumber1B", + "OrdinalNumber1B", + &asn_OP_NativeInteger, + asn_DEF_OrdinalNumber1B_tags_1, + sizeof(asn_DEF_OrdinalNumber1B_tags_1) + /sizeof(asn_DEF_OrdinalNumber1B_tags_1[0]), /* 1 */ + asn_DEF_OrdinalNumber1B_tags_1, /* Same as above */ + sizeof(asn_DEF_OrdinalNumber1B_tags_1) + /sizeof(asn_DEF_OrdinalNumber1B_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_OrdinalNumber1B_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_OrdinalNumber1B_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + OrdinalNumber1B_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/OrdinalNumber1B.h b/vanetza/asn1/its2/OrdinalNumber1B.h new file mode 100644 index 000000000..aec285cf7 --- /dev/null +++ b/vanetza/asn1/its2/OrdinalNumber1B.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _OrdinalNumber1B_H_ +#define _OrdinalNumber1B_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* OrdinalNumber1B */ +typedef long OrdinalNumber1B_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_OrdinalNumber1B_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_OrdinalNumber1B; +asn_struct_free_f OrdinalNumber1B_free; +asn_struct_print_f OrdinalNumber1B_print; +asn_constr_check_f OrdinalNumber1B_constraint; +ber_type_decoder_f OrdinalNumber1B_decode_ber; +der_type_encoder_f OrdinalNumber1B_encode_der; +xer_type_decoder_f OrdinalNumber1B_decode_xer; +xer_type_encoder_f OrdinalNumber1B_encode_xer; +jer_type_encoder_f OrdinalNumber1B_encode_jer; +oer_type_decoder_f OrdinalNumber1B_decode_oer; +oer_type_encoder_f OrdinalNumber1B_encode_oer; +per_type_decoder_f OrdinalNumber1B_decode_uper; +per_type_encoder_f OrdinalNumber1B_encode_uper; +per_type_decoder_f OrdinalNumber1B_decode_aper; +per_type_encoder_f OrdinalNumber1B_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _OrdinalNumber1B_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/OrdinalNumber3b.c b/vanetza/asn1/its2/OrdinalNumber3b.c new file mode 100644 index 000000000..e70be08d0 --- /dev/null +++ b/vanetza/asn1/its2/OrdinalNumber3b.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "OrdinalNumber3b.h" + +int +OrdinalNumber3b_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 <= 8L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_OrdinalNumber3b_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..8) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_OrdinalNumber3b_constr_1 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 const ber_tlv_tag_t asn_DEF_OrdinalNumber3b_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_OrdinalNumber3b = { + "OrdinalNumber3b", + "OrdinalNumber3b", + &asn_OP_NativeInteger, + asn_DEF_OrdinalNumber3b_tags_1, + sizeof(asn_DEF_OrdinalNumber3b_tags_1) + /sizeof(asn_DEF_OrdinalNumber3b_tags_1[0]), /* 1 */ + asn_DEF_OrdinalNumber3b_tags_1, /* Same as above */ + sizeof(asn_DEF_OrdinalNumber3b_tags_1) + /sizeof(asn_DEF_OrdinalNumber3b_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_OrdinalNumber3b_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_OrdinalNumber3b_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + OrdinalNumber3b_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/OrdinalNumber3b.h b/vanetza/asn1/its2/OrdinalNumber3b.h new file mode 100644 index 000000000..dad78d187 --- /dev/null +++ b/vanetza/asn1/its2/OrdinalNumber3b.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _OrdinalNumber3b_H_ +#define _OrdinalNumber3b_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* OrdinalNumber3b */ +typedef long OrdinalNumber3b_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_OrdinalNumber3b_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_OrdinalNumber3b; +asn_struct_free_f OrdinalNumber3b_free; +asn_struct_print_f OrdinalNumber3b_print; +asn_constr_check_f OrdinalNumber3b_constraint; +ber_type_decoder_f OrdinalNumber3b_decode_ber; +der_type_encoder_f OrdinalNumber3b_encode_der; +xer_type_decoder_f OrdinalNumber3b_decode_xer; +xer_type_encoder_f OrdinalNumber3b_encode_xer; +jer_type_encoder_f OrdinalNumber3b_encode_jer; +oer_type_decoder_f OrdinalNumber3b_decode_oer; +oer_type_encoder_f OrdinalNumber3b_encode_oer; +per_type_decoder_f OrdinalNumber3b_decode_uper; +per_type_encoder_f OrdinalNumber3b_encode_uper; +per_type_decoder_f OrdinalNumber3b_decode_aper; +per_type_encoder_f OrdinalNumber3b_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _OrdinalNumber3b_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/OriginatingRsuContainer.c b/vanetza/asn1/its2/OriginatingRsuContainer.c new file mode 100644 index 000000000..8df1c4c19 --- /dev/null +++ b/vanetza/asn1/its2/OriginatingRsuContainer.c @@ -0,0 +1,74 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-OriginatingStationContainers" + * found in "asn1/TS103324v211-CPM-OriginatingStationContainers.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "OriginatingRsuContainer.h" + +asn_TYPE_member_t asn_MBR_OriginatingRsuContainer_1[] = { + { ATF_POINTER, 1, offsetof(struct OriginatingRsuContainer, mapReference), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_MapReference, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "mapReference" + }, +}; +static const int asn_MAP_OriginatingRsuContainer_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_OriginatingRsuContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_OriginatingRsuContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* mapReference */ +}; +asn_SEQUENCE_specifics_t asn_SPC_OriginatingRsuContainer_specs_1 = { + sizeof(struct OriginatingRsuContainer), + offsetof(struct OriginatingRsuContainer, _asn_ctx), + asn_MAP_OriginatingRsuContainer_tag2el_1, + 1, /* Count of tags in the map */ + asn_MAP_OriginatingRsuContainer_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_OriginatingRsuContainer = { + "OriginatingRsuContainer", + "OriginatingRsuContainer", + &asn_OP_SEQUENCE, + asn_DEF_OriginatingRsuContainer_tags_1, + sizeof(asn_DEF_OriginatingRsuContainer_tags_1) + /sizeof(asn_DEF_OriginatingRsuContainer_tags_1[0]), /* 1 */ + asn_DEF_OriginatingRsuContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_OriginatingRsuContainer_tags_1) + /sizeof(asn_DEF_OriginatingRsuContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_OriginatingRsuContainer_1, + 1, /* Elements count */ + &asn_SPC_OriginatingRsuContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/OriginatingRsuContainer.h b/vanetza/asn1/its2/OriginatingRsuContainer.h new file mode 100644 index 000000000..56adc1ff8 --- /dev/null +++ b/vanetza/asn1/its2/OriginatingRsuContainer.h @@ -0,0 +1,49 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-OriginatingStationContainers" + * found in "asn1/TS103324v211-CPM-OriginatingStationContainers.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _OriginatingRsuContainer_H_ +#define _OriginatingRsuContainer_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct MapReference; + +/* OriginatingRsuContainer */ +typedef struct OriginatingRsuContainer { + struct MapReference *mapReference; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} OriginatingRsuContainer_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_OriginatingRsuContainer; +extern asn_SEQUENCE_specifics_t asn_SPC_OriginatingRsuContainer_specs_1; +extern asn_TYPE_member_t asn_MBR_OriginatingRsuContainer_1[1]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "MapReference.h" + +#endif /* _OriginatingRsuContainer_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/OriginatingVehicleContainer.c b/vanetza/asn1/its2/OriginatingVehicleContainer.c new file mode 100644 index 000000000..de73eed94 --- /dev/null +++ b/vanetza/asn1/its2/OriginatingVehicleContainer.c @@ -0,0 +1,137 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-OriginatingStationContainers" + * found in "asn1/TS103324v211-CPM-OriginatingStationContainers.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "OriginatingVehicleContainer.h" + +asn_TYPE_member_t asn_MBR_OriginatingVehicleContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct OriginatingVehicleContainer, orientationAngle), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Wgs84Angle, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "orientationAngle" + }, + { ATF_POINTER, 3, offsetof(struct OriginatingVehicleContainer, pitchAngle), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianAngle, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "pitchAngle" + }, + { ATF_POINTER, 2, offsetof(struct OriginatingVehicleContainer, rollAngle), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianAngle, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rollAngle" + }, + { ATF_POINTER, 1, offsetof(struct OriginatingVehicleContainer, trailerDataSet), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TrailerDataSet, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "trailerDataSet" + }, +}; +static const int asn_MAP_OriginatingVehicleContainer_oms_1[] = { 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_OriginatingVehicleContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_OriginatingVehicleContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* orientationAngle */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* pitchAngle */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* rollAngle */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* trailerDataSet */ +}; +asn_SEQUENCE_specifics_t asn_SPC_OriginatingVehicleContainer_specs_1 = { + sizeof(struct OriginatingVehicleContainer), + offsetof(struct OriginatingVehicleContainer, _asn_ctx), + asn_MAP_OriginatingVehicleContainer_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_OriginatingVehicleContainer_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_OriginatingVehicleContainer = { + "OriginatingVehicleContainer", + "OriginatingVehicleContainer", + &asn_OP_SEQUENCE, + asn_DEF_OriginatingVehicleContainer_tags_1, + sizeof(asn_DEF_OriginatingVehicleContainer_tags_1) + /sizeof(asn_DEF_OriginatingVehicleContainer_tags_1[0]), /* 1 */ + asn_DEF_OriginatingVehicleContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_OriginatingVehicleContainer_tags_1) + /sizeof(asn_DEF_OriginatingVehicleContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_OriginatingVehicleContainer_1, + 4, /* Elements count */ + &asn_SPC_OriginatingVehicleContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/OriginatingVehicleContainer.h b/vanetza/asn1/its2/OriginatingVehicleContainer.h new file mode 100644 index 000000000..8ab2af320 --- /dev/null +++ b/vanetza/asn1/its2/OriginatingVehicleContainer.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-OriginatingStationContainers" + * found in "asn1/TS103324v211-CPM-OriginatingStationContainers.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _OriginatingVehicleContainer_H_ +#define _OriginatingVehicleContainer_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "Wgs84Angle.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct CartesianAngle; +struct TrailerDataSet; + +/* OriginatingVehicleContainer */ +typedef struct OriginatingVehicleContainer { + Wgs84Angle_t orientationAngle; + struct CartesianAngle *pitchAngle; /* OPTIONAL */ + struct CartesianAngle *rollAngle; /* OPTIONAL */ + struct TrailerDataSet *trailerDataSet; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} OriginatingVehicleContainer_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_OriginatingVehicleContainer; +extern asn_SEQUENCE_specifics_t asn_SPC_OriginatingVehicleContainer_specs_1; +extern asn_TYPE_member_t asn_MBR_OriginatingVehicleContainer_1[4]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "CartesianAngle.h" +#include "TrailerDataSet.h" + +#endif /* _OriginatingVehicleContainer_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/OtherSubClass.c b/vanetza/asn1/its2/OtherSubClass.c new file mode 100644 index 000000000..ad5d09f81 --- /dev/null +++ b/vanetza/asn1/its2/OtherSubClass.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "OtherSubClass.h" + +int +OtherSubClass_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_OtherSubClass_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_OtherSubClass_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_OtherSubClass_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_OtherSubClass = { + "OtherSubClass", + "OtherSubClass", + &asn_OP_NativeInteger, + asn_DEF_OtherSubClass_tags_1, + sizeof(asn_DEF_OtherSubClass_tags_1) + /sizeof(asn_DEF_OtherSubClass_tags_1[0]), /* 1 */ + asn_DEF_OtherSubClass_tags_1, /* Same as above */ + sizeof(asn_DEF_OtherSubClass_tags_1) + /sizeof(asn_DEF_OtherSubClass_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_OtherSubClass_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_OtherSubClass_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + OtherSubClass_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/OtherSubClass.h b/vanetza/asn1/its2/OtherSubClass.h new file mode 100644 index 000000000..2b0c501fa --- /dev/null +++ b/vanetza/asn1/its2/OtherSubClass.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _OtherSubClass_H_ +#define _OtherSubClass_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum OtherSubClass { + OtherSubClass_unknown = 0, + OtherSubClass_singleObject = 1, + OtherSubClass_multipleObjects = 2, + OtherSubClass_bulkMaterial = 3 +} e_OtherSubClass; + +/* OtherSubClass */ +typedef long OtherSubClass_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_OtherSubClass_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_OtherSubClass; +asn_struct_free_f OtherSubClass_free; +asn_struct_print_f OtherSubClass_print; +asn_constr_check_f OtherSubClass_constraint; +ber_type_decoder_f OtherSubClass_decode_ber; +der_type_encoder_f OtherSubClass_encode_der; +xer_type_decoder_f OtherSubClass_decode_xer; +xer_type_encoder_f OtherSubClass_encode_xer; +jer_type_encoder_f OtherSubClass_encode_jer; +oer_type_decoder_f OtherSubClass_decode_oer; +oer_type_encoder_f OtherSubClass_encode_oer; +per_type_decoder_f OtherSubClass_decode_uper; +per_type_encoder_f OtherSubClass_encode_uper; +per_type_decoder_f OtherSubClass_decode_aper; +per_type_encoder_f OtherSubClass_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _OtherSubClass_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/Path.c b/vanetza/asn1/its2/Path.c new file mode 100644 index 000000000..eb826a58f --- /dev/null +++ b/vanetza/asn1/its2/Path.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Path.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_Path_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..40)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Path_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 0, 40 } /* (SIZE(0..40)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_Path_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_PathPoint, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_Path_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_Path_specs_1 = { + sizeof(struct Path), + offsetof(struct Path, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_Path = { + "Path", + "Path", + &asn_OP_SEQUENCE_OF, + asn_DEF_Path_tags_1, + sizeof(asn_DEF_Path_tags_1) + /sizeof(asn_DEF_Path_tags_1[0]), /* 1 */ + asn_DEF_Path_tags_1, /* Same as above */ + sizeof(asn_DEF_Path_tags_1) + /sizeof(asn_DEF_Path_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_Path_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Path_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_Path_1, + 1, /* Single element */ + &asn_SPC_Path_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/Path.h b/vanetza/asn1/its2/Path.h new file mode 100644 index 000000000..27fa9546f --- /dev/null +++ b/vanetza/asn1/its2/Path.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _Path_H_ +#define _Path_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct PathPoint; + +/* Path */ +typedef struct Path { + A_SEQUENCE_OF(struct PathPoint) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Path_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Path; +extern asn_SET_OF_specifics_t asn_SPC_Path_specs_1; +extern asn_TYPE_member_t asn_MBR_Path_1[1]; +extern asn_per_constraints_t asn_PER_type_Path_constr_1; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "PathPoint.h" + +#endif /* _Path_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PathDeltaTime.c b/vanetza/asn1/its2/PathDeltaTime.c new file mode 100644 index 000000000..c46847a08 --- /dev/null +++ b/vanetza/asn1/its2/PathDeltaTime.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PathDeltaTime.h" + +int +PathDeltaTime_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 <= 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PathDeltaTime_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PathDeltaTime_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 16, 16, 1, 65535 } /* (1..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_PathDeltaTime_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_PathDeltaTime = { + "PathDeltaTime", + "PathDeltaTime", + &asn_OP_NativeInteger, + asn_DEF_PathDeltaTime_tags_1, + sizeof(asn_DEF_PathDeltaTime_tags_1) + /sizeof(asn_DEF_PathDeltaTime_tags_1[0]), /* 1 */ + asn_DEF_PathDeltaTime_tags_1, /* Same as above */ + sizeof(asn_DEF_PathDeltaTime_tags_1) + /sizeof(asn_DEF_PathDeltaTime_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PathDeltaTime_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PathDeltaTime_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + PathDeltaTime_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/PathDeltaTime.h b/vanetza/asn1/its2/PathDeltaTime.h new file mode 100644 index 000000000..94c945dfe --- /dev/null +++ b/vanetza/asn1/its2/PathDeltaTime.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PathDeltaTime_H_ +#define _PathDeltaTime_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* PathDeltaTime */ +typedef long PathDeltaTime_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_PathDeltaTime_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_PathDeltaTime; +asn_struct_free_f PathDeltaTime_free; +asn_struct_print_f PathDeltaTime_print; +asn_constr_check_f PathDeltaTime_constraint; +ber_type_decoder_f PathDeltaTime_decode_ber; +der_type_encoder_f PathDeltaTime_encode_der; +xer_type_decoder_f PathDeltaTime_decode_xer; +xer_type_encoder_f PathDeltaTime_encode_xer; +jer_type_encoder_f PathDeltaTime_encode_jer; +oer_type_decoder_f PathDeltaTime_decode_oer; +oer_type_encoder_f PathDeltaTime_encode_oer; +per_type_decoder_f PathDeltaTime_decode_uper; +per_type_encoder_f PathDeltaTime_encode_uper; +per_type_decoder_f PathDeltaTime_decode_aper; +per_type_encoder_f PathDeltaTime_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _PathDeltaTime_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PathDeltaTimeChoice.c b/vanetza/asn1/its2/PathDeltaTimeChoice.c new file mode 100644 index 000000000..3abc01b29 --- /dev/null +++ b/vanetza/asn1/its2/PathDeltaTimeChoice.c @@ -0,0 +1,102 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PathDeltaTimeChoice.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PathDeltaTimeChoice_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PathDeltaTimeChoice_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_PathDeltaTimeChoice_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PathDeltaTimeChoice, choice.deltaTimeHighPrecision), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DeltaTimeTenthOfSecond, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "deltaTimeHighPrecision" + }, + { ATF_NOFLAGS, 0, offsetof(struct PathDeltaTimeChoice, choice.deltaTimeBigRange), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DeltaTimeTenSeconds, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "deltaTimeBigRange" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_PathDeltaTimeChoice_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* deltaTimeHighPrecision */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* deltaTimeBigRange */ +}; +asn_CHOICE_specifics_t asn_SPC_PathDeltaTimeChoice_specs_1 = { + sizeof(struct PathDeltaTimeChoice), + offsetof(struct PathDeltaTimeChoice, _asn_ctx), + offsetof(struct PathDeltaTimeChoice, present), + sizeof(((struct PathDeltaTimeChoice *)0)->present), + asn_MAP_PathDeltaTimeChoice_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + 2 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_PathDeltaTimeChoice = { + "PathDeltaTimeChoice", + "PathDeltaTimeChoice", + &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) + &asn_OER_type_PathDeltaTimeChoice_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PathDeltaTimeChoice_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_PathDeltaTimeChoice_1, + 2, /* Elements count */ + &asn_SPC_PathDeltaTimeChoice_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/PathDeltaTimeChoice.h b/vanetza/asn1/its2/PathDeltaTimeChoice.h new file mode 100644 index 000000000..118c6f31c --- /dev/null +++ b/vanetza/asn1/its2/PathDeltaTimeChoice.h @@ -0,0 +1,59 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PathDeltaTimeChoice_H_ +#define _PathDeltaTimeChoice_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "DeltaTimeTenthOfSecond.h" +#include "DeltaTimeTenSeconds.h" +#include "constr_CHOICE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum PathDeltaTimeChoice_PR { + PathDeltaTimeChoice_PR_NOTHING, /* No components present */ + PathDeltaTimeChoice_PR_deltaTimeHighPrecision, + PathDeltaTimeChoice_PR_deltaTimeBigRange + /* Extensions may appear below */ + +} PathDeltaTimeChoice_PR; + +/* PathDeltaTimeChoice */ +typedef struct PathDeltaTimeChoice { + PathDeltaTimeChoice_PR present; + union PathDeltaTimeChoice_u { + DeltaTimeTenthOfSecond_t deltaTimeHighPrecision; + DeltaTimeTenSeconds_t deltaTimeBigRange; + /* + * This type is extensible, + * possible extensions are below. + */ + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PathDeltaTimeChoice_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_PathDeltaTimeChoice; +extern asn_CHOICE_specifics_t asn_SPC_PathDeltaTimeChoice_specs_1; +extern asn_TYPE_member_t asn_MBR_PathDeltaTimeChoice_1[2]; +extern asn_per_constraints_t asn_PER_type_PathDeltaTimeChoice_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _PathDeltaTimeChoice_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PathExtended.c b/vanetza/asn1/its2/PathExtended.c new file mode 100644 index 000000000..923b8c3ba --- /dev/null +++ b/vanetza/asn1/its2/PathExtended.c @@ -0,0 +1,130 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PathExtended.h" + +static int +memb_pointOfEventZone_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + 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 <= 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_pointOfEventZone_constr_2 CC_NOTUSED = { + { 1, 1 } /* (1..23) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_pointOfEventZone_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 1, 23 } /* (1..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_PathExtended_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PathExtended, pointOfEventZone), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_pointOfEventZone_constr_2, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_pointOfEventZone_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_pointOfEventZone_constraint_1 + }, + 0, 0, /* No default value */ + "pointOfEventZone" + }, + { ATF_NOFLAGS, 0, offsetof(struct PathExtended, path), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Path, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "path" + }, +}; +static const ber_tlv_tag_t asn_DEF_PathExtended_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PathExtended_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pointOfEventZone */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* path */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PathExtended_specs_1 = { + sizeof(struct PathExtended), + offsetof(struct PathExtended, _asn_ctx), + asn_MAP_PathExtended_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_PathExtended = { + "PathExtended", + "PathExtended", + &asn_OP_SEQUENCE, + asn_DEF_PathExtended_tags_1, + sizeof(asn_DEF_PathExtended_tags_1) + /sizeof(asn_DEF_PathExtended_tags_1[0]), /* 1 */ + asn_DEF_PathExtended_tags_1, /* Same as above */ + sizeof(asn_DEF_PathExtended_tags_1) + /sizeof(asn_DEF_PathExtended_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PathExtended_1, + 2, /* Elements count */ + &asn_SPC_PathExtended_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/PathExtended.h b/vanetza/asn1/its2/PathExtended.h new file mode 100644 index 000000000..140c19efa --- /dev/null +++ b/vanetza/asn1/its2/PathExtended.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PathExtended_H_ +#define _PathExtended_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" +#include "Path.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* PathExtended */ +typedef struct PathExtended { + long pointOfEventZone; + Path_t path; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PathExtended_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_PathExtended; +extern asn_SEQUENCE_specifics_t asn_SPC_PathExtended_specs_1; +extern asn_TYPE_member_t asn_MBR_PathExtended_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _PathExtended_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PathHistory.c b/vanetza/asn1/its2/PathHistory.c new file mode 100644 index 000000000..c4b1f10f3 --- /dev/null +++ b/vanetza/asn1/its2/PathHistory.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PathHistory.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PathHistory_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..40)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PathHistory_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 6, 6, 0, 40 } /* (SIZE(0..40)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_PathHistory_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_PathPoint, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_PathHistory_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_PathHistory_specs_1 = { + sizeof(struct PathHistory), + offsetof(struct PathHistory, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_PathHistory = { + "PathHistory", + "PathHistory", + &asn_OP_SEQUENCE_OF, + asn_DEF_PathHistory_tags_1, + sizeof(asn_DEF_PathHistory_tags_1) + /sizeof(asn_DEF_PathHistory_tags_1[0]), /* 1 */ + asn_DEF_PathHistory_tags_1, /* Same as above */ + sizeof(asn_DEF_PathHistory_tags_1) + /sizeof(asn_DEF_PathHistory_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PathHistory_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PathHistory_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_PathHistory_1, + 1, /* Single element */ + &asn_SPC_PathHistory_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/PathHistory.h b/vanetza/asn1/its2/PathHistory.h new file mode 100644 index 000000000..31c2996fd --- /dev/null +++ b/vanetza/asn1/its2/PathHistory.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PathHistory_H_ +#define _PathHistory_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct PathPoint; + +/* PathHistory */ +typedef struct PathHistory { + A_SEQUENCE_OF(struct PathPoint) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PathHistory_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_PathHistory; +extern asn_SET_OF_specifics_t asn_SPC_PathHistory_specs_1; +extern asn_TYPE_member_t asn_MBR_PathHistory_1[1]; +extern asn_per_constraints_t asn_PER_type_PathHistory_constr_1; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "PathPoint.h" + +#endif /* _PathHistory_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PathId.c b/vanetza/asn1/its2/PathId.c new file mode 100644 index 000000000..2b4014803 --- /dev/null +++ b/vanetza/asn1/its2/PathId.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PathId.h" + +int +PathId_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PathId_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..14) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PathId_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_PathId_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_PathId = { + "PathId", + "PathId", + &asn_OP_NativeInteger, + asn_DEF_PathId_tags_1, + sizeof(asn_DEF_PathId_tags_1) + /sizeof(asn_DEF_PathId_tags_1[0]), /* 1 */ + asn_DEF_PathId_tags_1, /* Same as above */ + sizeof(asn_DEF_PathId_tags_1) + /sizeof(asn_DEF_PathId_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PathId_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PathId_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + PathId_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/PathId.h b/vanetza/asn1/its2/PathId.h new file mode 100644 index 000000000..56536e7c8 --- /dev/null +++ b/vanetza/asn1/its2/PathId.h @@ -0,0 +1,66 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PathId_H_ +#define _PathId_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum PathId { + PathId_noPath = 0, + PathId_path1 = 1, + PathId_path2 = 2, + PathId_path3 = 3, + PathId_path4 = 4, + PathId_path5 = 5, + PathId_path6 = 6, + PathId_path7 = 7, + PathId_pathExtended1 = 8, + PathId_pathExtended2 = 9, + PathId_pathExtended3 = 10, + PathId_pathExtended4 = 11, + PathId_pathExtended5 = 12, + PathId_pathExtended6 = 13, + PathId_pathExtended7 = 14 +} e_PathId; + +/* PathId */ +typedef long PathId_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_PathId_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_PathId; +asn_struct_free_f PathId_free; +asn_struct_print_f PathId_print; +asn_constr_check_f PathId_constraint; +ber_type_decoder_f PathId_decode_ber; +der_type_encoder_f PathId_encode_der; +xer_type_decoder_f PathId_decode_xer; +xer_type_encoder_f PathId_encode_xer; +jer_type_encoder_f PathId_encode_jer; +oer_type_decoder_f PathId_decode_oer; +oer_type_encoder_f PathId_encode_oer; +per_type_decoder_f PathId_decode_uper; +per_type_encoder_f PathId_encode_uper; +per_type_decoder_f PathId_decode_aper; +per_type_encoder_f PathId_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _PathId_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PathPoint.c b/vanetza/asn1/its2/PathPoint.c new file mode 100644 index 000000000..9c5211a75 --- /dev/null +++ b/vanetza/asn1/its2/PathPoint.c @@ -0,0 +1,95 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PathPoint.h" + +asn_TYPE_member_t asn_MBR_PathPoint_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PathPoint, pathPosition), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DeltaReferencePosition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "pathPosition" + }, + { ATF_POINTER, 1, offsetof(struct PathPoint, pathDeltaTime), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PathDeltaTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "pathDeltaTime" + }, +}; +static const int asn_MAP_PathPoint_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_PathPoint_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PathPoint_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pathPosition */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* pathDeltaTime */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PathPoint_specs_1 = { + sizeof(struct PathPoint), + offsetof(struct PathPoint, _asn_ctx), + asn_MAP_PathPoint_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_PathPoint_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PathPoint = { + "PathPoint", + "PathPoint", + &asn_OP_SEQUENCE, + asn_DEF_PathPoint_tags_1, + sizeof(asn_DEF_PathPoint_tags_1) + /sizeof(asn_DEF_PathPoint_tags_1[0]), /* 1 */ + asn_DEF_PathPoint_tags_1, /* Same as above */ + sizeof(asn_DEF_PathPoint_tags_1) + /sizeof(asn_DEF_PathPoint_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PathPoint_1, + 2, /* Elements count */ + &asn_SPC_PathPoint_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/PathPoint.h b/vanetza/asn1/its2/PathPoint.h new file mode 100644 index 000000000..e6dc2ed6a --- /dev/null +++ b/vanetza/asn1/its2/PathPoint.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PathPoint_H_ +#define _PathPoint_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "DeltaReferencePosition.h" +#include "PathDeltaTime.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* PathPoint */ +typedef struct PathPoint { + DeltaReferencePosition_t pathPosition; + PathDeltaTime_t *pathDeltaTime; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PathPoint_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_PathPoint; +extern asn_SEQUENCE_specifics_t asn_SPC_PathPoint_specs_1; +extern asn_TYPE_member_t asn_MBR_PathPoint_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _PathPoint_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PathPointPredicted.c b/vanetza/asn1/its2/PathPointPredicted.c new file mode 100644 index 000000000..7ca7a1538 --- /dev/null +++ b/vanetza/asn1/its2/PathPointPredicted.c @@ -0,0 +1,279 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PathPointPredicted.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PathPointPredicted_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PathPointPredicted_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 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 int asn_DFL_5_cmp_12800(const void *sptr) { + const DeltaAltitude_t *st = sptr; + + if(!st) { + return -1; /* No value is not a default value */ + } + + /* Test default value 12800 */ + return (*st != 12800); +} +static int asn_DFL_5_set_12800(void **sptr) { + DeltaAltitude_t *st = *sptr; + + if(!st) { + st = (*sptr = CALLOC(1, sizeof(*st))); + if(!st) return -1; + } + + /* Install default value 12800 */ + *st = 12800; + return 0; +} +static int asn_DFL_6_cmp_15(const void *sptr) { + const AltitudeConfidence_t *st = sptr; + + if(!st) { + return -1; /* No value is not a default value */ + } + + /* Test default value 15 */ + return (*st != 15); +} +static int asn_DFL_6_set_15(void **sptr) { + AltitudeConfidence_t *st = *sptr; + + if(!st) { + st = (*sptr = CALLOC(1, sizeof(*st))); + if(!st) return -1; + } + + /* Install default value 15 */ + *st = 15; + return 0; +} +asn_TYPE_member_t asn_MBR_PathPointPredicted_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PathPointPredicted, deltaLatitude), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DeltaLatitude, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "deltaLatitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct PathPointPredicted, deltaLongitude), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DeltaLongitude, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "deltaLongitude" + }, + { ATF_POINTER, 6, offsetof(struct PathPointPredicted, horizontalPositionConfidence), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PosConfidenceEllipse, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "horizontalPositionConfidence" + }, + { ATF_POINTER, 5, offsetof(struct PathPointPredicted, deltaAltitude), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DeltaAltitude, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + &asn_DFL_5_cmp_12800, /* Compare DEFAULT 12800 */ + &asn_DFL_5_set_12800, /* Set DEFAULT 12800 */ + "deltaAltitude" + }, + { ATF_POINTER, 4, offsetof(struct PathPointPredicted, altitudeConfidence), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AltitudeConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + &asn_DFL_6_cmp_15, /* Compare DEFAULT 15 */ + &asn_DFL_6_set_15, /* Set DEFAULT 15 */ + "altitudeConfidence" + }, + { ATF_POINTER, 3, offsetof(struct PathPointPredicted, pathDeltaTime), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_PathDeltaTimeChoice, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "pathDeltaTime" + }, + { ATF_POINTER, 2, offsetof(struct PathPointPredicted, symmetricAreaOffset), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StandardLength9b, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "symmetricAreaOffset" + }, + { ATF_POINTER, 1, offsetof(struct PathPointPredicted, asymmetricAreaOffset), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StandardLength9b, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "asymmetricAreaOffset" + }, +}; +static const int asn_MAP_PathPointPredicted_oms_1[] = { 2, 3, 4, 5, 6, 7 }; +static const ber_tlv_tag_t asn_DEF_PathPointPredicted_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PathPointPredicted_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* deltaLatitude */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* deltaLongitude */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* horizontalPositionConfidence */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* deltaAltitude */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* altitudeConfidence */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* pathDeltaTime */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* symmetricAreaOffset */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* asymmetricAreaOffset */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PathPointPredicted_specs_1 = { + sizeof(struct PathPointPredicted), + offsetof(struct PathPointPredicted, _asn_ctx), + asn_MAP_PathPointPredicted_tag2el_1, + 8, /* Count of tags in the map */ + asn_MAP_PathPointPredicted_oms_1, /* Optional members */ + 6, 0, /* Root/Additions */ + 8, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PathPointPredicted = { + "PathPointPredicted", + "PathPointPredicted", + &asn_OP_SEQUENCE, + asn_DEF_PathPointPredicted_tags_1, + sizeof(asn_DEF_PathPointPredicted_tags_1) + /sizeof(asn_DEF_PathPointPredicted_tags_1[0]), /* 1 */ + asn_DEF_PathPointPredicted_tags_1, /* Same as above */ + sizeof(asn_DEF_PathPointPredicted_tags_1) + /sizeof(asn_DEF_PathPointPredicted_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PathPointPredicted_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PathPointPredicted_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PathPointPredicted_1, + 8, /* Elements count */ + &asn_SPC_PathPointPredicted_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/PathPointPredicted.h b/vanetza/asn1/its2/PathPointPredicted.h new file mode 100644 index 000000000..9f4563f18 --- /dev/null +++ b/vanetza/asn1/its2/PathPointPredicted.h @@ -0,0 +1,64 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PathPointPredicted_H_ +#define _PathPointPredicted_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "DeltaLatitude.h" +#include "DeltaLongitude.h" +#include "DeltaAltitude.h" +#include "AltitudeConfidence.h" +#include "StandardLength9b.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct PosConfidenceEllipse; +struct PathDeltaTimeChoice; + +/* PathPointPredicted */ +typedef struct PathPointPredicted { + DeltaLatitude_t deltaLatitude; + DeltaLongitude_t deltaLongitude; + struct PosConfidenceEllipse *horizontalPositionConfidence; /* OPTIONAL */ + DeltaAltitude_t *deltaAltitude; /* DEFAULT 12800 */ + AltitudeConfidence_t *altitudeConfidence; /* DEFAULT 15 */ + struct PathDeltaTimeChoice *pathDeltaTime; /* OPTIONAL */ + StandardLength9b_t *symmetricAreaOffset; /* OPTIONAL */ + StandardLength9b_t *asymmetricAreaOffset; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PathPointPredicted_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_PathPointPredicted; +extern asn_SEQUENCE_specifics_t asn_SPC_PathPointPredicted_specs_1; +extern asn_TYPE_member_t asn_MBR_PathPointPredicted_1[8]; +extern asn_per_constraints_t asn_PER_type_PathPointPredicted_constr_1; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "PosConfidenceEllipse.h" +#include "PathDeltaTimeChoice.h" + +#endif /* _PathPointPredicted_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PathPredicted.c b/vanetza/asn1/its2/PathPredicted.c new file mode 100644 index 000000000..6efe1815b --- /dev/null +++ b/vanetza/asn1/its2/PathPredicted.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PathPredicted.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PathPredicted_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PathPredicted_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 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_PathPredicted_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_PathPointPredicted, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_PathPredicted_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_PathPredicted_specs_1 = { + sizeof(struct PathPredicted), + offsetof(struct PathPredicted, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_PathPredicted = { + "PathPredicted", + "PathPredicted", + &asn_OP_SEQUENCE_OF, + asn_DEF_PathPredicted_tags_1, + sizeof(asn_DEF_PathPredicted_tags_1) + /sizeof(asn_DEF_PathPredicted_tags_1[0]), /* 1 */ + asn_DEF_PathPredicted_tags_1, /* Same as above */ + sizeof(asn_DEF_PathPredicted_tags_1) + /sizeof(asn_DEF_PathPredicted_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PathPredicted_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PathPredicted_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_PathPredicted_1, + 1, /* Single element */ + &asn_SPC_PathPredicted_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/PathPredicted.h b/vanetza/asn1/its2/PathPredicted.h new file mode 100644 index 000000000..1a1f28a3a --- /dev/null +++ b/vanetza/asn1/its2/PathPredicted.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PathPredicted_H_ +#define _PathPredicted_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct PathPointPredicted; + +/* PathPredicted */ +typedef struct PathPredicted { + A_SEQUENCE_OF(struct PathPointPredicted) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PathPredicted_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_PathPredicted; +extern asn_SET_OF_specifics_t asn_SPC_PathPredicted_specs_1; +extern asn_TYPE_member_t asn_MBR_PathPredicted_1[1]; +extern asn_per_constraints_t asn_PER_type_PathPredicted_constr_1; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "PathPointPredicted.h" + +#endif /* _PathPredicted_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PathPredicted2.c b/vanetza/asn1/its2/PathPredicted2.c new file mode 100644 index 000000000..c28c0ba0f --- /dev/null +++ b/vanetza/asn1/its2/PathPredicted2.c @@ -0,0 +1,152 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PathPredicted2.h" + +static int +memb_pathPredicted_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_pathPredicted_constr_2 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..16)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_pathPredicted_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_PathPredicted2_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PathPredicted2, pathPredicted), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PathPredicted, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_pathPredicted_constr_2, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_pathPredicted_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_pathPredicted_constraint_1 + }, + 0, 0, /* No default value */ + "pathPredicted" + }, + { ATF_NOFLAGS, 0, offsetof(struct PathPredicted2, usageIndication), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_UsageIndication, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "usageIndication" + }, + { ATF_NOFLAGS, 0, offsetof(struct PathPredicted2, confidenceLevel), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ConfidenceLevel, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "confidenceLevel" + }, +}; +static const ber_tlv_tag_t asn_DEF_PathPredicted2_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PathPredicted2_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pathPredicted */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* usageIndication */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* confidenceLevel */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PathPredicted2_specs_1 = { + sizeof(struct PathPredicted2), + offsetof(struct PathPredicted2, _asn_ctx), + asn_MAP_PathPredicted2_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_PathPredicted2 = { + "PathPredicted2", + "PathPredicted2", + &asn_OP_SEQUENCE, + asn_DEF_PathPredicted2_tags_1, + sizeof(asn_DEF_PathPredicted2_tags_1) + /sizeof(asn_DEF_PathPredicted2_tags_1[0]), /* 1 */ + asn_DEF_PathPredicted2_tags_1, /* Same as above */ + sizeof(asn_DEF_PathPredicted2_tags_1) + /sizeof(asn_DEF_PathPredicted2_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PathPredicted2_1, + 3, /* Elements count */ + &asn_SPC_PathPredicted2_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/PathPredicted2.h b/vanetza/asn1/its2/PathPredicted2.h new file mode 100644 index 000000000..2cdd43789 --- /dev/null +++ b/vanetza/asn1/its2/PathPredicted2.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PathPredicted2_H_ +#define _PathPredicted2_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "PathPredicted.h" +#include "UsageIndication.h" +#include "ConfidenceLevel.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* PathPredicted2 */ +typedef struct PathPredicted2 { + PathPredicted_t pathPredicted; + UsageIndication_t usageIndication; + ConfidenceLevel_t confidenceLevel; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PathPredicted2_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_PathPredicted2; +extern asn_SEQUENCE_specifics_t asn_SPC_PathPredicted2_specs_1; +extern asn_TYPE_member_t asn_MBR_PathPredicted2_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _PathPredicted2_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PathPredictedList.c b/vanetza/asn1/its2/PathPredictedList.c new file mode 100644 index 000000000..5bc11e2ff --- /dev/null +++ b/vanetza/asn1/its2/PathPredictedList.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PathPredictedList.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PathPredictedList_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_PathPredictedList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 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_PathPredictedList_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_PathPredicted2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_PathPredictedList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_PathPredictedList_specs_1 = { + sizeof(struct PathPredictedList), + offsetof(struct PathPredictedList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_PathPredictedList = { + "PathPredictedList", + "PathPredictedList", + &asn_OP_SEQUENCE_OF, + asn_DEF_PathPredictedList_tags_1, + sizeof(asn_DEF_PathPredictedList_tags_1) + /sizeof(asn_DEF_PathPredictedList_tags_1[0]), /* 1 */ + asn_DEF_PathPredictedList_tags_1, /* Same as above */ + sizeof(asn_DEF_PathPredictedList_tags_1) + /sizeof(asn_DEF_PathPredictedList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PathPredictedList_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PathPredictedList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_PathPredictedList_1, + 1, /* Single element */ + &asn_SPC_PathPredictedList_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/PathPredictedList.h b/vanetza/asn1/its2/PathPredictedList.h new file mode 100644 index 000000000..b092eca40 --- /dev/null +++ b/vanetza/asn1/its2/PathPredictedList.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PathPredictedList_H_ +#define _PathPredictedList_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct PathPredicted2; + +/* PathPredictedList */ +typedef struct PathPredictedList { + A_SEQUENCE_OF(struct PathPredicted2) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PathPredictedList_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_PathPredictedList; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "PathPredicted2.h" + +#endif /* _PathPredictedList_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PathReferences.c b/vanetza/asn1/its2/PathReferences.c new file mode 100644 index 000000000..8f5f0d5d9 --- /dev/null +++ b/vanetza/asn1/its2/PathReferences.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PathReferences.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PathReferences_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..14)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PathReferences_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_PathReferences_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_PathId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_PathReferences_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_PathReferences_specs_1 = { + sizeof(struct PathReferences), + offsetof(struct PathReferences, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_PathReferences = { + "PathReferences", + "PathReferences", + &asn_OP_SEQUENCE_OF, + asn_DEF_PathReferences_tags_1, + sizeof(asn_DEF_PathReferences_tags_1) + /sizeof(asn_DEF_PathReferences_tags_1[0]), /* 1 */ + asn_DEF_PathReferences_tags_1, /* Same as above */ + sizeof(asn_DEF_PathReferences_tags_1) + /sizeof(asn_DEF_PathReferences_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PathReferences_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PathReferences_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_PathReferences_1, + 1, /* Single element */ + &asn_SPC_PathReferences_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/PathReferences.h b/vanetza/asn1/its2/PathReferences.h new file mode 100644 index 000000000..90806264b --- /dev/null +++ b/vanetza/asn1/its2/PathReferences.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PathReferences_H_ +#define _PathReferences_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "PathId.h" +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* PathReferences */ +typedef struct PathReferences { + A_SEQUENCE_OF(PathId_t) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PathReferences_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_PathReferences; +extern asn_SET_OF_specifics_t asn_SPC_PathReferences_specs_1; +extern asn_TYPE_member_t asn_MBR_PathReferences_1[1]; +extern asn_per_constraints_t asn_PER_type_PathReferences_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _PathReferences_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PerceivedObject.c b/vanetza/asn1/its2/PerceivedObject.c new file mode 100644 index 000000000..f1c187cb7 --- /dev/null +++ b/vanetza/asn1/its2/PerceivedObject.c @@ -0,0 +1,426 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PerceivedObject.h" + +static int +memb_objectAge_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_objectAge_constr_13 CC_NOTUSED = { + { 2, 1 } /* (0..2047) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_objectAge_constr_13 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_PerceivedObject_1[] = { + { ATF_POINTER, 1, offsetof(struct PerceivedObject, objectId), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Identifier2B, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "objectId" + }, + { ATF_NOFLAGS, 0, offsetof(struct PerceivedObject, measurementDeltaTime), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DeltaTimeMilliSecondSigned, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "measurementDeltaTime" + }, + { ATF_NOFLAGS, 0, offsetof(struct PerceivedObject, position), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianPosition3dWithConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "position" + }, + { ATF_POINTER, 13, offsetof(struct PerceivedObject, velocity), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_Velocity3dWithConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "velocity" + }, + { ATF_POINTER, 12, offsetof(struct PerceivedObject, acceleration), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_Acceleration3dWithConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "acceleration" + }, + { ATF_POINTER, 11, offsetof(struct PerceivedObject, angles), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EulerAnglesWithConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "angles" + }, + { ATF_POINTER, 10, offsetof(struct PerceivedObject, zAngularVelocity), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianAngularVelocityComponent, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "zAngularVelocity" + }, + { ATF_POINTER, 9, offsetof(struct PerceivedObject, lowerTriangularCorrelationMatrices), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LowerTriangularPositiveSemidefiniteMatrices, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lowerTriangularCorrelationMatrices" + }, + { ATF_POINTER, 8, offsetof(struct PerceivedObject, objectDimensionZ), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ObjectDimension, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "objectDimensionZ" + }, + { ATF_POINTER, 7, offsetof(struct PerceivedObject, objectDimensionY), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ObjectDimension, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "objectDimensionY" + }, + { ATF_POINTER, 6, offsetof(struct PerceivedObject, objectDimensionX), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ObjectDimension, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "objectDimensionX" + }, + { ATF_POINTER, 5, offsetof(struct PerceivedObject, objectAge), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DeltaTimeMilliSecondSigned, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_objectAge_constr_13, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_objectAge_constr_13, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_objectAge_constraint_1 + }, + 0, 0, /* No default value */ + "objectAge" + }, + { ATF_POINTER, 4, offsetof(struct PerceivedObject, objectPerceptionQuality), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ObjectPerceptionQuality, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "objectPerceptionQuality" + }, + { ATF_POINTER, 3, offsetof(struct PerceivedObject, sensorIdList), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SequenceOfIdentifier1B, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sensorIdList" + }, + { ATF_POINTER, 2, offsetof(struct PerceivedObject, classification), + (ASN_TAG_CLASS_CONTEXT | (14 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ObjectClassDescription, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "classification" + }, + { ATF_POINTER, 1, offsetof(struct PerceivedObject, mapPosition), + (ASN_TAG_CLASS_CONTEXT | (15 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MapPosition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "mapPosition" + }, +}; +static const int asn_MAP_PerceivedObject_oms_1[] = { 0, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }; +static const ber_tlv_tag_t asn_DEF_PerceivedObject_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PerceivedObject_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* objectId */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* measurementDeltaTime */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* position */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* velocity */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* acceleration */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* angles */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* zAngularVelocity */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* lowerTriangularCorrelationMatrices */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* objectDimensionZ */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* objectDimensionY */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* objectDimensionX */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* objectAge */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* objectPerceptionQuality */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* sensorIdList */ + { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* classification */ + { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 } /* mapPosition */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PerceivedObject_specs_1 = { + sizeof(struct PerceivedObject), + offsetof(struct PerceivedObject, _asn_ctx), + asn_MAP_PerceivedObject_tag2el_1, + 16, /* Count of tags in the map */ + asn_MAP_PerceivedObject_oms_1, /* Optional members */ + 14, 0, /* Root/Additions */ + 16, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PerceivedObject = { + "PerceivedObject", + "PerceivedObject", + &asn_OP_SEQUENCE, + asn_DEF_PerceivedObject_tags_1, + sizeof(asn_DEF_PerceivedObject_tags_1) + /sizeof(asn_DEF_PerceivedObject_tags_1[0]), /* 1 */ + asn_DEF_PerceivedObject_tags_1, /* Same as above */ + sizeof(asn_DEF_PerceivedObject_tags_1) + /sizeof(asn_DEF_PerceivedObject_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PerceivedObject_1, + 16, /* Elements count */ + &asn_SPC_PerceivedObject_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/PerceivedObject.h b/vanetza/asn1/its2/PerceivedObject.h new file mode 100644 index 000000000..af45887f4 --- /dev/null +++ b/vanetza/asn1/its2/PerceivedObject.h @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PerceivedObject_H_ +#define _PerceivedObject_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "Identifier2B.h" +#include "DeltaTimeMilliSecondSigned.h" +#include "CartesianPosition3dWithConfidence.h" +#include "ObjectPerceptionQuality.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct Velocity3dWithConfidence; +struct Acceleration3dWithConfidence; +struct EulerAnglesWithConfidence; +struct CartesianAngularVelocityComponent; +struct LowerTriangularPositiveSemidefiniteMatrices; +struct ObjectDimension; +struct SequenceOfIdentifier1B; +struct ObjectClassDescription; +struct MapPosition; + +/* PerceivedObject */ +typedef struct PerceivedObject { + Identifier2B_t *objectId; /* OPTIONAL */ + DeltaTimeMilliSecondSigned_t measurementDeltaTime; + CartesianPosition3dWithConfidence_t position; + struct Velocity3dWithConfidence *velocity; /* OPTIONAL */ + struct Acceleration3dWithConfidence *acceleration; /* OPTIONAL */ + struct EulerAnglesWithConfidence *angles; /* OPTIONAL */ + struct CartesianAngularVelocityComponent *zAngularVelocity; /* OPTIONAL */ + struct LowerTriangularPositiveSemidefiniteMatrices *lowerTriangularCorrelationMatrices; /* OPTIONAL */ + struct ObjectDimension *objectDimensionZ; /* OPTIONAL */ + struct ObjectDimension *objectDimensionY; /* OPTIONAL */ + struct ObjectDimension *objectDimensionX; /* OPTIONAL */ + DeltaTimeMilliSecondSigned_t *objectAge; /* OPTIONAL */ + ObjectPerceptionQuality_t *objectPerceptionQuality; /* OPTIONAL */ + struct SequenceOfIdentifier1B *sensorIdList; /* OPTIONAL */ + struct ObjectClassDescription *classification; /* OPTIONAL */ + struct MapPosition *mapPosition; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PerceivedObject_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_PerceivedObject; +extern asn_SEQUENCE_specifics_t asn_SPC_PerceivedObject_specs_1; +extern asn_TYPE_member_t asn_MBR_PerceivedObject_1[16]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "Velocity3dWithConfidence.h" +#include "Acceleration3dWithConfidence.h" +#include "EulerAnglesWithConfidence.h" +#include "CartesianAngularVelocityComponent.h" +#include "LowerTriangularPositiveSemidefiniteMatrices.h" +#include "ObjectDimension.h" +#include "SequenceOfIdentifier1B.h" +#include "ObjectClassDescription.h" +#include "MapPosition.h" + +#endif /* _PerceivedObject_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PerceivedObjectContainer.c b/vanetza/asn1/its2/PerceivedObjectContainer.c new file mode 100644 index 000000000..3934c4213 --- /dev/null +++ b/vanetza/asn1/its2/PerceivedObjectContainer.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PerceivedObjectContainer" + * found in "asn1/TS103324v211-CPM-PerceivedObjectContainer.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PerceivedObjectContainer.h" + +asn_TYPE_member_t asn_MBR_PerceivedObjectContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PerceivedObjectContainer, numberOfPerceivedObjects), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CardinalNumber1B, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "numberOfPerceivedObjects" + }, + { ATF_NOFLAGS, 0, offsetof(struct PerceivedObjectContainer, perceivedObjects), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PerceivedObjects, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "perceivedObjects" + }, +}; +static const ber_tlv_tag_t asn_DEF_PerceivedObjectContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PerceivedObjectContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* numberOfPerceivedObjects */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* perceivedObjects */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PerceivedObjectContainer_specs_1 = { + sizeof(struct PerceivedObjectContainer), + offsetof(struct PerceivedObjectContainer, _asn_ctx), + asn_MAP_PerceivedObjectContainer_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_PerceivedObjectContainer = { + "PerceivedObjectContainer", + "PerceivedObjectContainer", + &asn_OP_SEQUENCE, + asn_DEF_PerceivedObjectContainer_tags_1, + sizeof(asn_DEF_PerceivedObjectContainer_tags_1) + /sizeof(asn_DEF_PerceivedObjectContainer_tags_1[0]), /* 1 */ + asn_DEF_PerceivedObjectContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_PerceivedObjectContainer_tags_1) + /sizeof(asn_DEF_PerceivedObjectContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PerceivedObjectContainer_1, + 2, /* Elements count */ + &asn_SPC_PerceivedObjectContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/PerceivedObjectContainer.h b/vanetza/asn1/its2/PerceivedObjectContainer.h new file mode 100644 index 000000000..d68eecf69 --- /dev/null +++ b/vanetza/asn1/its2/PerceivedObjectContainer.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PerceivedObjectContainer" + * found in "asn1/TS103324v211-CPM-PerceivedObjectContainer.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PerceivedObjectContainer_H_ +#define _PerceivedObjectContainer_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "CardinalNumber1B.h" +#include "PerceivedObjects.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* PerceivedObjectContainer */ +typedef struct PerceivedObjectContainer { + CardinalNumber1B_t numberOfPerceivedObjects; + PerceivedObjects_t perceivedObjects; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PerceivedObjectContainer_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_PerceivedObjectContainer; +extern asn_SEQUENCE_specifics_t asn_SPC_PerceivedObjectContainer_specs_1; +extern asn_TYPE_member_t asn_MBR_PerceivedObjectContainer_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _PerceivedObjectContainer_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PerceivedObjectIds.c b/vanetza/asn1/its2/PerceivedObjectIds.c new file mode 100644 index 000000000..24df9a15e --- /dev/null +++ b/vanetza/asn1/its2/PerceivedObjectIds.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PerceptionRegionContainer" + * found in "asn1/TS103324v211-CPM-PerceptionRegionContainer.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PerceivedObjectIds.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PerceivedObjectIds_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PerceivedObjectIds_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 8, 8, 0, 255 } /* (SIZE(0..255,...)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_PerceivedObjectIds_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_Identifier2B, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_PerceivedObjectIds_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_PerceivedObjectIds_specs_1 = { + sizeof(struct PerceivedObjectIds), + offsetof(struct PerceivedObjectIds, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_PerceivedObjectIds = { + "PerceivedObjectIds", + "PerceivedObjectIds", + &asn_OP_SEQUENCE_OF, + asn_DEF_PerceivedObjectIds_tags_1, + sizeof(asn_DEF_PerceivedObjectIds_tags_1) + /sizeof(asn_DEF_PerceivedObjectIds_tags_1[0]), /* 1 */ + asn_DEF_PerceivedObjectIds_tags_1, /* Same as above */ + sizeof(asn_DEF_PerceivedObjectIds_tags_1) + /sizeof(asn_DEF_PerceivedObjectIds_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PerceivedObjectIds_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PerceivedObjectIds_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_PerceivedObjectIds_1, + 1, /* Single element */ + &asn_SPC_PerceivedObjectIds_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/PerceivedObjectIds.h b/vanetza/asn1/its2/PerceivedObjectIds.h new file mode 100644 index 000000000..168e1144c --- /dev/null +++ b/vanetza/asn1/its2/PerceivedObjectIds.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PerceptionRegionContainer" + * found in "asn1/TS103324v211-CPM-PerceptionRegionContainer.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PerceivedObjectIds_H_ +#define _PerceivedObjectIds_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "Identifier2B.h" +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* PerceivedObjectIds */ +typedef struct PerceivedObjectIds { + A_SEQUENCE_OF(Identifier2B_t) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PerceivedObjectIds_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_PerceivedObjectIds; +extern asn_SET_OF_specifics_t asn_SPC_PerceivedObjectIds_specs_1; +extern asn_TYPE_member_t asn_MBR_PerceivedObjectIds_1[1]; +extern asn_per_constraints_t asn_PER_type_PerceivedObjectIds_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _PerceivedObjectIds_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PerceivedObjects.c b/vanetza/asn1/its2/PerceivedObjects.c new file mode 100644 index 000000000..5cb4c9b7f --- /dev/null +++ b/vanetza/asn1/its2/PerceivedObjects.c @@ -0,0 +1,109 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PerceivedObjectContainer" + * found in "asn1/TS103324v211-CPM-PerceivedObjectContainer.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PerceivedObjects.h" + +static int +memb_PerceivedObject_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; + } + + + if(1 /* No applicable constraints whatsoever */) { + /* Nothing is here. See below */ + } + + return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); +} + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_Member_constr_2 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#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_UNCONSTRAINED, -1, -1, 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PerceivedObjects_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PerceivedObjects_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 8, 8, 0, 255 } /* (SIZE(0..255,...)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_PerceivedObjects_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_PerceivedObject, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_Member_constr_2, +#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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_PerceivedObject_constraint_1 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_PerceivedObjects_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_PerceivedObjects_specs_1 = { + sizeof(struct PerceivedObjects), + offsetof(struct PerceivedObjects, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_PerceivedObjects = { + "PerceivedObjects", + "PerceivedObjects", + &asn_OP_SEQUENCE_OF, + asn_DEF_PerceivedObjects_tags_1, + sizeof(asn_DEF_PerceivedObjects_tags_1) + /sizeof(asn_DEF_PerceivedObjects_tags_1[0]), /* 1 */ + asn_DEF_PerceivedObjects_tags_1, /* Same as above */ + sizeof(asn_DEF_PerceivedObjects_tags_1) + /sizeof(asn_DEF_PerceivedObjects_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PerceivedObjects_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PerceivedObjects_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_PerceivedObjects_1, + 1, /* Single element */ + &asn_SPC_PerceivedObjects_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/PerceivedObjects.h b/vanetza/asn1/its2/PerceivedObjects.h new file mode 100644 index 000000000..9b36464c3 --- /dev/null +++ b/vanetza/asn1/its2/PerceivedObjects.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PerceivedObjectContainer" + * found in "asn1/TS103324v211-CPM-PerceivedObjectContainer.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PerceivedObjects_H_ +#define _PerceivedObjects_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct PerceivedObject; + +/* PerceivedObjects */ +typedef struct PerceivedObjects { + A_SEQUENCE_OF(struct PerceivedObject) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PerceivedObjects_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_PerceivedObjects; +extern asn_SET_OF_specifics_t asn_SPC_PerceivedObjects_specs_1; +extern asn_TYPE_member_t asn_MBR_PerceivedObjects_1[1]; +extern asn_per_constraints_t asn_PER_type_PerceivedObjects_constr_1; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "PerceivedObject.h" + +#endif /* _PerceivedObjects_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PerceptionRegion.c b/vanetza/asn1/its2/PerceptionRegion.c new file mode 100644 index 000000000..cc934dd01 --- /dev/null +++ b/vanetza/asn1/its2/PerceptionRegion.c @@ -0,0 +1,200 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PerceptionRegionContainer" + * found in "asn1/TS103324v211-CPM-PerceptionRegionContainer.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PerceptionRegion.h" + +asn_TYPE_member_t asn_MBR_PerceptionRegion_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PerceptionRegion, measurementDeltaTime), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DeltaTimeMilliSecondSigned, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "measurementDeltaTime" + }, + { ATF_NOFLAGS, 0, offsetof(struct PerceptionRegion, perceptionRegionConfidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ConfidenceLevel, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "perceptionRegionConfidence" + }, + { ATF_NOFLAGS, 0, offsetof(struct PerceptionRegion, perceptionRegionShape), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_Shape, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "perceptionRegionShape" + }, + { ATF_NOFLAGS, 0, offsetof(struct PerceptionRegion, shadowingApplies), + (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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "shadowingApplies" + }, + { ATF_POINTER, 3, offsetof(struct PerceptionRegion, sensorIdList), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SequenceOfIdentifier1B, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sensorIdList" + }, + { ATF_POINTER, 2, offsetof(struct PerceptionRegion, numberOfPerceivedObjects), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CardinalNumber1B, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "numberOfPerceivedObjects" + }, + { ATF_POINTER, 1, offsetof(struct PerceptionRegion, perceivedObjectIds), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PerceivedObjectIds, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "perceivedObjectIds" + }, +}; +static const int asn_MAP_PerceptionRegion_oms_1[] = { 4, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_PerceptionRegion_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PerceptionRegion_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* measurementDeltaTime */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* perceptionRegionConfidence */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* perceptionRegionShape */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* shadowingApplies */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* sensorIdList */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* numberOfPerceivedObjects */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* perceivedObjectIds */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PerceptionRegion_specs_1 = { + sizeof(struct PerceptionRegion), + offsetof(struct PerceptionRegion, _asn_ctx), + asn_MAP_PerceptionRegion_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_PerceptionRegion_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PerceptionRegion = { + "PerceptionRegion", + "PerceptionRegion", + &asn_OP_SEQUENCE, + asn_DEF_PerceptionRegion_tags_1, + sizeof(asn_DEF_PerceptionRegion_tags_1) + /sizeof(asn_DEF_PerceptionRegion_tags_1[0]), /* 1 */ + asn_DEF_PerceptionRegion_tags_1, /* Same as above */ + sizeof(asn_DEF_PerceptionRegion_tags_1) + /sizeof(asn_DEF_PerceptionRegion_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PerceptionRegion_1, + 7, /* Elements count */ + &asn_SPC_PerceptionRegion_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/PerceptionRegion.h b/vanetza/asn1/its2/PerceptionRegion.h new file mode 100644 index 000000000..281cd52b7 --- /dev/null +++ b/vanetza/asn1/its2/PerceptionRegion.h @@ -0,0 +1,62 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PerceptionRegionContainer" + * found in "asn1/TS103324v211-CPM-PerceptionRegionContainer.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PerceptionRegion_H_ +#define _PerceptionRegion_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "DeltaTimeMilliSecondSigned.h" +#include "ConfidenceLevel.h" +#include "Shape.h" +#include "BOOLEAN.h" +#include "CardinalNumber1B.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct SequenceOfIdentifier1B; +struct PerceivedObjectIds; + +/* PerceptionRegion */ +typedef struct PerceptionRegion { + DeltaTimeMilliSecondSigned_t measurementDeltaTime; + ConfidenceLevel_t perceptionRegionConfidence; + Shape_t perceptionRegionShape; + BOOLEAN_t shadowingApplies; + struct SequenceOfIdentifier1B *sensorIdList; /* OPTIONAL */ + CardinalNumber1B_t *numberOfPerceivedObjects; /* OPTIONAL */ + struct PerceivedObjectIds *perceivedObjectIds; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PerceptionRegion_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_PerceptionRegion; +extern asn_SEQUENCE_specifics_t asn_SPC_PerceptionRegion_specs_1; +extern asn_TYPE_member_t asn_MBR_PerceptionRegion_1[7]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "SequenceOfIdentifier1B.h" +#include "PerceivedObjectIds.h" + +#endif /* _PerceptionRegion_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PerceptionRegionContainer.c b/vanetza/asn1/its2/PerceptionRegionContainer.c new file mode 100644 index 000000000..e9945a97c --- /dev/null +++ b/vanetza/asn1/its2/PerceptionRegionContainer.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PerceptionRegionContainer" + * found in "asn1/TS103324v211-CPM-PerceptionRegionContainer.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PerceptionRegionContainer.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PerceptionRegionContainer_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PerceptionRegionContainer_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 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_PerceptionRegionContainer_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_PerceptionRegion, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_PerceptionRegionContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_PerceptionRegionContainer_specs_1 = { + sizeof(struct PerceptionRegionContainer), + offsetof(struct PerceptionRegionContainer, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_PerceptionRegionContainer = { + "PerceptionRegionContainer", + "PerceptionRegionContainer", + &asn_OP_SEQUENCE_OF, + asn_DEF_PerceptionRegionContainer_tags_1, + sizeof(asn_DEF_PerceptionRegionContainer_tags_1) + /sizeof(asn_DEF_PerceptionRegionContainer_tags_1[0]), /* 1 */ + asn_DEF_PerceptionRegionContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_PerceptionRegionContainer_tags_1) + /sizeof(asn_DEF_PerceptionRegionContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PerceptionRegionContainer_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PerceptionRegionContainer_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_PerceptionRegionContainer_1, + 1, /* Single element */ + &asn_SPC_PerceptionRegionContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/PerceptionRegionContainer.h b/vanetza/asn1/its2/PerceptionRegionContainer.h new file mode 100644 index 000000000..5d5b4c6a9 --- /dev/null +++ b/vanetza/asn1/its2/PerceptionRegionContainer.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PerceptionRegionContainer" + * found in "asn1/TS103324v211-CPM-PerceptionRegionContainer.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PerceptionRegionContainer_H_ +#define _PerceptionRegionContainer_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct PerceptionRegion; + +/* PerceptionRegionContainer */ +typedef struct PerceptionRegionContainer { + A_SEQUENCE_OF(struct PerceptionRegion) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PerceptionRegionContainer_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_PerceptionRegionContainer; +extern asn_SET_OF_specifics_t asn_SPC_PerceptionRegionContainer_specs_1; +extern asn_TYPE_member_t asn_MBR_PerceptionRegionContainer_1[1]; +extern asn_per_constraints_t asn_PER_type_PerceptionRegionContainer_constr_1; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "PerceptionRegion.h" + +#endif /* _PerceptionRegionContainer_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PerformanceClass.c b/vanetza/asn1/its2/PerformanceClass.c new file mode 100644 index 000000000..7d8093ad7 --- /dev/null +++ b/vanetza/asn1/its2/PerformanceClass.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PerformanceClass.h" + +int +PerformanceClass_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PerformanceClass_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..7) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PerformanceClass_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_PerformanceClass_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_PerformanceClass = { + "PerformanceClass", + "PerformanceClass", + &asn_OP_NativeInteger, + asn_DEF_PerformanceClass_tags_1, + sizeof(asn_DEF_PerformanceClass_tags_1) + /sizeof(asn_DEF_PerformanceClass_tags_1[0]), /* 1 */ + asn_DEF_PerformanceClass_tags_1, /* Same as above */ + sizeof(asn_DEF_PerformanceClass_tags_1) + /sizeof(asn_DEF_PerformanceClass_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PerformanceClass_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PerformanceClass_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + PerformanceClass_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/PerformanceClass.h b/vanetza/asn1/its2/PerformanceClass.h new file mode 100644 index 000000000..0e50b974f --- /dev/null +++ b/vanetza/asn1/its2/PerformanceClass.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PerformanceClass_H_ +#define _PerformanceClass_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum PerformanceClass { + PerformanceClass_unavailable = 0, + PerformanceClass_performanceClassA = 1, + PerformanceClass_performanceClassB = 2 +} e_PerformanceClass; + +/* PerformanceClass */ +typedef long PerformanceClass_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_PerformanceClass_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_PerformanceClass; +asn_struct_free_f PerformanceClass_free; +asn_struct_print_f PerformanceClass_print; +asn_constr_check_f PerformanceClass_constraint; +ber_type_decoder_f PerformanceClass_decode_ber; +der_type_encoder_f PerformanceClass_encode_der; +xer_type_decoder_f PerformanceClass_decode_xer; +xer_type_encoder_f PerformanceClass_encode_xer; +jer_type_encoder_f PerformanceClass_encode_jer; +oer_type_decoder_f PerformanceClass_decode_oer; +oer_type_encoder_f PerformanceClass_encode_oer; +per_type_decoder_f PerformanceClass_decode_uper; +per_type_encoder_f PerformanceClass_encode_uper; +per_type_decoder_f PerformanceClass_decode_aper; +per_type_encoder_f PerformanceClass_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _PerformanceClass_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PhoneNumber.c b/vanetza/asn1/its2/PhoneNumber.c new file mode 100644 index 000000000..a72d0cde7 --- /dev/null +++ b/vanetza/asn1/its2/PhoneNumber.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PhoneNumber.h" + +static const int permitted_alphabet_table_1[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, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* . */ + 2, 3, 4, 5, 6, 7, 8, 9,10,11, 0, 0, 0, 0, 0, 0, /* 0123456789 */ +}; +static const int permitted_alphabet_code2value_1[11] = { +32,48,49,50,51,52,53,54,55,56,57,}; + + +static int check_permitted_alphabet_1(const void *sptr) { + const int *table = permitted_alphabet_table_1; + /* The underlying type is NumericString */ + const NumericString_t *st = (const NumericString_t *)sptr; + const uint8_t *ch = st->buf; + const uint8_t *end = ch + st->size; + + for(; ch < end; ch++) { + uint8_t cv = *ch; + if(!table[cv]) return -1; + } + return 0; +} + +int +PhoneNumber_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; + 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 <= 16UL) + && !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; + } +} + +static int asn_PER_MAP_PhoneNumber_1_v2c(unsigned int value) { + if(value >= sizeof(permitted_alphabet_table_1)/sizeof(permitted_alphabet_table_1[0])) + return -1; + return permitted_alphabet_table_1[value] - 1; +} +static int asn_PER_MAP_PhoneNumber_1_c2v(unsigned int code) { + if(code >= sizeof(permitted_alphabet_code2value_1)/sizeof(permitted_alphabet_code2value_1[0])) + return -1; + return permitted_alphabet_code2value_1[code]; +} +/* + * This type is implemented using NumericString, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PhoneNumber_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..16)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PhoneNumber_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 4, 4, 32, 57 } /* (32..57) */, + { APC_CONSTRAINED, 4, 4, 1, 16 } /* (SIZE(1..16)) */, + asn_PER_MAP_PhoneNumber_1_v2c, /* Value to PER code map */ + asn_PER_MAP_PhoneNumber_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_PhoneNumber_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (18 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_PhoneNumber = { + "PhoneNumber", + "PhoneNumber", + &asn_OP_NumericString, + asn_DEF_PhoneNumber_tags_1, + sizeof(asn_DEF_PhoneNumber_tags_1) + /sizeof(asn_DEF_PhoneNumber_tags_1[0]), /* 1 */ + asn_DEF_PhoneNumber_tags_1, /* Same as above */ + sizeof(asn_DEF_PhoneNumber_tags_1) + /sizeof(asn_DEF_PhoneNumber_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PhoneNumber_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PhoneNumber_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + PhoneNumber_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/PhoneNumber.h b/vanetza/asn1/its2/PhoneNumber.h new file mode 100644 index 000000000..5561b8b5e --- /dev/null +++ b/vanetza/asn1/its2/PhoneNumber.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PhoneNumber_H_ +#define _PhoneNumber_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NumericString.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* PhoneNumber */ +typedef NumericString_t PhoneNumber_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_PhoneNumber_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_PhoneNumber; +asn_struct_free_f PhoneNumber_free; +asn_struct_print_f PhoneNumber_print; +asn_constr_check_f PhoneNumber_constraint; +ber_type_decoder_f PhoneNumber_decode_ber; +der_type_encoder_f PhoneNumber_encode_der; +xer_type_decoder_f PhoneNumber_decode_xer; +xer_type_encoder_f PhoneNumber_encode_xer; +jer_type_encoder_f PhoneNumber_encode_jer; +oer_type_decoder_f PhoneNumber_decode_oer; +oer_type_encoder_f PhoneNumber_encode_oer; +per_type_decoder_f PhoneNumber_decode_uper; +per_type_encoder_f PhoneNumber_encode_uper; +per_type_decoder_f PhoneNumber_decode_aper; +per_type_encoder_f PhoneNumber_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _PhoneNumber_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PolygonalShape.c b/vanetza/asn1/its2/PolygonalShape.c new file mode 100644 index 000000000..3f12ed468 --- /dev/null +++ b/vanetza/asn1/its2/PolygonalShape.c @@ -0,0 +1,154 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PolygonalShape.h" + +static int +memb_polygon_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 && 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_polygon_constr_3 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..16)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_polygon_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 4, 4, 3, 16 } /* (SIZE(3..16,...)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +asn_TYPE_member_t asn_MBR_PolygonalShape_1[] = { + { ATF_POINTER, 1, offsetof(struct PolygonalShape, shapeReferencePoint), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianPosition3d, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "shapeReferencePoint" + }, + { ATF_NOFLAGS, 0, offsetof(struct PolygonalShape, polygon), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SequenceOfCartesianPosition3d, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_polygon_constr_3, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_polygon_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_polygon_constraint_1 + }, + 0, 0, /* No default value */ + "polygon" + }, + { ATF_POINTER, 1, offsetof(struct PolygonalShape, height), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StandardLength12b, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "height" + }, +}; +static const int asn_MAP_PolygonalShape_oms_1[] = { 0, 2 }; +static const ber_tlv_tag_t asn_DEF_PolygonalShape_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PolygonalShape_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* shapeReferencePoint */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* polygon */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* height */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PolygonalShape_specs_1 = { + sizeof(struct PolygonalShape), + offsetof(struct PolygonalShape, _asn_ctx), + asn_MAP_PolygonalShape_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_PolygonalShape_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PolygonalShape = { + "PolygonalShape", + "PolygonalShape", + &asn_OP_SEQUENCE, + asn_DEF_PolygonalShape_tags_1, + sizeof(asn_DEF_PolygonalShape_tags_1) + /sizeof(asn_DEF_PolygonalShape_tags_1[0]), /* 1 */ + asn_DEF_PolygonalShape_tags_1, /* Same as above */ + sizeof(asn_DEF_PolygonalShape_tags_1) + /sizeof(asn_DEF_PolygonalShape_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PolygonalShape_1, + 3, /* Elements count */ + &asn_SPC_PolygonalShape_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/PolygonalShape.h b/vanetza/asn1/its2/PolygonalShape.h new file mode 100644 index 000000000..f3127ff06 --- /dev/null +++ b/vanetza/asn1/its2/PolygonalShape.h @@ -0,0 +1,49 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PolygonalShape_H_ +#define _PolygonalShape_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "SequenceOfCartesianPosition3d.h" +#include "StandardLength12b.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct CartesianPosition3d; + +/* PolygonalShape */ +typedef struct PolygonalShape { + struct CartesianPosition3d *shapeReferencePoint; /* OPTIONAL */ + SequenceOfCartesianPosition3d_t polygon; + StandardLength12b_t *height; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PolygonalShape_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_PolygonalShape; +extern asn_SEQUENCE_specifics_t asn_SPC_PolygonalShape_specs_1; +extern asn_TYPE_member_t asn_MBR_PolygonalShape_1[3]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "CartesianPosition3d.h" + +#endif /* _PolygonalShape_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PosCentMass.c b/vanetza/asn1/its2/PosCentMass.c new file mode 100644 index 000000000..418216859 --- /dev/null +++ b/vanetza/asn1/its2/PosCentMass.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PosCentMass.h" + +int +PosCentMass_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 <= 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PosCentMass_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..63) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PosCentMass_constr_1 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 ber_tlv_tag_t asn_DEF_PosCentMass_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_PosCentMass = { + "PosCentMass", + "PosCentMass", + &asn_OP_NativeInteger, + asn_DEF_PosCentMass_tags_1, + sizeof(asn_DEF_PosCentMass_tags_1) + /sizeof(asn_DEF_PosCentMass_tags_1[0]), /* 1 */ + asn_DEF_PosCentMass_tags_1, /* Same as above */ + sizeof(asn_DEF_PosCentMass_tags_1) + /sizeof(asn_DEF_PosCentMass_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PosCentMass_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PosCentMass_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + PosCentMass_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/PosCentMass.h b/vanetza/asn1/its2/PosCentMass.h new file mode 100644 index 000000000..f65e1276e --- /dev/null +++ b/vanetza/asn1/its2/PosCentMass.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PosCentMass_H_ +#define _PosCentMass_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum PosCentMass { + PosCentMass_tenCentimetres = 1, + PosCentMass_outOfRange = 62, + PosCentMass_unavailable = 63 +} e_PosCentMass; + +/* PosCentMass */ +typedef long PosCentMass_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_PosCentMass_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_PosCentMass; +asn_struct_free_f PosCentMass_free; +asn_struct_print_f PosCentMass_print; +asn_constr_check_f PosCentMass_constraint; +ber_type_decoder_f PosCentMass_decode_ber; +der_type_encoder_f PosCentMass_encode_der; +xer_type_decoder_f PosCentMass_decode_xer; +xer_type_encoder_f PosCentMass_encode_xer; +jer_type_encoder_f PosCentMass_encode_jer; +oer_type_decoder_f PosCentMass_decode_oer; +oer_type_encoder_f PosCentMass_encode_oer; +per_type_decoder_f PosCentMass_decode_uper; +per_type_encoder_f PosCentMass_encode_uper; +per_type_decoder_f PosCentMass_decode_aper; +per_type_encoder_f PosCentMass_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _PosCentMass_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PosConfidenceEllipse.c b/vanetza/asn1/its2/PosConfidenceEllipse.c new file mode 100644 index 000000000..f27af5381 --- /dev/null +++ b/vanetza/asn1/its2/PosConfidenceEllipse.c @@ -0,0 +1,114 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PosConfidenceEllipse.h" + +asn_TYPE_member_t asn_MBR_PosConfidenceEllipse_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PosConfidenceEllipse, semiMajorConfidence), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SemiAxisLength, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "semiMajorConfidence" + }, + { ATF_NOFLAGS, 0, offsetof(struct PosConfidenceEllipse, semiMinorConfidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SemiAxisLength, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "semiMinorConfidence" + }, + { ATF_NOFLAGS, 0, offsetof(struct PosConfidenceEllipse, semiMajorOrientation), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HeadingValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "semiMajorOrientation" + }, +}; +static const ber_tlv_tag_t asn_DEF_PosConfidenceEllipse_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PosConfidenceEllipse_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* semiMajorConfidence */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* semiMinorConfidence */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* semiMajorOrientation */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PosConfidenceEllipse_specs_1 = { + sizeof(struct PosConfidenceEllipse), + offsetof(struct PosConfidenceEllipse, _asn_ctx), + asn_MAP_PosConfidenceEllipse_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_PosConfidenceEllipse = { + "PosConfidenceEllipse", + "PosConfidenceEllipse", + &asn_OP_SEQUENCE, + asn_DEF_PosConfidenceEllipse_tags_1, + sizeof(asn_DEF_PosConfidenceEllipse_tags_1) + /sizeof(asn_DEF_PosConfidenceEllipse_tags_1[0]), /* 1 */ + asn_DEF_PosConfidenceEllipse_tags_1, /* Same as above */ + sizeof(asn_DEF_PosConfidenceEllipse_tags_1) + /sizeof(asn_DEF_PosConfidenceEllipse_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PosConfidenceEllipse_1, + 3, /* Elements count */ + &asn_SPC_PosConfidenceEllipse_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/PosConfidenceEllipse.h b/vanetza/asn1/its2/PosConfidenceEllipse.h new file mode 100644 index 000000000..e1673b2a5 --- /dev/null +++ b/vanetza/asn1/its2/PosConfidenceEllipse.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PosConfidenceEllipse_H_ +#define _PosConfidenceEllipse_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "SemiAxisLength.h" +#include "HeadingValue.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* PosConfidenceEllipse */ +typedef struct PosConfidenceEllipse { + SemiAxisLength_t semiMajorConfidence; + SemiAxisLength_t semiMinorConfidence; + HeadingValue_t semiMajorOrientation; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PosConfidenceEllipse_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_PosConfidenceEllipse; +extern asn_SEQUENCE_specifics_t asn_SPC_PosConfidenceEllipse_specs_1; +extern asn_TYPE_member_t asn_MBR_PosConfidenceEllipse_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _PosConfidenceEllipse_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PosFrontAx.c b/vanetza/asn1/its2/PosFrontAx.c new file mode 100644 index 000000000..af42acb42 --- /dev/null +++ b/vanetza/asn1/its2/PosFrontAx.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PosFrontAx.h" + +int +PosFrontAx_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 <= 20L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PosFrontAx_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..20) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PosFrontAx_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 1, 20 } /* (1..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 ber_tlv_tag_t asn_DEF_PosFrontAx_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_PosFrontAx = { + "PosFrontAx", + "PosFrontAx", + &asn_OP_NativeInteger, + asn_DEF_PosFrontAx_tags_1, + sizeof(asn_DEF_PosFrontAx_tags_1) + /sizeof(asn_DEF_PosFrontAx_tags_1[0]), /* 1 */ + asn_DEF_PosFrontAx_tags_1, /* Same as above */ + sizeof(asn_DEF_PosFrontAx_tags_1) + /sizeof(asn_DEF_PosFrontAx_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PosFrontAx_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PosFrontAx_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + PosFrontAx_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/PosFrontAx.h b/vanetza/asn1/its2/PosFrontAx.h new file mode 100644 index 000000000..67bcd571e --- /dev/null +++ b/vanetza/asn1/its2/PosFrontAx.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PosFrontAx_H_ +#define _PosFrontAx_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum PosFrontAx { + PosFrontAx_outOfRange = 19, + PosFrontAx_unavailable = 20 +} e_PosFrontAx; + +/* PosFrontAx */ +typedef long PosFrontAx_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_PosFrontAx_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_PosFrontAx; +asn_struct_free_f PosFrontAx_free; +asn_struct_print_f PosFrontAx_print; +asn_constr_check_f PosFrontAx_constraint; +ber_type_decoder_f PosFrontAx_decode_ber; +der_type_encoder_f PosFrontAx_encode_der; +xer_type_decoder_f PosFrontAx_decode_xer; +xer_type_encoder_f PosFrontAx_encode_xer; +jer_type_encoder_f PosFrontAx_encode_jer; +oer_type_decoder_f PosFrontAx_decode_oer; +oer_type_encoder_f PosFrontAx_encode_oer; +per_type_decoder_f PosFrontAx_decode_uper; +per_type_encoder_f PosFrontAx_encode_uper; +per_type_decoder_f PosFrontAx_decode_aper; +per_type_encoder_f PosFrontAx_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _PosFrontAx_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PosLonCarr.c b/vanetza/asn1/its2/PosLonCarr.c new file mode 100644 index 000000000..61d1086e2 --- /dev/null +++ b/vanetza/asn1/its2/PosLonCarr.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PosLonCarr.h" + +int +PosLonCarr_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 <= 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PosLonCarr_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..127) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PosLonCarr_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 1, 127 } /* (1..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_PosLonCarr_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_PosLonCarr = { + "PosLonCarr", + "PosLonCarr", + &asn_OP_NativeInteger, + asn_DEF_PosLonCarr_tags_1, + sizeof(asn_DEF_PosLonCarr_tags_1) + /sizeof(asn_DEF_PosLonCarr_tags_1[0]), /* 1 */ + asn_DEF_PosLonCarr_tags_1, /* Same as above */ + sizeof(asn_DEF_PosLonCarr_tags_1) + /sizeof(asn_DEF_PosLonCarr_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PosLonCarr_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PosLonCarr_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + PosLonCarr_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/PosLonCarr.h b/vanetza/asn1/its2/PosLonCarr.h new file mode 100644 index 000000000..d95b3251c --- /dev/null +++ b/vanetza/asn1/its2/PosLonCarr.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PosLonCarr_H_ +#define _PosLonCarr_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum PosLonCarr { + PosLonCarr_outOfRange = 126, + PosLonCarr_unavailable = 127 +} e_PosLonCarr; + +/* PosLonCarr */ +typedef long PosLonCarr_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_PosLonCarr_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_PosLonCarr; +asn_struct_free_f PosLonCarr_free; +asn_struct_print_f PosLonCarr_print; +asn_constr_check_f PosLonCarr_constraint; +ber_type_decoder_f PosLonCarr_decode_ber; +der_type_encoder_f PosLonCarr_encode_der; +xer_type_decoder_f PosLonCarr_decode_xer; +xer_type_encoder_f PosLonCarr_encode_xer; +jer_type_encoder_f PosLonCarr_encode_jer; +oer_type_decoder_f PosLonCarr_decode_oer; +oer_type_encoder_f PosLonCarr_encode_oer; +per_type_decoder_f PosLonCarr_decode_uper; +per_type_encoder_f PosLonCarr_encode_uper; +per_type_decoder_f PosLonCarr_decode_aper; +per_type_encoder_f PosLonCarr_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _PosLonCarr_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PosPillar.c b/vanetza/asn1/its2/PosPillar.c new file mode 100644 index 000000000..624c35c87 --- /dev/null +++ b/vanetza/asn1/its2/PosPillar.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PosPillar.h" + +int +PosPillar_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 <= 30L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PosPillar_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..30) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PosPillar_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 5, 5, 1, 30 } /* (1..30) */, + { 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_PosPillar_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_PosPillar = { + "PosPillar", + "PosPillar", + &asn_OP_NativeInteger, + asn_DEF_PosPillar_tags_1, + sizeof(asn_DEF_PosPillar_tags_1) + /sizeof(asn_DEF_PosPillar_tags_1[0]), /* 1 */ + asn_DEF_PosPillar_tags_1, /* Same as above */ + sizeof(asn_DEF_PosPillar_tags_1) + /sizeof(asn_DEF_PosPillar_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PosPillar_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PosPillar_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + PosPillar_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/PosPillar.h b/vanetza/asn1/its2/PosPillar.h new file mode 100644 index 000000000..37e4ad694 --- /dev/null +++ b/vanetza/asn1/its2/PosPillar.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PosPillar_H_ +#define _PosPillar_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum PosPillar { + PosPillar_outOfRange = 29, + PosPillar_unavailable = 30 +} e_PosPillar; + +/* PosPillar */ +typedef long PosPillar_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_PosPillar_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_PosPillar; +asn_struct_free_f PosPillar_free; +asn_struct_print_f PosPillar_print; +asn_constr_check_f PosPillar_constraint; +ber_type_decoder_f PosPillar_decode_ber; +der_type_encoder_f PosPillar_encode_der; +xer_type_decoder_f PosPillar_decode_xer; +xer_type_encoder_f PosPillar_encode_xer; +jer_type_encoder_f PosPillar_encode_jer; +oer_type_decoder_f PosPillar_decode_oer; +oer_type_encoder_f PosPillar_encode_oer; +per_type_decoder_f PosPillar_decode_uper; +per_type_encoder_f PosPillar_encode_uper; +per_type_decoder_f PosPillar_decode_aper; +per_type_encoder_f PosPillar_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _PosPillar_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/Position1d.c b/vanetza/asn1/its2/Position1d.c new file mode 100644 index 000000000..72f5f5bf6 --- /dev/null +++ b/vanetza/asn1/its2/Position1d.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Position1d.h" + +int +Position1d_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 >= -8190L && 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; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_Position1d_constr_1 CC_NOTUSED = { + { 2, 0 } /* (-8190..8191) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_Position1d_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, -8190, 8191 } /* (-8190..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 const ber_tlv_tag_t asn_DEF_Position1d_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_Position1d = { + "Position1d", + "Position1d", + &asn_OP_NativeInteger, + asn_DEF_Position1d_tags_1, + sizeof(asn_DEF_Position1d_tags_1) + /sizeof(asn_DEF_Position1d_tags_1[0]), /* 1 */ + asn_DEF_Position1d_tags_1, /* Same as above */ + sizeof(asn_DEF_Position1d_tags_1) + /sizeof(asn_DEF_Position1d_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_Position1d_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Position1d_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + Position1d_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/Position1d.h b/vanetza/asn1/its2/Position1d.h new file mode 100644 index 000000000..ae3cac757 --- /dev/null +++ b/vanetza/asn1/its2/Position1d.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _Position1d_H_ +#define _Position1d_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum Position1d { + Position1d_outOfRange = 8190, + Position1d_unavailable = 8191 +} e_Position1d; + +/* Position1d */ +typedef long Position1d_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Position1d; +asn_struct_free_f Position1d_free; +asn_struct_print_f Position1d_print; +asn_constr_check_f Position1d_constraint; +ber_type_decoder_f Position1d_decode_ber; +der_type_encoder_f Position1d_encode_der; +xer_type_decoder_f Position1d_decode_xer; +xer_type_encoder_f Position1d_encode_xer; +jer_type_encoder_f Position1d_encode_jer; +oer_type_decoder_f Position1d_decode_oer; +oer_type_encoder_f Position1d_encode_oer; +per_type_decoder_f Position1d_decode_uper; +per_type_encoder_f Position1d_encode_uper; +per_type_decoder_f Position1d_decode_aper; +per_type_encoder_f Position1d_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _Position1d_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PositionConfidenceEllipse.c b/vanetza/asn1/its2/PositionConfidenceEllipse.c new file mode 100644 index 000000000..c037ad5fc --- /dev/null +++ b/vanetza/asn1/its2/PositionConfidenceEllipse.c @@ -0,0 +1,114 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PositionConfidenceEllipse.h" + +asn_TYPE_member_t asn_MBR_PositionConfidenceEllipse_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PositionConfidenceEllipse, semiMajorAxisLength), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SemiAxisLength, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "semiMajorAxisLength" + }, + { ATF_NOFLAGS, 0, offsetof(struct PositionConfidenceEllipse, semiMinorAxisLength), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SemiAxisLength, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "semiMinorAxisLength" + }, + { ATF_NOFLAGS, 0, offsetof(struct PositionConfidenceEllipse, semiMajorAxisOrientation), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Wgs84AngleValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "semiMajorAxisOrientation" + }, +}; +static const ber_tlv_tag_t asn_DEF_PositionConfidenceEllipse_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PositionConfidenceEllipse_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* semiMajorAxisLength */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* semiMinorAxisLength */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* semiMajorAxisOrientation */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PositionConfidenceEllipse_specs_1 = { + sizeof(struct PositionConfidenceEllipse), + offsetof(struct PositionConfidenceEllipse, _asn_ctx), + asn_MAP_PositionConfidenceEllipse_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_PositionConfidenceEllipse = { + "PositionConfidenceEllipse", + "PositionConfidenceEllipse", + &asn_OP_SEQUENCE, + asn_DEF_PositionConfidenceEllipse_tags_1, + sizeof(asn_DEF_PositionConfidenceEllipse_tags_1) + /sizeof(asn_DEF_PositionConfidenceEllipse_tags_1[0]), /* 1 */ + asn_DEF_PositionConfidenceEllipse_tags_1, /* Same as above */ + sizeof(asn_DEF_PositionConfidenceEllipse_tags_1) + /sizeof(asn_DEF_PositionConfidenceEllipse_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PositionConfidenceEllipse_1, + 3, /* Elements count */ + &asn_SPC_PositionConfidenceEllipse_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/PositionConfidenceEllipse.h b/vanetza/asn1/its2/PositionConfidenceEllipse.h new file mode 100644 index 000000000..41a3d2351 --- /dev/null +++ b/vanetza/asn1/its2/PositionConfidenceEllipse.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PositionConfidenceEllipse_H_ +#define _PositionConfidenceEllipse_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "SemiAxisLength.h" +#include "Wgs84AngleValue.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* PositionConfidenceEllipse */ +typedef struct PositionConfidenceEllipse { + SemiAxisLength_t semiMajorAxisLength; + SemiAxisLength_t semiMinorAxisLength; + Wgs84AngleValue_t semiMajorAxisOrientation; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PositionConfidenceEllipse_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_PositionConfidenceEllipse; +extern asn_SEQUENCE_specifics_t asn_SPC_PositionConfidenceEllipse_specs_1; +extern asn_TYPE_member_t asn_MBR_PositionConfidenceEllipse_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _PositionConfidenceEllipse_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PositionOfOccupants.c b/vanetza/asn1/its2/PositionOfOccupants.c new file mode 100644 index 000000000..17d7f47d2 --- /dev/null +++ b/vanetza/asn1/its2/PositionOfOccupants.c @@ -0,0 +1,89 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PositionOfOccupants.h" + +int +PositionOfOccupants_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 == 20UL)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PositionOfOccupants_constr_1 CC_NOTUSED = { + { 0, 0 }, + 20 /* (SIZE(20..20)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PositionOfOccupants_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 20, 20 } /* (SIZE(20..20)) */, + 0, 0 /* No PER value map */ +}; +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_PositionOfOccupants_constr_1 CC_NOTUSED = { + 20}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_PositionOfOccupants_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_PositionOfOccupants = { + "PositionOfOccupants", + "PositionOfOccupants", + &asn_OP_BIT_STRING, + asn_DEF_PositionOfOccupants_tags_1, + sizeof(asn_DEF_PositionOfOccupants_tags_1) + /sizeof(asn_DEF_PositionOfOccupants_tags_1[0]), /* 1 */ + asn_DEF_PositionOfOccupants_tags_1, /* Same as above */ + sizeof(asn_DEF_PositionOfOccupants_tags_1) + /sizeof(asn_DEF_PositionOfOccupants_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PositionOfOccupants_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PositionOfOccupants_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_PositionOfOccupants_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + PositionOfOccupants_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/PositionOfOccupants.h b/vanetza/asn1/its2/PositionOfOccupants.h new file mode 100644 index 000000000..ef4436f3c --- /dev/null +++ b/vanetza/asn1/its2/PositionOfOccupants.h @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PositionOfOccupants_H_ +#define _PositionOfOccupants_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "BIT_STRING.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum PositionOfOccupants { + PositionOfOccupants_row1LeftOccupied = 0, + PositionOfOccupants_row1RightOccupied = 1, + PositionOfOccupants_row1MidOccupied = 2, + PositionOfOccupants_row1NotDetectable = 3, + PositionOfOccupants_row1NotPresent = 4, + PositionOfOccupants_row2LeftOccupied = 5, + PositionOfOccupants_row2RightOccupied = 6, + PositionOfOccupants_row2MidOccupied = 7, + PositionOfOccupants_row2NotDetectable = 8, + PositionOfOccupants_row2NotPresent = 9, + PositionOfOccupants_row3LeftOccupied = 10, + PositionOfOccupants_row3RightOccupied = 11, + PositionOfOccupants_row3MidOccupied = 12, + PositionOfOccupants_row3NotDetectable = 13, + PositionOfOccupants_row3NotPresent = 14, + PositionOfOccupants_row4LeftOccupied = 15, + PositionOfOccupants_row4RightOccupied = 16, + PositionOfOccupants_row4MidOccupied = 17, + PositionOfOccupants_row4NotDetectable = 18, + PositionOfOccupants_row4NotPresent = 19 +} e_PositionOfOccupants; + +/* PositionOfOccupants */ +typedef BIT_STRING_t PositionOfOccupants_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_PositionOfOccupants_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_PositionOfOccupants; +asn_struct_free_f PositionOfOccupants_free; +asn_struct_print_f PositionOfOccupants_print; +asn_constr_check_f PositionOfOccupants_constraint; +ber_type_decoder_f PositionOfOccupants_decode_ber; +der_type_encoder_f PositionOfOccupants_encode_der; +xer_type_decoder_f PositionOfOccupants_decode_xer; +xer_type_encoder_f PositionOfOccupants_encode_xer; +jer_type_encoder_f PositionOfOccupants_encode_jer; +oer_type_decoder_f PositionOfOccupants_decode_oer; +oer_type_encoder_f PositionOfOccupants_encode_oer; +per_type_decoder_f PositionOfOccupants_decode_uper; +per_type_encoder_f PositionOfOccupants_encode_uper; +per_type_decoder_f PositionOfOccupants_decode_aper; +per_type_encoder_f PositionOfOccupants_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _PositionOfOccupants_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PositionOfPillars.c b/vanetza/asn1/its2/PositionOfPillars.c new file mode 100644 index 000000000..eb5c6b2d3 --- /dev/null +++ b/vanetza/asn1/its2/PositionOfPillars.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PositionOfPillars.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PositionOfPillars_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PositionOfPillars_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 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_PositionOfPillars_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_PosPillar, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_PositionOfPillars_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_PositionOfPillars_specs_1 = { + sizeof(struct PositionOfPillars), + offsetof(struct PositionOfPillars, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_PositionOfPillars = { + "PositionOfPillars", + "PositionOfPillars", + &asn_OP_SEQUENCE_OF, + asn_DEF_PositionOfPillars_tags_1, + sizeof(asn_DEF_PositionOfPillars_tags_1) + /sizeof(asn_DEF_PositionOfPillars_tags_1[0]), /* 1 */ + asn_DEF_PositionOfPillars_tags_1, /* Same as above */ + sizeof(asn_DEF_PositionOfPillars_tags_1) + /sizeof(asn_DEF_PositionOfPillars_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PositionOfPillars_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PositionOfPillars_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_PositionOfPillars_1, + 1, /* Single element */ + &asn_SPC_PositionOfPillars_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/PositionOfPillars.h b/vanetza/asn1/its2/PositionOfPillars.h new file mode 100644 index 000000000..32d56fa69 --- /dev/null +++ b/vanetza/asn1/its2/PositionOfPillars.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PositionOfPillars_H_ +#define _PositionOfPillars_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "PosPillar.h" +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* PositionOfPillars */ +typedef struct PositionOfPillars { + A_SEQUENCE_OF(PosPillar_t) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PositionOfPillars_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_PositionOfPillars; +extern asn_SET_OF_specifics_t asn_SPC_PositionOfPillars_specs_1; +extern asn_TYPE_member_t asn_MBR_PositionOfPillars_1[1]; +extern asn_per_constraints_t asn_PER_type_PositionOfPillars_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _PositionOfPillars_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PositioningSolutionType.c b/vanetza/asn1/its2/PositioningSolutionType.c new file mode 100644 index 000000000..1855bacfb --- /dev/null +++ b/vanetza/asn1/its2/PositioningSolutionType.c @@ -0,0 +1,83 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PositioningSolutionType.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PositioningSolutionType_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PositioningSolutionType_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) */ +static const asn_INTEGER_enum_map_t asn_MAP_PositioningSolutionType_value2enum_1[] = { + { 0, 21, "noPositioningSolution" }, + { 1, 5, "sGNSS" }, + { 2, 5, "dGNSS" }, + { 3, 11, "sGNSSplusDR" }, + { 4, 11, "dGNSSplusDR" }, + { 5, 2, "dR" }, + { 6, 18, "manuallyByOperator" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_PositioningSolutionType_enum2value_1[] = { + 2, /* dGNSS(2) */ + 4, /* dGNSSplusDR(4) */ + 5, /* dR(5) */ + 6, /* manuallyByOperator(6) */ + 0, /* noPositioningSolution(0) */ + 1, /* sGNSS(1) */ + 3 /* sGNSSplusDR(3) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_PositioningSolutionType_specs_1 = { + asn_MAP_PositioningSolutionType_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_PositioningSolutionType_enum2value_1, /* N => "tag"; sorted by N */ + 7, /* 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_PositioningSolutionType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_PositioningSolutionType = { + "PositioningSolutionType", + "PositioningSolutionType", + &asn_OP_NativeEnumerated, + asn_DEF_PositioningSolutionType_tags_1, + sizeof(asn_DEF_PositioningSolutionType_tags_1) + /sizeof(asn_DEF_PositioningSolutionType_tags_1[0]), /* 1 */ + asn_DEF_PositioningSolutionType_tags_1, /* Same as above */ + sizeof(asn_DEF_PositioningSolutionType_tags_1) + /sizeof(asn_DEF_PositioningSolutionType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PositioningSolutionType_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PositioningSolutionType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_PositioningSolutionType_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/PositioningSolutionType.h b/vanetza/asn1/its2/PositioningSolutionType.h new file mode 100644 index 000000000..f070a190b --- /dev/null +++ b/vanetza/asn1/its2/PositioningSolutionType.h @@ -0,0 +1,62 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PositioningSolutionType_H_ +#define _PositioningSolutionType_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum PositioningSolutionType { + PositioningSolutionType_noPositioningSolution = 0, + PositioningSolutionType_sGNSS = 1, + PositioningSolutionType_dGNSS = 2, + PositioningSolutionType_sGNSSplusDR = 3, + PositioningSolutionType_dGNSSplusDR = 4, + PositioningSolutionType_dR = 5, + /* + * Enumeration is extensible + */ + PositioningSolutionType_manuallyByOperator = 6 +} e_PositioningSolutionType; + +/* PositioningSolutionType */ +typedef long PositioningSolutionType_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_PositioningSolutionType_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_PositioningSolutionType; +extern const asn_INTEGER_specifics_t asn_SPC_PositioningSolutionType_specs_1; +asn_struct_free_f PositioningSolutionType_free; +asn_struct_print_f PositioningSolutionType_print; +asn_constr_check_f PositioningSolutionType_constraint; +ber_type_decoder_f PositioningSolutionType_decode_ber; +der_type_encoder_f PositioningSolutionType_encode_der; +xer_type_decoder_f PositioningSolutionType_decode_xer; +xer_type_encoder_f PositioningSolutionType_encode_xer; +jer_type_encoder_f PositioningSolutionType_encode_jer; +oer_type_decoder_f PositioningSolutionType_decode_oer; +oer_type_encoder_f PositioningSolutionType_encode_oer; +per_type_decoder_f PositioningSolutionType_decode_uper; +per_type_encoder_f PositioningSolutionType_encode_uper; +per_type_decoder_f PositioningSolutionType_decode_aper; +per_type_encoder_f PositioningSolutionType_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _PositioningSolutionType_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PostCrashSubCauseCode.c b/vanetza/asn1/its2/PostCrashSubCauseCode.c new file mode 100644 index 000000000..76ed6c09d --- /dev/null +++ b/vanetza/asn1/its2/PostCrashSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PostCrashSubCauseCode.h" + +int +PostCrashSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PostCrashSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PostCrashSubCauseCode_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_PostCrashSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_PostCrashSubCauseCode = { + "PostCrashSubCauseCode", + "PostCrashSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_PostCrashSubCauseCode_tags_1, + sizeof(asn_DEF_PostCrashSubCauseCode_tags_1) + /sizeof(asn_DEF_PostCrashSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_PostCrashSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_PostCrashSubCauseCode_tags_1) + /sizeof(asn_DEF_PostCrashSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PostCrashSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PostCrashSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + PostCrashSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/PostCrashSubCauseCode.h b/vanetza/asn1/its2/PostCrashSubCauseCode.h new file mode 100644 index 000000000..bb44eeb98 --- /dev/null +++ b/vanetza/asn1/its2/PostCrashSubCauseCode.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PostCrashSubCauseCode_H_ +#define _PostCrashSubCauseCode_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum PostCrashSubCauseCode { + PostCrashSubCauseCode_unavailable = 0, + PostCrashSubCauseCode_accidentWithoutECallTriggered = 1, + PostCrashSubCauseCode_accidentWithECallManuallyTriggered = 2, + PostCrashSubCauseCode_accidentWithECallAutomaticallyTriggered = 3, + PostCrashSubCauseCode_accidentWithECallTriggeredWithoutAccessToCellularNetwork = 4 +} e_PostCrashSubCauseCode; + +/* PostCrashSubCauseCode */ +typedef long PostCrashSubCauseCode_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_PostCrashSubCauseCode_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_PostCrashSubCauseCode; +asn_struct_free_f PostCrashSubCauseCode_free; +asn_struct_print_f PostCrashSubCauseCode_print; +asn_constr_check_f PostCrashSubCauseCode_constraint; +ber_type_decoder_f PostCrashSubCauseCode_decode_ber; +der_type_encoder_f PostCrashSubCauseCode_encode_der; +xer_type_decoder_f PostCrashSubCauseCode_decode_xer; +xer_type_encoder_f PostCrashSubCauseCode_encode_xer; +jer_type_encoder_f PostCrashSubCauseCode_encode_jer; +oer_type_decoder_f PostCrashSubCauseCode_decode_oer; +oer_type_encoder_f PostCrashSubCauseCode_encode_oer; +per_type_decoder_f PostCrashSubCauseCode_decode_uper; +per_type_encoder_f PostCrashSubCauseCode_encode_uper; +per_type_decoder_f PostCrashSubCauseCode_decode_aper; +per_type_encoder_f PostCrashSubCauseCode_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _PostCrashSubCauseCode_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PrecipitationIntensity.c b/vanetza/asn1/its2/PrecipitationIntensity.c new file mode 100644 index 000000000..522d7c791 --- /dev/null +++ b/vanetza/asn1/its2/PrecipitationIntensity.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PrecipitationIntensity.h" + +int +PrecipitationIntensity_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 <= 2001L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PrecipitationIntensity_constr_1 CC_NOTUSED = { + { 2, 1 } /* (1..2001) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_PrecipitationIntensity_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 11, 11, 1, 2001 } /* (1..2001) */, + { 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_PrecipitationIntensity_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_PrecipitationIntensity = { + "PrecipitationIntensity", + "PrecipitationIntensity", + &asn_OP_NativeInteger, + asn_DEF_PrecipitationIntensity_tags_1, + sizeof(asn_DEF_PrecipitationIntensity_tags_1) + /sizeof(asn_DEF_PrecipitationIntensity_tags_1[0]), /* 1 */ + asn_DEF_PrecipitationIntensity_tags_1, /* Same as above */ + sizeof(asn_DEF_PrecipitationIntensity_tags_1) + /sizeof(asn_DEF_PrecipitationIntensity_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PrecipitationIntensity_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PrecipitationIntensity_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + PrecipitationIntensity_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/PrecipitationIntensity.h b/vanetza/asn1/its2/PrecipitationIntensity.h new file mode 100644 index 000000000..f170ba672 --- /dev/null +++ b/vanetza/asn1/its2/PrecipitationIntensity.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PrecipitationIntensity_H_ +#define _PrecipitationIntensity_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum PrecipitationIntensity { + PrecipitationIntensity_outOfRange = 2000, + PrecipitationIntensity_unavailable = 2001 +} e_PrecipitationIntensity; + +/* PrecipitationIntensity */ +typedef long PrecipitationIntensity_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_PrecipitationIntensity; +asn_struct_free_f PrecipitationIntensity_free; +asn_struct_print_f PrecipitationIntensity_print; +asn_constr_check_f PrecipitationIntensity_constraint; +ber_type_decoder_f PrecipitationIntensity_decode_ber; +der_type_encoder_f PrecipitationIntensity_encode_der; +xer_type_decoder_f PrecipitationIntensity_decode_xer; +xer_type_encoder_f PrecipitationIntensity_encode_xer; +jer_type_encoder_f PrecipitationIntensity_encode_jer; +oer_type_decoder_f PrecipitationIntensity_decode_oer; +oer_type_encoder_f PrecipitationIntensity_encode_oer; +per_type_decoder_f PrecipitationIntensity_decode_uper; +per_type_encoder_f PrecipitationIntensity_encode_uper; +per_type_decoder_f PrecipitationIntensity_decode_aper; +per_type_encoder_f PrecipitationIntensity_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _PrecipitationIntensity_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ProtectedCommunicationZone.c b/vanetza/asn1/its2/ProtectedCommunicationZone.c new file mode 100644 index 000000000..73e842299 --- /dev/null +++ b/vanetza/asn1/its2/ProtectedCommunicationZone.c @@ -0,0 +1,179 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ProtectedCommunicationZone.h" + +asn_TYPE_member_t asn_MBR_ProtectedCommunicationZone_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ProtectedCommunicationZone, protectedZoneType), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ProtectedZoneType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "protectedZoneType" + }, + { ATF_POINTER, 1, offsetof(struct ProtectedCommunicationZone, expiryTime), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TimestampIts, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "expiryTime" + }, + { ATF_NOFLAGS, 0, offsetof(struct ProtectedCommunicationZone, protectedZoneLatitude), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Latitude, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "protectedZoneLatitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct ProtectedCommunicationZone, protectedZoneLongitude), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Longitude, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "protectedZoneLongitude" + }, + { ATF_POINTER, 2, offsetof(struct ProtectedCommunicationZone, protectedZoneRadius), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ProtectedZoneRadius, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "protectedZoneRadius" + }, + { ATF_POINTER, 1, offsetof(struct ProtectedCommunicationZone, protectedZoneId), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ProtectedZoneId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "protectedZoneId" + }, +}; +static const int asn_MAP_ProtectedCommunicationZone_oms_1[] = { 1, 4, 5 }; +static const ber_tlv_tag_t asn_DEF_ProtectedCommunicationZone_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ProtectedCommunicationZone_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* protectedZoneType */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* expiryTime */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* protectedZoneLatitude */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* protectedZoneLongitude */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* protectedZoneRadius */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* protectedZoneId */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ProtectedCommunicationZone_specs_1 = { + sizeof(struct ProtectedCommunicationZone), + offsetof(struct ProtectedCommunicationZone, _asn_ctx), + asn_MAP_ProtectedCommunicationZone_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_ProtectedCommunicationZone_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_ProtectedCommunicationZone = { + "ProtectedCommunicationZone", + "ProtectedCommunicationZone", + &asn_OP_SEQUENCE, + asn_DEF_ProtectedCommunicationZone_tags_1, + sizeof(asn_DEF_ProtectedCommunicationZone_tags_1) + /sizeof(asn_DEF_ProtectedCommunicationZone_tags_1[0]), /* 1 */ + asn_DEF_ProtectedCommunicationZone_tags_1, /* Same as above */ + sizeof(asn_DEF_ProtectedCommunicationZone_tags_1) + /sizeof(asn_DEF_ProtectedCommunicationZone_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ProtectedCommunicationZone_1, + 6, /* Elements count */ + &asn_SPC_ProtectedCommunicationZone_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/ProtectedCommunicationZone.h b/vanetza/asn1/its2/ProtectedCommunicationZone.h new file mode 100644 index 000000000..e025f1b0a --- /dev/null +++ b/vanetza/asn1/its2/ProtectedCommunicationZone.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ProtectedCommunicationZone_H_ +#define _ProtectedCommunicationZone_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "ProtectedZoneType.h" +#include "TimestampIts.h" +#include "Latitude.h" +#include "Longitude.h" +#include "ProtectedZoneRadius.h" +#include "ProtectedZoneId.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* ProtectedCommunicationZone */ +typedef struct ProtectedCommunicationZone { + ProtectedZoneType_t protectedZoneType; + TimestampIts_t *expiryTime; /* OPTIONAL */ + Latitude_t protectedZoneLatitude; + Longitude_t protectedZoneLongitude; + ProtectedZoneRadius_t *protectedZoneRadius; /* OPTIONAL */ + ProtectedZoneId_t *protectedZoneId; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ProtectedCommunicationZone_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ProtectedCommunicationZone; +extern asn_SEQUENCE_specifics_t asn_SPC_ProtectedCommunicationZone_specs_1; +extern asn_TYPE_member_t asn_MBR_ProtectedCommunicationZone_1[6]; + +#ifdef __cplusplus +} +#endif + +#endif /* _ProtectedCommunicationZone_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ProtectedCommunicationZonesRSU.c b/vanetza/asn1/its2/ProtectedCommunicationZonesRSU.c new file mode 100644 index 000000000..46f6c9737 --- /dev/null +++ b/vanetza/asn1/its2/ProtectedCommunicationZonesRSU.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ProtectedCommunicationZonesRSU.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_ProtectedCommunicationZonesRSU_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..16)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ProtectedCommunicationZonesRSU_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_ProtectedCommunicationZonesRSU_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_ProtectedCommunicationZone, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_ProtectedCommunicationZonesRSU_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_ProtectedCommunicationZonesRSU_specs_1 = { + sizeof(struct ProtectedCommunicationZonesRSU), + offsetof(struct ProtectedCommunicationZonesRSU, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_ProtectedCommunicationZonesRSU = { + "ProtectedCommunicationZonesRSU", + "ProtectedCommunicationZonesRSU", + &asn_OP_SEQUENCE_OF, + asn_DEF_ProtectedCommunicationZonesRSU_tags_1, + sizeof(asn_DEF_ProtectedCommunicationZonesRSU_tags_1) + /sizeof(asn_DEF_ProtectedCommunicationZonesRSU_tags_1[0]), /* 1 */ + asn_DEF_ProtectedCommunicationZonesRSU_tags_1, /* Same as above */ + sizeof(asn_DEF_ProtectedCommunicationZonesRSU_tags_1) + /sizeof(asn_DEF_ProtectedCommunicationZonesRSU_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_ProtectedCommunicationZonesRSU_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ProtectedCommunicationZonesRSU_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_ProtectedCommunicationZonesRSU_1, + 1, /* Single element */ + &asn_SPC_ProtectedCommunicationZonesRSU_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/ProtectedCommunicationZonesRSU.h b/vanetza/asn1/its2/ProtectedCommunicationZonesRSU.h new file mode 100644 index 000000000..b0fb0ae54 --- /dev/null +++ b/vanetza/asn1/its2/ProtectedCommunicationZonesRSU.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ProtectedCommunicationZonesRSU_H_ +#define _ProtectedCommunicationZonesRSU_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct ProtectedCommunicationZone; + +/* ProtectedCommunicationZonesRSU */ +typedef struct ProtectedCommunicationZonesRSU { + A_SEQUENCE_OF(struct ProtectedCommunicationZone) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ProtectedCommunicationZonesRSU_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ProtectedCommunicationZonesRSU; +extern asn_SET_OF_specifics_t asn_SPC_ProtectedCommunicationZonesRSU_specs_1; +extern asn_TYPE_member_t asn_MBR_ProtectedCommunicationZonesRSU_1[1]; +extern asn_per_constraints_t asn_PER_type_ProtectedCommunicationZonesRSU_constr_1; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "ProtectedCommunicationZone.h" + +#endif /* _ProtectedCommunicationZonesRSU_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ProtectedZoneId.c b/vanetza/asn1/its2/ProtectedZoneId.c new file mode 100644 index 000000000..2c800af00 --- /dev/null +++ b/vanetza/asn1/its2/ProtectedZoneId.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ProtectedZoneId.h" + +int +ProtectedZoneId_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 <= 134217727L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_ProtectedZoneId_constr_1 CC_NOTUSED = { + { 4, 1 } /* (0..134217727) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ProtectedZoneId_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 27, -1, 0, 134217727 } /* (0..134217727) */, + { 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_ProtectedZoneId_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_ProtectedZoneId = { + "ProtectedZoneId", + "ProtectedZoneId", + &asn_OP_NativeInteger, + asn_DEF_ProtectedZoneId_tags_1, + sizeof(asn_DEF_ProtectedZoneId_tags_1) + /sizeof(asn_DEF_ProtectedZoneId_tags_1[0]), /* 1 */ + asn_DEF_ProtectedZoneId_tags_1, /* Same as above */ + sizeof(asn_DEF_ProtectedZoneId_tags_1) + /sizeof(asn_DEF_ProtectedZoneId_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_ProtectedZoneId_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ProtectedZoneId_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + ProtectedZoneId_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/ProtectedZoneId.h b/vanetza/asn1/its2/ProtectedZoneId.h new file mode 100644 index 000000000..5d834fad5 --- /dev/null +++ b/vanetza/asn1/its2/ProtectedZoneId.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ProtectedZoneId_H_ +#define _ProtectedZoneId_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* ProtectedZoneId */ +typedef long ProtectedZoneId_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_ProtectedZoneId_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_ProtectedZoneId; +asn_struct_free_f ProtectedZoneId_free; +asn_struct_print_f ProtectedZoneId_print; +asn_constr_check_f ProtectedZoneId_constraint; +ber_type_decoder_f ProtectedZoneId_decode_ber; +der_type_encoder_f ProtectedZoneId_encode_der; +xer_type_decoder_f ProtectedZoneId_decode_xer; +xer_type_encoder_f ProtectedZoneId_encode_xer; +jer_type_encoder_f ProtectedZoneId_encode_jer; +oer_type_decoder_f ProtectedZoneId_decode_oer; +oer_type_encoder_f ProtectedZoneId_encode_oer; +per_type_decoder_f ProtectedZoneId_decode_uper; +per_type_encoder_f ProtectedZoneId_encode_uper; +per_type_decoder_f ProtectedZoneId_decode_aper; +per_type_encoder_f ProtectedZoneId_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _ProtectedZoneId_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ProtectedZoneRadius.c b/vanetza/asn1/its2/ProtectedZoneRadius.c new file mode 100644 index 000000000..af9f1a62a --- /dev/null +++ b/vanetza/asn1/its2/ProtectedZoneRadius.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ProtectedZoneRadius.h" + +int +ProtectedZoneRadius_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 <= 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_ProtectedZoneRadius_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ProtectedZoneRadius_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 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) */ +static const ber_tlv_tag_t asn_DEF_ProtectedZoneRadius_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_ProtectedZoneRadius = { + "ProtectedZoneRadius", + "ProtectedZoneRadius", + &asn_OP_NativeInteger, + asn_DEF_ProtectedZoneRadius_tags_1, + sizeof(asn_DEF_ProtectedZoneRadius_tags_1) + /sizeof(asn_DEF_ProtectedZoneRadius_tags_1[0]), /* 1 */ + asn_DEF_ProtectedZoneRadius_tags_1, /* Same as above */ + sizeof(asn_DEF_ProtectedZoneRadius_tags_1) + /sizeof(asn_DEF_ProtectedZoneRadius_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_ProtectedZoneRadius_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ProtectedZoneRadius_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + ProtectedZoneRadius_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/ProtectedZoneRadius.h b/vanetza/asn1/its2/ProtectedZoneRadius.h new file mode 100644 index 000000000..834c4a4de --- /dev/null +++ b/vanetza/asn1/its2/ProtectedZoneRadius.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ProtectedZoneRadius_H_ +#define _ProtectedZoneRadius_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* ProtectedZoneRadius */ +typedef long ProtectedZoneRadius_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_ProtectedZoneRadius_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_ProtectedZoneRadius; +asn_struct_free_f ProtectedZoneRadius_free; +asn_struct_print_f ProtectedZoneRadius_print; +asn_constr_check_f ProtectedZoneRadius_constraint; +ber_type_decoder_f ProtectedZoneRadius_decode_ber; +der_type_encoder_f ProtectedZoneRadius_encode_der; +xer_type_decoder_f ProtectedZoneRadius_decode_xer; +xer_type_encoder_f ProtectedZoneRadius_encode_xer; +jer_type_encoder_f ProtectedZoneRadius_encode_jer; +oer_type_decoder_f ProtectedZoneRadius_decode_oer; +oer_type_encoder_f ProtectedZoneRadius_encode_oer; +per_type_decoder_f ProtectedZoneRadius_decode_uper; +per_type_encoder_f ProtectedZoneRadius_encode_uper; +per_type_decoder_f ProtectedZoneRadius_decode_aper; +per_type_encoder_f ProtectedZoneRadius_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _ProtectedZoneRadius_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ProtectedZoneType.c b/vanetza/asn1/its2/ProtectedZoneType.c new file mode 100644 index 000000000..bdb545337 --- /dev/null +++ b/vanetza/asn1/its2/ProtectedZoneType.c @@ -0,0 +1,73 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ProtectedZoneType.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_ProtectedZoneType_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_ProtectedZoneType_constr_1 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_ProtectedZoneType_value2enum_1[] = { + { 0, 23, "permanentCenDsrcTolling" }, + { 1, 23, "temporaryCenDsrcTolling" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_ProtectedZoneType_enum2value_1[] = { + 0, /* permanentCenDsrcTolling(0) */ + 1 /* temporaryCenDsrcTolling(1) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_ProtectedZoneType_specs_1 = { + asn_MAP_ProtectedZoneType_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_ProtectedZoneType_enum2value_1, /* 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_ProtectedZoneType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_ProtectedZoneType = { + "ProtectedZoneType", + "ProtectedZoneType", + &asn_OP_NativeEnumerated, + asn_DEF_ProtectedZoneType_tags_1, + sizeof(asn_DEF_ProtectedZoneType_tags_1) + /sizeof(asn_DEF_ProtectedZoneType_tags_1[0]), /* 1 */ + asn_DEF_ProtectedZoneType_tags_1, /* Same as above */ + sizeof(asn_DEF_ProtectedZoneType_tags_1) + /sizeof(asn_DEF_ProtectedZoneType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_ProtectedZoneType_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ProtectedZoneType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_ProtectedZoneType_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/ProtectedZoneType.h b/vanetza/asn1/its2/ProtectedZoneType.h new file mode 100644 index 000000000..ee8025805 --- /dev/null +++ b/vanetza/asn1/its2/ProtectedZoneType.h @@ -0,0 +1,57 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ProtectedZoneType_H_ +#define _ProtectedZoneType_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum ProtectedZoneType { + ProtectedZoneType_permanentCenDsrcTolling = 0, + /* + * Enumeration is extensible + */ + ProtectedZoneType_temporaryCenDsrcTolling = 1 +} e_ProtectedZoneType; + +/* ProtectedZoneType */ +typedef long ProtectedZoneType_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_ProtectedZoneType_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_ProtectedZoneType; +extern const asn_INTEGER_specifics_t asn_SPC_ProtectedZoneType_specs_1; +asn_struct_free_f ProtectedZoneType_free; +asn_struct_print_f ProtectedZoneType_print; +asn_constr_check_f ProtectedZoneType_constraint; +ber_type_decoder_f ProtectedZoneType_decode_ber; +der_type_encoder_f ProtectedZoneType_encode_der; +xer_type_decoder_f ProtectedZoneType_decode_xer; +xer_type_encoder_f ProtectedZoneType_encode_xer; +jer_type_encoder_f ProtectedZoneType_encode_jer; +oer_type_decoder_f ProtectedZoneType_decode_oer; +oer_type_encoder_f ProtectedZoneType_encode_oer; +per_type_decoder_f ProtectedZoneType_decode_uper; +per_type_encoder_f ProtectedZoneType_encode_uper; +per_type_decoder_f ProtectedZoneType_decode_aper; +per_type_encoder_f ProtectedZoneType_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _ProtectedZoneType_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/Provider.c b/vanetza/asn1/its2/Provider.c new file mode 100644 index 000000000..8b763cbdf --- /dev/null +++ b/vanetza/asn1/its2/Provider.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Provider.h" + +asn_TYPE_member_t asn_MBR_Provider_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Provider, countryCode), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CountryCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "countryCode" + }, + { ATF_NOFLAGS, 0, offsetof(struct Provider, providerIdentifier), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_IssuerIdentifier, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "providerIdentifier" + }, +}; +static const ber_tlv_tag_t asn_DEF_Provider_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Provider_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* countryCode */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* providerIdentifier */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Provider_specs_1 = { + sizeof(struct Provider), + offsetof(struct Provider, _asn_ctx), + asn_MAP_Provider_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_Provider = { + "Provider", + "Provider", + &asn_OP_SEQUENCE, + asn_DEF_Provider_tags_1, + sizeof(asn_DEF_Provider_tags_1) + /sizeof(asn_DEF_Provider_tags_1[0]), /* 1 */ + asn_DEF_Provider_tags_1, /* Same as above */ + sizeof(asn_DEF_Provider_tags_1) + /sizeof(asn_DEF_Provider_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Provider_1, + 2, /* Elements count */ + &asn_SPC_Provider_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/Provider.h b/vanetza/asn1/its2/Provider.h new file mode 100644 index 000000000..a91f1a750 --- /dev/null +++ b/vanetza/asn1/its2/Provider.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _Provider_H_ +#define _Provider_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "CountryCode.h" +#include "IssuerIdentifier.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Provider */ +typedef struct Provider { + CountryCode_t countryCode; + IssuerIdentifier_t providerIdentifier; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Provider_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Provider; +extern asn_SEQUENCE_specifics_t asn_SPC_Provider_specs_1; +extern asn_TYPE_member_t asn_MBR_Provider_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Provider_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PtActivation.c b/vanetza/asn1/its2/PtActivation.c new file mode 100644 index 000000000..9a187965d --- /dev/null +++ b/vanetza/asn1/its2/PtActivation.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PtActivation.h" + +asn_TYPE_member_t asn_MBR_PtActivation_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PtActivation, ptActivationType), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PtActivationType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ptActivationType" + }, + { ATF_NOFLAGS, 0, offsetof(struct PtActivation, ptActivationData), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PtActivationData, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ptActivationData" + }, +}; +static const ber_tlv_tag_t asn_DEF_PtActivation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PtActivation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ptActivationType */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ptActivationData */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PtActivation_specs_1 = { + sizeof(struct PtActivation), + offsetof(struct PtActivation, _asn_ctx), + asn_MAP_PtActivation_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_PtActivation = { + "PtActivation", + "PtActivation", + &asn_OP_SEQUENCE, + asn_DEF_PtActivation_tags_1, + sizeof(asn_DEF_PtActivation_tags_1) + /sizeof(asn_DEF_PtActivation_tags_1[0]), /* 1 */ + asn_DEF_PtActivation_tags_1, /* Same as above */ + sizeof(asn_DEF_PtActivation_tags_1) + /sizeof(asn_DEF_PtActivation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PtActivation_1, + 2, /* Elements count */ + &asn_SPC_PtActivation_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/PtActivation.h b/vanetza/asn1/its2/PtActivation.h new file mode 100644 index 000000000..24b5152ef --- /dev/null +++ b/vanetza/asn1/its2/PtActivation.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PtActivation_H_ +#define _PtActivation_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "PtActivationType.h" +#include "PtActivationData.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* PtActivation */ +typedef struct PtActivation { + PtActivationType_t ptActivationType; + PtActivationData_t ptActivationData; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PtActivation_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_PtActivation; +extern asn_SEQUENCE_specifics_t asn_SPC_PtActivation_specs_1; +extern asn_TYPE_member_t asn_MBR_PtActivation_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _PtActivation_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PtActivationData.c b/vanetza/asn1/its2/PtActivationData.c new file mode 100644 index 000000000..4b5396924 --- /dev/null +++ b/vanetza/asn1/its2/PtActivationData.c @@ -0,0 +1,80 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PtActivationData.h" + +int +PtActivationData_constraint(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 <= 20UL)) { + /* 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 OCTET_STRING, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PtActivationData_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..20)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PtActivationData_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1, 20 } /* (SIZE(1..20)) */, + 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_PtActivationData_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_PtActivationData = { + "PtActivationData", + "PtActivationData", + &asn_OP_OCTET_STRING, + asn_DEF_PtActivationData_tags_1, + sizeof(asn_DEF_PtActivationData_tags_1) + /sizeof(asn_DEF_PtActivationData_tags_1[0]), /* 1 */ + asn_DEF_PtActivationData_tags_1, /* Same as above */ + sizeof(asn_DEF_PtActivationData_tags_1) + /sizeof(asn_DEF_PtActivationData_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PtActivationData_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PtActivationData_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + PtActivationData_constraint + }, + 0, 0, /* No members */ + &asn_SPC_OCTET_STRING_specs /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/PtActivationData.h b/vanetza/asn1/its2/PtActivationData.h new file mode 100644 index 000000000..1b1a70ad5 --- /dev/null +++ b/vanetza/asn1/its2/PtActivationData.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PtActivationData_H_ +#define _PtActivationData_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "OCTET_STRING.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* PtActivationData */ +typedef OCTET_STRING_t PtActivationData_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_PtActivationData_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_PtActivationData; +asn_struct_free_f PtActivationData_free; +asn_struct_print_f PtActivationData_print; +asn_constr_check_f PtActivationData_constraint; +ber_type_decoder_f PtActivationData_decode_ber; +der_type_encoder_f PtActivationData_encode_der; +xer_type_decoder_f PtActivationData_decode_xer; +xer_type_encoder_f PtActivationData_encode_xer; +jer_type_encoder_f PtActivationData_encode_jer; +oer_type_decoder_f PtActivationData_decode_oer; +oer_type_encoder_f PtActivationData_encode_oer; +per_type_decoder_f PtActivationData_decode_uper; +per_type_encoder_f PtActivationData_encode_uper; +per_type_decoder_f PtActivationData_decode_aper; +per_type_encoder_f PtActivationData_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _PtActivationData_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PtActivationType.c b/vanetza/asn1/its2/PtActivationType.c new file mode 100644 index 000000000..6a095ae17 --- /dev/null +++ b/vanetza/asn1/its2/PtActivationType.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PtActivationType.h" + +int +PtActivationType_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_PtActivationType_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_PtActivationType_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_PtActivationType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_PtActivationType = { + "PtActivationType", + "PtActivationType", + &asn_OP_NativeInteger, + asn_DEF_PtActivationType_tags_1, + sizeof(asn_DEF_PtActivationType_tags_1) + /sizeof(asn_DEF_PtActivationType_tags_1[0]), /* 1 */ + asn_DEF_PtActivationType_tags_1, /* Same as above */ + sizeof(asn_DEF_PtActivationType_tags_1) + /sizeof(asn_DEF_PtActivationType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_PtActivationType_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_PtActivationType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + PtActivationType_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/PtActivationType.h b/vanetza/asn1/its2/PtActivationType.h new file mode 100644 index 000000000..34e99e560 --- /dev/null +++ b/vanetza/asn1/its2/PtActivationType.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PtActivationType_H_ +#define _PtActivationType_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum PtActivationType { + PtActivationType_undefinedCodingType = 0, + PtActivationType_r09_16CodingType = 1, + PtActivationType_vdv_50149CodingType = 2 +} e_PtActivationType; + +/* PtActivationType */ +typedef long PtActivationType_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_PtActivationType_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_PtActivationType; +asn_struct_free_f PtActivationType_free; +asn_struct_print_f PtActivationType_print; +asn_constr_check_f PtActivationType_constraint; +ber_type_decoder_f PtActivationType_decode_ber; +der_type_encoder_f PtActivationType_encode_der; +xer_type_decoder_f PtActivationType_decode_xer; +xer_type_encoder_f PtActivationType_encode_xer; +jer_type_encoder_f PtActivationType_encode_jer; +oer_type_decoder_f PtActivationType_decode_oer; +oer_type_encoder_f PtActivationType_encode_oer; +per_type_decoder_f PtActivationType_decode_uper; +per_type_encoder_f PtActivationType_encode_uper; +per_type_decoder_f PtActivationType_decode_aper; +per_type_encoder_f PtActivationType_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _PtActivationType_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/PublicTransportContainer.c b/vanetza/asn1/its2/PublicTransportContainer.c new file mode 100644 index 000000000..75d7df1cc --- /dev/null +++ b/vanetza/asn1/its2/PublicTransportContainer.c @@ -0,0 +1,95 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/TS103900v211-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "PublicTransportContainer.h" + +asn_TYPE_member_t asn_MBR_PublicTransportContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct PublicTransportContainer, embarkationStatus), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EmbarkationStatus, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "embarkationStatus" + }, + { ATF_POINTER, 1, offsetof(struct PublicTransportContainer, ptActivation), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PtActivation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "ptActivation" + }, +}; +static const int asn_MAP_PublicTransportContainer_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_PublicTransportContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_PublicTransportContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* embarkationStatus */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ptActivation */ +}; +asn_SEQUENCE_specifics_t asn_SPC_PublicTransportContainer_specs_1 = { + sizeof(struct PublicTransportContainer), + offsetof(struct PublicTransportContainer, _asn_ctx), + asn_MAP_PublicTransportContainer_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_PublicTransportContainer_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_PublicTransportContainer = { + "PublicTransportContainer", + "PublicTransportContainer", + &asn_OP_SEQUENCE, + asn_DEF_PublicTransportContainer_tags_1, + sizeof(asn_DEF_PublicTransportContainer_tags_1) + /sizeof(asn_DEF_PublicTransportContainer_tags_1[0]), /* 1 */ + asn_DEF_PublicTransportContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_PublicTransportContainer_tags_1) + /sizeof(asn_DEF_PublicTransportContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_PublicTransportContainer_1, + 2, /* Elements count */ + &asn_SPC_PublicTransportContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/PublicTransportContainer.h b/vanetza/asn1/its2/PublicTransportContainer.h new file mode 100644 index 000000000..6cc398def --- /dev/null +++ b/vanetza/asn1/its2/PublicTransportContainer.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/TS103900v211-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _PublicTransportContainer_H_ +#define _PublicTransportContainer_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "EmbarkationStatus.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct PtActivation; + +/* PublicTransportContainer */ +typedef struct PublicTransportContainer { + EmbarkationStatus_t embarkationStatus; + struct PtActivation *ptActivation; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} PublicTransportContainer_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_PublicTransportContainer; +extern asn_SEQUENCE_specifics_t asn_SPC_PublicTransportContainer_specs_1; +extern asn_TYPE_member_t asn_MBR_PublicTransportContainer_1[2]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "PtActivation.h" + +#endif /* _PublicTransportContainer_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/RSUContainerHighFrequency.c b/vanetza/asn1/its2/RSUContainerHighFrequency.c new file mode 100644 index 000000000..8182045be --- /dev/null +++ b/vanetza/asn1/its2/RSUContainerHighFrequency.c @@ -0,0 +1,74 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/TS103900v211-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RSUContainerHighFrequency.h" + +asn_TYPE_member_t asn_MBR_RSUContainerHighFrequency_1[] = { + { ATF_POINTER, 1, offsetof(struct RSUContainerHighFrequency, protectedCommunicationZonesRSU), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ProtectedCommunicationZonesRSU, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "protectedCommunicationZonesRSU" + }, +}; +static const int asn_MAP_RSUContainerHighFrequency_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_RSUContainerHighFrequency_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RSUContainerHighFrequency_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* protectedCommunicationZonesRSU */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RSUContainerHighFrequency_specs_1 = { + sizeof(struct RSUContainerHighFrequency), + offsetof(struct RSUContainerHighFrequency, _asn_ctx), + asn_MAP_RSUContainerHighFrequency_tag2el_1, + 1, /* Count of tags in the map */ + asn_MAP_RSUContainerHighFrequency_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_RSUContainerHighFrequency = { + "RSUContainerHighFrequency", + "RSUContainerHighFrequency", + &asn_OP_SEQUENCE, + asn_DEF_RSUContainerHighFrequency_tags_1, + sizeof(asn_DEF_RSUContainerHighFrequency_tags_1) + /sizeof(asn_DEF_RSUContainerHighFrequency_tags_1[0]), /* 1 */ + asn_DEF_RSUContainerHighFrequency_tags_1, /* Same as above */ + sizeof(asn_DEF_RSUContainerHighFrequency_tags_1) + /sizeof(asn_DEF_RSUContainerHighFrequency_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RSUContainerHighFrequency_1, + 1, /* Elements count */ + &asn_SPC_RSUContainerHighFrequency_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/RSUContainerHighFrequency.h b/vanetza/asn1/its2/RSUContainerHighFrequency.h new file mode 100644 index 000000000..80423f46f --- /dev/null +++ b/vanetza/asn1/its2/RSUContainerHighFrequency.h @@ -0,0 +1,49 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/TS103900v211-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _RSUContainerHighFrequency_H_ +#define _RSUContainerHighFrequency_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct ProtectedCommunicationZonesRSU; + +/* RSUContainerHighFrequency */ +typedef struct RSUContainerHighFrequency { + struct ProtectedCommunicationZonesRSU *protectedCommunicationZonesRSU; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RSUContainerHighFrequency_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RSUContainerHighFrequency; +extern asn_SEQUENCE_specifics_t asn_SPC_RSUContainerHighFrequency_specs_1; +extern asn_TYPE_member_t asn_MBR_RSUContainerHighFrequency_1[1]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "ProtectedCommunicationZonesRSU.h" + +#endif /* _RSUContainerHighFrequency_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/RadialShape.c b/vanetza/asn1/its2/RadialShape.c new file mode 100644 index 000000000..f79ad3d31 --- /dev/null +++ b/vanetza/asn1/its2/RadialShape.c @@ -0,0 +1,191 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RadialShape.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_RadialShape_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_RadialShape_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 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) */ +asn_TYPE_member_t asn_MBR_RadialShape_1[] = { + { ATF_POINTER, 1, offsetof(struct RadialShape, shapeReferencePoint), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianPosition3d, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "shapeReferencePoint" + }, + { ATF_NOFLAGS, 0, offsetof(struct RadialShape, range), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StandardLength12b, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "range" + }, + { ATF_NOFLAGS, 0, offsetof(struct RadialShape, horizontalOpeningAngleStart), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianAngleValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "horizontalOpeningAngleStart" + }, + { ATF_NOFLAGS, 0, offsetof(struct RadialShape, horizontalOpeningAngleEnd), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianAngleValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "horizontalOpeningAngleEnd" + }, + { ATF_POINTER, 2, offsetof(struct RadialShape, verticalOpeningAngleStart), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianAngleValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "verticalOpeningAngleStart" + }, + { ATF_POINTER, 1, offsetof(struct RadialShape, verticalOpeningAngleEnd), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianAngleValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "verticalOpeningAngleEnd" + }, +}; +static const int asn_MAP_RadialShape_oms_1[] = { 0, 4, 5 }; +static const ber_tlv_tag_t asn_DEF_RadialShape_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RadialShape_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* shapeReferencePoint */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* range */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* horizontalOpeningAngleStart */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* horizontalOpeningAngleEnd */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* verticalOpeningAngleStart */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* verticalOpeningAngleEnd */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RadialShape_specs_1 = { + sizeof(struct RadialShape), + offsetof(struct RadialShape, _asn_ctx), + asn_MAP_RadialShape_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_RadialShape_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_RadialShape = { + "RadialShape", + "RadialShape", + &asn_OP_SEQUENCE, + asn_DEF_RadialShape_tags_1, + sizeof(asn_DEF_RadialShape_tags_1) + /sizeof(asn_DEF_RadialShape_tags_1[0]), /* 1 */ + asn_DEF_RadialShape_tags_1, /* Same as above */ + sizeof(asn_DEF_RadialShape_tags_1) + /sizeof(asn_DEF_RadialShape_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_RadialShape_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_RadialShape_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RadialShape_1, + 6, /* Elements count */ + &asn_SPC_RadialShape_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/RadialShape.h b/vanetza/asn1/its2/RadialShape.h new file mode 100644 index 000000000..24a67d39f --- /dev/null +++ b/vanetza/asn1/its2/RadialShape.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _RadialShape_H_ +#define _RadialShape_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "StandardLength12b.h" +#include "CartesianAngleValue.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct CartesianPosition3d; + +/* RadialShape */ +typedef struct RadialShape { + struct CartesianPosition3d *shapeReferencePoint; /* OPTIONAL */ + StandardLength12b_t range; + CartesianAngleValue_t horizontalOpeningAngleStart; + CartesianAngleValue_t horizontalOpeningAngleEnd; + CartesianAngleValue_t *verticalOpeningAngleStart; /* OPTIONAL */ + CartesianAngleValue_t *verticalOpeningAngleEnd; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RadialShape_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RadialShape; +extern asn_SEQUENCE_specifics_t asn_SPC_RadialShape_specs_1; +extern asn_TYPE_member_t asn_MBR_RadialShape_1[6]; +extern asn_per_constraints_t asn_PER_type_RadialShape_constr_1; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "CartesianPosition3d.h" + +#endif /* _RadialShape_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/RadialShapeDetails.c b/vanetza/asn1/its2/RadialShapeDetails.c new file mode 100644 index 000000000..9f62448ac --- /dev/null +++ b/vanetza/asn1/its2/RadialShapeDetails.c @@ -0,0 +1,170 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RadialShapeDetails.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_RadialShapeDetails_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_RadialShapeDetails_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 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) */ +asn_TYPE_member_t asn_MBR_RadialShapeDetails_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RadialShapeDetails, range), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StandardLength12b, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "range" + }, + { ATF_NOFLAGS, 0, offsetof(struct RadialShapeDetails, horizontalOpeningAngleStart), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianAngleValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "horizontalOpeningAngleStart" + }, + { ATF_NOFLAGS, 0, offsetof(struct RadialShapeDetails, horizontalOpeningAngleEnd), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianAngleValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "horizontalOpeningAngleEnd" + }, + { ATF_POINTER, 2, offsetof(struct RadialShapeDetails, verticalOpeningAngleStart), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianAngleValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "verticalOpeningAngleStart" + }, + { ATF_POINTER, 1, offsetof(struct RadialShapeDetails, verticalOpeningAngleEnd), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianAngleValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "verticalOpeningAngleEnd" + }, +}; +static const int asn_MAP_RadialShapeDetails_oms_1[] = { 3, 4 }; +static const ber_tlv_tag_t asn_DEF_RadialShapeDetails_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RadialShapeDetails_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* range */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* horizontalOpeningAngleStart */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* horizontalOpeningAngleEnd */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* verticalOpeningAngleStart */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* verticalOpeningAngleEnd */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RadialShapeDetails_specs_1 = { + sizeof(struct RadialShapeDetails), + offsetof(struct RadialShapeDetails, _asn_ctx), + asn_MAP_RadialShapeDetails_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_RadialShapeDetails_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_RadialShapeDetails = { + "RadialShapeDetails", + "RadialShapeDetails", + &asn_OP_SEQUENCE, + asn_DEF_RadialShapeDetails_tags_1, + sizeof(asn_DEF_RadialShapeDetails_tags_1) + /sizeof(asn_DEF_RadialShapeDetails_tags_1[0]), /* 1 */ + asn_DEF_RadialShapeDetails_tags_1, /* Same as above */ + sizeof(asn_DEF_RadialShapeDetails_tags_1) + /sizeof(asn_DEF_RadialShapeDetails_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_RadialShapeDetails_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_RadialShapeDetails_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RadialShapeDetails_1, + 5, /* Elements count */ + &asn_SPC_RadialShapeDetails_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/RadialShapeDetails.h b/vanetza/asn1/its2/RadialShapeDetails.h new file mode 100644 index 000000000..9de562268 --- /dev/null +++ b/vanetza/asn1/its2/RadialShapeDetails.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _RadialShapeDetails_H_ +#define _RadialShapeDetails_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "StandardLength12b.h" +#include "CartesianAngleValue.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* RadialShapeDetails */ +typedef struct RadialShapeDetails { + StandardLength12b_t range; + CartesianAngleValue_t horizontalOpeningAngleStart; + CartesianAngleValue_t horizontalOpeningAngleEnd; + CartesianAngleValue_t *verticalOpeningAngleStart; /* OPTIONAL */ + CartesianAngleValue_t *verticalOpeningAngleEnd; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RadialShapeDetails_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RadialShapeDetails; +extern asn_SEQUENCE_specifics_t asn_SPC_RadialShapeDetails_specs_1; +extern asn_TYPE_member_t asn_MBR_RadialShapeDetails_1[5]; +extern asn_per_constraints_t asn_PER_type_RadialShapeDetails_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _RadialShapeDetails_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/RadialShapes.c b/vanetza/asn1/its2/RadialShapes.c new file mode 100644 index 000000000..c6521e99c --- /dev/null +++ b/vanetza/asn1/its2/RadialShapes.c @@ -0,0 +1,158 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RadialShapes.h" + +asn_TYPE_member_t asn_MBR_RadialShapes_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RadialShapes, refPointId), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Identifier1B, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "refPointId" + }, + { ATF_NOFLAGS, 0, offsetof(struct RadialShapes, xCoordinate), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianCoordinateSmall, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "xCoordinate" + }, + { ATF_NOFLAGS, 0, offsetof(struct RadialShapes, yCoordinate), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianCoordinateSmall, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "yCoordinate" + }, + { ATF_POINTER, 1, offsetof(struct RadialShapes, zCoordinate), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianCoordinateSmall, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "zCoordinate" + }, + { ATF_NOFLAGS, 0, offsetof(struct RadialShapes, radialShapesList), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RadialShapesList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "radialShapesList" + }, +}; +static const int asn_MAP_RadialShapes_oms_1[] = { 3 }; +static const ber_tlv_tag_t asn_DEF_RadialShapes_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RadialShapes_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refPointId */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* xCoordinate */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* yCoordinate */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* zCoordinate */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* radialShapesList */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RadialShapes_specs_1 = { + sizeof(struct RadialShapes), + offsetof(struct RadialShapes, _asn_ctx), + asn_MAP_RadialShapes_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_RadialShapes_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_RadialShapes = { + "RadialShapes", + "RadialShapes", + &asn_OP_SEQUENCE, + asn_DEF_RadialShapes_tags_1, + sizeof(asn_DEF_RadialShapes_tags_1) + /sizeof(asn_DEF_RadialShapes_tags_1[0]), /* 1 */ + asn_DEF_RadialShapes_tags_1, /* Same as above */ + sizeof(asn_DEF_RadialShapes_tags_1) + /sizeof(asn_DEF_RadialShapes_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RadialShapes_1, + 5, /* Elements count */ + &asn_SPC_RadialShapes_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/RadialShapes.h b/vanetza/asn1/its2/RadialShapes.h new file mode 100644 index 000000000..00fbb6845 --- /dev/null +++ b/vanetza/asn1/its2/RadialShapes.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _RadialShapes_H_ +#define _RadialShapes_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "Identifier1B.h" +#include "CartesianCoordinateSmall.h" +#include "RadialShapesList.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* RadialShapes */ +typedef struct RadialShapes { + Identifier1B_t refPointId; + CartesianCoordinateSmall_t xCoordinate; + CartesianCoordinateSmall_t yCoordinate; + CartesianCoordinateSmall_t *zCoordinate; /* OPTIONAL */ + RadialShapesList_t radialShapesList; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RadialShapes_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RadialShapes; +extern asn_SEQUENCE_specifics_t asn_SPC_RadialShapes_specs_1; +extern asn_TYPE_member_t asn_MBR_RadialShapes_1[5]; + +#ifdef __cplusplus +} +#endif + +#endif /* _RadialShapes_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/RadialShapesList.c b/vanetza/asn1/its2/RadialShapesList.c new file mode 100644 index 000000000..562aea6d4 --- /dev/null +++ b/vanetza/asn1/its2/RadialShapesList.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RadialShapesList.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_RadialShapesList_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_RadialShapesList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 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_RadialShapesList_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_RadialShapeDetails, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_RadialShapesList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_RadialShapesList_specs_1 = { + sizeof(struct RadialShapesList), + offsetof(struct RadialShapesList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_RadialShapesList = { + "RadialShapesList", + "RadialShapesList", + &asn_OP_SEQUENCE_OF, + asn_DEF_RadialShapesList_tags_1, + sizeof(asn_DEF_RadialShapesList_tags_1) + /sizeof(asn_DEF_RadialShapesList_tags_1[0]), /* 1 */ + asn_DEF_RadialShapesList_tags_1, /* Same as above */ + sizeof(asn_DEF_RadialShapesList_tags_1) + /sizeof(asn_DEF_RadialShapesList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_RadialShapesList_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_RadialShapesList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_RadialShapesList_1, + 1, /* Single element */ + &asn_SPC_RadialShapesList_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/RadialShapesList.h b/vanetza/asn1/its2/RadialShapesList.h new file mode 100644 index 000000000..d6ce93ef3 --- /dev/null +++ b/vanetza/asn1/its2/RadialShapesList.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _RadialShapesList_H_ +#define _RadialShapesList_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct RadialShapeDetails; + +/* RadialShapesList */ +typedef struct RadialShapesList { + A_SEQUENCE_OF(struct RadialShapeDetails) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RadialShapesList_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RadialShapesList; +extern asn_SET_OF_specifics_t asn_SPC_RadialShapesList_specs_1; +extern asn_TYPE_member_t asn_MBR_RadialShapesList_1[1]; +extern asn_per_constraints_t asn_PER_type_RadialShapesList_constr_1; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "RadialShapeDetails.h" + +#endif /* _RadialShapesList_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/RailwayLevelCrossingSubCauseCode.c b/vanetza/asn1/its2/RailwayLevelCrossingSubCauseCode.c new file mode 100644 index 000000000..4196aa233 --- /dev/null +++ b/vanetza/asn1/its2/RailwayLevelCrossingSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RailwayLevelCrossingSubCauseCode.h" + +int +RailwayLevelCrossingSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_RailwayLevelCrossingSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_RailwayLevelCrossingSubCauseCode_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_RailwayLevelCrossingSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_RailwayLevelCrossingSubCauseCode = { + "RailwayLevelCrossingSubCauseCode", + "RailwayLevelCrossingSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_RailwayLevelCrossingSubCauseCode_tags_1, + sizeof(asn_DEF_RailwayLevelCrossingSubCauseCode_tags_1) + /sizeof(asn_DEF_RailwayLevelCrossingSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_RailwayLevelCrossingSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_RailwayLevelCrossingSubCauseCode_tags_1) + /sizeof(asn_DEF_RailwayLevelCrossingSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_RailwayLevelCrossingSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_RailwayLevelCrossingSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + RailwayLevelCrossingSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/RailwayLevelCrossingSubCauseCode.h b/vanetza/asn1/its2/RailwayLevelCrossingSubCauseCode.h new file mode 100644 index 000000000..98534cc8e --- /dev/null +++ b/vanetza/asn1/its2/RailwayLevelCrossingSubCauseCode.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _RailwayLevelCrossingSubCauseCode_H_ +#define _RailwayLevelCrossingSubCauseCode_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum RailwayLevelCrossingSubCauseCode { + RailwayLevelCrossingSubCauseCode_unavailable = 0, + RailwayLevelCrossingSubCauseCode_doNotCrossAbnormalSituation = 1, + RailwayLevelCrossingSubCauseCode_closed = 2, + RailwayLevelCrossingSubCauseCode_unguarded = 3, + RailwayLevelCrossingSubCauseCode_nominal = 4 +} e_RailwayLevelCrossingSubCauseCode; + +/* RailwayLevelCrossingSubCauseCode */ +typedef long RailwayLevelCrossingSubCauseCode_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_RailwayLevelCrossingSubCauseCode_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_RailwayLevelCrossingSubCauseCode; +asn_struct_free_f RailwayLevelCrossingSubCauseCode_free; +asn_struct_print_f RailwayLevelCrossingSubCauseCode_print; +asn_constr_check_f RailwayLevelCrossingSubCauseCode_constraint; +ber_type_decoder_f RailwayLevelCrossingSubCauseCode_decode_ber; +der_type_encoder_f RailwayLevelCrossingSubCauseCode_encode_der; +xer_type_decoder_f RailwayLevelCrossingSubCauseCode_decode_xer; +xer_type_encoder_f RailwayLevelCrossingSubCauseCode_encode_xer; +jer_type_encoder_f RailwayLevelCrossingSubCauseCode_encode_jer; +oer_type_decoder_f RailwayLevelCrossingSubCauseCode_decode_oer; +oer_type_encoder_f RailwayLevelCrossingSubCauseCode_encode_oer; +per_type_decoder_f RailwayLevelCrossingSubCauseCode_decode_uper; +per_type_encoder_f RailwayLevelCrossingSubCauseCode_encode_uper; +per_type_decoder_f RailwayLevelCrossingSubCauseCode_decode_aper; +per_type_encoder_f RailwayLevelCrossingSubCauseCode_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _RailwayLevelCrossingSubCauseCode_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/RectangularShape.c b/vanetza/asn1/its2/RectangularShape.c new file mode 100644 index 000000000..fa9643533 --- /dev/null +++ b/vanetza/asn1/its2/RectangularShape.c @@ -0,0 +1,158 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RectangularShape.h" + +asn_TYPE_member_t asn_MBR_RectangularShape_1[] = { + { ATF_POINTER, 1, offsetof(struct RectangularShape, shapeReferencePoint), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianPosition3d, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "shapeReferencePoint" + }, + { ATF_NOFLAGS, 0, offsetof(struct RectangularShape, semiLength), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StandardLength12b, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "semiLength" + }, + { ATF_NOFLAGS, 0, offsetof(struct RectangularShape, semiBreadth), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StandardLength12b, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "semiBreadth" + }, + { ATF_POINTER, 2, offsetof(struct RectangularShape, orientation), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianAngleValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "orientation" + }, + { ATF_POINTER, 1, offsetof(struct RectangularShape, height), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StandardLength12b, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "height" + }, +}; +static const int asn_MAP_RectangularShape_oms_1[] = { 0, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_RectangularShape_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RectangularShape_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* shapeReferencePoint */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* semiLength */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* semiBreadth */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* orientation */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* height */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RectangularShape_specs_1 = { + sizeof(struct RectangularShape), + offsetof(struct RectangularShape, _asn_ctx), + asn_MAP_RectangularShape_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_RectangularShape_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_RectangularShape = { + "RectangularShape", + "RectangularShape", + &asn_OP_SEQUENCE, + asn_DEF_RectangularShape_tags_1, + sizeof(asn_DEF_RectangularShape_tags_1) + /sizeof(asn_DEF_RectangularShape_tags_1[0]), /* 1 */ + asn_DEF_RectangularShape_tags_1, /* Same as above */ + sizeof(asn_DEF_RectangularShape_tags_1) + /sizeof(asn_DEF_RectangularShape_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RectangularShape_1, + 5, /* Elements count */ + &asn_SPC_RectangularShape_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/RectangularShape.h b/vanetza/asn1/its2/RectangularShape.h new file mode 100644 index 000000000..50db2d9b1 --- /dev/null +++ b/vanetza/asn1/its2/RectangularShape.h @@ -0,0 +1,51 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _RectangularShape_H_ +#define _RectangularShape_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "StandardLength12b.h" +#include "CartesianAngleValue.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct CartesianPosition3d; + +/* RectangularShape */ +typedef struct RectangularShape { + struct CartesianPosition3d *shapeReferencePoint; /* OPTIONAL */ + StandardLength12b_t semiLength; + StandardLength12b_t semiBreadth; + CartesianAngleValue_t *orientation; /* OPTIONAL */ + StandardLength12b_t *height; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RectangularShape_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RectangularShape; +extern asn_SEQUENCE_specifics_t asn_SPC_RectangularShape_specs_1; +extern asn_TYPE_member_t asn_MBR_RectangularShape_1[5]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "CartesianPosition3d.h" + +#endif /* _RectangularShape_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ReferencePosition.c b/vanetza/asn1/its2/ReferencePosition.c new file mode 100644 index 000000000..27436770c --- /dev/null +++ b/vanetza/asn1/its2/ReferencePosition.c @@ -0,0 +1,135 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ReferencePosition.h" + +asn_TYPE_member_t asn_MBR_ReferencePosition_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ReferencePosition, latitude), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Latitude, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "latitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct ReferencePosition, longitude), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Longitude, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "longitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct ReferencePosition, positionConfidenceEllipse), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PosConfidenceEllipse, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "positionConfidenceEllipse" + }, + { ATF_NOFLAGS, 0, offsetof(struct ReferencePosition, altitude), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Altitude, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "altitude" + }, +}; +static const ber_tlv_tag_t asn_DEF_ReferencePosition_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ReferencePosition_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* latitude */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* longitude */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* positionConfidenceEllipse */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* altitude */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ReferencePosition_specs_1 = { + sizeof(struct ReferencePosition), + offsetof(struct ReferencePosition, _asn_ctx), + asn_MAP_ReferencePosition_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_ReferencePosition = { + "ReferencePosition", + "ReferencePosition", + &asn_OP_SEQUENCE, + asn_DEF_ReferencePosition_tags_1, + sizeof(asn_DEF_ReferencePosition_tags_1) + /sizeof(asn_DEF_ReferencePosition_tags_1[0]), /* 1 */ + asn_DEF_ReferencePosition_tags_1, /* Same as above */ + sizeof(asn_DEF_ReferencePosition_tags_1) + /sizeof(asn_DEF_ReferencePosition_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ReferencePosition_1, + 4, /* Elements count */ + &asn_SPC_ReferencePosition_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/ReferencePosition.h b/vanetza/asn1/its2/ReferencePosition.h new file mode 100644 index 000000000..e5c817751 --- /dev/null +++ b/vanetza/asn1/its2/ReferencePosition.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ReferencePosition_H_ +#define _ReferencePosition_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "Latitude.h" +#include "Longitude.h" +#include "PosConfidenceEllipse.h" +#include "Altitude.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* ReferencePosition */ +typedef struct ReferencePosition { + Latitude_t latitude; + Longitude_t longitude; + PosConfidenceEllipse_t positionConfidenceEllipse; + Altitude_t altitude; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ReferencePosition_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ReferencePosition; +extern asn_SEQUENCE_specifics_t asn_SPC_ReferencePosition_specs_1; +extern asn_TYPE_member_t asn_MBR_ReferencePosition_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _ReferencePosition_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ReferencePositionWithConfidence.c b/vanetza/asn1/its2/ReferencePositionWithConfidence.c new file mode 100644 index 000000000..2a5a9d9e6 --- /dev/null +++ b/vanetza/asn1/its2/ReferencePositionWithConfidence.c @@ -0,0 +1,135 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ReferencePositionWithConfidence.h" + +asn_TYPE_member_t asn_MBR_ReferencePositionWithConfidence_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct ReferencePositionWithConfidence, latitude), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Latitude, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "latitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct ReferencePositionWithConfidence, longitude), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Longitude, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "longitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct ReferencePositionWithConfidence, positionConfidenceEllipse), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PositionConfidenceEllipse, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "positionConfidenceEllipse" + }, + { ATF_NOFLAGS, 0, offsetof(struct ReferencePositionWithConfidence, altitude), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Altitude, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "altitude" + }, +}; +static const ber_tlv_tag_t asn_DEF_ReferencePositionWithConfidence_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_ReferencePositionWithConfidence_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* latitude */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* longitude */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* positionConfidenceEllipse */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* altitude */ +}; +asn_SEQUENCE_specifics_t asn_SPC_ReferencePositionWithConfidence_specs_1 = { + sizeof(struct ReferencePositionWithConfidence), + offsetof(struct ReferencePositionWithConfidence, _asn_ctx), + asn_MAP_ReferencePositionWithConfidence_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_ReferencePositionWithConfidence = { + "ReferencePositionWithConfidence", + "ReferencePositionWithConfidence", + &asn_OP_SEQUENCE, + asn_DEF_ReferencePositionWithConfidence_tags_1, + sizeof(asn_DEF_ReferencePositionWithConfidence_tags_1) + /sizeof(asn_DEF_ReferencePositionWithConfidence_tags_1[0]), /* 1 */ + asn_DEF_ReferencePositionWithConfidence_tags_1, /* Same as above */ + sizeof(asn_DEF_ReferencePositionWithConfidence_tags_1) + /sizeof(asn_DEF_ReferencePositionWithConfidence_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_ReferencePositionWithConfidence_1, + 4, /* Elements count */ + &asn_SPC_ReferencePositionWithConfidence_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/ReferencePositionWithConfidence.h b/vanetza/asn1/its2/ReferencePositionWithConfidence.h new file mode 100644 index 000000000..4ba3f4381 --- /dev/null +++ b/vanetza/asn1/its2/ReferencePositionWithConfidence.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ReferencePositionWithConfidence_H_ +#define _ReferencePositionWithConfidence_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "Latitude.h" +#include "Longitude.h" +#include "PositionConfidenceEllipse.h" +#include "Altitude.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* ReferencePositionWithConfidence */ +typedef struct ReferencePositionWithConfidence { + Latitude_t latitude; + Longitude_t longitude; + PositionConfidenceEllipse_t positionConfidenceEllipse; + Altitude_t altitude; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} ReferencePositionWithConfidence_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ReferencePositionWithConfidence; +extern asn_SEQUENCE_specifics_t asn_SPC_ReferencePositionWithConfidence_specs_1; +extern asn_TYPE_member_t asn_MBR_ReferencePositionWithConfidence_1[4]; + +#ifdef __cplusplus +} +#endif + +#endif /* _ReferencePositionWithConfidence_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/RelevanceDistance.c b/vanetza/asn1/its2/RelevanceDistance.c new file mode 100644 index 000000000..58326694f --- /dev/null +++ b/vanetza/asn1/its2/RelevanceDistance.c @@ -0,0 +1,83 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RelevanceDistance.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_RelevanceDistance_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_RelevanceDistance_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 asn_INTEGER_enum_map_t asn_MAP_RelevanceDistance_value2enum_1[] = { + { 0, 11, "lessThan50m" }, + { 1, 12, "lessThan100m" }, + { 2, 12, "lessThan200m" }, + { 3, 12, "lessThan500m" }, + { 4, 13, "lessThan1000m" }, + { 5, 11, "lessThan5km" }, + { 6, 12, "lessThan10km" }, + { 7, 8, "over10km" } +}; +static const unsigned int asn_MAP_RelevanceDistance_enum2value_1[] = { + 4, /* lessThan1000m(4) */ + 1, /* lessThan100m(1) */ + 6, /* lessThan10km(6) */ + 2, /* lessThan200m(2) */ + 3, /* lessThan500m(3) */ + 0, /* lessThan50m(0) */ + 5, /* lessThan5km(5) */ + 7 /* over10km(7) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_RelevanceDistance_specs_1 = { + asn_MAP_RelevanceDistance_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_RelevanceDistance_enum2value_1, /* 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_RelevanceDistance_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_RelevanceDistance = { + "RelevanceDistance", + "RelevanceDistance", + &asn_OP_NativeEnumerated, + asn_DEF_RelevanceDistance_tags_1, + sizeof(asn_DEF_RelevanceDistance_tags_1) + /sizeof(asn_DEF_RelevanceDistance_tags_1[0]), /* 1 */ + asn_DEF_RelevanceDistance_tags_1, /* Same as above */ + sizeof(asn_DEF_RelevanceDistance_tags_1) + /sizeof(asn_DEF_RelevanceDistance_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_RelevanceDistance_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_RelevanceDistance_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_RelevanceDistance_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/RelevanceDistance.h b/vanetza/asn1/its2/RelevanceDistance.h new file mode 100644 index 000000000..0711a2fde --- /dev/null +++ b/vanetza/asn1/its2/RelevanceDistance.h @@ -0,0 +1,58 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _RelevanceDistance_H_ +#define _RelevanceDistance_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum RelevanceDistance { + RelevanceDistance_lessThan50m = 0, + RelevanceDistance_lessThan100m = 1, + RelevanceDistance_lessThan200m = 2, + RelevanceDistance_lessThan500m = 3, + RelevanceDistance_lessThan1000m = 4, + RelevanceDistance_lessThan5km = 5, + RelevanceDistance_lessThan10km = 6, + RelevanceDistance_over10km = 7 +} e_RelevanceDistance; + +/* RelevanceDistance */ +typedef long RelevanceDistance_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RelevanceDistance; +asn_struct_free_f RelevanceDistance_free; +asn_struct_print_f RelevanceDistance_print; +asn_constr_check_f RelevanceDistance_constraint; +ber_type_decoder_f RelevanceDistance_decode_ber; +der_type_encoder_f RelevanceDistance_encode_der; +xer_type_decoder_f RelevanceDistance_decode_xer; +xer_type_encoder_f RelevanceDistance_encode_xer; +jer_type_encoder_f RelevanceDistance_encode_jer; +oer_type_decoder_f RelevanceDistance_decode_oer; +oer_type_encoder_f RelevanceDistance_encode_oer; +per_type_decoder_f RelevanceDistance_decode_uper; +per_type_encoder_f RelevanceDistance_encode_uper; +per_type_decoder_f RelevanceDistance_decode_aper; +per_type_encoder_f RelevanceDistance_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _RelevanceDistance_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/RelevanceTrafficDirection.c b/vanetza/asn1/its2/RelevanceTrafficDirection.c new file mode 100644 index 000000000..1971413e4 --- /dev/null +++ b/vanetza/asn1/its2/RelevanceTrafficDirection.c @@ -0,0 +1,75 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RelevanceTrafficDirection.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_RelevanceTrafficDirection_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_RelevanceTrafficDirection_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) */ +static const asn_INTEGER_enum_map_t asn_MAP_RelevanceTrafficDirection_value2enum_1[] = { + { 0, 20, "allTrafficDirections" }, + { 1, 15, "upstreamTraffic" }, + { 2, 17, "downstreamTraffic" }, + { 3, 15, "oppositeTraffic" } +}; +static const unsigned int asn_MAP_RelevanceTrafficDirection_enum2value_1[] = { + 0, /* allTrafficDirections(0) */ + 2, /* downstreamTraffic(2) */ + 3, /* oppositeTraffic(3) */ + 1 /* upstreamTraffic(1) */ +}; +static const asn_INTEGER_specifics_t asn_SPC_RelevanceTrafficDirection_specs_1 = { + asn_MAP_RelevanceTrafficDirection_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_RelevanceTrafficDirection_enum2value_1, /* 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_RelevanceTrafficDirection_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_RelevanceTrafficDirection = { + "RelevanceTrafficDirection", + "RelevanceTrafficDirection", + &asn_OP_NativeEnumerated, + asn_DEF_RelevanceTrafficDirection_tags_1, + sizeof(asn_DEF_RelevanceTrafficDirection_tags_1) + /sizeof(asn_DEF_RelevanceTrafficDirection_tags_1[0]), /* 1 */ + asn_DEF_RelevanceTrafficDirection_tags_1, /* Same as above */ + sizeof(asn_DEF_RelevanceTrafficDirection_tags_1) + /sizeof(asn_DEF_RelevanceTrafficDirection_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_RelevanceTrafficDirection_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_RelevanceTrafficDirection_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_RelevanceTrafficDirection_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/RelevanceTrafficDirection.h b/vanetza/asn1/its2/RelevanceTrafficDirection.h new file mode 100644 index 000000000..a81588f88 --- /dev/null +++ b/vanetza/asn1/its2/RelevanceTrafficDirection.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _RelevanceTrafficDirection_H_ +#define _RelevanceTrafficDirection_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum RelevanceTrafficDirection { + RelevanceTrafficDirection_allTrafficDirections = 0, + RelevanceTrafficDirection_upstreamTraffic = 1, + RelevanceTrafficDirection_downstreamTraffic = 2, + RelevanceTrafficDirection_oppositeTraffic = 3 +} e_RelevanceTrafficDirection; + +/* RelevanceTrafficDirection */ +typedef long RelevanceTrafficDirection_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RelevanceTrafficDirection; +asn_struct_free_f RelevanceTrafficDirection_free; +asn_struct_print_f RelevanceTrafficDirection_print; +asn_constr_check_f RelevanceTrafficDirection_constraint; +ber_type_decoder_f RelevanceTrafficDirection_decode_ber; +der_type_encoder_f RelevanceTrafficDirection_encode_der; +xer_type_decoder_f RelevanceTrafficDirection_decode_xer; +xer_type_encoder_f RelevanceTrafficDirection_encode_xer; +jer_type_encoder_f RelevanceTrafficDirection_encode_jer; +oer_type_decoder_f RelevanceTrafficDirection_decode_oer; +oer_type_encoder_f RelevanceTrafficDirection_encode_oer; +per_type_decoder_f RelevanceTrafficDirection_decode_uper; +per_type_encoder_f RelevanceTrafficDirection_encode_uper; +per_type_decoder_f RelevanceTrafficDirection_decode_aper; +per_type_encoder_f RelevanceTrafficDirection_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _RelevanceTrafficDirection_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/RequestResponseIndication.c b/vanetza/asn1/its2/RequestResponseIndication.c new file mode 100644 index 000000000..70fb36272 --- /dev/null +++ b/vanetza/asn1/its2/RequestResponseIndication.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RequestResponseIndication.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_RequestResponseIndication_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_RequestResponseIndication_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_RequestResponseIndication_value2enum_1[] = { + { 0, 7, "request" }, + { 1, 8, "response" } +}; +static const unsigned int asn_MAP_RequestResponseIndication_enum2value_1[] = { + 0, /* request(0) */ + 1 /* response(1) */ +}; +const asn_INTEGER_specifics_t asn_SPC_RequestResponseIndication_specs_1 = { + asn_MAP_RequestResponseIndication_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_RequestResponseIndication_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_RequestResponseIndication_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_RequestResponseIndication = { + "RequestResponseIndication", + "RequestResponseIndication", + &asn_OP_NativeEnumerated, + asn_DEF_RequestResponseIndication_tags_1, + sizeof(asn_DEF_RequestResponseIndication_tags_1) + /sizeof(asn_DEF_RequestResponseIndication_tags_1[0]), /* 1 */ + asn_DEF_RequestResponseIndication_tags_1, /* Same as above */ + sizeof(asn_DEF_RequestResponseIndication_tags_1) + /sizeof(asn_DEF_RequestResponseIndication_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_RequestResponseIndication_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_RequestResponseIndication_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_RequestResponseIndication_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/RequestResponseIndication.h b/vanetza/asn1/its2/RequestResponseIndication.h new file mode 100644 index 000000000..9e5b91fd9 --- /dev/null +++ b/vanetza/asn1/its2/RequestResponseIndication.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _RequestResponseIndication_H_ +#define _RequestResponseIndication_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum RequestResponseIndication { + RequestResponseIndication_request = 0, + RequestResponseIndication_response = 1 +} e_RequestResponseIndication; + +/* RequestResponseIndication */ +typedef long RequestResponseIndication_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_RequestResponseIndication_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_RequestResponseIndication; +extern const asn_INTEGER_specifics_t asn_SPC_RequestResponseIndication_specs_1; +asn_struct_free_f RequestResponseIndication_free; +asn_struct_print_f RequestResponseIndication_print; +asn_constr_check_f RequestResponseIndication_constraint; +ber_type_decoder_f RequestResponseIndication_decode_ber; +der_type_encoder_f RequestResponseIndication_encode_der; +xer_type_decoder_f RequestResponseIndication_decode_xer; +xer_type_encoder_f RequestResponseIndication_encode_xer; +jer_type_encoder_f RequestResponseIndication_encode_jer; +oer_type_decoder_f RequestResponseIndication_decode_oer; +oer_type_encoder_f RequestResponseIndication_encode_oer; +per_type_decoder_f RequestResponseIndication_decode_uper; +per_type_encoder_f RequestResponseIndication_encode_uper; +per_type_decoder_f RequestResponseIndication_decode_aper; +per_type_encoder_f RequestResponseIndication_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _RequestResponseIndication_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/RescueAndRecoveryWorkInProgressSubCauseCode.c b/vanetza/asn1/its2/RescueAndRecoveryWorkInProgressSubCauseCode.c new file mode 100644 index 000000000..9dca794a9 --- /dev/null +++ b/vanetza/asn1/its2/RescueAndRecoveryWorkInProgressSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RescueAndRecoveryWorkInProgressSubCauseCode.h" + +int +RescueAndRecoveryWorkInProgressSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_RescueAndRecoveryWorkInProgressSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_RescueAndRecoveryWorkInProgressSubCauseCode_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_RescueAndRecoveryWorkInProgressSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_RescueAndRecoveryWorkInProgressSubCauseCode = { + "RescueAndRecoveryWorkInProgressSubCauseCode", + "RescueAndRecoveryWorkInProgressSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_RescueAndRecoveryWorkInProgressSubCauseCode_tags_1, + sizeof(asn_DEF_RescueAndRecoveryWorkInProgressSubCauseCode_tags_1) + /sizeof(asn_DEF_RescueAndRecoveryWorkInProgressSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_RescueAndRecoveryWorkInProgressSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_RescueAndRecoveryWorkInProgressSubCauseCode_tags_1) + /sizeof(asn_DEF_RescueAndRecoveryWorkInProgressSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_RescueAndRecoveryWorkInProgressSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_RescueAndRecoveryWorkInProgressSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + RescueAndRecoveryWorkInProgressSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/RescueAndRecoveryWorkInProgressSubCauseCode.h b/vanetza/asn1/its2/RescueAndRecoveryWorkInProgressSubCauseCode.h new file mode 100644 index 000000000..a1b0b7b99 --- /dev/null +++ b/vanetza/asn1/its2/RescueAndRecoveryWorkInProgressSubCauseCode.h @@ -0,0 +1,59 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _RescueAndRecoveryWorkInProgressSubCauseCode_H_ +#define _RescueAndRecoveryWorkInProgressSubCauseCode_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum RescueAndRecoveryWorkInProgressSubCauseCode { + RescueAndRecoveryWorkInProgressSubCauseCode_unavailable = 0, + RescueAndRecoveryWorkInProgressSubCauseCode_emergencyVehicles = 1, + RescueAndRecoveryWorkInProgressSubCauseCode_rescueHelicopterLanding = 2, + RescueAndRecoveryWorkInProgressSubCauseCode_policeActivityOngoing = 3, + RescueAndRecoveryWorkInProgressSubCauseCode_medicalEmergencyOngoing = 4, + RescueAndRecoveryWorkInProgressSubCauseCode_childAbductionInProgress = 5, + RescueAndRecoveryWorkInProgressSubCauseCode_prioritizedVehicle = 6, + RescueAndRecoveryWorkInProgressSubCauseCode_rescueAndRecoveryVehicle = 7 +} e_RescueAndRecoveryWorkInProgressSubCauseCode; + +/* RescueAndRecoveryWorkInProgressSubCauseCode */ +typedef long RescueAndRecoveryWorkInProgressSubCauseCode_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_RescueAndRecoveryWorkInProgressSubCauseCode_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_RescueAndRecoveryWorkInProgressSubCauseCode; +asn_struct_free_f RescueAndRecoveryWorkInProgressSubCauseCode_free; +asn_struct_print_f RescueAndRecoveryWorkInProgressSubCauseCode_print; +asn_constr_check_f RescueAndRecoveryWorkInProgressSubCauseCode_constraint; +ber_type_decoder_f RescueAndRecoveryWorkInProgressSubCauseCode_decode_ber; +der_type_encoder_f RescueAndRecoveryWorkInProgressSubCauseCode_encode_der; +xer_type_decoder_f RescueAndRecoveryWorkInProgressSubCauseCode_decode_xer; +xer_type_encoder_f RescueAndRecoveryWorkInProgressSubCauseCode_encode_xer; +jer_type_encoder_f RescueAndRecoveryWorkInProgressSubCauseCode_encode_jer; +oer_type_decoder_f RescueAndRecoveryWorkInProgressSubCauseCode_decode_oer; +oer_type_encoder_f RescueAndRecoveryWorkInProgressSubCauseCode_encode_oer; +per_type_decoder_f RescueAndRecoveryWorkInProgressSubCauseCode_decode_uper; +per_type_encoder_f RescueAndRecoveryWorkInProgressSubCauseCode_encode_uper; +per_type_decoder_f RescueAndRecoveryWorkInProgressSubCauseCode_decode_aper; +per_type_encoder_f RescueAndRecoveryWorkInProgressSubCauseCode_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _RescueAndRecoveryWorkInProgressSubCauseCode_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/RescueContainer.c b/vanetza/asn1/its2/RescueContainer.c new file mode 100644 index 000000000..688df3179 --- /dev/null +++ b/vanetza/asn1/its2/RescueContainer.c @@ -0,0 +1,72 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/TS103900v211-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RescueContainer.h" + +asn_TYPE_member_t asn_MBR_RescueContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RescueContainer, lightBarSirenInUse), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LightBarSirenInUse, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lightBarSirenInUse" + }, +}; +static const ber_tlv_tag_t asn_DEF_RescueContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RescueContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* lightBarSirenInUse */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RescueContainer_specs_1 = { + sizeof(struct RescueContainer), + offsetof(struct RescueContainer, _asn_ctx), + asn_MAP_RescueContainer_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_RescueContainer = { + "RescueContainer", + "RescueContainer", + &asn_OP_SEQUENCE, + asn_DEF_RescueContainer_tags_1, + sizeof(asn_DEF_RescueContainer_tags_1) + /sizeof(asn_DEF_RescueContainer_tags_1[0]), /* 1 */ + asn_DEF_RescueContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_RescueContainer_tags_1) + /sizeof(asn_DEF_RescueContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RescueContainer_1, + 1, /* Elements count */ + &asn_SPC_RescueContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/RescueContainer.h b/vanetza/asn1/its2/RescueContainer.h new file mode 100644 index 000000000..4537bd4af --- /dev/null +++ b/vanetza/asn1/its2/RescueContainer.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/TS103900v211-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _RescueContainer_H_ +#define _RescueContainer_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "LightBarSirenInUse.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* RescueContainer */ +typedef struct RescueContainer { + LightBarSirenInUse_t lightBarSirenInUse; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RescueContainer_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RescueContainer; +extern asn_SEQUENCE_specifics_t asn_SPC_RescueContainer_specs_1; +extern asn_TYPE_member_t asn_MBR_RescueContainer_1[1]; + +#ifdef __cplusplus +} +#endif + +#endif /* _RescueContainer_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/RestrictedTypes.c b/vanetza/asn1/its2/RestrictedTypes.c new file mode 100644 index 000000000..869e9ad9a --- /dev/null +++ b/vanetza/asn1/its2/RestrictedTypes.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RestrictedTypes.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_RestrictedTypes_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_RestrictedTypes_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 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_RestrictedTypes_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_StationType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_RestrictedTypes_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_RestrictedTypes_specs_1 = { + sizeof(struct RestrictedTypes), + offsetof(struct RestrictedTypes, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_RestrictedTypes = { + "RestrictedTypes", + "RestrictedTypes", + &asn_OP_SEQUENCE_OF, + asn_DEF_RestrictedTypes_tags_1, + sizeof(asn_DEF_RestrictedTypes_tags_1) + /sizeof(asn_DEF_RestrictedTypes_tags_1[0]), /* 1 */ + asn_DEF_RestrictedTypes_tags_1, /* Same as above */ + sizeof(asn_DEF_RestrictedTypes_tags_1) + /sizeof(asn_DEF_RestrictedTypes_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_RestrictedTypes_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_RestrictedTypes_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_RestrictedTypes_1, + 1, /* Single element */ + &asn_SPC_RestrictedTypes_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/RestrictedTypes.h b/vanetza/asn1/its2/RestrictedTypes.h new file mode 100644 index 000000000..fe41b5088 --- /dev/null +++ b/vanetza/asn1/its2/RestrictedTypes.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _RestrictedTypes_H_ +#define _RestrictedTypes_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "StationType.h" +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* RestrictedTypes */ +typedef struct RestrictedTypes { + A_SEQUENCE_OF(StationType_t) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RestrictedTypes_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RestrictedTypes; +extern asn_SET_OF_specifics_t asn_SPC_RestrictedTypes_specs_1; +extern asn_TYPE_member_t asn_MBR_RestrictedTypes_1[1]; +extern asn_per_constraints_t asn_PER_type_RestrictedTypes_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _RestrictedTypes_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/RoadConfigurationSection.c b/vanetza/asn1/its2/RoadConfigurationSection.c new file mode 100644 index 000000000..0f4a2426e --- /dev/null +++ b/vanetza/asn1/its2/RoadConfigurationSection.c @@ -0,0 +1,149 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RoadConfigurationSection.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_RoadConfigurationSection_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_RoadConfigurationSection_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 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) */ +asn_TYPE_member_t asn_MBR_RoadConfigurationSection_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RoadConfigurationSection, roadSectionDefinition), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RoadSectionDefinition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "roadSectionDefinition" + }, + { ATF_POINTER, 3, offsetof(struct RoadConfigurationSection, roadType), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RoadType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "roadType" + }, + { ATF_POINTER, 2, offsetof(struct RoadConfigurationSection, laneConfiguration), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BasicLaneConfiguration, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "laneConfiguration" + }, + { ATF_POINTER, 1, offsetof(struct RoadConfigurationSection, mapemConfiguration), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_MapemConfiguration, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "mapemConfiguration" + }, +}; +static const int asn_MAP_RoadConfigurationSection_oms_1[] = { 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_RoadConfigurationSection_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RoadConfigurationSection_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* roadSectionDefinition */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* roadType */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* laneConfiguration */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* mapemConfiguration */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RoadConfigurationSection_specs_1 = { + sizeof(struct RoadConfigurationSection), + offsetof(struct RoadConfigurationSection, _asn_ctx), + asn_MAP_RoadConfigurationSection_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_RoadConfigurationSection_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_RoadConfigurationSection = { + "RoadConfigurationSection", + "RoadConfigurationSection", + &asn_OP_SEQUENCE, + asn_DEF_RoadConfigurationSection_tags_1, + sizeof(asn_DEF_RoadConfigurationSection_tags_1) + /sizeof(asn_DEF_RoadConfigurationSection_tags_1[0]), /* 1 */ + asn_DEF_RoadConfigurationSection_tags_1, /* Same as above */ + sizeof(asn_DEF_RoadConfigurationSection_tags_1) + /sizeof(asn_DEF_RoadConfigurationSection_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_RoadConfigurationSection_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_RoadConfigurationSection_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RoadConfigurationSection_1, + 4, /* Elements count */ + &asn_SPC_RoadConfigurationSection_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/RoadConfigurationSection.h b/vanetza/asn1/its2/RoadConfigurationSection.h new file mode 100644 index 000000000..63c2d54a8 --- /dev/null +++ b/vanetza/asn1/its2/RoadConfigurationSection.h @@ -0,0 +1,57 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _RoadConfigurationSection_H_ +#define _RoadConfigurationSection_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "RoadSectionDefinition.h" +#include "RoadType.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct BasicLaneConfiguration; +struct MapemConfiguration; + +/* RoadConfigurationSection */ +typedef struct RoadConfigurationSection { + RoadSectionDefinition_t roadSectionDefinition; + RoadType_t *roadType; /* OPTIONAL */ + struct BasicLaneConfiguration *laneConfiguration; /* OPTIONAL */ + struct MapemConfiguration *mapemConfiguration; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RoadConfigurationSection_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RoadConfigurationSection; +extern asn_SEQUENCE_specifics_t asn_SPC_RoadConfigurationSection_specs_1; +extern asn_TYPE_member_t asn_MBR_RoadConfigurationSection_1[4]; +extern asn_per_constraints_t asn_PER_type_RoadConfigurationSection_constr_1; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "BasicLaneConfiguration.h" +#include "MapemConfiguration.h" + +#endif /* _RoadConfigurationSection_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/RoadConfigurationSectionList.c b/vanetza/asn1/its2/RoadConfigurationSectionList.c new file mode 100644 index 000000000..343813def --- /dev/null +++ b/vanetza/asn1/its2/RoadConfigurationSectionList.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RoadConfigurationSectionList.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_RoadConfigurationSectionList_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_RoadConfigurationSectionList_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 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_RoadConfigurationSectionList_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_RoadConfigurationSection, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_RoadConfigurationSectionList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_RoadConfigurationSectionList_specs_1 = { + sizeof(struct RoadConfigurationSectionList), + offsetof(struct RoadConfigurationSectionList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_RoadConfigurationSectionList = { + "RoadConfigurationSectionList", + "RoadConfigurationSectionList", + &asn_OP_SEQUENCE_OF, + asn_DEF_RoadConfigurationSectionList_tags_1, + sizeof(asn_DEF_RoadConfigurationSectionList_tags_1) + /sizeof(asn_DEF_RoadConfigurationSectionList_tags_1[0]), /* 1 */ + asn_DEF_RoadConfigurationSectionList_tags_1, /* Same as above */ + sizeof(asn_DEF_RoadConfigurationSectionList_tags_1) + /sizeof(asn_DEF_RoadConfigurationSectionList_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_RoadConfigurationSectionList_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_RoadConfigurationSectionList_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_RoadConfigurationSectionList_1, + 1, /* Single element */ + &asn_SPC_RoadConfigurationSectionList_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/RoadConfigurationSectionList.h b/vanetza/asn1/its2/RoadConfigurationSectionList.h new file mode 100644 index 000000000..feeba0fd0 --- /dev/null +++ b/vanetza/asn1/its2/RoadConfigurationSectionList.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _RoadConfigurationSectionList_H_ +#define _RoadConfigurationSectionList_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct RoadConfigurationSection; + +/* RoadConfigurationSectionList */ +typedef struct RoadConfigurationSectionList { + A_SEQUENCE_OF(struct RoadConfigurationSection) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RoadConfigurationSectionList_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RoadConfigurationSectionList; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "RoadConfigurationSection.h" + +#endif /* _RoadConfigurationSectionList_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/RoadSectionDefinition.c b/vanetza/asn1/its2/RoadSectionDefinition.c new file mode 100644 index 000000000..9221b7350 --- /dev/null +++ b/vanetza/asn1/its2/RoadSectionDefinition.c @@ -0,0 +1,200 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RoadSectionDefinition.h" + +asn_TYPE_member_t asn_MBR_RoadSectionDefinition_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RoadSectionDefinition, startingPointSection), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GeoPosition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "startingPointSection" + }, + { ATF_POINTER, 2, offsetof(struct RoadSectionDefinition, lengthOfSection), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StandardLength2B, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lengthOfSection" + }, + { ATF_POINTER, 1, offsetof(struct RoadSectionDefinition, endingPointSection), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GeoPosition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "endingPointSection" + }, + { ATF_NOFLAGS, 0, offsetof(struct RoadSectionDefinition, connectedPaths), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PathReferences, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "connectedPaths" + }, + { ATF_NOFLAGS, 0, offsetof(struct RoadSectionDefinition, includedPaths), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PathReferences, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "includedPaths" + }, + { ATF_NOFLAGS, 0, offsetof(struct RoadSectionDefinition, isEventZoneIncluded), + (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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "isEventZoneIncluded" + }, + { ATF_NOFLAGS, 0, offsetof(struct RoadSectionDefinition, isEventZoneConnected), + (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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "isEventZoneConnected" + }, +}; +static const int asn_MAP_RoadSectionDefinition_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_RoadSectionDefinition_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RoadSectionDefinition_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* startingPointSection */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* lengthOfSection */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* endingPointSection */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* connectedPaths */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* includedPaths */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* isEventZoneIncluded */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* isEventZoneConnected */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RoadSectionDefinition_specs_1 = { + sizeof(struct RoadSectionDefinition), + offsetof(struct RoadSectionDefinition, _asn_ctx), + asn_MAP_RoadSectionDefinition_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_RoadSectionDefinition_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_RoadSectionDefinition = { + "RoadSectionDefinition", + "RoadSectionDefinition", + &asn_OP_SEQUENCE, + asn_DEF_RoadSectionDefinition_tags_1, + sizeof(asn_DEF_RoadSectionDefinition_tags_1) + /sizeof(asn_DEF_RoadSectionDefinition_tags_1[0]), /* 1 */ + asn_DEF_RoadSectionDefinition_tags_1, /* Same as above */ + sizeof(asn_DEF_RoadSectionDefinition_tags_1) + /sizeof(asn_DEF_RoadSectionDefinition_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RoadSectionDefinition_1, + 7, /* Elements count */ + &asn_SPC_RoadSectionDefinition_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/RoadSectionDefinition.h b/vanetza/asn1/its2/RoadSectionDefinition.h new file mode 100644 index 000000000..850802ce1 --- /dev/null +++ b/vanetza/asn1/its2/RoadSectionDefinition.h @@ -0,0 +1,59 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _RoadSectionDefinition_H_ +#define _RoadSectionDefinition_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "GeoPosition.h" +#include "StandardLength2B.h" +#include "PathReferences.h" +#include "BOOLEAN.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct GeoPosition; + +/* RoadSectionDefinition */ +typedef struct RoadSectionDefinition { + GeoPosition_t startingPointSection; + StandardLength2B_t *lengthOfSection; /* OPTIONAL */ + struct GeoPosition *endingPointSection; /* OPTIONAL */ + PathReferences_t connectedPaths; + PathReferences_t includedPaths; + BOOLEAN_t isEventZoneIncluded; + BOOLEAN_t isEventZoneConnected; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RoadSectionDefinition_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RoadSectionDefinition; +extern asn_SEQUENCE_specifics_t asn_SPC_RoadSectionDefinition_specs_1; +extern asn_TYPE_member_t asn_MBR_RoadSectionDefinition_1[7]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "GeoPosition.h" + +#endif /* _RoadSectionDefinition_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/RoadSectionId.c b/vanetza/asn1/its2/RoadSectionId.c new file mode 100644 index 000000000..dda38fdaa --- /dev/null +++ b/vanetza/asn1/its2/RoadSectionId.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RoadSectionId.h" + +int +RoadSectionId_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 <= 8L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_RoadSectionId_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_RoadSectionId_constr_1 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 ber_tlv_tag_t asn_DEF_RoadSectionId_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_RoadSectionId = { + "RoadSectionId", + "RoadSectionId", + &asn_OP_NativeInteger, + asn_DEF_RoadSectionId_tags_1, + sizeof(asn_DEF_RoadSectionId_tags_1) + /sizeof(asn_DEF_RoadSectionId_tags_1[0]), /* 1 */ + asn_DEF_RoadSectionId_tags_1, /* Same as above */ + sizeof(asn_DEF_RoadSectionId_tags_1) + /sizeof(asn_DEF_RoadSectionId_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_RoadSectionId_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_RoadSectionId_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + RoadSectionId_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/RoadSectionId.h b/vanetza/asn1/its2/RoadSectionId.h new file mode 100644 index 000000000..5a2b27d40 --- /dev/null +++ b/vanetza/asn1/its2/RoadSectionId.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _RoadSectionId_H_ +#define _RoadSectionId_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* RoadSectionId */ +typedef long RoadSectionId_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_RoadSectionId_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_RoadSectionId; +asn_struct_free_f RoadSectionId_free; +asn_struct_print_f RoadSectionId_print; +asn_constr_check_f RoadSectionId_constraint; +ber_type_decoder_f RoadSectionId_decode_ber; +der_type_encoder_f RoadSectionId_encode_der; +xer_type_decoder_f RoadSectionId_decode_xer; +xer_type_encoder_f RoadSectionId_encode_xer; +jer_type_encoder_f RoadSectionId_encode_jer; +oer_type_decoder_f RoadSectionId_decode_oer; +oer_type_encoder_f RoadSectionId_encode_oer; +per_type_decoder_f RoadSectionId_decode_uper; +per_type_encoder_f RoadSectionId_encode_uper; +per_type_decoder_f RoadSectionId_decode_aper; +per_type_encoder_f RoadSectionId_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _RoadSectionId_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/RoadSegmentReferenceId.c b/vanetza/asn1/its2/RoadSegmentReferenceId.c new file mode 100644 index 000000000..de3cf3f4d --- /dev/null +++ b/vanetza/asn1/its2/RoadSegmentReferenceId.c @@ -0,0 +1,95 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RoadSegmentReferenceId.h" + +asn_TYPE_member_t asn_MBR_RoadSegmentReferenceId_1[] = { + { ATF_POINTER, 1, offsetof(struct RoadSegmentReferenceId, region), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Identifier2B, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "region" + }, + { ATF_NOFLAGS, 0, offsetof(struct RoadSegmentReferenceId, id), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Identifier2B, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "id" + }, +}; +static const int asn_MAP_RoadSegmentReferenceId_oms_1[] = { 0 }; +static const ber_tlv_tag_t asn_DEF_RoadSegmentReferenceId_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RoadSegmentReferenceId_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* region */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* id */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RoadSegmentReferenceId_specs_1 = { + sizeof(struct RoadSegmentReferenceId), + offsetof(struct RoadSegmentReferenceId, _asn_ctx), + asn_MAP_RoadSegmentReferenceId_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_RoadSegmentReferenceId_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_RoadSegmentReferenceId = { + "RoadSegmentReferenceId", + "RoadSegmentReferenceId", + &asn_OP_SEQUENCE, + asn_DEF_RoadSegmentReferenceId_tags_1, + sizeof(asn_DEF_RoadSegmentReferenceId_tags_1) + /sizeof(asn_DEF_RoadSegmentReferenceId_tags_1[0]), /* 1 */ + asn_DEF_RoadSegmentReferenceId_tags_1, /* Same as above */ + sizeof(asn_DEF_RoadSegmentReferenceId_tags_1) + /sizeof(asn_DEF_RoadSegmentReferenceId_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RoadSegmentReferenceId_1, + 2, /* Elements count */ + &asn_SPC_RoadSegmentReferenceId_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/RoadSegmentReferenceId.h b/vanetza/asn1/its2/RoadSegmentReferenceId.h new file mode 100644 index 000000000..a1eed9e77 --- /dev/null +++ b/vanetza/asn1/its2/RoadSegmentReferenceId.h @@ -0,0 +1,41 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _RoadSegmentReferenceId_H_ +#define _RoadSegmentReferenceId_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "Identifier2B.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* RoadSegmentReferenceId */ +typedef struct RoadSegmentReferenceId { + Identifier2B_t *region; /* OPTIONAL */ + Identifier2B_t id; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RoadSegmentReferenceId_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RoadSegmentReferenceId; +extern asn_SEQUENCE_specifics_t asn_SPC_RoadSegmentReferenceId_specs_1; +extern asn_TYPE_member_t asn_MBR_RoadSegmentReferenceId_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _RoadSegmentReferenceId_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/RoadType.c b/vanetza/asn1/its2/RoadType.c new file mode 100644 index 000000000..a0be5fb49 --- /dev/null +++ b/vanetza/asn1/its2/RoadType.c @@ -0,0 +1,75 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RoadType.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_RoadType_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_RoadType_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) */ +static const asn_INTEGER_enum_map_t asn_MAP_RoadType_value2enum_1[] = { + { 0, 43, "urban-NoStructuralSeparationToOppositeLanes" }, + { 1, 45, "urban-WithStructuralSeparationToOppositeLanes" }, + { 2, 46, "nonUrban-NoStructuralSeparationToOppositeLanes" }, + { 3, 48, "nonUrban-WithStructuralSeparationToOppositeLanes" } +}; +static const unsigned int asn_MAP_RoadType_enum2value_1[] = { + 2, /* nonUrban-NoStructuralSeparationToOppositeLanes(2) */ + 3, /* nonUrban-WithStructuralSeparationToOppositeLanes(3) */ + 0, /* urban-NoStructuralSeparationToOppositeLanes(0) */ + 1 /* urban-WithStructuralSeparationToOppositeLanes(1) */ +}; +const asn_INTEGER_specifics_t asn_SPC_RoadType_specs_1 = { + asn_MAP_RoadType_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_RoadType_enum2value_1, /* 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_RoadType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_RoadType = { + "RoadType", + "RoadType", + &asn_OP_NativeEnumerated, + asn_DEF_RoadType_tags_1, + sizeof(asn_DEF_RoadType_tags_1) + /sizeof(asn_DEF_RoadType_tags_1[0]), /* 1 */ + asn_DEF_RoadType_tags_1, /* Same as above */ + sizeof(asn_DEF_RoadType_tags_1) + /sizeof(asn_DEF_RoadType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_RoadType_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_RoadType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_RoadType_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/RoadType.h b/vanetza/asn1/its2/RoadType.h new file mode 100644 index 000000000..bc964dbab --- /dev/null +++ b/vanetza/asn1/its2/RoadType.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _RoadType_H_ +#define _RoadType_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum RoadType { + RoadType_urban_NoStructuralSeparationToOppositeLanes = 0, + RoadType_urban_WithStructuralSeparationToOppositeLanes = 1, + RoadType_nonUrban_NoStructuralSeparationToOppositeLanes = 2, + RoadType_nonUrban_WithStructuralSeparationToOppositeLanes = 3 +} e_RoadType; + +/* RoadType */ +typedef long RoadType_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_RoadType_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_RoadType; +extern const asn_INTEGER_specifics_t asn_SPC_RoadType_specs_1; +asn_struct_free_f RoadType_free; +asn_struct_print_f RoadType_print; +asn_constr_check_f RoadType_constraint; +ber_type_decoder_f RoadType_decode_ber; +der_type_encoder_f RoadType_encode_der; +xer_type_decoder_f RoadType_decode_xer; +xer_type_encoder_f RoadType_encode_xer; +jer_type_encoder_f RoadType_encode_jer; +oer_type_decoder_f RoadType_decode_oer; +oer_type_encoder_f RoadType_encode_oer; +per_type_decoder_f RoadType_decode_uper; +per_type_encoder_f RoadType_encode_uper; +per_type_decoder_f RoadType_decode_aper; +per_type_encoder_f RoadType_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _RoadType_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/RoadWorksContainerBasic.c b/vanetza/asn1/its2/RoadWorksContainerBasic.c new file mode 100644 index 000000000..5bfea4aa1 --- /dev/null +++ b/vanetza/asn1/its2/RoadWorksContainerBasic.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/TS103900v211-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RoadWorksContainerBasic.h" + +asn_TYPE_member_t asn_MBR_RoadWorksContainerBasic_1[] = { + { ATF_POINTER, 1, offsetof(struct RoadWorksContainerBasic, roadworksSubCauseCode), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RoadworksSubCauseCode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "roadworksSubCauseCode" + }, + { ATF_NOFLAGS, 0, offsetof(struct RoadWorksContainerBasic, lightBarSirenInUse), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LightBarSirenInUse, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lightBarSirenInUse" + }, + { ATF_POINTER, 1, offsetof(struct RoadWorksContainerBasic, closedLanes), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ClosedLanes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "closedLanes" + }, +}; +static const int asn_MAP_RoadWorksContainerBasic_oms_1[] = { 0, 2 }; +static const ber_tlv_tag_t asn_DEF_RoadWorksContainerBasic_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RoadWorksContainerBasic_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* roadworksSubCauseCode */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* lightBarSirenInUse */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* closedLanes */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RoadWorksContainerBasic_specs_1 = { + sizeof(struct RoadWorksContainerBasic), + offsetof(struct RoadWorksContainerBasic, _asn_ctx), + asn_MAP_RoadWorksContainerBasic_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_RoadWorksContainerBasic_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_RoadWorksContainerBasic = { + "RoadWorksContainerBasic", + "RoadWorksContainerBasic", + &asn_OP_SEQUENCE, + asn_DEF_RoadWorksContainerBasic_tags_1, + sizeof(asn_DEF_RoadWorksContainerBasic_tags_1) + /sizeof(asn_DEF_RoadWorksContainerBasic_tags_1[0]), /* 1 */ + asn_DEF_RoadWorksContainerBasic_tags_1, /* Same as above */ + sizeof(asn_DEF_RoadWorksContainerBasic_tags_1) + /sizeof(asn_DEF_RoadWorksContainerBasic_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RoadWorksContainerBasic_1, + 3, /* Elements count */ + &asn_SPC_RoadWorksContainerBasic_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/RoadWorksContainerBasic.h b/vanetza/asn1/its2/RoadWorksContainerBasic.h new file mode 100644 index 000000000..6d9934ec6 --- /dev/null +++ b/vanetza/asn1/its2/RoadWorksContainerBasic.h @@ -0,0 +1,49 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/TS103900v211-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _RoadWorksContainerBasic_H_ +#define _RoadWorksContainerBasic_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "RoadworksSubCauseCode.h" +#include "LightBarSirenInUse.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct ClosedLanes; + +/* RoadWorksContainerBasic */ +typedef struct RoadWorksContainerBasic { + RoadworksSubCauseCode_t *roadworksSubCauseCode; /* OPTIONAL */ + LightBarSirenInUse_t lightBarSirenInUse; + struct ClosedLanes *closedLanes; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RoadWorksContainerBasic_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RoadWorksContainerBasic; +extern asn_SEQUENCE_specifics_t asn_SPC_RoadWorksContainerBasic_specs_1; +extern asn_TYPE_member_t asn_MBR_RoadWorksContainerBasic_1[3]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "ClosedLanes.h" + +#endif /* _RoadWorksContainerBasic_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/RoadWorksContainerExtended.c b/vanetza/asn1/its2/RoadWorksContainerExtended.c new file mode 100644 index 000000000..47b2871c1 --- /dev/null +++ b/vanetza/asn1/its2/RoadWorksContainerExtended.c @@ -0,0 +1,242 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "DENM-PDU-Description" + * found in "asn1/TS103831v211-DENM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RoadWorksContainerExtended.h" + +asn_TYPE_member_t asn_MBR_RoadWorksContainerExtended_1[] = { + { ATF_POINTER, 9, offsetof(struct RoadWorksContainerExtended, lightBarSirenInUse), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LightBarSirenInUse, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lightBarSirenInUse" + }, + { ATF_POINTER, 8, offsetof(struct RoadWorksContainerExtended, closedLanes), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ClosedLanes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "closedLanes" + }, + { ATF_POINTER, 7, offsetof(struct RoadWorksContainerExtended, restriction), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RestrictedTypes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "restriction" + }, + { ATF_POINTER, 6, offsetof(struct RoadWorksContainerExtended, speedLimit), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SpeedLimit, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "speedLimit" + }, + { ATF_POINTER, 5, offsetof(struct RoadWorksContainerExtended, incidentIndication), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CauseCodeV2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "incidentIndication" + }, + { ATF_POINTER, 4, offsetof(struct RoadWorksContainerExtended, recommendedPath), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ItineraryPath, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "recommendedPath" + }, + { ATF_POINTER, 3, offsetof(struct RoadWorksContainerExtended, startingPointSpeedLimit), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DeltaReferencePosition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "startingPointSpeedLimit" + }, + { ATF_POINTER, 2, offsetof(struct RoadWorksContainerExtended, trafficFlowRule), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TrafficRule, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "trafficFlowRule" + }, + { ATF_POINTER, 1, offsetof(struct RoadWorksContainerExtended, referenceDenms), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ActionIdList, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "referenceDenms" + }, +}; +static const int asn_MAP_RoadWorksContainerExtended_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8 }; +static const ber_tlv_tag_t asn_DEF_RoadWorksContainerExtended_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RoadWorksContainerExtended_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* lightBarSirenInUse */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* closedLanes */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* restriction */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* speedLimit */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* incidentIndication */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* recommendedPath */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* startingPointSpeedLimit */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* trafficFlowRule */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* referenceDenms */ +}; +asn_SEQUENCE_specifics_t asn_SPC_RoadWorksContainerExtended_specs_1 = { + sizeof(struct RoadWorksContainerExtended), + offsetof(struct RoadWorksContainerExtended, _asn_ctx), + asn_MAP_RoadWorksContainerExtended_tag2el_1, + 9, /* Count of tags in the map */ + asn_MAP_RoadWorksContainerExtended_oms_1, /* Optional members */ + 9, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_RoadWorksContainerExtended = { + "RoadWorksContainerExtended", + "RoadWorksContainerExtended", + &asn_OP_SEQUENCE, + asn_DEF_RoadWorksContainerExtended_tags_1, + sizeof(asn_DEF_RoadWorksContainerExtended_tags_1) + /sizeof(asn_DEF_RoadWorksContainerExtended_tags_1[0]), /* 1 */ + asn_DEF_RoadWorksContainerExtended_tags_1, /* Same as above */ + sizeof(asn_DEF_RoadWorksContainerExtended_tags_1) + /sizeof(asn_DEF_RoadWorksContainerExtended_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_RoadWorksContainerExtended_1, + 9, /* Elements count */ + &asn_SPC_RoadWorksContainerExtended_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/RoadWorksContainerExtended.h b/vanetza/asn1/its2/RoadWorksContainerExtended.h new file mode 100644 index 000000000..ee084b591 --- /dev/null +++ b/vanetza/asn1/its2/RoadWorksContainerExtended.h @@ -0,0 +1,66 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "DENM-PDU-Description" + * found in "asn1/TS103831v211-DENM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _RoadWorksContainerExtended_H_ +#define _RoadWorksContainerExtended_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "LightBarSirenInUse.h" +#include "SpeedLimit.h" +#include "TrafficRule.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct ClosedLanes; +struct RestrictedTypes; +struct CauseCodeV2; +struct ItineraryPath; +struct DeltaReferencePosition; +struct ActionIdList; + +/* RoadWorksContainerExtended */ +typedef struct RoadWorksContainerExtended { + LightBarSirenInUse_t *lightBarSirenInUse; /* OPTIONAL */ + struct ClosedLanes *closedLanes; /* OPTIONAL */ + struct RestrictedTypes *restriction; /* OPTIONAL */ + SpeedLimit_t *speedLimit; /* OPTIONAL */ + struct CauseCodeV2 *incidentIndication; /* OPTIONAL */ + struct ItineraryPath *recommendedPath; /* OPTIONAL */ + struct DeltaReferencePosition *startingPointSpeedLimit; /* OPTIONAL */ + TrafficRule_t *trafficFlowRule; /* OPTIONAL */ + struct ActionIdList *referenceDenms; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RoadWorksContainerExtended_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RoadWorksContainerExtended; +extern asn_SEQUENCE_specifics_t asn_SPC_RoadWorksContainerExtended_specs_1; +extern asn_TYPE_member_t asn_MBR_RoadWorksContainerExtended_1[9]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "ClosedLanes.h" +#include "RestrictedTypes.h" +#include "CauseCodeV2.h" +#include "ItineraryPath.h" +#include "DeltaReferencePosition.h" +#include "ActionIdList.h" + +#endif /* _RoadWorksContainerExtended_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/RoadworksSubCauseCode.c b/vanetza/asn1/its2/RoadworksSubCauseCode.c new file mode 100644 index 000000000..7e17ac152 --- /dev/null +++ b/vanetza/asn1/its2/RoadworksSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "RoadworksSubCauseCode.h" + +int +RoadworksSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_RoadworksSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_RoadworksSubCauseCode_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_RoadworksSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_RoadworksSubCauseCode = { + "RoadworksSubCauseCode", + "RoadworksSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_RoadworksSubCauseCode_tags_1, + sizeof(asn_DEF_RoadworksSubCauseCode_tags_1) + /sizeof(asn_DEF_RoadworksSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_RoadworksSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_RoadworksSubCauseCode_tags_1) + /sizeof(asn_DEF_RoadworksSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_RoadworksSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_RoadworksSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + RoadworksSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/RoadworksSubCauseCode.h b/vanetza/asn1/its2/RoadworksSubCauseCode.h new file mode 100644 index 000000000..1dbd9db5b --- /dev/null +++ b/vanetza/asn1/its2/RoadworksSubCauseCode.h @@ -0,0 +1,58 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _RoadworksSubCauseCode_H_ +#define _RoadworksSubCauseCode_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum RoadworksSubCauseCode { + RoadworksSubCauseCode_unavailable = 0, + RoadworksSubCauseCode_majorRoadworks = 1, + RoadworksSubCauseCode_roadMarkingWork = 2, + RoadworksSubCauseCode_slowMovingRoadMaintenance = 3, + RoadworksSubCauseCode_shortTermStationaryRoadworks = 4, + RoadworksSubCauseCode_streetCleaning = 5, + RoadworksSubCauseCode_winterService = 6 +} e_RoadworksSubCauseCode; + +/* RoadworksSubCauseCode */ +typedef long RoadworksSubCauseCode_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_RoadworksSubCauseCode_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_RoadworksSubCauseCode; +asn_struct_free_f RoadworksSubCauseCode_free; +asn_struct_print_f RoadworksSubCauseCode_print; +asn_constr_check_f RoadworksSubCauseCode_constraint; +ber_type_decoder_f RoadworksSubCauseCode_decode_ber; +der_type_encoder_f RoadworksSubCauseCode_encode_der; +xer_type_decoder_f RoadworksSubCauseCode_decode_xer; +xer_type_encoder_f RoadworksSubCauseCode_encode_xer; +jer_type_encoder_f RoadworksSubCauseCode_encode_jer; +oer_type_decoder_f RoadworksSubCauseCode_decode_oer; +oer_type_encoder_f RoadworksSubCauseCode_encode_oer; +per_type_decoder_f RoadworksSubCauseCode_decode_uper; +per_type_encoder_f RoadworksSubCauseCode_encode_uper; +per_type_decoder_f RoadworksSubCauseCode_decode_aper; +per_type_encoder_f RoadworksSubCauseCode_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _RoadworksSubCauseCode_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/SafeDistanceIndication.c b/vanetza/asn1/its2/SafeDistanceIndication.c new file mode 100644 index 000000000..594649b67 --- /dev/null +++ b/vanetza/asn1/its2/SafeDistanceIndication.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SafeDistanceIndication.h" + +asn_TYPE_member_t asn_MBR_SafeDistanceIndication_1[] = { + { ATF_POINTER, 1, offsetof(struct SafeDistanceIndication, subjectStation), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StationId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "subjectStation" + }, + { ATF_NOFLAGS, 0, offsetof(struct SafeDistanceIndication, safeDistanceIndicator), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SafeDistanceIndicator, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "safeDistanceIndicator" + }, + { ATF_POINTER, 1, offsetof(struct SafeDistanceIndication, timeToCollision), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DeltaTimeTenthOfSecond, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "timeToCollision" + }, +}; +static const int asn_MAP_SafeDistanceIndication_oms_1[] = { 0, 2 }; +static const ber_tlv_tag_t asn_DEF_SafeDistanceIndication_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SafeDistanceIndication_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* subjectStation */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* safeDistanceIndicator */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* timeToCollision */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SafeDistanceIndication_specs_1 = { + sizeof(struct SafeDistanceIndication), + offsetof(struct SafeDistanceIndication, _asn_ctx), + asn_MAP_SafeDistanceIndication_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_SafeDistanceIndication_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SafeDistanceIndication = { + "SafeDistanceIndication", + "SafeDistanceIndication", + &asn_OP_SEQUENCE, + asn_DEF_SafeDistanceIndication_tags_1, + sizeof(asn_DEF_SafeDistanceIndication_tags_1) + /sizeof(asn_DEF_SafeDistanceIndication_tags_1[0]), /* 1 */ + asn_DEF_SafeDistanceIndication_tags_1, /* Same as above */ + sizeof(asn_DEF_SafeDistanceIndication_tags_1) + /sizeof(asn_DEF_SafeDistanceIndication_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SafeDistanceIndication_1, + 3, /* Elements count */ + &asn_SPC_SafeDistanceIndication_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/SafeDistanceIndication.h b/vanetza/asn1/its2/SafeDistanceIndication.h new file mode 100644 index 000000000..88fad9230 --- /dev/null +++ b/vanetza/asn1/its2/SafeDistanceIndication.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _SafeDistanceIndication_H_ +#define _SafeDistanceIndication_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "StationId.h" +#include "SafeDistanceIndicator.h" +#include "DeltaTimeTenthOfSecond.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* SafeDistanceIndication */ +typedef struct SafeDistanceIndication { + StationId_t *subjectStation; /* OPTIONAL */ + SafeDistanceIndicator_t safeDistanceIndicator; + DeltaTimeTenthOfSecond_t *timeToCollision; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SafeDistanceIndication_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SafeDistanceIndication; +extern asn_SEQUENCE_specifics_t asn_SPC_SafeDistanceIndication_specs_1; +extern asn_TYPE_member_t asn_MBR_SafeDistanceIndication_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _SafeDistanceIndication_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/SafeDistanceIndicator.c b/vanetza/asn1/its2/SafeDistanceIndicator.c new file mode 100644 index 000000000..ff287fb6c --- /dev/null +++ b/vanetza/asn1/its2/SafeDistanceIndicator.c @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SafeDistanceIndicator.h" + +/* + * This type is implemented using BOOLEAN, + * so here we adjust the DEF accordingly. + */ +static const ber_tlv_tag_t asn_DEF_SafeDistanceIndicator_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_SafeDistanceIndicator = { + "SafeDistanceIndicator", + "SafeDistanceIndicator", + &asn_OP_BOOLEAN, + asn_DEF_SafeDistanceIndicator_tags_1, + sizeof(asn_DEF_SafeDistanceIndicator_tags_1) + /sizeof(asn_DEF_SafeDistanceIndicator_tags_1[0]), /* 1 */ + asn_DEF_SafeDistanceIndicator_tags_1, /* Same as above */ + sizeof(asn_DEF_SafeDistanceIndicator_tags_1) + /sizeof(asn_DEF_SafeDistanceIndicator_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + BOOLEAN_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/SafeDistanceIndicator.h b/vanetza/asn1/its2/SafeDistanceIndicator.h new file mode 100644 index 000000000..ff386a5cb --- /dev/null +++ b/vanetza/asn1/its2/SafeDistanceIndicator.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _SafeDistanceIndicator_H_ +#define _SafeDistanceIndicator_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "BOOLEAN.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* SafeDistanceIndicator */ +typedef BOOLEAN_t SafeDistanceIndicator_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SafeDistanceIndicator; +asn_struct_free_f SafeDistanceIndicator_free; +asn_struct_print_f SafeDistanceIndicator_print; +asn_constr_check_f SafeDistanceIndicator_constraint; +ber_type_decoder_f SafeDistanceIndicator_decode_ber; +der_type_encoder_f SafeDistanceIndicator_encode_der; +xer_type_decoder_f SafeDistanceIndicator_decode_xer; +xer_type_encoder_f SafeDistanceIndicator_encode_xer; +jer_type_encoder_f SafeDistanceIndicator_encode_jer; +oer_type_decoder_f SafeDistanceIndicator_decode_oer; +oer_type_encoder_f SafeDistanceIndicator_encode_oer; +per_type_decoder_f SafeDistanceIndicator_decode_uper; +per_type_encoder_f SafeDistanceIndicator_encode_uper; +per_type_decoder_f SafeDistanceIndicator_decode_aper; +per_type_encoder_f SafeDistanceIndicator_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _SafeDistanceIndicator_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/SafetyCarContainer.c b/vanetza/asn1/its2/SafetyCarContainer.c new file mode 100644 index 000000000..31ae2e308 --- /dev/null +++ b/vanetza/asn1/its2/SafetyCarContainer.c @@ -0,0 +1,137 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/TS103900v211-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SafetyCarContainer.h" + +asn_TYPE_member_t asn_MBR_SafetyCarContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SafetyCarContainer, lightBarSirenInUse), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LightBarSirenInUse, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lightBarSirenInUse" + }, + { ATF_POINTER, 3, offsetof(struct SafetyCarContainer, incidentIndication), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CauseCodeV2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "incidentIndication" + }, + { ATF_POINTER, 2, offsetof(struct SafetyCarContainer, trafficRule), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TrafficRule, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "trafficRule" + }, + { ATF_POINTER, 1, offsetof(struct SafetyCarContainer, speedLimit), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SpeedLimit, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "speedLimit" + }, +}; +static const int asn_MAP_SafetyCarContainer_oms_1[] = { 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_SafetyCarContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SafetyCarContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* lightBarSirenInUse */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* incidentIndication */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* trafficRule */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* speedLimit */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SafetyCarContainer_specs_1 = { + sizeof(struct SafetyCarContainer), + offsetof(struct SafetyCarContainer, _asn_ctx), + asn_MAP_SafetyCarContainer_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_SafetyCarContainer_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SafetyCarContainer = { + "SafetyCarContainer", + "SafetyCarContainer", + &asn_OP_SEQUENCE, + asn_DEF_SafetyCarContainer_tags_1, + sizeof(asn_DEF_SafetyCarContainer_tags_1) + /sizeof(asn_DEF_SafetyCarContainer_tags_1[0]), /* 1 */ + asn_DEF_SafetyCarContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_SafetyCarContainer_tags_1) + /sizeof(asn_DEF_SafetyCarContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SafetyCarContainer_1, + 4, /* Elements count */ + &asn_SPC_SafetyCarContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/SafetyCarContainer.h b/vanetza/asn1/its2/SafetyCarContainer.h new file mode 100644 index 000000000..de4e44dc6 --- /dev/null +++ b/vanetza/asn1/its2/SafetyCarContainer.h @@ -0,0 +1,51 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/TS103900v211-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _SafetyCarContainer_H_ +#define _SafetyCarContainer_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "LightBarSirenInUse.h" +#include "TrafficRule.h" +#include "SpeedLimit.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct CauseCodeV2; + +/* SafetyCarContainer */ +typedef struct SafetyCarContainer { + LightBarSirenInUse_t lightBarSirenInUse; + struct CauseCodeV2 *incidentIndication; /* OPTIONAL */ + TrafficRule_t *trafficRule; /* OPTIONAL */ + SpeedLimit_t *speedLimit; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SafetyCarContainer_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SafetyCarContainer; +extern asn_SEQUENCE_specifics_t asn_SPC_SafetyCarContainer_specs_1; +extern asn_TYPE_member_t asn_MBR_SafetyCarContainer_1[4]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "CauseCodeV2.h" + +#endif /* _SafetyCarContainer_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/SemiAxisLength.c b/vanetza/asn1/its2/SemiAxisLength.c new file mode 100644 index 000000000..986a1d319 --- /dev/null +++ b/vanetza/asn1/its2/SemiAxisLength.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SemiAxisLength.h" + +int +SemiAxisLength_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 <= 4095L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SemiAxisLength_constr_1 CC_NOTUSED = { + { 2, 1 } /* (0..4095) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SemiAxisLength_constr_1 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 ber_tlv_tag_t asn_DEF_SemiAxisLength_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_SemiAxisLength = { + "SemiAxisLength", + "SemiAxisLength", + &asn_OP_NativeInteger, + asn_DEF_SemiAxisLength_tags_1, + sizeof(asn_DEF_SemiAxisLength_tags_1) + /sizeof(asn_DEF_SemiAxisLength_tags_1[0]), /* 1 */ + asn_DEF_SemiAxisLength_tags_1, /* Same as above */ + sizeof(asn_DEF_SemiAxisLength_tags_1) + /sizeof(asn_DEF_SemiAxisLength_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_SemiAxisLength_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SemiAxisLength_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SemiAxisLength_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/SemiAxisLength.h b/vanetza/asn1/its2/SemiAxisLength.h new file mode 100644 index 000000000..71e1ffae6 --- /dev/null +++ b/vanetza/asn1/its2/SemiAxisLength.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _SemiAxisLength_H_ +#define _SemiAxisLength_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum SemiAxisLength { + SemiAxisLength_doNotUse = 0, + SemiAxisLength_outOfRange = 4094, + SemiAxisLength_unavailable = 4095 +} e_SemiAxisLength; + +/* SemiAxisLength */ +typedef long SemiAxisLength_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_SemiAxisLength_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_SemiAxisLength; +asn_struct_free_f SemiAxisLength_free; +asn_struct_print_f SemiAxisLength_print; +asn_constr_check_f SemiAxisLength_constraint; +ber_type_decoder_f SemiAxisLength_decode_ber; +der_type_encoder_f SemiAxisLength_encode_der; +xer_type_decoder_f SemiAxisLength_decode_xer; +xer_type_encoder_f SemiAxisLength_encode_xer; +jer_type_encoder_f SemiAxisLength_encode_jer; +oer_type_decoder_f SemiAxisLength_decode_oer; +oer_type_encoder_f SemiAxisLength_encode_oer; +per_type_decoder_f SemiAxisLength_decode_uper; +per_type_encoder_f SemiAxisLength_encode_uper; +per_type_decoder_f SemiAxisLength_decode_aper; +per_type_encoder_f SemiAxisLength_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _SemiAxisLength_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/SensorInformation.c b/vanetza/asn1/its2/SensorInformation.c new file mode 100644 index 000000000..0fd8b5fc8 --- /dev/null +++ b/vanetza/asn1/its2/SensorInformation.c @@ -0,0 +1,158 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-SensorInformationContainer" + * found in "asn1/TS103324v211-CPM-SensorInformationContainer.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SensorInformation.h" + +asn_TYPE_member_t asn_MBR_SensorInformation_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SensorInformation, sensorId), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Identifier1B, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sensorId" + }, + { ATF_NOFLAGS, 0, offsetof(struct SensorInformation, sensorType), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SensorType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sensorType" + }, + { ATF_POINTER, 2, offsetof(struct SensorInformation, perceptionRegionShape), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_Shape, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "perceptionRegionShape" + }, + { ATF_POINTER, 1, offsetof(struct SensorInformation, perceptionRegionConfidence), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ConfidenceLevel, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "perceptionRegionConfidence" + }, + { ATF_NOFLAGS, 0, offsetof(struct SensorInformation, shadowingApplies), + (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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "shadowingApplies" + }, +}; +static const int asn_MAP_SensorInformation_oms_1[] = { 2, 3 }; +static const ber_tlv_tag_t asn_DEF_SensorInformation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SensorInformation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sensorId */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sensorType */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* perceptionRegionShape */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* perceptionRegionConfidence */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* shadowingApplies */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SensorInformation_specs_1 = { + sizeof(struct SensorInformation), + offsetof(struct SensorInformation, _asn_ctx), + asn_MAP_SensorInformation_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_SensorInformation_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 5, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SensorInformation = { + "SensorInformation", + "SensorInformation", + &asn_OP_SEQUENCE, + asn_DEF_SensorInformation_tags_1, + sizeof(asn_DEF_SensorInformation_tags_1) + /sizeof(asn_DEF_SensorInformation_tags_1[0]), /* 1 */ + asn_DEF_SensorInformation_tags_1, /* Same as above */ + sizeof(asn_DEF_SensorInformation_tags_1) + /sizeof(asn_DEF_SensorInformation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SensorInformation_1, + 5, /* Elements count */ + &asn_SPC_SensorInformation_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/SensorInformation.h b/vanetza/asn1/its2/SensorInformation.h new file mode 100644 index 000000000..8da39643d --- /dev/null +++ b/vanetza/asn1/its2/SensorInformation.h @@ -0,0 +1,57 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-SensorInformationContainer" + * found in "asn1/TS103324v211-CPM-SensorInformationContainer.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _SensorInformation_H_ +#define _SensorInformation_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "Identifier1B.h" +#include "SensorType.h" +#include "ConfidenceLevel.h" +#include "BOOLEAN.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct Shape; + +/* SensorInformation */ +typedef struct SensorInformation { + Identifier1B_t sensorId; + SensorType_t sensorType; + struct Shape *perceptionRegionShape; /* OPTIONAL */ + ConfidenceLevel_t *perceptionRegionConfidence; /* OPTIONAL */ + BOOLEAN_t shadowingApplies; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SensorInformation_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SensorInformation; +extern asn_SEQUENCE_specifics_t asn_SPC_SensorInformation_specs_1; +extern asn_TYPE_member_t asn_MBR_SensorInformation_1[5]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "Shape.h" + +#endif /* _SensorInformation_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/SensorInformationContainer.c b/vanetza/asn1/its2/SensorInformationContainer.c new file mode 100644 index 000000000..992ba5ed7 --- /dev/null +++ b/vanetza/asn1/its2/SensorInformationContainer.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-SensorInformationContainer" + * found in "asn1/TS103324v211-CPM-SensorInformationContainer.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SensorInformationContainer.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SensorInformationContainer_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SensorInformationContainer_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 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_SensorInformationContainer_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_SensorInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_SensorInformationContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_SensorInformationContainer_specs_1 = { + sizeof(struct SensorInformationContainer), + offsetof(struct SensorInformationContainer, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_SensorInformationContainer = { + "SensorInformationContainer", + "SensorInformationContainer", + &asn_OP_SEQUENCE_OF, + asn_DEF_SensorInformationContainer_tags_1, + sizeof(asn_DEF_SensorInformationContainer_tags_1) + /sizeof(asn_DEF_SensorInformationContainer_tags_1[0]), /* 1 */ + asn_DEF_SensorInformationContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_SensorInformationContainer_tags_1) + /sizeof(asn_DEF_SensorInformationContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_SensorInformationContainer_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SensorInformationContainer_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_SensorInformationContainer_1, + 1, /* Single element */ + &asn_SPC_SensorInformationContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/SensorInformationContainer.h b/vanetza/asn1/its2/SensorInformationContainer.h new file mode 100644 index 000000000..dcf372e5a --- /dev/null +++ b/vanetza/asn1/its2/SensorInformationContainer.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-SensorInformationContainer" + * found in "asn1/TS103324v211-CPM-SensorInformationContainer.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _SensorInformationContainer_H_ +#define _SensorInformationContainer_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct SensorInformation; + +/* SensorInformationContainer */ +typedef struct SensorInformationContainer { + A_SEQUENCE_OF(struct SensorInformation) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SensorInformationContainer_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SensorInformationContainer; +extern asn_SET_OF_specifics_t asn_SPC_SensorInformationContainer_specs_1; +extern asn_TYPE_member_t asn_MBR_SensorInformationContainer_1[1]; +extern asn_per_constraints_t asn_PER_type_SensorInformationContainer_constr_1; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "SensorInformation.h" + +#endif /* _SensorInformationContainer_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/SensorType.c b/vanetza/asn1/its2/SensorType.c new file mode 100644 index 000000000..7e6ec3c92 --- /dev/null +++ b/vanetza/asn1/its2/SensorType.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SensorType.h" + +int +SensorType_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 <= 31L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SensorType_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..31) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SensorType_constr_1 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 ber_tlv_tag_t asn_DEF_SensorType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_SensorType = { + "SensorType", + "SensorType", + &asn_OP_NativeInteger, + asn_DEF_SensorType_tags_1, + sizeof(asn_DEF_SensorType_tags_1) + /sizeof(asn_DEF_SensorType_tags_1[0]), /* 1 */ + asn_DEF_SensorType_tags_1, /* Same as above */ + sizeof(asn_DEF_SensorType_tags_1) + /sizeof(asn_DEF_SensorType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_SensorType_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SensorType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SensorType_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/SensorType.h b/vanetza/asn1/its2/SensorType.h new file mode 100644 index 000000000..3c132782d --- /dev/null +++ b/vanetza/asn1/its2/SensorType.h @@ -0,0 +1,65 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _SensorType_H_ +#define _SensorType_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum SensorType { + SensorType_undefined = 0, + SensorType_radar = 1, + SensorType_lidar = 2, + SensorType_monovideo = 3, + SensorType_stereovision = 4, + SensorType_nightvision = 5, + SensorType_ultrasonic = 6, + SensorType_pmd = 7, + SensorType_inductionLoop = 8, + SensorType_sphericalCamera = 9, + SensorType_uwb = 10, + SensorType_acoustic = 11, + SensorType_localAggregation = 12, + SensorType_itsAggregation = 13 +} e_SensorType; + +/* SensorType */ +typedef long SensorType_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_SensorType_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_SensorType; +asn_struct_free_f SensorType_free; +asn_struct_print_f SensorType_print; +asn_constr_check_f SensorType_constraint; +ber_type_decoder_f SensorType_decode_ber; +der_type_encoder_f SensorType_encode_der; +xer_type_decoder_f SensorType_decode_xer; +xer_type_encoder_f SensorType_encode_xer; +jer_type_encoder_f SensorType_encode_jer; +oer_type_decoder_f SensorType_decode_oer; +oer_type_encoder_f SensorType_encode_oer; +per_type_decoder_f SensorType_decode_uper; +per_type_encoder_f SensorType_encode_uper; +per_type_decoder_f SensorType_decode_aper; +per_type_encoder_f SensorType_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _SensorType_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/SensorTypes.c b/vanetza/asn1/its2/SensorTypes.c new file mode 100644 index 000000000..22990532e --- /dev/null +++ b/vanetza/asn1/its2/SensorTypes.c @@ -0,0 +1,89 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SensorTypes.h" + +int +SensorTypes_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SensorTypes_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SensorTypes_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 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_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_SensorTypes_constr_1 CC_NOTUSED = { + -1}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_SensorTypes_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_SensorTypes = { + "SensorTypes", + "SensorTypes", + &asn_OP_BIT_STRING, + asn_DEF_SensorTypes_tags_1, + sizeof(asn_DEF_SensorTypes_tags_1) + /sizeof(asn_DEF_SensorTypes_tags_1[0]), /* 1 */ + asn_DEF_SensorTypes_tags_1, /* Same as above */ + sizeof(asn_DEF_SensorTypes_tags_1) + /sizeof(asn_DEF_SensorTypes_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_SensorTypes_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SensorTypes_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_SensorTypes_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SensorTypes_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/SensorTypes.h b/vanetza/asn1/its2/SensorTypes.h new file mode 100644 index 000000000..041144d1f --- /dev/null +++ b/vanetza/asn1/its2/SensorTypes.h @@ -0,0 +1,65 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _SensorTypes_H_ +#define _SensorTypes_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "BIT_STRING.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum SensorTypes { + SensorTypes_undefined = 0, + SensorTypes_radar = 1, + SensorTypes_lidar = 2, + SensorTypes_monovideo = 3, + SensorTypes_stereovision = 4, + SensorTypes_nightvision = 5, + SensorTypes_ultrasonic = 6, + SensorTypes_pmd = 7, + SensorTypes_inductionLoop = 8, + SensorTypes_sphericalCamera = 9, + SensorTypes_uwb = 10, + SensorTypes_acoustic = 11, + SensorTypes_localAggregation = 12, + SensorTypes_itsAggregation = 13 +} e_SensorTypes; + +/* SensorTypes */ +typedef BIT_STRING_t SensorTypes_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_SensorTypes_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_SensorTypes; +asn_struct_free_f SensorTypes_free; +asn_struct_print_f SensorTypes_print; +asn_constr_check_f SensorTypes_constraint; +ber_type_decoder_f SensorTypes_decode_ber; +der_type_encoder_f SensorTypes_encode_der; +xer_type_decoder_f SensorTypes_decode_xer; +xer_type_encoder_f SensorTypes_encode_xer; +jer_type_encoder_f SensorTypes_encode_jer; +oer_type_decoder_f SensorTypes_decode_oer; +oer_type_encoder_f SensorTypes_encode_oer; +per_type_decoder_f SensorTypes_decode_uper; +per_type_encoder_f SensorTypes_encode_uper; +per_type_decoder_f SensorTypes_decode_aper; +per_type_encoder_f SensorTypes_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _SensorTypes_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/SequenceNumber.c b/vanetza/asn1/its2/SequenceNumber.c new file mode 100644 index 000000000..c4a0cbfbc --- /dev/null +++ b/vanetza/asn1/its2/SequenceNumber.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#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 <= 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SequenceNumber_constr_1 CC_NOTUSED = { + { 2, 1 } /* (0..65535) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#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, 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_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) + &asn_OER_type_SequenceNumber_constr_1, +#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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SequenceNumber_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/SequenceNumber.h b/vanetza/asn1/its2/SequenceNumber.h new file mode 100644 index 000000000..9cdec6b8b --- /dev/null +++ b/vanetza/asn1/its2/SequenceNumber.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _SequenceNumber_H_ +#define _SequenceNumber_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#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; +jer_type_encoder_f SequenceNumber_encode_jer; +oer_type_decoder_f SequenceNumber_decode_oer; +oer_type_encoder_f SequenceNumber_encode_oer; +per_type_decoder_f SequenceNumber_decode_uper; +per_type_encoder_f SequenceNumber_encode_uper; +per_type_decoder_f SequenceNumber_decode_aper; +per_type_encoder_f SequenceNumber_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _SequenceNumber_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/SequenceOfCartesianPosition3d.c b/vanetza/asn1/its2/SequenceOfCartesianPosition3d.c new file mode 100644 index 000000000..20ccecf41 --- /dev/null +++ b/vanetza/asn1/its2/SequenceOfCartesianPosition3d.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SequenceOfCartesianPosition3d.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SequenceOfCartesianPosition3d_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SequenceOfCartesianPosition3d_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 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_SequenceOfCartesianPosition3d_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_CartesianPosition3d, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_SequenceOfCartesianPosition3d_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_SequenceOfCartesianPosition3d_specs_1 = { + sizeof(struct SequenceOfCartesianPosition3d), + offsetof(struct SequenceOfCartesianPosition3d, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_SequenceOfCartesianPosition3d = { + "SequenceOfCartesianPosition3d", + "SequenceOfCartesianPosition3d", + &asn_OP_SEQUENCE_OF, + asn_DEF_SequenceOfCartesianPosition3d_tags_1, + sizeof(asn_DEF_SequenceOfCartesianPosition3d_tags_1) + /sizeof(asn_DEF_SequenceOfCartesianPosition3d_tags_1[0]), /* 1 */ + asn_DEF_SequenceOfCartesianPosition3d_tags_1, /* Same as above */ + sizeof(asn_DEF_SequenceOfCartesianPosition3d_tags_1) + /sizeof(asn_DEF_SequenceOfCartesianPosition3d_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_SequenceOfCartesianPosition3d_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SequenceOfCartesianPosition3d_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_SequenceOfCartesianPosition3d_1, + 1, /* Single element */ + &asn_SPC_SequenceOfCartesianPosition3d_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/SequenceOfCartesianPosition3d.h b/vanetza/asn1/its2/SequenceOfCartesianPosition3d.h new file mode 100644 index 000000000..9422c4092 --- /dev/null +++ b/vanetza/asn1/its2/SequenceOfCartesianPosition3d.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _SequenceOfCartesianPosition3d_H_ +#define _SequenceOfCartesianPosition3d_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct CartesianPosition3d; + +/* SequenceOfCartesianPosition3d */ +typedef struct SequenceOfCartesianPosition3d { + A_SEQUENCE_OF(struct CartesianPosition3d) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SequenceOfCartesianPosition3d_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SequenceOfCartesianPosition3d; +extern asn_SET_OF_specifics_t asn_SPC_SequenceOfCartesianPosition3d_specs_1; +extern asn_TYPE_member_t asn_MBR_SequenceOfCartesianPosition3d_1[1]; +extern asn_per_constraints_t asn_PER_type_SequenceOfCartesianPosition3d_constr_1; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "CartesianPosition3d.h" + +#endif /* _SequenceOfCartesianPosition3d_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/SequenceOfIdentifier1B.c b/vanetza/asn1/its2/SequenceOfIdentifier1B.c new file mode 100644 index 000000000..aebaa1bd3 --- /dev/null +++ b/vanetza/asn1/its2/SequenceOfIdentifier1B.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SequenceOfIdentifier1B.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SequenceOfIdentifier1B_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SequenceOfIdentifier1B_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 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_SequenceOfIdentifier1B_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), + 0, + &asn_DEF_Identifier1B, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_SequenceOfIdentifier1B_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_SequenceOfIdentifier1B_specs_1 = { + sizeof(struct SequenceOfIdentifier1B), + offsetof(struct SequenceOfIdentifier1B, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_SequenceOfIdentifier1B = { + "SequenceOfIdentifier1B", + "SequenceOfIdentifier1B", + &asn_OP_SEQUENCE_OF, + asn_DEF_SequenceOfIdentifier1B_tags_1, + sizeof(asn_DEF_SequenceOfIdentifier1B_tags_1) + /sizeof(asn_DEF_SequenceOfIdentifier1B_tags_1[0]), /* 1 */ + asn_DEF_SequenceOfIdentifier1B_tags_1, /* Same as above */ + sizeof(asn_DEF_SequenceOfIdentifier1B_tags_1) + /sizeof(asn_DEF_SequenceOfIdentifier1B_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_SequenceOfIdentifier1B_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SequenceOfIdentifier1B_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_SequenceOfIdentifier1B_1, + 1, /* Single element */ + &asn_SPC_SequenceOfIdentifier1B_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/SequenceOfIdentifier1B.h b/vanetza/asn1/its2/SequenceOfIdentifier1B.h new file mode 100644 index 000000000..3f564dd51 --- /dev/null +++ b/vanetza/asn1/its2/SequenceOfIdentifier1B.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _SequenceOfIdentifier1B_H_ +#define _SequenceOfIdentifier1B_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "Identifier1B.h" +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* SequenceOfIdentifier1B */ +typedef struct SequenceOfIdentifier1B { + A_SEQUENCE_OF(Identifier1B_t) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SequenceOfIdentifier1B_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SequenceOfIdentifier1B; +extern asn_SET_OF_specifics_t asn_SPC_SequenceOfIdentifier1B_specs_1; +extern asn_TYPE_member_t asn_MBR_SequenceOfIdentifier1B_1[1]; +extern asn_per_constraints_t asn_PER_type_SequenceOfIdentifier1B_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _SequenceOfIdentifier1B_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/SequenceOfSafeDistanceIndication.c b/vanetza/asn1/its2/SequenceOfSafeDistanceIndication.c new file mode 100644 index 000000000..8691908a3 --- /dev/null +++ b/vanetza/asn1/its2/SequenceOfSafeDistanceIndication.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SequenceOfSafeDistanceIndication.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SequenceOfSafeDistanceIndication_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SequenceOfSafeDistanceIndication_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 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_SequenceOfSafeDistanceIndication_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_SafeDistanceIndication, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_SequenceOfSafeDistanceIndication_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_SequenceOfSafeDistanceIndication_specs_1 = { + sizeof(struct SequenceOfSafeDistanceIndication), + offsetof(struct SequenceOfSafeDistanceIndication, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_SequenceOfSafeDistanceIndication = { + "SequenceOfSafeDistanceIndication", + "SequenceOfSafeDistanceIndication", + &asn_OP_SEQUENCE_OF, + asn_DEF_SequenceOfSafeDistanceIndication_tags_1, + sizeof(asn_DEF_SequenceOfSafeDistanceIndication_tags_1) + /sizeof(asn_DEF_SequenceOfSafeDistanceIndication_tags_1[0]), /* 1 */ + asn_DEF_SequenceOfSafeDistanceIndication_tags_1, /* Same as above */ + sizeof(asn_DEF_SequenceOfSafeDistanceIndication_tags_1) + /sizeof(asn_DEF_SequenceOfSafeDistanceIndication_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_SequenceOfSafeDistanceIndication_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SequenceOfSafeDistanceIndication_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_SequenceOfSafeDistanceIndication_1, + 1, /* Single element */ + &asn_SPC_SequenceOfSafeDistanceIndication_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/SequenceOfSafeDistanceIndication.h b/vanetza/asn1/its2/SequenceOfSafeDistanceIndication.h new file mode 100644 index 000000000..a49fecdb4 --- /dev/null +++ b/vanetza/asn1/its2/SequenceOfSafeDistanceIndication.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _SequenceOfSafeDistanceIndication_H_ +#define _SequenceOfSafeDistanceIndication_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct SafeDistanceIndication; + +/* SequenceOfSafeDistanceIndication */ +typedef struct SequenceOfSafeDistanceIndication { + A_SEQUENCE_OF(struct SafeDistanceIndication) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SequenceOfSafeDistanceIndication_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SequenceOfSafeDistanceIndication; +extern asn_SET_OF_specifics_t asn_SPC_SequenceOfSafeDistanceIndication_specs_1; +extern asn_TYPE_member_t asn_MBR_SequenceOfSafeDistanceIndication_1[1]; +extern asn_per_constraints_t asn_PER_type_SequenceOfSafeDistanceIndication_constr_1; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "SafeDistanceIndication.h" + +#endif /* _SequenceOfSafeDistanceIndication_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/SequenceOfTrajectoryInterceptionIndication.c b/vanetza/asn1/its2/SequenceOfTrajectoryInterceptionIndication.c new file mode 100644 index 000000000..9fa8b261c --- /dev/null +++ b/vanetza/asn1/its2/SequenceOfTrajectoryInterceptionIndication.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SequenceOfTrajectoryInterceptionIndication.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SequenceOfTrajectoryInterceptionIndication_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SequenceOfTrajectoryInterceptionIndication_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 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_SequenceOfTrajectoryInterceptionIndication_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_TrajectoryInterceptionIndication, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_SequenceOfTrajectoryInterceptionIndication_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_SequenceOfTrajectoryInterceptionIndication_specs_1 = { + sizeof(struct SequenceOfTrajectoryInterceptionIndication), + offsetof(struct SequenceOfTrajectoryInterceptionIndication, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_SequenceOfTrajectoryInterceptionIndication = { + "SequenceOfTrajectoryInterceptionIndication", + "SequenceOfTrajectoryInterceptionIndication", + &asn_OP_SEQUENCE_OF, + asn_DEF_SequenceOfTrajectoryInterceptionIndication_tags_1, + sizeof(asn_DEF_SequenceOfTrajectoryInterceptionIndication_tags_1) + /sizeof(asn_DEF_SequenceOfTrajectoryInterceptionIndication_tags_1[0]), /* 1 */ + asn_DEF_SequenceOfTrajectoryInterceptionIndication_tags_1, /* Same as above */ + sizeof(asn_DEF_SequenceOfTrajectoryInterceptionIndication_tags_1) + /sizeof(asn_DEF_SequenceOfTrajectoryInterceptionIndication_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_SequenceOfTrajectoryInterceptionIndication_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SequenceOfTrajectoryInterceptionIndication_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_SequenceOfTrajectoryInterceptionIndication_1, + 1, /* Single element */ + &asn_SPC_SequenceOfTrajectoryInterceptionIndication_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/SequenceOfTrajectoryInterceptionIndication.h b/vanetza/asn1/its2/SequenceOfTrajectoryInterceptionIndication.h new file mode 100644 index 000000000..2101a05d5 --- /dev/null +++ b/vanetza/asn1/its2/SequenceOfTrajectoryInterceptionIndication.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _SequenceOfTrajectoryInterceptionIndication_H_ +#define _SequenceOfTrajectoryInterceptionIndication_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct TrajectoryInterceptionIndication; + +/* SequenceOfTrajectoryInterceptionIndication */ +typedef struct SequenceOfTrajectoryInterceptionIndication { + A_SEQUENCE_OF(struct TrajectoryInterceptionIndication) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SequenceOfTrajectoryInterceptionIndication_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SequenceOfTrajectoryInterceptionIndication; +extern asn_SET_OF_specifics_t asn_SPC_SequenceOfTrajectoryInterceptionIndication_specs_1; +extern asn_TYPE_member_t asn_MBR_SequenceOfTrajectoryInterceptionIndication_1[1]; +extern asn_per_constraints_t asn_PER_type_SequenceOfTrajectoryInterceptionIndication_constr_1; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "TrajectoryInterceptionIndication.h" + +#endif /* _SequenceOfTrajectoryInterceptionIndication_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/Shape.c b/vanetza/asn1/its2/Shape.c new file mode 100644 index 000000000..a0c223e21 --- /dev/null +++ b/vanetza/asn1/its2/Shape.c @@ -0,0 +1,186 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Shape.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_Shape_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Shape_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_Shape_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Shape, choice.rectangular), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RectangularShape, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rectangular" + }, + { ATF_NOFLAGS, 0, offsetof(struct Shape, choice.circular), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CircularShape, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "circular" + }, + { ATF_NOFLAGS, 0, offsetof(struct Shape, choice.polygonal), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PolygonalShape, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "polygonal" + }, + { ATF_NOFLAGS, 0, offsetof(struct Shape, choice.elliptical), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EllipticalShape, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "elliptical" + }, + { ATF_NOFLAGS, 0, offsetof(struct Shape, choice.radial), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RadialShape, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "radial" + }, + { ATF_NOFLAGS, 0, offsetof(struct Shape, choice.radialShapes), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RadialShapes, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "radialShapes" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_Shape_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* rectangular */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* circular */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* polygonal */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* elliptical */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* radial */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* radialShapes */ +}; +asn_CHOICE_specifics_t asn_SPC_Shape_specs_1 = { + sizeof(struct Shape), + offsetof(struct Shape, _asn_ctx), + offsetof(struct Shape, present), + sizeof(((struct Shape *)0)->present), + asn_MAP_Shape_tag2el_1, + 6, /* Count of tags in the map */ + 0, 0, + 6 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_Shape = { + "Shape", + "Shape", + &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) + &asn_OER_type_Shape_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Shape_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_Shape_1, + 6, /* Elements count */ + &asn_SPC_Shape_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/Shape.h b/vanetza/asn1/its2/Shape.h new file mode 100644 index 000000000..0c7999595 --- /dev/null +++ b/vanetza/asn1/its2/Shape.h @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _Shape_H_ +#define _Shape_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "RectangularShape.h" +#include "CircularShape.h" +#include "PolygonalShape.h" +#include "EllipticalShape.h" +#include "RadialShape.h" +#include "RadialShapes.h" +#include "constr_CHOICE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum Shape_PR { + Shape_PR_NOTHING, /* No components present */ + Shape_PR_rectangular, + Shape_PR_circular, + Shape_PR_polygonal, + Shape_PR_elliptical, + Shape_PR_radial, + Shape_PR_radialShapes + /* Extensions may appear below */ + +} Shape_PR; + +/* Shape */ +typedef struct Shape { + Shape_PR present; + union Shape_u { + RectangularShape_t rectangular; + CircularShape_t circular; + PolygonalShape_t polygonal; + EllipticalShape_t elliptical; + RadialShape_t radial; + RadialShapes_t radialShapes; + /* + * This type is extensible, + * possible extensions are below. + */ + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Shape_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Shape; +extern asn_CHOICE_specifics_t asn_SPC_Shape_specs_1; +extern asn_TYPE_member_t asn_MBR_Shape_1[6]; +extern asn_per_constraints_t asn_PER_type_Shape_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _Shape_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/SignalViolationSubCauseCode.c b/vanetza/asn1/its2/SignalViolationSubCauseCode.c new file mode 100644 index 000000000..5f92a7798 --- /dev/null +++ b/vanetza/asn1/its2/SignalViolationSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SignalViolationSubCauseCode.h" + +int +SignalViolationSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SignalViolationSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SignalViolationSubCauseCode_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_SignalViolationSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_SignalViolationSubCauseCode = { + "SignalViolationSubCauseCode", + "SignalViolationSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_SignalViolationSubCauseCode_tags_1, + sizeof(asn_DEF_SignalViolationSubCauseCode_tags_1) + /sizeof(asn_DEF_SignalViolationSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_SignalViolationSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_SignalViolationSubCauseCode_tags_1) + /sizeof(asn_DEF_SignalViolationSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_SignalViolationSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SignalViolationSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SignalViolationSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/SignalViolationSubCauseCode.h b/vanetza/asn1/its2/SignalViolationSubCauseCode.h new file mode 100644 index 000000000..cb3f56f01 --- /dev/null +++ b/vanetza/asn1/its2/SignalViolationSubCauseCode.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _SignalViolationSubCauseCode_H_ +#define _SignalViolationSubCauseCode_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum SignalViolationSubCauseCode { + SignalViolationSubCauseCode_unavailable = 0, + SignalViolationSubCauseCode_stopSignViolation = 1, + SignalViolationSubCauseCode_trafficLightViolation = 2, + SignalViolationSubCauseCode_turningRegulationViolation = 3 +} e_SignalViolationSubCauseCode; + +/* SignalViolationSubCauseCode */ +typedef long SignalViolationSubCauseCode_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_SignalViolationSubCauseCode_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_SignalViolationSubCauseCode; +asn_struct_free_f SignalViolationSubCauseCode_free; +asn_struct_print_f SignalViolationSubCauseCode_print; +asn_constr_check_f SignalViolationSubCauseCode_constraint; +ber_type_decoder_f SignalViolationSubCauseCode_decode_ber; +der_type_encoder_f SignalViolationSubCauseCode_encode_der; +xer_type_decoder_f SignalViolationSubCauseCode_decode_xer; +xer_type_encoder_f SignalViolationSubCauseCode_encode_xer; +jer_type_encoder_f SignalViolationSubCauseCode_encode_jer; +oer_type_decoder_f SignalViolationSubCauseCode_decode_oer; +oer_type_encoder_f SignalViolationSubCauseCode_encode_oer; +per_type_decoder_f SignalViolationSubCauseCode_decode_uper; +per_type_encoder_f SignalViolationSubCauseCode_encode_uper; +per_type_decoder_f SignalViolationSubCauseCode_decode_aper; +per_type_encoder_f SignalViolationSubCauseCode_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _SignalViolationSubCauseCode_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/SituationContainer.c b/vanetza/asn1/its2/SituationContainer.c new file mode 100644 index 000000000..2682ca568 --- /dev/null +++ b/vanetza/asn1/its2/SituationContainer.c @@ -0,0 +1,137 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "DENM-PDU-Description" + * found in "asn1/TS103831v211-DENM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SituationContainer.h" + +asn_TYPE_member_t asn_MBR_SituationContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SituationContainer, informationQuality), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_InformationQuality, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "informationQuality" + }, + { ATF_NOFLAGS, 0, offsetof(struct SituationContainer, eventType), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CauseCodeV2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "eventType" + }, + { ATF_POINTER, 2, offsetof(struct SituationContainer, linkedCause), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CauseCodeV2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "linkedCause" + }, + { ATF_POINTER, 1, offsetof(struct SituationContainer, eventZone), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EventZone, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "eventZone" + }, +}; +static const int asn_MAP_SituationContainer_oms_1[] = { 2, 3 }; +static const ber_tlv_tag_t asn_DEF_SituationContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SituationContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* informationQuality */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* eventType */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* linkedCause */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* eventZone */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SituationContainer_specs_1 = { + sizeof(struct SituationContainer), + offsetof(struct SituationContainer, _asn_ctx), + asn_MAP_SituationContainer_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_SituationContainer_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_SituationContainer = { + "SituationContainer", + "SituationContainer", + &asn_OP_SEQUENCE, + asn_DEF_SituationContainer_tags_1, + sizeof(asn_DEF_SituationContainer_tags_1) + /sizeof(asn_DEF_SituationContainer_tags_1[0]), /* 1 */ + asn_DEF_SituationContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_SituationContainer_tags_1) + /sizeof(asn_DEF_SituationContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SituationContainer_1, + 4, /* Elements count */ + &asn_SPC_SituationContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/SituationContainer.h b/vanetza/asn1/its2/SituationContainer.h new file mode 100644 index 000000000..710c43cb1 --- /dev/null +++ b/vanetza/asn1/its2/SituationContainer.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "DENM-PDU-Description" + * found in "asn1/TS103831v211-DENM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _SituationContainer_H_ +#define _SituationContainer_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "InformationQuality.h" +#include "CauseCodeV2.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct CauseCodeV2; +struct EventZone; + +/* SituationContainer */ +typedef struct SituationContainer { + InformationQuality_t informationQuality; + CauseCodeV2_t eventType; + struct CauseCodeV2 *linkedCause; /* OPTIONAL */ + struct EventZone *eventZone; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SituationContainer_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SituationContainer; +extern asn_SEQUENCE_specifics_t asn_SPC_SituationContainer_specs_1; +extern asn_TYPE_member_t asn_MBR_SituationContainer_1[4]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "CauseCodeV2.h" +#include "EventZone.h" + +#endif /* _SituationContainer_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/SlowVehicleSubCauseCode.c b/vanetza/asn1/its2/SlowVehicleSubCauseCode.c new file mode 100644 index 000000000..c536061c8 --- /dev/null +++ b/vanetza/asn1/its2/SlowVehicleSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SlowVehicleSubCauseCode.h" + +int +SlowVehicleSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SlowVehicleSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SlowVehicleSubCauseCode_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_SlowVehicleSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_SlowVehicleSubCauseCode = { + "SlowVehicleSubCauseCode", + "SlowVehicleSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_SlowVehicleSubCauseCode_tags_1, + sizeof(asn_DEF_SlowVehicleSubCauseCode_tags_1) + /sizeof(asn_DEF_SlowVehicleSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_SlowVehicleSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_SlowVehicleSubCauseCode_tags_1) + /sizeof(asn_DEF_SlowVehicleSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_SlowVehicleSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SlowVehicleSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SlowVehicleSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/SlowVehicleSubCauseCode.h b/vanetza/asn1/its2/SlowVehicleSubCauseCode.h new file mode 100644 index 000000000..10fafad37 --- /dev/null +++ b/vanetza/asn1/its2/SlowVehicleSubCauseCode.h @@ -0,0 +1,60 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _SlowVehicleSubCauseCode_H_ +#define _SlowVehicleSubCauseCode_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum SlowVehicleSubCauseCode { + SlowVehicleSubCauseCode_unavailable = 0, + SlowVehicleSubCauseCode_maintenanceVehicle = 1, + SlowVehicleSubCauseCode_vehiclesSlowingToLookAtAccident = 2, + SlowVehicleSubCauseCode_abnormalLoad = 3, + SlowVehicleSubCauseCode_abnormalWideLoad = 4, + SlowVehicleSubCauseCode_convoy = 5, + SlowVehicleSubCauseCode_snowplough = 6, + SlowVehicleSubCauseCode_deicing = 7, + SlowVehicleSubCauseCode_saltingVehicles = 8 +} e_SlowVehicleSubCauseCode; + +/* SlowVehicleSubCauseCode */ +typedef long SlowVehicleSubCauseCode_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_SlowVehicleSubCauseCode_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_SlowVehicleSubCauseCode; +asn_struct_free_f SlowVehicleSubCauseCode_free; +asn_struct_print_f SlowVehicleSubCauseCode_print; +asn_constr_check_f SlowVehicleSubCauseCode_constraint; +ber_type_decoder_f SlowVehicleSubCauseCode_decode_ber; +der_type_encoder_f SlowVehicleSubCauseCode_encode_der; +xer_type_decoder_f SlowVehicleSubCauseCode_decode_xer; +xer_type_encoder_f SlowVehicleSubCauseCode_encode_xer; +jer_type_encoder_f SlowVehicleSubCauseCode_encode_jer; +oer_type_decoder_f SlowVehicleSubCauseCode_decode_oer; +oer_type_encoder_f SlowVehicleSubCauseCode_encode_oer; +per_type_decoder_f SlowVehicleSubCauseCode_decode_uper; +per_type_encoder_f SlowVehicleSubCauseCode_encode_uper; +per_type_decoder_f SlowVehicleSubCauseCode_decode_aper; +per_type_encoder_f SlowVehicleSubCauseCode_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _SlowVehicleSubCauseCode_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/SpecialTransportContainer.c b/vanetza/asn1/its2/SpecialTransportContainer.c new file mode 100644 index 000000000..2564dd075 --- /dev/null +++ b/vanetza/asn1/its2/SpecialTransportContainer.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/TS103900v211-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SpecialTransportContainer.h" + +asn_TYPE_member_t asn_MBR_SpecialTransportContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SpecialTransportContainer, specialTransportType), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SpecialTransportType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "specialTransportType" + }, + { ATF_NOFLAGS, 0, offsetof(struct SpecialTransportContainer, lightBarSirenInUse), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LightBarSirenInUse, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lightBarSirenInUse" + }, +}; +static const ber_tlv_tag_t asn_DEF_SpecialTransportContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SpecialTransportContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* specialTransportType */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* lightBarSirenInUse */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SpecialTransportContainer_specs_1 = { + sizeof(struct SpecialTransportContainer), + offsetof(struct SpecialTransportContainer, _asn_ctx), + asn_MAP_SpecialTransportContainer_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_SpecialTransportContainer = { + "SpecialTransportContainer", + "SpecialTransportContainer", + &asn_OP_SEQUENCE, + asn_DEF_SpecialTransportContainer_tags_1, + sizeof(asn_DEF_SpecialTransportContainer_tags_1) + /sizeof(asn_DEF_SpecialTransportContainer_tags_1[0]), /* 1 */ + asn_DEF_SpecialTransportContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_SpecialTransportContainer_tags_1) + /sizeof(asn_DEF_SpecialTransportContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SpecialTransportContainer_1, + 2, /* Elements count */ + &asn_SPC_SpecialTransportContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/SpecialTransportContainer.h b/vanetza/asn1/its2/SpecialTransportContainer.h new file mode 100644 index 000000000..0336d8a81 --- /dev/null +++ b/vanetza/asn1/its2/SpecialTransportContainer.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/TS103900v211-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _SpecialTransportContainer_H_ +#define _SpecialTransportContainer_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "SpecialTransportType.h" +#include "LightBarSirenInUse.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* SpecialTransportContainer */ +typedef struct SpecialTransportContainer { + SpecialTransportType_t specialTransportType; + LightBarSirenInUse_t lightBarSirenInUse; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SpecialTransportContainer_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SpecialTransportContainer; +extern asn_SEQUENCE_specifics_t asn_SPC_SpecialTransportContainer_specs_1; +extern asn_TYPE_member_t asn_MBR_SpecialTransportContainer_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _SpecialTransportContainer_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/SpecialTransportType.c b/vanetza/asn1/its2/SpecialTransportType.c new file mode 100644 index 000000000..4498e5266 --- /dev/null +++ b/vanetza/asn1/its2/SpecialTransportType.c @@ -0,0 +1,89 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SpecialTransportType.h" + +int +SpecialTransportType_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 == 4UL)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SpecialTransportType_constr_1 CC_NOTUSED = { + { 0, 0 }, + 4 /* (SIZE(4..4)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SpecialTransportType_constr_1 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_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_SpecialTransportType_constr_1 CC_NOTUSED = { + 4}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_SpecialTransportType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_SpecialTransportType = { + "SpecialTransportType", + "SpecialTransportType", + &asn_OP_BIT_STRING, + asn_DEF_SpecialTransportType_tags_1, + sizeof(asn_DEF_SpecialTransportType_tags_1) + /sizeof(asn_DEF_SpecialTransportType_tags_1[0]), /* 1 */ + asn_DEF_SpecialTransportType_tags_1, /* Same as above */ + sizeof(asn_DEF_SpecialTransportType_tags_1) + /sizeof(asn_DEF_SpecialTransportType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_SpecialTransportType_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SpecialTransportType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_SpecialTransportType_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SpecialTransportType_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/SpecialTransportType.h b/vanetza/asn1/its2/SpecialTransportType.h new file mode 100644 index 000000000..240dfeed1 --- /dev/null +++ b/vanetza/asn1/its2/SpecialTransportType.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _SpecialTransportType_H_ +#define _SpecialTransportType_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "BIT_STRING.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum SpecialTransportType { + SpecialTransportType_heavyLoad = 0, + SpecialTransportType_excessWidth = 1, + SpecialTransportType_excessLength = 2, + SpecialTransportType_excessHeight = 3 +} e_SpecialTransportType; + +/* SpecialTransportType */ +typedef BIT_STRING_t SpecialTransportType_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_SpecialTransportType_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_SpecialTransportType; +asn_struct_free_f SpecialTransportType_free; +asn_struct_print_f SpecialTransportType_print; +asn_constr_check_f SpecialTransportType_constraint; +ber_type_decoder_f SpecialTransportType_decode_ber; +der_type_encoder_f SpecialTransportType_encode_der; +xer_type_decoder_f SpecialTransportType_decode_xer; +xer_type_encoder_f SpecialTransportType_encode_xer; +jer_type_encoder_f SpecialTransportType_encode_jer; +oer_type_decoder_f SpecialTransportType_decode_oer; +oer_type_encoder_f SpecialTransportType_encode_oer; +per_type_decoder_f SpecialTransportType_decode_uper; +per_type_encoder_f SpecialTransportType_encode_uper; +per_type_decoder_f SpecialTransportType_decode_aper; +per_type_encoder_f SpecialTransportType_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _SpecialTransportType_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/SpecialVehicleContainer.c b/vanetza/asn1/its2/SpecialVehicleContainer.c new file mode 100644 index 000000000..0582e2db5 --- /dev/null +++ b/vanetza/asn1/its2/SpecialVehicleContainer.c @@ -0,0 +1,207 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/TS103900v211-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SpecialVehicleContainer.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SpecialVehicleContainer_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SpecialVehicleContainer_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_SpecialVehicleContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SpecialVehicleContainer, choice.publicTransportContainer), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PublicTransportContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "publicTransportContainer" + }, + { ATF_NOFLAGS, 0, offsetof(struct SpecialVehicleContainer, choice.specialTransportContainer), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SpecialTransportContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "specialTransportContainer" + }, + { ATF_NOFLAGS, 0, offsetof(struct SpecialVehicleContainer, choice.dangerousGoodsContainer), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DangerousGoodsContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "dangerousGoodsContainer" + }, + { ATF_NOFLAGS, 0, offsetof(struct SpecialVehicleContainer, choice.roadWorksContainerBasic), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RoadWorksContainerBasic, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "roadWorksContainerBasic" + }, + { ATF_NOFLAGS, 0, offsetof(struct SpecialVehicleContainer, choice.rescueContainer), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RescueContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rescueContainer" + }, + { ATF_NOFLAGS, 0, offsetof(struct SpecialVehicleContainer, choice.emergencyContainer), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EmergencyContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "emergencyContainer" + }, + { ATF_NOFLAGS, 0, offsetof(struct SpecialVehicleContainer, choice.safetyCarContainer), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SafetyCarContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "safetyCarContainer" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_SpecialVehicleContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* publicTransportContainer */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* specialTransportContainer */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* dangerousGoodsContainer */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* roadWorksContainerBasic */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* rescueContainer */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* emergencyContainer */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* safetyCarContainer */ +}; +asn_CHOICE_specifics_t asn_SPC_SpecialVehicleContainer_specs_1 = { + sizeof(struct SpecialVehicleContainer), + offsetof(struct SpecialVehicleContainer, _asn_ctx), + offsetof(struct SpecialVehicleContainer, present), + sizeof(((struct SpecialVehicleContainer *)0)->present), + asn_MAP_SpecialVehicleContainer_tag2el_1, + 7, /* Count of tags in the map */ + 0, 0, + 7 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_SpecialVehicleContainer = { + "SpecialVehicleContainer", + "SpecialVehicleContainer", + &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) + &asn_OER_type_SpecialVehicleContainer_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SpecialVehicleContainer_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_SpecialVehicleContainer_1, + 7, /* Elements count */ + &asn_SPC_SpecialVehicleContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/SpecialVehicleContainer.h b/vanetza/asn1/its2/SpecialVehicleContainer.h new file mode 100644 index 000000000..e0a9e8a2e --- /dev/null +++ b/vanetza/asn1/its2/SpecialVehicleContainer.h @@ -0,0 +1,74 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CAM-PDU-Descriptions" + * found in "asn1/TS103900v211-CAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _SpecialVehicleContainer_H_ +#define _SpecialVehicleContainer_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "PublicTransportContainer.h" +#include "SpecialTransportContainer.h" +#include "DangerousGoodsContainer.h" +#include "RoadWorksContainerBasic.h" +#include "RescueContainer.h" +#include "EmergencyContainer.h" +#include "SafetyCarContainer.h" +#include "constr_CHOICE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum SpecialVehicleContainer_PR { + SpecialVehicleContainer_PR_NOTHING, /* No components present */ + SpecialVehicleContainer_PR_publicTransportContainer, + SpecialVehicleContainer_PR_specialTransportContainer, + SpecialVehicleContainer_PR_dangerousGoodsContainer, + SpecialVehicleContainer_PR_roadWorksContainerBasic, + SpecialVehicleContainer_PR_rescueContainer, + SpecialVehicleContainer_PR_emergencyContainer, + SpecialVehicleContainer_PR_safetyCarContainer + /* Extensions may appear below */ + +} SpecialVehicleContainer_PR; + +/* SpecialVehicleContainer */ +typedef struct SpecialVehicleContainer { + SpecialVehicleContainer_PR present; + union SpecialVehicleContainer_u { + PublicTransportContainer_t publicTransportContainer; + SpecialTransportContainer_t specialTransportContainer; + DangerousGoodsContainer_t dangerousGoodsContainer; + RoadWorksContainerBasic_t roadWorksContainerBasic; + RescueContainer_t rescueContainer; + EmergencyContainer_t emergencyContainer; + SafetyCarContainer_t safetyCarContainer; + /* + * This type is extensible, + * possible extensions are below. + */ + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SpecialVehicleContainer_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SpecialVehicleContainer; +extern asn_CHOICE_specifics_t asn_SPC_SpecialVehicleContainer_specs_1; +extern asn_TYPE_member_t asn_MBR_SpecialVehicleContainer_1[7]; +extern asn_per_constraints_t asn_PER_type_SpecialVehicleContainer_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _SpecialVehicleContainer_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/Speed.c b/vanetza/asn1/its2/Speed.c new file mode 100644 index 000000000..f841fa5d0 --- /dev/null +++ b/vanetza/asn1/its2/Speed.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Speed.h" + +asn_TYPE_member_t asn_MBR_Speed_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Speed, speedValue), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SpeedValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "speedValue" + }, + { ATF_NOFLAGS, 0, offsetof(struct Speed, speedConfidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SpeedConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "speedConfidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_Speed_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Speed_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* speedValue */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* speedConfidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Speed_specs_1 = { + sizeof(struct Speed), + offsetof(struct Speed, _asn_ctx), + asn_MAP_Speed_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_Speed = { + "Speed", + "Speed", + &asn_OP_SEQUENCE, + asn_DEF_Speed_tags_1, + sizeof(asn_DEF_Speed_tags_1) + /sizeof(asn_DEF_Speed_tags_1[0]), /* 1 */ + asn_DEF_Speed_tags_1, /* Same as above */ + sizeof(asn_DEF_Speed_tags_1) + /sizeof(asn_DEF_Speed_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Speed_1, + 2, /* Elements count */ + &asn_SPC_Speed_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/Speed.h b/vanetza/asn1/its2/Speed.h new file mode 100644 index 000000000..e7657b46e --- /dev/null +++ b/vanetza/asn1/its2/Speed.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _Speed_H_ +#define _Speed_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "SpeedValue.h" +#include "SpeedConfidence.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Speed */ +typedef struct Speed { + SpeedValue_t speedValue; + SpeedConfidence_t speedConfidence; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Speed_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Speed; +extern asn_SEQUENCE_specifics_t asn_SPC_Speed_specs_1; +extern asn_TYPE_member_t asn_MBR_Speed_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Speed_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/SpeedConfidence.c b/vanetza/asn1/its2/SpeedConfidence.c new file mode 100644 index 000000000..45d5622ed --- /dev/null +++ b/vanetza/asn1/its2/SpeedConfidence.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SpeedConfidence.h" + +int +SpeedConfidence_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 <= 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SpeedConfidence_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..127) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SpeedConfidence_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 1, 127 } /* (1..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_SpeedConfidence_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_SpeedConfidence = { + "SpeedConfidence", + "SpeedConfidence", + &asn_OP_NativeInteger, + asn_DEF_SpeedConfidence_tags_1, + sizeof(asn_DEF_SpeedConfidence_tags_1) + /sizeof(asn_DEF_SpeedConfidence_tags_1[0]), /* 1 */ + asn_DEF_SpeedConfidence_tags_1, /* Same as above */ + sizeof(asn_DEF_SpeedConfidence_tags_1) + /sizeof(asn_DEF_SpeedConfidence_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_SpeedConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SpeedConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SpeedConfidence_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/SpeedConfidence.h b/vanetza/asn1/its2/SpeedConfidence.h new file mode 100644 index 000000000..e0a2bd472 --- /dev/null +++ b/vanetza/asn1/its2/SpeedConfidence.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _SpeedConfidence_H_ +#define _SpeedConfidence_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum SpeedConfidence { + SpeedConfidence_outOfRange = 126, + SpeedConfidence_unavailable = 127 +} e_SpeedConfidence; + +/* SpeedConfidence */ +typedef long SpeedConfidence_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_SpeedConfidence_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_SpeedConfidence; +asn_struct_free_f SpeedConfidence_free; +asn_struct_print_f SpeedConfidence_print; +asn_constr_check_f SpeedConfidence_constraint; +ber_type_decoder_f SpeedConfidence_decode_ber; +der_type_encoder_f SpeedConfidence_encode_der; +xer_type_decoder_f SpeedConfidence_decode_xer; +xer_type_encoder_f SpeedConfidence_encode_xer; +jer_type_encoder_f SpeedConfidence_encode_jer; +oer_type_decoder_f SpeedConfidence_decode_oer; +oer_type_encoder_f SpeedConfidence_encode_oer; +per_type_decoder_f SpeedConfidence_decode_uper; +per_type_encoder_f SpeedConfidence_encode_uper; +per_type_decoder_f SpeedConfidence_decode_aper; +per_type_encoder_f SpeedConfidence_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _SpeedConfidence_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/SpeedLimit.c b/vanetza/asn1/its2/SpeedLimit.c new file mode 100644 index 000000000..2804d6e1b --- /dev/null +++ b/vanetza/asn1/its2/SpeedLimit.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SpeedLimit.h" + +int +SpeedLimit_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 <= 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SpeedLimit_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SpeedLimit_constr_1 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) */ +static const ber_tlv_tag_t asn_DEF_SpeedLimit_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_SpeedLimit = { + "SpeedLimit", + "SpeedLimit", + &asn_OP_NativeInteger, + asn_DEF_SpeedLimit_tags_1, + sizeof(asn_DEF_SpeedLimit_tags_1) + /sizeof(asn_DEF_SpeedLimit_tags_1[0]), /* 1 */ + asn_DEF_SpeedLimit_tags_1, /* Same as above */ + sizeof(asn_DEF_SpeedLimit_tags_1) + /sizeof(asn_DEF_SpeedLimit_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_SpeedLimit_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SpeedLimit_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SpeedLimit_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/SpeedLimit.h b/vanetza/asn1/its2/SpeedLimit.h new file mode 100644 index 000000000..0deac34a3 --- /dev/null +++ b/vanetza/asn1/its2/SpeedLimit.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _SpeedLimit_H_ +#define _SpeedLimit_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* SpeedLimit */ +typedef long SpeedLimit_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_SpeedLimit_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_SpeedLimit; +asn_struct_free_f SpeedLimit_free; +asn_struct_print_f SpeedLimit_print; +asn_constr_check_f SpeedLimit_constraint; +ber_type_decoder_f SpeedLimit_decode_ber; +der_type_encoder_f SpeedLimit_encode_der; +xer_type_decoder_f SpeedLimit_decode_xer; +xer_type_encoder_f SpeedLimit_encode_xer; +jer_type_encoder_f SpeedLimit_encode_jer; +oer_type_decoder_f SpeedLimit_decode_oer; +oer_type_encoder_f SpeedLimit_encode_oer; +per_type_decoder_f SpeedLimit_decode_uper; +per_type_encoder_f SpeedLimit_encode_uper; +per_type_decoder_f SpeedLimit_decode_aper; +per_type_encoder_f SpeedLimit_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _SpeedLimit_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/SpeedValue.c b/vanetza/asn1/its2/SpeedValue.c new file mode 100644 index 000000000..b6d681a07 --- /dev/null +++ b/vanetza/asn1/its2/SpeedValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SpeedValue.h" + +int +SpeedValue_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SpeedValue_constr_1 CC_NOTUSED = { + { 2, 1 } /* (0..16383) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SpeedValue_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_SpeedValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_SpeedValue = { + "SpeedValue", + "SpeedValue", + &asn_OP_NativeInteger, + asn_DEF_SpeedValue_tags_1, + sizeof(asn_DEF_SpeedValue_tags_1) + /sizeof(asn_DEF_SpeedValue_tags_1[0]), /* 1 */ + asn_DEF_SpeedValue_tags_1, /* Same as above */ + sizeof(asn_DEF_SpeedValue_tags_1) + /sizeof(asn_DEF_SpeedValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_SpeedValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SpeedValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SpeedValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/SpeedValue.h b/vanetza/asn1/its2/SpeedValue.h new file mode 100644 index 000000000..e1ed66d67 --- /dev/null +++ b/vanetza/asn1/its2/SpeedValue.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _SpeedValue_H_ +#define _SpeedValue_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum SpeedValue { + SpeedValue_standstill = 0, + SpeedValue_outOfRange = 16382, + SpeedValue_unavailable = 16383 +} e_SpeedValue; + +/* SpeedValue */ +typedef long SpeedValue_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_SpeedValue_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_SpeedValue; +asn_struct_free_f SpeedValue_free; +asn_struct_print_f SpeedValue_print; +asn_constr_check_f SpeedValue_constraint; +ber_type_decoder_f SpeedValue_decode_ber; +der_type_encoder_f SpeedValue_encode_der; +xer_type_decoder_f SpeedValue_decode_xer; +xer_type_encoder_f SpeedValue_encode_xer; +jer_type_encoder_f SpeedValue_encode_jer; +oer_type_decoder_f SpeedValue_decode_oer; +oer_type_encoder_f SpeedValue_encode_oer; +per_type_decoder_f SpeedValue_decode_uper; +per_type_encoder_f SpeedValue_encode_uper; +per_type_decoder_f SpeedValue_decode_aper; +per_type_encoder_f SpeedValue_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _SpeedValue_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/StabilityChangeIndication.c b/vanetza/asn1/its2/StabilityChangeIndication.c new file mode 100644 index 000000000..a0ed42a29 --- /dev/null +++ b/vanetza/asn1/its2/StabilityChangeIndication.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "StabilityChangeIndication.h" + +asn_TYPE_member_t asn_MBR_StabilityChangeIndication_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct StabilityChangeIndication, lossProbability), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StabilityLossProbability, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lossProbability" + }, + { ATF_NOFLAGS, 0, offsetof(struct StabilityChangeIndication, actionDeltaTime), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DeltaTimeTenthOfSecond, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "actionDeltaTime" + }, +}; +static const ber_tlv_tag_t asn_DEF_StabilityChangeIndication_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_StabilityChangeIndication_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* lossProbability */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* actionDeltaTime */ +}; +asn_SEQUENCE_specifics_t asn_SPC_StabilityChangeIndication_specs_1 = { + sizeof(struct StabilityChangeIndication), + offsetof(struct StabilityChangeIndication, _asn_ctx), + asn_MAP_StabilityChangeIndication_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_StabilityChangeIndication = { + "StabilityChangeIndication", + "StabilityChangeIndication", + &asn_OP_SEQUENCE, + asn_DEF_StabilityChangeIndication_tags_1, + sizeof(asn_DEF_StabilityChangeIndication_tags_1) + /sizeof(asn_DEF_StabilityChangeIndication_tags_1[0]), /* 1 */ + asn_DEF_StabilityChangeIndication_tags_1, /* Same as above */ + sizeof(asn_DEF_StabilityChangeIndication_tags_1) + /sizeof(asn_DEF_StabilityChangeIndication_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_StabilityChangeIndication_1, + 2, /* Elements count */ + &asn_SPC_StabilityChangeIndication_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/StabilityChangeIndication.h b/vanetza/asn1/its2/StabilityChangeIndication.h new file mode 100644 index 000000000..503b1b23b --- /dev/null +++ b/vanetza/asn1/its2/StabilityChangeIndication.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _StabilityChangeIndication_H_ +#define _StabilityChangeIndication_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "StabilityLossProbability.h" +#include "DeltaTimeTenthOfSecond.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* StabilityChangeIndication */ +typedef struct StabilityChangeIndication { + StabilityLossProbability_t lossProbability; + DeltaTimeTenthOfSecond_t actionDeltaTime; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} StabilityChangeIndication_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_StabilityChangeIndication; +extern asn_SEQUENCE_specifics_t asn_SPC_StabilityChangeIndication_specs_1; +extern asn_TYPE_member_t asn_MBR_StabilityChangeIndication_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _StabilityChangeIndication_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/StabilityLossProbability.c b/vanetza/asn1/its2/StabilityLossProbability.c new file mode 100644 index 000000000..318ce80ea --- /dev/null +++ b/vanetza/asn1/its2/StabilityLossProbability.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "StabilityLossProbability.h" + +int +StabilityLossProbability_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_StabilityLossProbability_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..63) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_StabilityLossProbability_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_StabilityLossProbability_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_StabilityLossProbability = { + "StabilityLossProbability", + "StabilityLossProbability", + &asn_OP_NativeInteger, + asn_DEF_StabilityLossProbability_tags_1, + sizeof(asn_DEF_StabilityLossProbability_tags_1) + /sizeof(asn_DEF_StabilityLossProbability_tags_1[0]), /* 1 */ + asn_DEF_StabilityLossProbability_tags_1, /* Same as above */ + sizeof(asn_DEF_StabilityLossProbability_tags_1) + /sizeof(asn_DEF_StabilityLossProbability_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_StabilityLossProbability_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_StabilityLossProbability_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + StabilityLossProbability_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/StabilityLossProbability.h b/vanetza/asn1/its2/StabilityLossProbability.h new file mode 100644 index 000000000..da47fcd87 --- /dev/null +++ b/vanetza/asn1/its2/StabilityLossProbability.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _StabilityLossProbability_H_ +#define _StabilityLossProbability_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum StabilityLossProbability { + StabilityLossProbability_stable = 0, + StabilityLossProbability_totalLossOfStability = 50, + StabilityLossProbability_unavailable = 63 +} e_StabilityLossProbability; + +/* StabilityLossProbability */ +typedef long StabilityLossProbability_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_StabilityLossProbability_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_StabilityLossProbability; +asn_struct_free_f StabilityLossProbability_free; +asn_struct_print_f StabilityLossProbability_print; +asn_constr_check_f StabilityLossProbability_constraint; +ber_type_decoder_f StabilityLossProbability_decode_ber; +der_type_encoder_f StabilityLossProbability_encode_der; +xer_type_decoder_f StabilityLossProbability_decode_xer; +xer_type_encoder_f StabilityLossProbability_encode_xer; +jer_type_encoder_f StabilityLossProbability_encode_jer; +oer_type_decoder_f StabilityLossProbability_decode_oer; +oer_type_encoder_f StabilityLossProbability_encode_oer; +per_type_decoder_f StabilityLossProbability_decode_uper; +per_type_encoder_f StabilityLossProbability_encode_uper; +per_type_decoder_f StabilityLossProbability_decode_aper; +per_type_encoder_f StabilityLossProbability_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _StabilityLossProbability_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/StandardLength12b.c b/vanetza/asn1/its2/StandardLength12b.c new file mode 100644 index 000000000..d9ea301ac --- /dev/null +++ b/vanetza/asn1/its2/StandardLength12b.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "StandardLength12b.h" + +int +StandardLength12b_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 <= 4095L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_StandardLength12b_constr_1 CC_NOTUSED = { + { 2, 1 } /* (0..4095) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_StandardLength12b_constr_1 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 ber_tlv_tag_t asn_DEF_StandardLength12b_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_StandardLength12b = { + "StandardLength12b", + "StandardLength12b", + &asn_OP_NativeInteger, + asn_DEF_StandardLength12b_tags_1, + sizeof(asn_DEF_StandardLength12b_tags_1) + /sizeof(asn_DEF_StandardLength12b_tags_1[0]), /* 1 */ + asn_DEF_StandardLength12b_tags_1, /* Same as above */ + sizeof(asn_DEF_StandardLength12b_tags_1) + /sizeof(asn_DEF_StandardLength12b_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_StandardLength12b_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_StandardLength12b_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + StandardLength12b_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/StandardLength12b.h b/vanetza/asn1/its2/StandardLength12b.h new file mode 100644 index 000000000..b15e73eee --- /dev/null +++ b/vanetza/asn1/its2/StandardLength12b.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _StandardLength12b_H_ +#define _StandardLength12b_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* StandardLength12b */ +typedef long StandardLength12b_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_StandardLength12b_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_StandardLength12b; +asn_struct_free_f StandardLength12b_free; +asn_struct_print_f StandardLength12b_print; +asn_constr_check_f StandardLength12b_constraint; +ber_type_decoder_f StandardLength12b_decode_ber; +der_type_encoder_f StandardLength12b_encode_der; +xer_type_decoder_f StandardLength12b_decode_xer; +xer_type_encoder_f StandardLength12b_encode_xer; +jer_type_encoder_f StandardLength12b_encode_jer; +oer_type_decoder_f StandardLength12b_decode_oer; +oer_type_encoder_f StandardLength12b_encode_oer; +per_type_decoder_f StandardLength12b_decode_uper; +per_type_encoder_f StandardLength12b_encode_uper; +per_type_decoder_f StandardLength12b_decode_aper; +per_type_encoder_f StandardLength12b_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _StandardLength12b_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/StandardLength1B.c b/vanetza/asn1/its2/StandardLength1B.c new file mode 100644 index 000000000..4691ddc8c --- /dev/null +++ b/vanetza/asn1/its2/StandardLength1B.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "StandardLength1B.h" + +int +StandardLength1B_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_StandardLength1B_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_StandardLength1B_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_StandardLength1B_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_StandardLength1B = { + "StandardLength1B", + "StandardLength1B", + &asn_OP_NativeInteger, + asn_DEF_StandardLength1B_tags_1, + sizeof(asn_DEF_StandardLength1B_tags_1) + /sizeof(asn_DEF_StandardLength1B_tags_1[0]), /* 1 */ + asn_DEF_StandardLength1B_tags_1, /* Same as above */ + sizeof(asn_DEF_StandardLength1B_tags_1) + /sizeof(asn_DEF_StandardLength1B_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_StandardLength1B_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_StandardLength1B_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + StandardLength1B_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/StandardLength1B.h b/vanetza/asn1/its2/StandardLength1B.h new file mode 100644 index 000000000..ffe43af7d --- /dev/null +++ b/vanetza/asn1/its2/StandardLength1B.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _StandardLength1B_H_ +#define _StandardLength1B_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* StandardLength1B */ +typedef long StandardLength1B_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_StandardLength1B_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_StandardLength1B; +asn_struct_free_f StandardLength1B_free; +asn_struct_print_f StandardLength1B_print; +asn_constr_check_f StandardLength1B_constraint; +ber_type_decoder_f StandardLength1B_decode_ber; +der_type_encoder_f StandardLength1B_encode_der; +xer_type_decoder_f StandardLength1B_decode_xer; +xer_type_encoder_f StandardLength1B_encode_xer; +jer_type_encoder_f StandardLength1B_encode_jer; +oer_type_decoder_f StandardLength1B_decode_oer; +oer_type_encoder_f StandardLength1B_encode_oer; +per_type_decoder_f StandardLength1B_decode_uper; +per_type_encoder_f StandardLength1B_encode_uper; +per_type_decoder_f StandardLength1B_decode_aper; +per_type_encoder_f StandardLength1B_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _StandardLength1B_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/StandardLength2B.c b/vanetza/asn1/its2/StandardLength2B.c new file mode 100644 index 000000000..894b43ff8 --- /dev/null +++ b/vanetza/asn1/its2/StandardLength2B.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "StandardLength2B.h" + +int +StandardLength2B_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_StandardLength2B_constr_1 CC_NOTUSED = { + { 2, 1 } /* (0..65535) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_StandardLength2B_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_StandardLength2B_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_StandardLength2B = { + "StandardLength2B", + "StandardLength2B", + &asn_OP_NativeInteger, + asn_DEF_StandardLength2B_tags_1, + sizeof(asn_DEF_StandardLength2B_tags_1) + /sizeof(asn_DEF_StandardLength2B_tags_1[0]), /* 1 */ + asn_DEF_StandardLength2B_tags_1, /* Same as above */ + sizeof(asn_DEF_StandardLength2B_tags_1) + /sizeof(asn_DEF_StandardLength2B_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_StandardLength2B_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_StandardLength2B_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + StandardLength2B_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/StandardLength2B.h b/vanetza/asn1/its2/StandardLength2B.h new file mode 100644 index 000000000..b3ee192e3 --- /dev/null +++ b/vanetza/asn1/its2/StandardLength2B.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _StandardLength2B_H_ +#define _StandardLength2B_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* StandardLength2B */ +typedef long StandardLength2B_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_StandardLength2B_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_StandardLength2B; +asn_struct_free_f StandardLength2B_free; +asn_struct_print_f StandardLength2B_print; +asn_constr_check_f StandardLength2B_constraint; +ber_type_decoder_f StandardLength2B_decode_ber; +der_type_encoder_f StandardLength2B_encode_der; +xer_type_decoder_f StandardLength2B_decode_xer; +xer_type_encoder_f StandardLength2B_encode_xer; +jer_type_encoder_f StandardLength2B_encode_jer; +oer_type_decoder_f StandardLength2B_decode_oer; +oer_type_encoder_f StandardLength2B_encode_oer; +per_type_decoder_f StandardLength2B_decode_uper; +per_type_encoder_f StandardLength2B_encode_uper; +per_type_decoder_f StandardLength2B_decode_aper; +per_type_encoder_f StandardLength2B_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _StandardLength2B_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/StandardLength3b.c b/vanetza/asn1/its2/StandardLength3b.c new file mode 100644 index 000000000..d4774c010 --- /dev/null +++ b/vanetza/asn1/its2/StandardLength3b.c @@ -0,0 +1,83 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "StandardLength3b.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_StandardLength3b_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_StandardLength3b_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 asn_INTEGER_enum_map_t asn_MAP_StandardLength3b_value2enum_1[] = { + { 0, 11, "lessThan50m" }, + { 1, 12, "lessThan100m" }, + { 2, 12, "lessThan200m" }, + { 3, 12, "lessThan500m" }, + { 4, 13, "lessThan1000m" }, + { 5, 11, "lessThan5km" }, + { 6, 12, "lessThan10km" }, + { 7, 8, "over10km" } +}; +static const unsigned int asn_MAP_StandardLength3b_enum2value_1[] = { + 4, /* lessThan1000m(4) */ + 1, /* lessThan100m(1) */ + 6, /* lessThan10km(6) */ + 2, /* lessThan200m(2) */ + 3, /* lessThan500m(3) */ + 0, /* lessThan50m(0) */ + 5, /* lessThan5km(5) */ + 7 /* over10km(7) */ +}; +const asn_INTEGER_specifics_t asn_SPC_StandardLength3b_specs_1 = { + asn_MAP_StandardLength3b_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_StandardLength3b_enum2value_1, /* 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_StandardLength3b_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_StandardLength3b = { + "StandardLength3b", + "StandardLength3b", + &asn_OP_NativeEnumerated, + asn_DEF_StandardLength3b_tags_1, + sizeof(asn_DEF_StandardLength3b_tags_1) + /sizeof(asn_DEF_StandardLength3b_tags_1[0]), /* 1 */ + asn_DEF_StandardLength3b_tags_1, /* Same as above */ + sizeof(asn_DEF_StandardLength3b_tags_1) + /sizeof(asn_DEF_StandardLength3b_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_StandardLength3b_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_StandardLength3b_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_StandardLength3b_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/StandardLength3b.h b/vanetza/asn1/its2/StandardLength3b.h new file mode 100644 index 000000000..aad7b1dea --- /dev/null +++ b/vanetza/asn1/its2/StandardLength3b.h @@ -0,0 +1,60 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _StandardLength3b_H_ +#define _StandardLength3b_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum StandardLength3b { + StandardLength3b_lessThan50m = 0, + StandardLength3b_lessThan100m = 1, + StandardLength3b_lessThan200m = 2, + StandardLength3b_lessThan500m = 3, + StandardLength3b_lessThan1000m = 4, + StandardLength3b_lessThan5km = 5, + StandardLength3b_lessThan10km = 6, + StandardLength3b_over10km = 7 +} e_StandardLength3b; + +/* StandardLength3b */ +typedef long StandardLength3b_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_StandardLength3b_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_StandardLength3b; +extern const asn_INTEGER_specifics_t asn_SPC_StandardLength3b_specs_1; +asn_struct_free_f StandardLength3b_free; +asn_struct_print_f StandardLength3b_print; +asn_constr_check_f StandardLength3b_constraint; +ber_type_decoder_f StandardLength3b_decode_ber; +der_type_encoder_f StandardLength3b_encode_der; +xer_type_decoder_f StandardLength3b_decode_xer; +xer_type_encoder_f StandardLength3b_encode_xer; +jer_type_encoder_f StandardLength3b_encode_jer; +oer_type_decoder_f StandardLength3b_decode_oer; +oer_type_encoder_f StandardLength3b_encode_oer; +per_type_decoder_f StandardLength3b_decode_uper; +per_type_encoder_f StandardLength3b_encode_uper; +per_type_decoder_f StandardLength3b_decode_aper; +per_type_encoder_f StandardLength3b_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _StandardLength3b_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/StandardLength9b.c b/vanetza/asn1/its2/StandardLength9b.c new file mode 100644 index 000000000..71b58a999 --- /dev/null +++ b/vanetza/asn1/its2/StandardLength9b.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "StandardLength9b.h" + +int +StandardLength9b_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 <= 511L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_StandardLength9b_constr_1 CC_NOTUSED = { + { 2, 1 } /* (0..511) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_StandardLength9b_constr_1 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) */ +static const ber_tlv_tag_t asn_DEF_StandardLength9b_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_StandardLength9b = { + "StandardLength9b", + "StandardLength9b", + &asn_OP_NativeInteger, + asn_DEF_StandardLength9b_tags_1, + sizeof(asn_DEF_StandardLength9b_tags_1) + /sizeof(asn_DEF_StandardLength9b_tags_1[0]), /* 1 */ + asn_DEF_StandardLength9b_tags_1, /* Same as above */ + sizeof(asn_DEF_StandardLength9b_tags_1) + /sizeof(asn_DEF_StandardLength9b_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_StandardLength9b_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_StandardLength9b_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + StandardLength9b_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/StandardLength9b.h b/vanetza/asn1/its2/StandardLength9b.h new file mode 100644 index 000000000..c6ded4036 --- /dev/null +++ b/vanetza/asn1/its2/StandardLength9b.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _StandardLength9b_H_ +#define _StandardLength9b_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* StandardLength9b */ +typedef long StandardLength9b_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_StandardLength9b_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_StandardLength9b; +asn_struct_free_f StandardLength9b_free; +asn_struct_print_f StandardLength9b_print; +asn_constr_check_f StandardLength9b_constraint; +ber_type_decoder_f StandardLength9b_decode_ber; +der_type_encoder_f StandardLength9b_encode_der; +xer_type_decoder_f StandardLength9b_decode_xer; +xer_type_encoder_f StandardLength9b_encode_xer; +jer_type_encoder_f StandardLength9b_encode_jer; +oer_type_decoder_f StandardLength9b_decode_oer; +oer_type_encoder_f StandardLength9b_encode_oer; +per_type_decoder_f StandardLength9b_decode_uper; +per_type_encoder_f StandardLength9b_encode_uper; +per_type_decoder_f StandardLength9b_decode_aper; +per_type_encoder_f StandardLength9b_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _StandardLength9b_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/StationID.c b/vanetza/asn1/its2/StationID.c new file mode 100644 index 000000000..2f263810c --- /dev/null +++ b/vanetza/asn1/its2/StationID.c @@ -0,0 +1,75 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "StationID.h" + +int +StationID_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. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_StationID_constr_1 CC_NOTUSED = { + { 4, 1 } /* (0..4294967295) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_StationID_constr_1 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) */ +const asn_INTEGER_specifics_t asn_SPC_StationID_specs_1 = { + 0, 0, 0, 0, 0, + 0, /* Native long size */ + 1 /* Unsigned representation */ +}; +static const ber_tlv_tag_t asn_DEF_StationID_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_StationID = { + "StationID", + "StationID", + &asn_OP_NativeInteger, + asn_DEF_StationID_tags_1, + sizeof(asn_DEF_StationID_tags_1) + /sizeof(asn_DEF_StationID_tags_1[0]), /* 1 */ + asn_DEF_StationID_tags_1, /* Same as above */ + sizeof(asn_DEF_StationID_tags_1) + /sizeof(asn_DEF_StationID_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_StationID_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_StationID_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + StationID_constraint + }, + 0, 0, /* No members */ + &asn_SPC_StationID_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/StationID.h b/vanetza/asn1/its2/StationID.h new file mode 100644 index 000000000..9601489b4 --- /dev/null +++ b/vanetza/asn1/its2/StationID.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _StationID_H_ +#define _StationID_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* StationID */ +typedef unsigned long StationID_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_StationID_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_StationID; +extern const asn_INTEGER_specifics_t asn_SPC_StationID_specs_1; +asn_struct_free_f StationID_free; +asn_struct_print_f StationID_print; +asn_constr_check_f StationID_constraint; +ber_type_decoder_f StationID_decode_ber; +der_type_encoder_f StationID_encode_der; +xer_type_decoder_f StationID_decode_xer; +xer_type_encoder_f StationID_encode_xer; +jer_type_encoder_f StationID_encode_jer; +oer_type_decoder_f StationID_decode_oer; +oer_type_encoder_f StationID_encode_oer; +per_type_decoder_f StationID_decode_uper; +per_type_encoder_f StationID_encode_uper; +per_type_decoder_f StationID_decode_aper; +per_type_encoder_f StationID_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _StationID_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/StationId.c b/vanetza/asn1/its2/StationId.c new file mode 100644 index 000000000..20bde5a90 --- /dev/null +++ b/vanetza/asn1/its2/StationId.c @@ -0,0 +1,75 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "StationId.h" + +int +StationId_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. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_StationId_constr_1 CC_NOTUSED = { + { 4, 1 } /* (0..4294967295) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_StationId_constr_1 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) */ +const asn_INTEGER_specifics_t asn_SPC_StationId_specs_1 = { + 0, 0, 0, 0, 0, + 0, /* Native long size */ + 1 /* Unsigned representation */ +}; +static const ber_tlv_tag_t asn_DEF_StationId_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_StationId = { + "StationId", + "StationId", + &asn_OP_NativeInteger, + asn_DEF_StationId_tags_1, + sizeof(asn_DEF_StationId_tags_1) + /sizeof(asn_DEF_StationId_tags_1[0]), /* 1 */ + asn_DEF_StationId_tags_1, /* Same as above */ + sizeof(asn_DEF_StationId_tags_1) + /sizeof(asn_DEF_StationId_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_StationId_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_StationId_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + StationId_constraint + }, + 0, 0, /* No members */ + &asn_SPC_StationId_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/StationId.h b/vanetza/asn1/its2/StationId.h new file mode 100644 index 000000000..b8ad753a0 --- /dev/null +++ b/vanetza/asn1/its2/StationId.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _StationId_H_ +#define _StationId_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* StationId */ +typedef unsigned long StationId_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_StationId_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_StationId; +extern const asn_INTEGER_specifics_t asn_SPC_StationId_specs_1; +asn_struct_free_f StationId_free; +asn_struct_print_f StationId_print; +asn_constr_check_f StationId_constraint; +ber_type_decoder_f StationId_decode_ber; +der_type_encoder_f StationId_encode_der; +xer_type_decoder_f StationId_decode_xer; +xer_type_encoder_f StationId_encode_xer; +jer_type_encoder_f StationId_encode_jer; +oer_type_decoder_f StationId_decode_oer; +oer_type_encoder_f StationId_encode_oer; +per_type_decoder_f StationId_decode_uper; +per_type_encoder_f StationId_encode_uper; +per_type_decoder_f StationId_decode_aper; +per_type_encoder_f StationId_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _StationId_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/StationType.c b/vanetza/asn1/its2/StationType.c new file mode 100644 index 000000000..a20326255 --- /dev/null +++ b/vanetza/asn1/its2/StationType.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "StationType.h" + +int +StationType_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_StationType_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_StationType_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_StationType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_StationType = { + "StationType", + "StationType", + &asn_OP_NativeInteger, + asn_DEF_StationType_tags_1, + sizeof(asn_DEF_StationType_tags_1) + /sizeof(asn_DEF_StationType_tags_1[0]), /* 1 */ + asn_DEF_StationType_tags_1, /* Same as above */ + sizeof(asn_DEF_StationType_tags_1) + /sizeof(asn_DEF_StationType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_StationType_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_StationType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + StationType_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/StationType.h b/vanetza/asn1/its2/StationType.h new file mode 100644 index 000000000..8778278ee --- /dev/null +++ b/vanetza/asn1/its2/StationType.h @@ -0,0 +1,66 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _StationType_H_ +#define _StationType_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum StationType { + StationType_unknown = 0, + StationType_pedestrian = 1, + StationType_cyclist = 2, + StationType_moped = 3, + StationType_motorcycle = 4, + StationType_passengerCar = 5, + StationType_bus = 6, + StationType_lightTruck = 7, + StationType_heavyTruck = 8, + StationType_trailer = 9, + StationType_specialVehicle = 10, + StationType_tram = 11, + StationType_lightVruVehicle = 12, + StationType_animal = 13, + StationType_roadSideUnit = 15 +} e_StationType; + +/* StationType */ +typedef long StationType_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_StationType_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_StationType; +asn_struct_free_f StationType_free; +asn_struct_print_f StationType_print; +asn_constr_check_f StationType_constraint; +ber_type_decoder_f StationType_decode_ber; +der_type_encoder_f StationType_encode_der; +xer_type_decoder_f StationType_decode_xer; +xer_type_encoder_f StationType_encode_xer; +jer_type_encoder_f StationType_encode_jer; +oer_type_decoder_f StationType_decode_oer; +oer_type_encoder_f StationType_encode_oer; +per_type_decoder_f StationType_decode_uper; +per_type_encoder_f StationType_encode_uper; +per_type_decoder_f StationType_decode_aper; +per_type_encoder_f StationType_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _StationType_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/StationarySince.c b/vanetza/asn1/its2/StationarySince.c new file mode 100644 index 000000000..3e97a59a1 --- /dev/null +++ b/vanetza/asn1/its2/StationarySince.c @@ -0,0 +1,75 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "StationarySince.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_StationarySince_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_StationarySince_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) */ +static const asn_INTEGER_enum_map_t asn_MAP_StationarySince_value2enum_1[] = { + { 0, 15, "lessThan1Minute" }, + { 1, 16, "lessThan2Minutes" }, + { 2, 17, "lessThan15Minutes" }, + { 3, 23, "equalOrGreater15Minutes" } +}; +static const unsigned int asn_MAP_StationarySince_enum2value_1[] = { + 3, /* equalOrGreater15Minutes(3) */ + 2, /* lessThan15Minutes(2) */ + 0, /* lessThan1Minute(0) */ + 1 /* lessThan2Minutes(1) */ +}; +const asn_INTEGER_specifics_t asn_SPC_StationarySince_specs_1 = { + asn_MAP_StationarySince_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_StationarySince_enum2value_1, /* 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_StationarySince_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_StationarySince = { + "StationarySince", + "StationarySince", + &asn_OP_NativeEnumerated, + asn_DEF_StationarySince_tags_1, + sizeof(asn_DEF_StationarySince_tags_1) + /sizeof(asn_DEF_StationarySince_tags_1[0]), /* 1 */ + asn_DEF_StationarySince_tags_1, /* Same as above */ + sizeof(asn_DEF_StationarySince_tags_1) + /sizeof(asn_DEF_StationarySince_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_StationarySince_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_StationarySince_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_StationarySince_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/StationarySince.h b/vanetza/asn1/its2/StationarySince.h new file mode 100644 index 000000000..3e196e082 --- /dev/null +++ b/vanetza/asn1/its2/StationarySince.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _StationarySince_H_ +#define _StationarySince_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum StationarySince { + StationarySince_lessThan1Minute = 0, + StationarySince_lessThan2Minutes = 1, + StationarySince_lessThan15Minutes = 2, + StationarySince_equalOrGreater15Minutes = 3 +} e_StationarySince; + +/* StationarySince */ +typedef long StationarySince_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_StationarySince_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_StationarySince; +extern const asn_INTEGER_specifics_t asn_SPC_StationarySince_specs_1; +asn_struct_free_f StationarySince_free; +asn_struct_print_f StationarySince_print; +asn_constr_check_f StationarySince_constraint; +ber_type_decoder_f StationarySince_decode_ber; +der_type_encoder_f StationarySince_encode_der; +xer_type_decoder_f StationarySince_decode_xer; +xer_type_encoder_f StationarySince_encode_xer; +jer_type_encoder_f StationarySince_encode_jer; +oer_type_decoder_f StationarySince_decode_oer; +oer_type_encoder_f StationarySince_encode_oer; +per_type_decoder_f StationarySince_decode_uper; +per_type_encoder_f StationarySince_encode_uper; +per_type_decoder_f StationarySince_decode_aper; +per_type_encoder_f StationarySince_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _StationarySince_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/StationaryVehicleContainer.c b/vanetza/asn1/its2/StationaryVehicleContainer.c new file mode 100644 index 000000000..4b47e34bc --- /dev/null +++ b/vanetza/asn1/its2/StationaryVehicleContainer.c @@ -0,0 +1,179 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "DENM-PDU-Description" + * found in "asn1/TS103831v211-DENM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "StationaryVehicleContainer.h" + +asn_TYPE_member_t asn_MBR_StationaryVehicleContainer_1[] = { + { ATF_POINTER, 6, offsetof(struct StationaryVehicleContainer, stationarySince), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StationarySince, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "stationarySince" + }, + { ATF_POINTER, 5, offsetof(struct StationaryVehicleContainer, stationaryCause), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CauseCodeV2, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "stationaryCause" + }, + { ATF_POINTER, 4, offsetof(struct StationaryVehicleContainer, carryingDangerousGoods), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DangerousGoodsExtended, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "carryingDangerousGoods" + }, + { ATF_POINTER, 3, offsetof(struct StationaryVehicleContainer, numberOfOccupants), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NumberOfOccupants, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "numberOfOccupants" + }, + { ATF_POINTER, 2, offsetof(struct StationaryVehicleContainer, vehicleIdentification), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VehicleIdentification, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vehicleIdentification" + }, + { ATF_POINTER, 1, offsetof(struct StationaryVehicleContainer, energyStorageType), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_EnergyStorageType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "energyStorageType" + }, +}; +static const int asn_MAP_StationaryVehicleContainer_oms_1[] = { 0, 1, 2, 3, 4, 5 }; +static const ber_tlv_tag_t asn_DEF_StationaryVehicleContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_StationaryVehicleContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* stationarySince */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* stationaryCause */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* carryingDangerousGoods */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* numberOfOccupants */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* vehicleIdentification */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* energyStorageType */ +}; +asn_SEQUENCE_specifics_t asn_SPC_StationaryVehicleContainer_specs_1 = { + sizeof(struct StationaryVehicleContainer), + offsetof(struct StationaryVehicleContainer, _asn_ctx), + asn_MAP_StationaryVehicleContainer_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_StationaryVehicleContainer_oms_1, /* Optional members */ + 6, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_StationaryVehicleContainer = { + "StationaryVehicleContainer", + "StationaryVehicleContainer", + &asn_OP_SEQUENCE, + asn_DEF_StationaryVehicleContainer_tags_1, + sizeof(asn_DEF_StationaryVehicleContainer_tags_1) + /sizeof(asn_DEF_StationaryVehicleContainer_tags_1[0]), /* 1 */ + asn_DEF_StationaryVehicleContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_StationaryVehicleContainer_tags_1) + /sizeof(asn_DEF_StationaryVehicleContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_StationaryVehicleContainer_1, + 6, /* Elements count */ + &asn_SPC_StationaryVehicleContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/StationaryVehicleContainer.h b/vanetza/asn1/its2/StationaryVehicleContainer.h new file mode 100644 index 000000000..e4bb0597f --- /dev/null +++ b/vanetza/asn1/its2/StationaryVehicleContainer.h @@ -0,0 +1,57 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "DENM-PDU-Description" + * found in "asn1/TS103831v211-DENM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _StationaryVehicleContainer_H_ +#define _StationaryVehicleContainer_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "StationarySince.h" +#include "NumberOfOccupants.h" +#include "EnergyStorageType.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct CauseCodeV2; +struct DangerousGoodsExtended; +struct VehicleIdentification; + +/* StationaryVehicleContainer */ +typedef struct StationaryVehicleContainer { + StationarySince_t *stationarySince; /* OPTIONAL */ + struct CauseCodeV2 *stationaryCause; /* OPTIONAL */ + struct DangerousGoodsExtended *carryingDangerousGoods; /* OPTIONAL */ + NumberOfOccupants_t *numberOfOccupants; /* OPTIONAL */ + struct VehicleIdentification *vehicleIdentification; /* OPTIONAL */ + EnergyStorageType_t *energyStorageType; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} StationaryVehicleContainer_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_StationaryVehicleContainer; +extern asn_SEQUENCE_specifics_t asn_SPC_StationaryVehicleContainer_specs_1; +extern asn_TYPE_member_t asn_MBR_StationaryVehicleContainer_1[6]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "CauseCodeV2.h" +#include "DangerousGoodsExtended.h" +#include "VehicleIdentification.h" + +#endif /* _StationaryVehicleContainer_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/StationaryVehicleSubCauseCode.c b/vanetza/asn1/its2/StationaryVehicleSubCauseCode.c new file mode 100644 index 000000000..8af529f51 --- /dev/null +++ b/vanetza/asn1/its2/StationaryVehicleSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "StationaryVehicleSubCauseCode.h" + +int +StationaryVehicleSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_StationaryVehicleSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_StationaryVehicleSubCauseCode_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_StationaryVehicleSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_StationaryVehicleSubCauseCode = { + "StationaryVehicleSubCauseCode", + "StationaryVehicleSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_StationaryVehicleSubCauseCode_tags_1, + sizeof(asn_DEF_StationaryVehicleSubCauseCode_tags_1) + /sizeof(asn_DEF_StationaryVehicleSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_StationaryVehicleSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_StationaryVehicleSubCauseCode_tags_1) + /sizeof(asn_DEF_StationaryVehicleSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_StationaryVehicleSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_StationaryVehicleSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + StationaryVehicleSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/StationaryVehicleSubCauseCode.h b/vanetza/asn1/its2/StationaryVehicleSubCauseCode.h new file mode 100644 index 000000000..fb0d34939 --- /dev/null +++ b/vanetza/asn1/its2/StationaryVehicleSubCauseCode.h @@ -0,0 +1,58 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _StationaryVehicleSubCauseCode_H_ +#define _StationaryVehicleSubCauseCode_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum StationaryVehicleSubCauseCode { + StationaryVehicleSubCauseCode_unavailable = 0, + StationaryVehicleSubCauseCode_humanProblem = 1, + StationaryVehicleSubCauseCode_vehicleBreakdown = 2, + StationaryVehicleSubCauseCode_postCrash = 3, + StationaryVehicleSubCauseCode_publicTransportStop = 4, + StationaryVehicleSubCauseCode_carryingDangerousGoods = 5, + StationaryVehicleSubCauseCode_vehicleOnFire = 6 +} e_StationaryVehicleSubCauseCode; + +/* StationaryVehicleSubCauseCode */ +typedef long StationaryVehicleSubCauseCode_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_StationaryVehicleSubCauseCode_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_StationaryVehicleSubCauseCode; +asn_struct_free_f StationaryVehicleSubCauseCode_free; +asn_struct_print_f StationaryVehicleSubCauseCode_print; +asn_constr_check_f StationaryVehicleSubCauseCode_constraint; +ber_type_decoder_f StationaryVehicleSubCauseCode_decode_ber; +der_type_encoder_f StationaryVehicleSubCauseCode_encode_der; +xer_type_decoder_f StationaryVehicleSubCauseCode_decode_xer; +xer_type_encoder_f StationaryVehicleSubCauseCode_encode_xer; +jer_type_encoder_f StationaryVehicleSubCauseCode_encode_jer; +oer_type_decoder_f StationaryVehicleSubCauseCode_decode_oer; +oer_type_encoder_f StationaryVehicleSubCauseCode_encode_oer; +per_type_decoder_f StationaryVehicleSubCauseCode_decode_uper; +per_type_encoder_f StationaryVehicleSubCauseCode_encode_uper; +per_type_decoder_f StationaryVehicleSubCauseCode_decode_aper; +per_type_encoder_f StationaryVehicleSubCauseCode_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _StationaryVehicleSubCauseCode_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/SteeringWheelAngle.c b/vanetza/asn1/its2/SteeringWheelAngle.c new file mode 100644 index 000000000..29ab15cbe --- /dev/null +++ b/vanetza/asn1/its2/SteeringWheelAngle.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SteeringWheelAngle.h" + +asn_TYPE_member_t asn_MBR_SteeringWheelAngle_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SteeringWheelAngle, steeringWheelAngleValue), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SteeringWheelAngleValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "steeringWheelAngleValue" + }, + { ATF_NOFLAGS, 0, offsetof(struct SteeringWheelAngle, steeringWheelAngleConfidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SteeringWheelAngleConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "steeringWheelAngleConfidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_SteeringWheelAngle_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SteeringWheelAngle_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* steeringWheelAngleValue */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* steeringWheelAngleConfidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_SteeringWheelAngle_specs_1 = { + sizeof(struct SteeringWheelAngle), + offsetof(struct SteeringWheelAngle, _asn_ctx), + asn_MAP_SteeringWheelAngle_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_SteeringWheelAngle = { + "SteeringWheelAngle", + "SteeringWheelAngle", + &asn_OP_SEQUENCE, + asn_DEF_SteeringWheelAngle_tags_1, + sizeof(asn_DEF_SteeringWheelAngle_tags_1) + /sizeof(asn_DEF_SteeringWheelAngle_tags_1[0]), /* 1 */ + asn_DEF_SteeringWheelAngle_tags_1, /* Same as above */ + sizeof(asn_DEF_SteeringWheelAngle_tags_1) + /sizeof(asn_DEF_SteeringWheelAngle_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_SteeringWheelAngle_1, + 2, /* Elements count */ + &asn_SPC_SteeringWheelAngle_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/SteeringWheelAngle.h b/vanetza/asn1/its2/SteeringWheelAngle.h new file mode 100644 index 000000000..cf027e31c --- /dev/null +++ b/vanetza/asn1/its2/SteeringWheelAngle.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _SteeringWheelAngle_H_ +#define _SteeringWheelAngle_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "SteeringWheelAngleValue.h" +#include "SteeringWheelAngleConfidence.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* SteeringWheelAngle */ +typedef struct SteeringWheelAngle { + SteeringWheelAngleValue_t steeringWheelAngleValue; + SteeringWheelAngleConfidence_t steeringWheelAngleConfidence; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SteeringWheelAngle_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SteeringWheelAngle; +extern asn_SEQUENCE_specifics_t asn_SPC_SteeringWheelAngle_specs_1; +extern asn_TYPE_member_t asn_MBR_SteeringWheelAngle_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _SteeringWheelAngle_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/SteeringWheelAngleConfidence.c b/vanetza/asn1/its2/SteeringWheelAngleConfidence.c new file mode 100644 index 000000000..851ca338a --- /dev/null +++ b/vanetza/asn1/its2/SteeringWheelAngleConfidence.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SteeringWheelAngleConfidence.h" + +int +SteeringWheelAngleConfidence_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 <= 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SteeringWheelAngleConfidence_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..127) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SteeringWheelAngleConfidence_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 1, 127 } /* (1..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_SteeringWheelAngleConfidence_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_SteeringWheelAngleConfidence = { + "SteeringWheelAngleConfidence", + "SteeringWheelAngleConfidence", + &asn_OP_NativeInteger, + asn_DEF_SteeringWheelAngleConfidence_tags_1, + sizeof(asn_DEF_SteeringWheelAngleConfidence_tags_1) + /sizeof(asn_DEF_SteeringWheelAngleConfidence_tags_1[0]), /* 1 */ + asn_DEF_SteeringWheelAngleConfidence_tags_1, /* Same as above */ + sizeof(asn_DEF_SteeringWheelAngleConfidence_tags_1) + /sizeof(asn_DEF_SteeringWheelAngleConfidence_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_SteeringWheelAngleConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SteeringWheelAngleConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SteeringWheelAngleConfidence_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/SteeringWheelAngleConfidence.h b/vanetza/asn1/its2/SteeringWheelAngleConfidence.h new file mode 100644 index 000000000..e79d5085d --- /dev/null +++ b/vanetza/asn1/its2/SteeringWheelAngleConfidence.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _SteeringWheelAngleConfidence_H_ +#define _SteeringWheelAngleConfidence_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum SteeringWheelAngleConfidence { + SteeringWheelAngleConfidence_outOfRange = 126, + SteeringWheelAngleConfidence_unavailable = 127 +} e_SteeringWheelAngleConfidence; + +/* SteeringWheelAngleConfidence */ +typedef long SteeringWheelAngleConfidence_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_SteeringWheelAngleConfidence_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_SteeringWheelAngleConfidence; +asn_struct_free_f SteeringWheelAngleConfidence_free; +asn_struct_print_f SteeringWheelAngleConfidence_print; +asn_constr_check_f SteeringWheelAngleConfidence_constraint; +ber_type_decoder_f SteeringWheelAngleConfidence_decode_ber; +der_type_encoder_f SteeringWheelAngleConfidence_encode_der; +xer_type_decoder_f SteeringWheelAngleConfidence_decode_xer; +xer_type_encoder_f SteeringWheelAngleConfidence_encode_xer; +jer_type_encoder_f SteeringWheelAngleConfidence_encode_jer; +oer_type_decoder_f SteeringWheelAngleConfidence_decode_oer; +oer_type_encoder_f SteeringWheelAngleConfidence_encode_oer; +per_type_decoder_f SteeringWheelAngleConfidence_decode_uper; +per_type_encoder_f SteeringWheelAngleConfidence_encode_uper; +per_type_decoder_f SteeringWheelAngleConfidence_decode_aper; +per_type_encoder_f SteeringWheelAngleConfidence_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _SteeringWheelAngleConfidence_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/SteeringWheelAngleValue.c b/vanetza/asn1/its2/SteeringWheelAngleValue.c new file mode 100644 index 000000000..67f5c6f1d --- /dev/null +++ b/vanetza/asn1/its2/SteeringWheelAngleValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SteeringWheelAngleValue.h" + +int +SteeringWheelAngleValue_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 >= -511L && 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; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SteeringWheelAngleValue_constr_1 CC_NOTUSED = { + { 2, 0 } /* (-511..512) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SteeringWheelAngleValue_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 10, 10, -511, 512 } /* (-511..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 ber_tlv_tag_t asn_DEF_SteeringWheelAngleValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_SteeringWheelAngleValue = { + "SteeringWheelAngleValue", + "SteeringWheelAngleValue", + &asn_OP_NativeInteger, + asn_DEF_SteeringWheelAngleValue_tags_1, + sizeof(asn_DEF_SteeringWheelAngleValue_tags_1) + /sizeof(asn_DEF_SteeringWheelAngleValue_tags_1[0]), /* 1 */ + asn_DEF_SteeringWheelAngleValue_tags_1, /* Same as above */ + sizeof(asn_DEF_SteeringWheelAngleValue_tags_1) + /sizeof(asn_DEF_SteeringWheelAngleValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_SteeringWheelAngleValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SteeringWheelAngleValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SteeringWheelAngleValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/SteeringWheelAngleValue.h b/vanetza/asn1/its2/SteeringWheelAngleValue.h new file mode 100644 index 000000000..6e7badc50 --- /dev/null +++ b/vanetza/asn1/its2/SteeringWheelAngleValue.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _SteeringWheelAngleValue_H_ +#define _SteeringWheelAngleValue_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum SteeringWheelAngleValue { + SteeringWheelAngleValue_negativeOutOfRange = -511, + SteeringWheelAngleValue_positiveOutOfRange = 511, + SteeringWheelAngleValue_unavailable = 512 +} e_SteeringWheelAngleValue; + +/* SteeringWheelAngleValue */ +typedef long SteeringWheelAngleValue_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_SteeringWheelAngleValue_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_SteeringWheelAngleValue; +asn_struct_free_f SteeringWheelAngleValue_free; +asn_struct_print_f SteeringWheelAngleValue_print; +asn_constr_check_f SteeringWheelAngleValue_constraint; +ber_type_decoder_f SteeringWheelAngleValue_decode_ber; +der_type_encoder_f SteeringWheelAngleValue_encode_der; +xer_type_decoder_f SteeringWheelAngleValue_decode_xer; +xer_type_encoder_f SteeringWheelAngleValue_encode_xer; +jer_type_encoder_f SteeringWheelAngleValue_encode_jer; +oer_type_decoder_f SteeringWheelAngleValue_decode_oer; +oer_type_encoder_f SteeringWheelAngleValue_encode_oer; +per_type_decoder_f SteeringWheelAngleValue_decode_uper; +per_type_encoder_f SteeringWheelAngleValue_encode_uper; +per_type_decoder_f SteeringWheelAngleValue_decode_aper; +per_type_encoder_f SteeringWheelAngleValue_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _SteeringWheelAngleValue_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/StoredInformationType.c b/vanetza/asn1/its2/StoredInformationType.c new file mode 100644 index 000000000..a3f42b314 --- /dev/null +++ b/vanetza/asn1/its2/StoredInformationType.c @@ -0,0 +1,89 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "StoredInformationType.h" + +int +StoredInformationType_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_StoredInformationType_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_StoredInformationType_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 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_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_StoredInformationType_constr_1 CC_NOTUSED = { + -1}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_StoredInformationType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_StoredInformationType = { + "StoredInformationType", + "StoredInformationType", + &asn_OP_BIT_STRING, + asn_DEF_StoredInformationType_tags_1, + sizeof(asn_DEF_StoredInformationType_tags_1) + /sizeof(asn_DEF_StoredInformationType_tags_1[0]), /* 1 */ + asn_DEF_StoredInformationType_tags_1, /* Same as above */ + sizeof(asn_DEF_StoredInformationType_tags_1) + /sizeof(asn_DEF_StoredInformationType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_StoredInformationType_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_StoredInformationType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_StoredInformationType_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + StoredInformationType_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/StoredInformationType.h b/vanetza/asn1/its2/StoredInformationType.h new file mode 100644 index 000000000..c33540e61 --- /dev/null +++ b/vanetza/asn1/its2/StoredInformationType.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _StoredInformationType_H_ +#define _StoredInformationType_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "BIT_STRING.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum StoredInformationType { + StoredInformationType_undefined = 0, + StoredInformationType_staticDb = 1, + StoredInformationType_dynamicDb = 2, + StoredInformationType_realTimeDb = 3, + StoredInformationType_map = 4 +} e_StoredInformationType; + +/* StoredInformationType */ +typedef BIT_STRING_t StoredInformationType_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_StoredInformationType_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_StoredInformationType; +asn_struct_free_f StoredInformationType_free; +asn_struct_print_f StoredInformationType_print; +asn_constr_check_f StoredInformationType_constraint; +ber_type_decoder_f StoredInformationType_decode_ber; +der_type_encoder_f StoredInformationType_encode_der; +xer_type_decoder_f StoredInformationType_decode_xer; +xer_type_encoder_f StoredInformationType_encode_xer; +jer_type_encoder_f StoredInformationType_encode_jer; +oer_type_decoder_f StoredInformationType_decode_oer; +oer_type_encoder_f StoredInformationType_encode_oer; +per_type_decoder_f StoredInformationType_decode_uper; +per_type_encoder_f StoredInformationType_encode_uper; +per_type_decoder_f StoredInformationType_decode_aper; +per_type_encoder_f StoredInformationType_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _StoredInformationType_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/SubCauseCodeType.c b/vanetza/asn1/its2/SubCauseCodeType.c new file mode 100644 index 000000000..0398421d5 --- /dev/null +++ b/vanetza/asn1/its2/SubCauseCodeType.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "SubCauseCodeType.h" + +int +SubCauseCodeType_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_SubCauseCodeType_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_SubCauseCodeType_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_SubCauseCodeType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_SubCauseCodeType = { + "SubCauseCodeType", + "SubCauseCodeType", + &asn_OP_NativeInteger, + asn_DEF_SubCauseCodeType_tags_1, + sizeof(asn_DEF_SubCauseCodeType_tags_1) + /sizeof(asn_DEF_SubCauseCodeType_tags_1[0]), /* 1 */ + asn_DEF_SubCauseCodeType_tags_1, /* Same as above */ + sizeof(asn_DEF_SubCauseCodeType_tags_1) + /sizeof(asn_DEF_SubCauseCodeType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_SubCauseCodeType_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_SubCauseCodeType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SubCauseCodeType_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/SubCauseCodeType.h b/vanetza/asn1/its2/SubCauseCodeType.h new file mode 100644 index 000000000..7e49e8458 --- /dev/null +++ b/vanetza/asn1/its2/SubCauseCodeType.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _SubCauseCodeType_H_ +#define _SubCauseCodeType_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* SubCauseCodeType */ +typedef long SubCauseCodeType_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_SubCauseCodeType_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_SubCauseCodeType; +asn_struct_free_f SubCauseCodeType_free; +asn_struct_print_f SubCauseCodeType_print; +asn_constr_check_f SubCauseCodeType_constraint; +ber_type_decoder_f SubCauseCodeType_decode_ber; +der_type_encoder_f SubCauseCodeType_encode_der; +xer_type_decoder_f SubCauseCodeType_decode_xer; +xer_type_encoder_f SubCauseCodeType_encode_xer; +jer_type_encoder_f SubCauseCodeType_encode_jer; +oer_type_decoder_f SubCauseCodeType_decode_oer; +oer_type_encoder_f SubCauseCodeType_encode_oer; +per_type_decoder_f SubCauseCodeType_decode_uper; +per_type_encoder_f SubCauseCodeType_encode_uper; +per_type_decoder_f SubCauseCodeType_decode_aper; +per_type_encoder_f SubCauseCodeType_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _SubCauseCodeType_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/Temperature.c b/vanetza/asn1/its2/Temperature.c new file mode 100644 index 000000000..df87118b9 --- /dev/null +++ b/vanetza/asn1/its2/Temperature.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Temperature.h" + +int +Temperature_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 >= -60L && value <= 67L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_Temperature_constr_1 CC_NOTUSED = { + { 1, 0 } /* (-60..67) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Temperature_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, -60, 67 } /* (-60..67) */, + { 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_Temperature_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_Temperature = { + "Temperature", + "Temperature", + &asn_OP_NativeInteger, + asn_DEF_Temperature_tags_1, + sizeof(asn_DEF_Temperature_tags_1) + /sizeof(asn_DEF_Temperature_tags_1[0]), /* 1 */ + asn_DEF_Temperature_tags_1, /* Same as above */ + sizeof(asn_DEF_Temperature_tags_1) + /sizeof(asn_DEF_Temperature_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_Temperature_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Temperature_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + Temperature_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/Temperature.h b/vanetza/asn1/its2/Temperature.h new file mode 100644 index 000000000..997244b68 --- /dev/null +++ b/vanetza/asn1/its2/Temperature.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _Temperature_H_ +#define _Temperature_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum Temperature { + Temperature_equalOrSmallerThanMinus60Deg = -60, + Temperature_equalOrGreaterThan67Deg = 67 +} e_Temperature; + +/* Temperature */ +typedef long Temperature_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_Temperature_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_Temperature; +asn_struct_free_f Temperature_free; +asn_struct_print_f Temperature_print; +asn_constr_check_f Temperature_constraint; +ber_type_decoder_f Temperature_decode_ber; +der_type_encoder_f Temperature_encode_der; +xer_type_decoder_f Temperature_decode_xer; +xer_type_encoder_f Temperature_encode_xer; +jer_type_encoder_f Temperature_encode_jer; +oer_type_decoder_f Temperature_decode_oer; +oer_type_encoder_f Temperature_encode_oer; +per_type_decoder_f Temperature_decode_uper; +per_type_encoder_f Temperature_encode_uper; +per_type_decoder_f Temperature_decode_aper; +per_type_encoder_f Temperature_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _Temperature_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/Termination.c b/vanetza/asn1/its2/Termination.c new file mode 100644 index 000000000..758f28467 --- /dev/null +++ b/vanetza/asn1/its2/Termination.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "DENM-PDU-Description" + * found in "asn1/TS103831v211-DENM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Termination.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_Termination_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Termination_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_Termination_value2enum_1[] = { + { 0, 14, "isCancellation" }, + { 1, 10, "isNegation" } +}; +static const unsigned int asn_MAP_Termination_enum2value_1[] = { + 0, /* isCancellation(0) */ + 1 /* isNegation(1) */ +}; +const asn_INTEGER_specifics_t asn_SPC_Termination_specs_1 = { + asn_MAP_Termination_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_Termination_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_Termination_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_Termination = { + "Termination", + "Termination", + &asn_OP_NativeEnumerated, + asn_DEF_Termination_tags_1, + sizeof(asn_DEF_Termination_tags_1) + /sizeof(asn_DEF_Termination_tags_1[0]), /* 1 */ + asn_DEF_Termination_tags_1, /* Same as above */ + sizeof(asn_DEF_Termination_tags_1) + /sizeof(asn_DEF_Termination_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_Termination_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Termination_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_Termination_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/Termination.h b/vanetza/asn1/its2/Termination.h new file mode 100644 index 000000000..a548f8977 --- /dev/null +++ b/vanetza/asn1/its2/Termination.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "DENM-PDU-Description" + * found in "asn1/TS103831v211-DENM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _Termination_H_ +#define _Termination_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum Termination { + Termination_isCancellation = 0, + Termination_isNegation = 1 +} e_Termination; + +/* Termination */ +typedef long Termination_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_Termination_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_Termination; +extern const asn_INTEGER_specifics_t asn_SPC_Termination_specs_1; +asn_struct_free_f Termination_free; +asn_struct_print_f Termination_print; +asn_constr_check_f Termination_constraint; +ber_type_decoder_f Termination_decode_ber; +der_type_encoder_f Termination_encode_der; +xer_type_decoder_f Termination_decode_xer; +xer_type_encoder_f Termination_encode_xer; +jer_type_encoder_f Termination_encode_jer; +oer_type_decoder_f Termination_decode_oer; +oer_type_encoder_f Termination_encode_oer; +per_type_decoder_f Termination_decode_uper; +per_type_encoder_f Termination_encode_uper; +per_type_decoder_f Termination_decode_aper; +per_type_encoder_f Termination_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _Termination_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/TimestampIts.c b/vanetza/asn1/its2/TimestampIts.c new file mode 100644 index 000000000..8e5a2c188 --- /dev/null +++ b/vanetza/asn1/its2/TimestampIts.c @@ -0,0 +1,85 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "TimestampIts.h" + +int +TimestampIts_constraint(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 <= 4398046511103L)) { + /* 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 INTEGER, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_TimestampIts_constr_1 CC_NOTUSED = { + { 8, 1 } /* (0..4398046511103) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_TimestampIts_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 42, -1, 0, 4398046511103 } /* (0..4398046511103) */, + { 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_TimestampIts_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_TimestampIts = { + "TimestampIts", + "TimestampIts", + &asn_OP_INTEGER, + asn_DEF_TimestampIts_tags_1, + sizeof(asn_DEF_TimestampIts_tags_1) + /sizeof(asn_DEF_TimestampIts_tags_1[0]), /* 1 */ + asn_DEF_TimestampIts_tags_1, /* Same as above */ + sizeof(asn_DEF_TimestampIts_tags_1) + /sizeof(asn_DEF_TimestampIts_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_TimestampIts_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_TimestampIts_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + TimestampIts_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/TimestampIts.h b/vanetza/asn1/its2/TimestampIts.h new file mode 100644 index 000000000..009a20145 --- /dev/null +++ b/vanetza/asn1/its2/TimestampIts.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _TimestampIts_H_ +#define _TimestampIts_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "INTEGER.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* TimestampIts */ +typedef INTEGER_t TimestampIts_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_TimestampIts_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_TimestampIts; +asn_struct_free_f TimestampIts_free; +asn_struct_print_f TimestampIts_print; +asn_constr_check_f TimestampIts_constraint; +ber_type_decoder_f TimestampIts_decode_ber; +der_type_encoder_f TimestampIts_encode_der; +xer_type_decoder_f TimestampIts_decode_xer; +xer_type_encoder_f TimestampIts_encode_xer; +jer_type_encoder_f TimestampIts_encode_jer; +oer_type_decoder_f TimestampIts_decode_oer; +oer_type_encoder_f TimestampIts_encode_oer; +per_type_decoder_f TimestampIts_decode_uper; +per_type_encoder_f TimestampIts_encode_uper; +per_type_decoder_f TimestampIts_decode_aper; +per_type_encoder_f TimestampIts_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _TimestampIts_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/Traces.c b/vanetza/asn1/its2/Traces.c new file mode 100644 index 000000000..7861da51d --- /dev/null +++ b/vanetza/asn1/its2/Traces.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Traces.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_Traces_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..7)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Traces_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_Traces_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_Path, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_Traces_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_Traces_specs_1 = { + sizeof(struct Traces), + offsetof(struct Traces, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_Traces = { + "Traces", + "Traces", + &asn_OP_SEQUENCE_OF, + asn_DEF_Traces_tags_1, + sizeof(asn_DEF_Traces_tags_1) + /sizeof(asn_DEF_Traces_tags_1[0]), /* 1 */ + asn_DEF_Traces_tags_1, /* Same as above */ + sizeof(asn_DEF_Traces_tags_1) + /sizeof(asn_DEF_Traces_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_Traces_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Traces_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_Traces_1, + 1, /* Single element */ + &asn_SPC_Traces_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/Traces.h b/vanetza/asn1/its2/Traces.h new file mode 100644 index 000000000..8ae942d8b --- /dev/null +++ b/vanetza/asn1/its2/Traces.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _Traces_H_ +#define _Traces_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct Path; + +/* Traces */ +typedef struct Traces { + A_SEQUENCE_OF(struct Path) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Traces_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Traces; +extern asn_SET_OF_specifics_t asn_SPC_Traces_specs_1; +extern asn_TYPE_member_t asn_MBR_Traces_1[1]; +extern asn_per_constraints_t asn_PER_type_Traces_constr_1; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "Path.h" + +#endif /* _Traces_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/TracesExtended.c b/vanetza/asn1/its2/TracesExtended.c new file mode 100644 index 000000000..d5e4daf2a --- /dev/null +++ b/vanetza/asn1/its2/TracesExtended.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "TracesExtended.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_TracesExtended_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..7)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_TracesExtended_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) */ +static asn_TYPE_member_t asn_MBR_TracesExtended_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_PathExtended, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_TracesExtended_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_TracesExtended_specs_1 = { + sizeof(struct TracesExtended), + offsetof(struct TracesExtended, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_TracesExtended = { + "TracesExtended", + "TracesExtended", + &asn_OP_SEQUENCE_OF, + asn_DEF_TracesExtended_tags_1, + sizeof(asn_DEF_TracesExtended_tags_1) + /sizeof(asn_DEF_TracesExtended_tags_1[0]), /* 1 */ + asn_DEF_TracesExtended_tags_1, /* Same as above */ + sizeof(asn_DEF_TracesExtended_tags_1) + /sizeof(asn_DEF_TracesExtended_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_TracesExtended_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_TracesExtended_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_TracesExtended_1, + 1, /* Single element */ + &asn_SPC_TracesExtended_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/TracesExtended.h b/vanetza/asn1/its2/TracesExtended.h new file mode 100644 index 000000000..1a259208e --- /dev/null +++ b/vanetza/asn1/its2/TracesExtended.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _TracesExtended_H_ +#define _TracesExtended_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct PathExtended; + +/* TracesExtended */ +typedef struct TracesExtended { + A_SEQUENCE_OF(struct PathExtended) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} TracesExtended_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_TracesExtended; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "PathExtended.h" + +#endif /* _TracesExtended_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/TrafficConditionSubCauseCode.c b/vanetza/asn1/its2/TrafficConditionSubCauseCode.c new file mode 100644 index 000000000..3ebb40083 --- /dev/null +++ b/vanetza/asn1/its2/TrafficConditionSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "TrafficConditionSubCauseCode.h" + +int +TrafficConditionSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_TrafficConditionSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_TrafficConditionSubCauseCode_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_TrafficConditionSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_TrafficConditionSubCauseCode = { + "TrafficConditionSubCauseCode", + "TrafficConditionSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_TrafficConditionSubCauseCode_tags_1, + sizeof(asn_DEF_TrafficConditionSubCauseCode_tags_1) + /sizeof(asn_DEF_TrafficConditionSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_TrafficConditionSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_TrafficConditionSubCauseCode_tags_1) + /sizeof(asn_DEF_TrafficConditionSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_TrafficConditionSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_TrafficConditionSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + TrafficConditionSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/TrafficConditionSubCauseCode.h b/vanetza/asn1/its2/TrafficConditionSubCauseCode.h new file mode 100644 index 000000000..dcf549de4 --- /dev/null +++ b/vanetza/asn1/its2/TrafficConditionSubCauseCode.h @@ -0,0 +1,61 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _TrafficConditionSubCauseCode_H_ +#define _TrafficConditionSubCauseCode_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum TrafficConditionSubCauseCode { + TrafficConditionSubCauseCode_unavailable = 0, + TrafficConditionSubCauseCode_increasedVolumeOfTraffic = 1, + TrafficConditionSubCauseCode_trafficJamSlowlyIncreasing = 2, + TrafficConditionSubCauseCode_trafficJamIncreasing = 3, + TrafficConditionSubCauseCode_trafficJamStronglyIncreasing = 4, + TrafficConditionSubCauseCode_trafficJam = 5, + TrafficConditionSubCauseCode_trafficJamSlightlyDecreasing = 6, + TrafficConditionSubCauseCode_trafficJamDecreasing = 7, + TrafficConditionSubCauseCode_trafficJamStronglyDecreasing = 8, + TrafficConditionSubCauseCode_trafficJamStable = 9 +} e_TrafficConditionSubCauseCode; + +/* TrafficConditionSubCauseCode */ +typedef long TrafficConditionSubCauseCode_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_TrafficConditionSubCauseCode_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_TrafficConditionSubCauseCode; +asn_struct_free_f TrafficConditionSubCauseCode_free; +asn_struct_print_f TrafficConditionSubCauseCode_print; +asn_constr_check_f TrafficConditionSubCauseCode_constraint; +ber_type_decoder_f TrafficConditionSubCauseCode_decode_ber; +der_type_encoder_f TrafficConditionSubCauseCode_encode_der; +xer_type_decoder_f TrafficConditionSubCauseCode_decode_xer; +xer_type_encoder_f TrafficConditionSubCauseCode_encode_xer; +jer_type_encoder_f TrafficConditionSubCauseCode_encode_jer; +oer_type_decoder_f TrafficConditionSubCauseCode_decode_oer; +oer_type_encoder_f TrafficConditionSubCauseCode_encode_oer; +per_type_decoder_f TrafficConditionSubCauseCode_decode_uper; +per_type_encoder_f TrafficConditionSubCauseCode_encode_uper; +per_type_decoder_f TrafficConditionSubCauseCode_decode_aper; +per_type_encoder_f TrafficConditionSubCauseCode_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _TrafficConditionSubCauseCode_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/TrafficDirection.c b/vanetza/asn1/its2/TrafficDirection.c new file mode 100644 index 000000000..1f9d53004 --- /dev/null +++ b/vanetza/asn1/its2/TrafficDirection.c @@ -0,0 +1,75 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "TrafficDirection.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_TrafficDirection_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_TrafficDirection_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) */ +static const asn_INTEGER_enum_map_t asn_MAP_TrafficDirection_value2enum_1[] = { + { 0, 20, "allTrafficDirections" }, + { 1, 52, "sameAsReferenceDirection-upstreamOfReferencePosition" }, + { 2, 54, "sameAsReferenceDirection-downstreamOfReferencePosition" }, + { 3, 28, "oppositeToReferenceDirection" } +}; +static const unsigned int asn_MAP_TrafficDirection_enum2value_1[] = { + 0, /* allTrafficDirections(0) */ + 3, /* oppositeToReferenceDirection(3) */ + 2, /* sameAsReferenceDirection-downstreamOfReferencePosition(2) */ + 1 /* sameAsReferenceDirection-upstreamOfReferencePosition(1) */ +}; +const asn_INTEGER_specifics_t asn_SPC_TrafficDirection_specs_1 = { + asn_MAP_TrafficDirection_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_TrafficDirection_enum2value_1, /* 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_TrafficDirection_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_TrafficDirection = { + "TrafficDirection", + "TrafficDirection", + &asn_OP_NativeEnumerated, + asn_DEF_TrafficDirection_tags_1, + sizeof(asn_DEF_TrafficDirection_tags_1) + /sizeof(asn_DEF_TrafficDirection_tags_1[0]), /* 1 */ + asn_DEF_TrafficDirection_tags_1, /* Same as above */ + sizeof(asn_DEF_TrafficDirection_tags_1) + /sizeof(asn_DEF_TrafficDirection_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_TrafficDirection_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_TrafficDirection_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_TrafficDirection_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/TrafficDirection.h b/vanetza/asn1/its2/TrafficDirection.h new file mode 100644 index 000000000..20780caeb --- /dev/null +++ b/vanetza/asn1/its2/TrafficDirection.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _TrafficDirection_H_ +#define _TrafficDirection_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum TrafficDirection { + TrafficDirection_allTrafficDirections = 0, + TrafficDirection_sameAsReferenceDirection_upstreamOfReferencePosition = 1, + TrafficDirection_sameAsReferenceDirection_downstreamOfReferencePosition = 2, + TrafficDirection_oppositeToReferenceDirection = 3 +} e_TrafficDirection; + +/* TrafficDirection */ +typedef long TrafficDirection_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_TrafficDirection_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_TrafficDirection; +extern const asn_INTEGER_specifics_t asn_SPC_TrafficDirection_specs_1; +asn_struct_free_f TrafficDirection_free; +asn_struct_print_f TrafficDirection_print; +asn_constr_check_f TrafficDirection_constraint; +ber_type_decoder_f TrafficDirection_decode_ber; +der_type_encoder_f TrafficDirection_encode_der; +xer_type_decoder_f TrafficDirection_decode_xer; +xer_type_encoder_f TrafficDirection_encode_xer; +jer_type_encoder_f TrafficDirection_encode_jer; +oer_type_decoder_f TrafficDirection_decode_oer; +oer_type_encoder_f TrafficDirection_encode_oer; +per_type_decoder_f TrafficDirection_decode_uper; +per_type_encoder_f TrafficDirection_encode_uper; +per_type_decoder_f TrafficDirection_decode_aper; +per_type_encoder_f TrafficDirection_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _TrafficDirection_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/TrafficIslandPosition.c b/vanetza/asn1/its2/TrafficIslandPosition.c new file mode 100644 index 000000000..1f465c399 --- /dev/null +++ b/vanetza/asn1/its2/TrafficIslandPosition.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "TrafficIslandPosition.h" + +asn_TYPE_member_t asn_MBR_TrafficIslandPosition_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct TrafficIslandPosition, oneSide), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LanePositionAndType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "oneSide" + }, + { ATF_NOFLAGS, 0, offsetof(struct TrafficIslandPosition, otherSide), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LanePositionAndType, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "otherSide" + }, +}; +static const ber_tlv_tag_t asn_DEF_TrafficIslandPosition_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_TrafficIslandPosition_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* oneSide */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* otherSide */ +}; +asn_SEQUENCE_specifics_t asn_SPC_TrafficIslandPosition_specs_1 = { + sizeof(struct TrafficIslandPosition), + offsetof(struct TrafficIslandPosition, _asn_ctx), + asn_MAP_TrafficIslandPosition_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_TrafficIslandPosition = { + "TrafficIslandPosition", + "TrafficIslandPosition", + &asn_OP_SEQUENCE, + asn_DEF_TrafficIslandPosition_tags_1, + sizeof(asn_DEF_TrafficIslandPosition_tags_1) + /sizeof(asn_DEF_TrafficIslandPosition_tags_1[0]), /* 1 */ + asn_DEF_TrafficIslandPosition_tags_1, /* Same as above */ + sizeof(asn_DEF_TrafficIslandPosition_tags_1) + /sizeof(asn_DEF_TrafficIslandPosition_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_TrafficIslandPosition_1, + 2, /* Elements count */ + &asn_SPC_TrafficIslandPosition_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/TrafficIslandPosition.h b/vanetza/asn1/its2/TrafficIslandPosition.h new file mode 100644 index 000000000..e7c9c9114 --- /dev/null +++ b/vanetza/asn1/its2/TrafficIslandPosition.h @@ -0,0 +1,45 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _TrafficIslandPosition_H_ +#define _TrafficIslandPosition_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "LanePositionAndType.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* TrafficIslandPosition */ +typedef struct TrafficIslandPosition { + LanePositionAndType_t oneSide; + LanePositionAndType_t otherSide; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} TrafficIslandPosition_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_TrafficIslandPosition; +extern asn_SEQUENCE_specifics_t asn_SPC_TrafficIslandPosition_specs_1; +extern asn_TYPE_member_t asn_MBR_TrafficIslandPosition_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _TrafficIslandPosition_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/TrafficParticipantType.c b/vanetza/asn1/its2/TrafficParticipantType.c new file mode 100644 index 000000000..d3f9c0d8c --- /dev/null +++ b/vanetza/asn1/its2/TrafficParticipantType.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "TrafficParticipantType.h" + +int +TrafficParticipantType_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_TrafficParticipantType_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_TrafficParticipantType_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_TrafficParticipantType_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_TrafficParticipantType = { + "TrafficParticipantType", + "TrafficParticipantType", + &asn_OP_NativeInteger, + asn_DEF_TrafficParticipantType_tags_1, + sizeof(asn_DEF_TrafficParticipantType_tags_1) + /sizeof(asn_DEF_TrafficParticipantType_tags_1[0]), /* 1 */ + asn_DEF_TrafficParticipantType_tags_1, /* Same as above */ + sizeof(asn_DEF_TrafficParticipantType_tags_1) + /sizeof(asn_DEF_TrafficParticipantType_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_TrafficParticipantType_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_TrafficParticipantType_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + TrafficParticipantType_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/TrafficParticipantType.h b/vanetza/asn1/its2/TrafficParticipantType.h new file mode 100644 index 000000000..dc942b6c0 --- /dev/null +++ b/vanetza/asn1/its2/TrafficParticipantType.h @@ -0,0 +1,67 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _TrafficParticipantType_H_ +#define _TrafficParticipantType_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum TrafficParticipantType { + TrafficParticipantType_unknown = 0, + TrafficParticipantType_pedestrian = 1, + TrafficParticipantType_cyclist = 2, + TrafficParticipantType_moped = 3, + TrafficParticipantType_motorcycle = 4, + TrafficParticipantType_passengerCar = 5, + TrafficParticipantType_bus = 6, + TrafficParticipantType_lightTruck = 7, + TrafficParticipantType_heavyTruck = 8, + TrafficParticipantType_trailer = 9, + TrafficParticipantType_specialVehicle = 10, + TrafficParticipantType_tram = 11, + TrafficParticipantType_lightVruVehicle = 12, + TrafficParticipantType_animal = 13, + TrafficParticipantType_agricultural = 14, + TrafficParticipantType_roadSideUnit = 15 +} e_TrafficParticipantType; + +/* TrafficParticipantType */ +typedef long TrafficParticipantType_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_TrafficParticipantType_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_TrafficParticipantType; +asn_struct_free_f TrafficParticipantType_free; +asn_struct_print_f TrafficParticipantType_print; +asn_constr_check_f TrafficParticipantType_constraint; +ber_type_decoder_f TrafficParticipantType_decode_ber; +der_type_encoder_f TrafficParticipantType_encode_der; +xer_type_decoder_f TrafficParticipantType_decode_xer; +xer_type_encoder_f TrafficParticipantType_encode_xer; +jer_type_encoder_f TrafficParticipantType_encode_jer; +oer_type_decoder_f TrafficParticipantType_decode_oer; +oer_type_encoder_f TrafficParticipantType_encode_oer; +per_type_decoder_f TrafficParticipantType_decode_uper; +per_type_encoder_f TrafficParticipantType_encode_uper; +per_type_decoder_f TrafficParticipantType_decode_aper; +per_type_encoder_f TrafficParticipantType_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _TrafficParticipantType_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/TrafficRule.c b/vanetza/asn1/its2/TrafficRule.c new file mode 100644 index 000000000..72122f83e --- /dev/null +++ b/vanetza/asn1/its2/TrafficRule.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "TrafficRule.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_TrafficRule_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_TrafficRule_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_TrafficRule_value2enum_1[] = { + { 0, 9, "noPassing" }, + { 1, 18, "noPassingForTrucks" }, + { 2, 11, "passToRight" }, + { 3, 10, "passToLeft" }, + { 4, 17, "passToLeftOrRight" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_TrafficRule_enum2value_1[] = { + 0, /* noPassing(0) */ + 1, /* noPassingForTrucks(1) */ + 3, /* passToLeft(3) */ + 4, /* passToLeftOrRight(4) */ + 2 /* passToRight(2) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_TrafficRule_specs_1 = { + asn_MAP_TrafficRule_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_TrafficRule_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_TrafficRule_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_TrafficRule = { + "TrafficRule", + "TrafficRule", + &asn_OP_NativeEnumerated, + asn_DEF_TrafficRule_tags_1, + sizeof(asn_DEF_TrafficRule_tags_1) + /sizeof(asn_DEF_TrafficRule_tags_1[0]), /* 1 */ + asn_DEF_TrafficRule_tags_1, /* Same as above */ + sizeof(asn_DEF_TrafficRule_tags_1) + /sizeof(asn_DEF_TrafficRule_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_TrafficRule_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_TrafficRule_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_TrafficRule_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/TrafficRule.h b/vanetza/asn1/its2/TrafficRule.h new file mode 100644 index 000000000..c90e2ef3b --- /dev/null +++ b/vanetza/asn1/its2/TrafficRule.h @@ -0,0 +1,60 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _TrafficRule_H_ +#define _TrafficRule_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum TrafficRule { + TrafficRule_noPassing = 0, + TrafficRule_noPassingForTrucks = 1, + TrafficRule_passToRight = 2, + TrafficRule_passToLeft = 3, + /* + * Enumeration is extensible + */ + TrafficRule_passToLeftOrRight = 4 +} e_TrafficRule; + +/* TrafficRule */ +typedef long TrafficRule_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_TrafficRule_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_TrafficRule; +extern const asn_INTEGER_specifics_t asn_SPC_TrafficRule_specs_1; +asn_struct_free_f TrafficRule_free; +asn_struct_print_f TrafficRule_print; +asn_constr_check_f TrafficRule_constraint; +ber_type_decoder_f TrafficRule_decode_ber; +der_type_encoder_f TrafficRule_encode_der; +xer_type_decoder_f TrafficRule_decode_xer; +xer_type_encoder_f TrafficRule_encode_xer; +jer_type_encoder_f TrafficRule_encode_jer; +oer_type_decoder_f TrafficRule_decode_oer; +oer_type_encoder_f TrafficRule_encode_oer; +per_type_decoder_f TrafficRule_decode_uper; +per_type_encoder_f TrafficRule_encode_uper; +per_type_decoder_f TrafficRule_decode_aper; +per_type_encoder_f TrafficRule_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _TrafficRule_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/TrailerData.c b/vanetza/asn1/its2/TrailerData.c new file mode 100644 index 000000000..e95bdce30 --- /dev/null +++ b/vanetza/asn1/its2/TrailerData.c @@ -0,0 +1,179 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "TrailerData.h" + +asn_TYPE_member_t asn_MBR_TrailerData_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct TrailerData, refPointId), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Identifier1B, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "refPointId" + }, + { ATF_NOFLAGS, 0, offsetof(struct TrailerData, hitchPointOffset), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StandardLength1B, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "hitchPointOffset" + }, + { ATF_POINTER, 3, offsetof(struct TrailerData, frontOverhang), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StandardLength1B, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "frontOverhang" + }, + { ATF_POINTER, 2, offsetof(struct TrailerData, rearOverhang), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StandardLength1B, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rearOverhang" + }, + { ATF_POINTER, 1, offsetof(struct TrailerData, trailerWidth), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VehicleWidth, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "trailerWidth" + }, + { ATF_NOFLAGS, 0, offsetof(struct TrailerData, hitchAngle), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianAngle, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "hitchAngle" + }, +}; +static const int asn_MAP_TrailerData_oms_1[] = { 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_TrailerData_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_TrailerData_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* refPointId */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* hitchPointOffset */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* frontOverhang */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* rearOverhang */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* trailerWidth */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* hitchAngle */ +}; +asn_SEQUENCE_specifics_t asn_SPC_TrailerData_specs_1 = { + sizeof(struct TrailerData), + offsetof(struct TrailerData, _asn_ctx), + asn_MAP_TrailerData_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_TrailerData_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_TrailerData = { + "TrailerData", + "TrailerData", + &asn_OP_SEQUENCE, + asn_DEF_TrailerData_tags_1, + sizeof(asn_DEF_TrailerData_tags_1) + /sizeof(asn_DEF_TrailerData_tags_1[0]), /* 1 */ + asn_DEF_TrailerData_tags_1, /* Same as above */ + sizeof(asn_DEF_TrailerData_tags_1) + /sizeof(asn_DEF_TrailerData_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_TrailerData_1, + 6, /* Elements count */ + &asn_SPC_TrailerData_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/TrailerData.h b/vanetza/asn1/its2/TrailerData.h new file mode 100644 index 000000000..61810d494 --- /dev/null +++ b/vanetza/asn1/its2/TrailerData.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _TrailerData_H_ +#define _TrailerData_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "Identifier1B.h" +#include "StandardLength1B.h" +#include "VehicleWidth.h" +#include "CartesianAngle.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* TrailerData */ +typedef struct TrailerData { + Identifier1B_t refPointId; + StandardLength1B_t hitchPointOffset; + StandardLength1B_t *frontOverhang; /* OPTIONAL */ + StandardLength1B_t *rearOverhang; /* OPTIONAL */ + VehicleWidth_t *trailerWidth; /* OPTIONAL */ + CartesianAngle_t hitchAngle; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} TrailerData_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_TrailerData; +extern asn_SEQUENCE_specifics_t asn_SPC_TrailerData_specs_1; +extern asn_TYPE_member_t asn_MBR_TrailerData_1[6]; + +#ifdef __cplusplus +} +#endif + +#endif /* _TrailerData_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/TrailerDataSet.c b/vanetza/asn1/its2/TrailerDataSet.c new file mode 100644 index 000000000..5824dead6 --- /dev/null +++ b/vanetza/asn1/its2/TrailerDataSet.c @@ -0,0 +1,109 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-OriginatingStationContainers" + * found in "asn1/TS103324v211-CPM-OriginatingStationContainers.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "TrailerDataSet.h" + +static int +memb_TrailerData_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; + } + + + if(1 /* No applicable constraints whatsoever */) { + /* Nothing is here. See below */ + } + + return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); +} + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_Member_constr_2 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#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_UNCONSTRAINED, -1, -1, 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_TrailerDataSet_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_TrailerDataSet_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 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_TrailerDataSet_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_TrailerData, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_Member_constr_2, +#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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_TrailerData_constraint_1 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_TrailerDataSet_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_TrailerDataSet_specs_1 = { + sizeof(struct TrailerDataSet), + offsetof(struct TrailerDataSet, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_TrailerDataSet = { + "TrailerDataSet", + "TrailerDataSet", + &asn_OP_SEQUENCE_OF, + asn_DEF_TrailerDataSet_tags_1, + sizeof(asn_DEF_TrailerDataSet_tags_1) + /sizeof(asn_DEF_TrailerDataSet_tags_1[0]), /* 1 */ + asn_DEF_TrailerDataSet_tags_1, /* Same as above */ + sizeof(asn_DEF_TrailerDataSet_tags_1) + /sizeof(asn_DEF_TrailerDataSet_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_TrailerDataSet_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_TrailerDataSet_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_TrailerDataSet_1, + 1, /* Single element */ + &asn_SPC_TrailerDataSet_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/TrailerDataSet.h b/vanetza/asn1/its2/TrailerDataSet.h new file mode 100644 index 000000000..685c4339c --- /dev/null +++ b/vanetza/asn1/its2/TrailerDataSet.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-OriginatingStationContainers" + * found in "asn1/TS103324v211-CPM-OriginatingStationContainers.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _TrailerDataSet_H_ +#define _TrailerDataSet_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct TrailerData; + +/* TrailerDataSet */ +typedef struct TrailerDataSet { + A_SEQUENCE_OF(struct TrailerData) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} TrailerDataSet_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_TrailerDataSet; +extern asn_SET_OF_specifics_t asn_SPC_TrailerDataSet_specs_1; +extern asn_TYPE_member_t asn_MBR_TrailerDataSet_1[1]; +extern asn_per_constraints_t asn_PER_type_TrailerDataSet_constr_1; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "TrailerData.h" + +#endif /* _TrailerDataSet_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/TrailerPresenceInformation.c b/vanetza/asn1/its2/TrailerPresenceInformation.c new file mode 100644 index 000000000..7ced26ae2 --- /dev/null +++ b/vanetza/asn1/its2/TrailerPresenceInformation.c @@ -0,0 +1,77 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "TrailerPresenceInformation.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_TrailerPresenceInformation_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_TrailerPresenceInformation_constr_1 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_TrailerPresenceInformation_value2enum_1[] = { + { 0, 16, "noTrailerPresent" }, + { 1, 29, "trailerPresentWithKnownLength" }, + { 2, 31, "trailerPresentWithUnknownLength" }, + { 3, 24, "trailerPresenceIsUnknown" }, + { 4, 11, "unavailable" } +}; +static const unsigned int asn_MAP_TrailerPresenceInformation_enum2value_1[] = { + 0, /* noTrailerPresent(0) */ + 3, /* trailerPresenceIsUnknown(3) */ + 1, /* trailerPresentWithKnownLength(1) */ + 2, /* trailerPresentWithUnknownLength(2) */ + 4 /* unavailable(4) */ +}; +const asn_INTEGER_specifics_t asn_SPC_TrailerPresenceInformation_specs_1 = { + asn_MAP_TrailerPresenceInformation_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_TrailerPresenceInformation_enum2value_1, /* 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_TrailerPresenceInformation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_TrailerPresenceInformation = { + "TrailerPresenceInformation", + "TrailerPresenceInformation", + &asn_OP_NativeEnumerated, + asn_DEF_TrailerPresenceInformation_tags_1, + sizeof(asn_DEF_TrailerPresenceInformation_tags_1) + /sizeof(asn_DEF_TrailerPresenceInformation_tags_1[0]), /* 1 */ + asn_DEF_TrailerPresenceInformation_tags_1, /* Same as above */ + sizeof(asn_DEF_TrailerPresenceInformation_tags_1) + /sizeof(asn_DEF_TrailerPresenceInformation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_TrailerPresenceInformation_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_TrailerPresenceInformation_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_TrailerPresenceInformation_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/TrailerPresenceInformation.h b/vanetza/asn1/its2/TrailerPresenceInformation.h new file mode 100644 index 000000000..04e818655 --- /dev/null +++ b/vanetza/asn1/its2/TrailerPresenceInformation.h @@ -0,0 +1,57 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _TrailerPresenceInformation_H_ +#define _TrailerPresenceInformation_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum TrailerPresenceInformation { + TrailerPresenceInformation_noTrailerPresent = 0, + TrailerPresenceInformation_trailerPresentWithKnownLength = 1, + TrailerPresenceInformation_trailerPresentWithUnknownLength = 2, + TrailerPresenceInformation_trailerPresenceIsUnknown = 3, + TrailerPresenceInformation_unavailable = 4 +} e_TrailerPresenceInformation; + +/* TrailerPresenceInformation */ +typedef long TrailerPresenceInformation_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_TrailerPresenceInformation_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_TrailerPresenceInformation; +extern const asn_INTEGER_specifics_t asn_SPC_TrailerPresenceInformation_specs_1; +asn_struct_free_f TrailerPresenceInformation_free; +asn_struct_print_f TrailerPresenceInformation_print; +asn_constr_check_f TrailerPresenceInformation_constraint; +ber_type_decoder_f TrailerPresenceInformation_decode_ber; +der_type_encoder_f TrailerPresenceInformation_encode_der; +xer_type_decoder_f TrailerPresenceInformation_decode_xer; +xer_type_encoder_f TrailerPresenceInformation_encode_xer; +jer_type_encoder_f TrailerPresenceInformation_encode_jer; +oer_type_decoder_f TrailerPresenceInformation_decode_oer; +oer_type_encoder_f TrailerPresenceInformation_encode_oer; +per_type_decoder_f TrailerPresenceInformation_decode_uper; +per_type_encoder_f TrailerPresenceInformation_encode_uper; +per_type_decoder_f TrailerPresenceInformation_decode_aper; +per_type_encoder_f TrailerPresenceInformation_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _TrailerPresenceInformation_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/TrajectoryInterceptionConfidence.c b/vanetza/asn1/its2/TrajectoryInterceptionConfidence.c new file mode 100644 index 000000000..a902e9446 --- /dev/null +++ b/vanetza/asn1/its2/TrajectoryInterceptionConfidence.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "TrajectoryInterceptionConfidence.h" + +int +TrajectoryInterceptionConfidence_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 <= 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 NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_TrajectoryInterceptionConfidence_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..3) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_TrajectoryInterceptionConfidence_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) */ +static const ber_tlv_tag_t asn_DEF_TrajectoryInterceptionConfidence_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_TrajectoryInterceptionConfidence = { + "TrajectoryInterceptionConfidence", + "TrajectoryInterceptionConfidence", + &asn_OP_NativeInteger, + asn_DEF_TrajectoryInterceptionConfidence_tags_1, + sizeof(asn_DEF_TrajectoryInterceptionConfidence_tags_1) + /sizeof(asn_DEF_TrajectoryInterceptionConfidence_tags_1[0]), /* 1 */ + asn_DEF_TrajectoryInterceptionConfidence_tags_1, /* Same as above */ + sizeof(asn_DEF_TrajectoryInterceptionConfidence_tags_1) + /sizeof(asn_DEF_TrajectoryInterceptionConfidence_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_TrajectoryInterceptionConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_TrajectoryInterceptionConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + TrajectoryInterceptionConfidence_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/TrajectoryInterceptionConfidence.h b/vanetza/asn1/its2/TrajectoryInterceptionConfidence.h new file mode 100644 index 000000000..9db261bc8 --- /dev/null +++ b/vanetza/asn1/its2/TrajectoryInterceptionConfidence.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _TrajectoryInterceptionConfidence_H_ +#define _TrajectoryInterceptionConfidence_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum TrajectoryInterceptionConfidence { + TrajectoryInterceptionConfidence_lessthan50percent = 0, + TrajectoryInterceptionConfidence_between50and70Percent = 1, + TrajectoryInterceptionConfidence_between70and90Percent = 2, + TrajectoryInterceptionConfidence_above90Percent = 3 +} e_TrajectoryInterceptionConfidence; + +/* TrajectoryInterceptionConfidence */ +typedef long TrajectoryInterceptionConfidence_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_TrajectoryInterceptionConfidence_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_TrajectoryInterceptionConfidence; +asn_struct_free_f TrajectoryInterceptionConfidence_free; +asn_struct_print_f TrajectoryInterceptionConfidence_print; +asn_constr_check_f TrajectoryInterceptionConfidence_constraint; +ber_type_decoder_f TrajectoryInterceptionConfidence_decode_ber; +der_type_encoder_f TrajectoryInterceptionConfidence_encode_der; +xer_type_decoder_f TrajectoryInterceptionConfidence_decode_xer; +xer_type_encoder_f TrajectoryInterceptionConfidence_encode_xer; +jer_type_encoder_f TrajectoryInterceptionConfidence_encode_jer; +oer_type_decoder_f TrajectoryInterceptionConfidence_decode_oer; +oer_type_encoder_f TrajectoryInterceptionConfidence_encode_oer; +per_type_decoder_f TrajectoryInterceptionConfidence_decode_uper; +per_type_encoder_f TrajectoryInterceptionConfidence_encode_uper; +per_type_decoder_f TrajectoryInterceptionConfidence_decode_aper; +per_type_encoder_f TrajectoryInterceptionConfidence_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _TrajectoryInterceptionConfidence_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/TrajectoryInterceptionIndication.c b/vanetza/asn1/its2/TrajectoryInterceptionIndication.c new file mode 100644 index 000000000..6142944ad --- /dev/null +++ b/vanetza/asn1/its2/TrajectoryInterceptionIndication.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "TrajectoryInterceptionIndication.h" + +asn_TYPE_member_t asn_MBR_TrajectoryInterceptionIndication_1[] = { + { ATF_POINTER, 1, offsetof(struct TrajectoryInterceptionIndication, subjectStation), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StationId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "subjectStation" + }, + { ATF_NOFLAGS, 0, offsetof(struct TrajectoryInterceptionIndication, trajectoryInterceptionProbability), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TrajectoryInterceptionProbability, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "trajectoryInterceptionProbability" + }, + { ATF_POINTER, 1, offsetof(struct TrajectoryInterceptionIndication, trajectoryInterceptionConfidence), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TrajectoryInterceptionConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "trajectoryInterceptionConfidence" + }, +}; +static const int asn_MAP_TrajectoryInterceptionIndication_oms_1[] = { 0, 2 }; +static const ber_tlv_tag_t asn_DEF_TrajectoryInterceptionIndication_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_TrajectoryInterceptionIndication_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* subjectStation */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* trajectoryInterceptionProbability */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* trajectoryInterceptionConfidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_TrajectoryInterceptionIndication_specs_1 = { + sizeof(struct TrajectoryInterceptionIndication), + offsetof(struct TrajectoryInterceptionIndication, _asn_ctx), + asn_MAP_TrajectoryInterceptionIndication_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_TrajectoryInterceptionIndication_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_TrajectoryInterceptionIndication = { + "TrajectoryInterceptionIndication", + "TrajectoryInterceptionIndication", + &asn_OP_SEQUENCE, + asn_DEF_TrajectoryInterceptionIndication_tags_1, + sizeof(asn_DEF_TrajectoryInterceptionIndication_tags_1) + /sizeof(asn_DEF_TrajectoryInterceptionIndication_tags_1[0]), /* 1 */ + asn_DEF_TrajectoryInterceptionIndication_tags_1, /* Same as above */ + sizeof(asn_DEF_TrajectoryInterceptionIndication_tags_1) + /sizeof(asn_DEF_TrajectoryInterceptionIndication_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_TrajectoryInterceptionIndication_1, + 3, /* Elements count */ + &asn_SPC_TrajectoryInterceptionIndication_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/TrajectoryInterceptionIndication.h b/vanetza/asn1/its2/TrajectoryInterceptionIndication.h new file mode 100644 index 000000000..e8d0e7270 --- /dev/null +++ b/vanetza/asn1/its2/TrajectoryInterceptionIndication.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _TrajectoryInterceptionIndication_H_ +#define _TrajectoryInterceptionIndication_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "StationId.h" +#include "TrajectoryInterceptionProbability.h" +#include "TrajectoryInterceptionConfidence.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* TrajectoryInterceptionIndication */ +typedef struct TrajectoryInterceptionIndication { + StationId_t *subjectStation; /* OPTIONAL */ + TrajectoryInterceptionProbability_t trajectoryInterceptionProbability; + TrajectoryInterceptionConfidence_t *trajectoryInterceptionConfidence; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} TrajectoryInterceptionIndication_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_TrajectoryInterceptionIndication; +extern asn_SEQUENCE_specifics_t asn_SPC_TrajectoryInterceptionIndication_specs_1; +extern asn_TYPE_member_t asn_MBR_TrajectoryInterceptionIndication_1[3]; + +#ifdef __cplusplus +} +#endif + +#endif /* _TrajectoryInterceptionIndication_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/TrajectoryInterceptionProbability.c b/vanetza/asn1/its2/TrajectoryInterceptionProbability.c new file mode 100644 index 000000000..5b98f4c6f --- /dev/null +++ b/vanetza/asn1/its2/TrajectoryInterceptionProbability.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "TrajectoryInterceptionProbability.h" + +int +TrajectoryInterceptionProbability_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_TrajectoryInterceptionProbability_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..63) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_TrajectoryInterceptionProbability_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_TrajectoryInterceptionProbability_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_TrajectoryInterceptionProbability = { + "TrajectoryInterceptionProbability", + "TrajectoryInterceptionProbability", + &asn_OP_NativeInteger, + asn_DEF_TrajectoryInterceptionProbability_tags_1, + sizeof(asn_DEF_TrajectoryInterceptionProbability_tags_1) + /sizeof(asn_DEF_TrajectoryInterceptionProbability_tags_1[0]), /* 1 */ + asn_DEF_TrajectoryInterceptionProbability_tags_1, /* Same as above */ + sizeof(asn_DEF_TrajectoryInterceptionProbability_tags_1) + /sizeof(asn_DEF_TrajectoryInterceptionProbability_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_TrajectoryInterceptionProbability_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_TrajectoryInterceptionProbability_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + TrajectoryInterceptionProbability_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/TrajectoryInterceptionProbability.h b/vanetza/asn1/its2/TrajectoryInterceptionProbability.h new file mode 100644 index 000000000..e8708f532 --- /dev/null +++ b/vanetza/asn1/its2/TrajectoryInterceptionProbability.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _TrajectoryInterceptionProbability_H_ +#define _TrajectoryInterceptionProbability_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum TrajectoryInterceptionProbability { + TrajectoryInterceptionProbability_unavailable = 63 +} e_TrajectoryInterceptionProbability; + +/* TrajectoryInterceptionProbability */ +typedef long TrajectoryInterceptionProbability_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_TrajectoryInterceptionProbability_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_TrajectoryInterceptionProbability; +asn_struct_free_f TrajectoryInterceptionProbability_free; +asn_struct_print_f TrajectoryInterceptionProbability_print; +asn_constr_check_f TrajectoryInterceptionProbability_constraint; +ber_type_decoder_f TrajectoryInterceptionProbability_decode_ber; +der_type_encoder_f TrajectoryInterceptionProbability_encode_der; +xer_type_decoder_f TrajectoryInterceptionProbability_decode_xer; +xer_type_encoder_f TrajectoryInterceptionProbability_encode_xer; +jer_type_encoder_f TrajectoryInterceptionProbability_encode_jer; +oer_type_decoder_f TrajectoryInterceptionProbability_decode_oer; +oer_type_encoder_f TrajectoryInterceptionProbability_encode_oer; +per_type_decoder_f TrajectoryInterceptionProbability_decode_uper; +per_type_encoder_f TrajectoryInterceptionProbability_encode_uper; +per_type_decoder_f TrajectoryInterceptionProbability_decode_aper; +per_type_encoder_f TrajectoryInterceptionProbability_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _TrajectoryInterceptionProbability_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/TransmissionInterval.c b/vanetza/asn1/its2/TransmissionInterval.c new file mode 100644 index 000000000..b0fb52d04 --- /dev/null +++ b/vanetza/asn1/its2/TransmissionInterval.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "TransmissionInterval.h" + +int +TransmissionInterval_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 <= 10000L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_TransmissionInterval_constr_1 CC_NOTUSED = { + { 2, 1 } /* (1..10000) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_TransmissionInterval_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 14, 14, 1, 10000 } /* (1..10000) */, + { 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_TransmissionInterval_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_TransmissionInterval = { + "TransmissionInterval", + "TransmissionInterval", + &asn_OP_NativeInteger, + asn_DEF_TransmissionInterval_tags_1, + sizeof(asn_DEF_TransmissionInterval_tags_1) + /sizeof(asn_DEF_TransmissionInterval_tags_1[0]), /* 1 */ + asn_DEF_TransmissionInterval_tags_1, /* Same as above */ + sizeof(asn_DEF_TransmissionInterval_tags_1) + /sizeof(asn_DEF_TransmissionInterval_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_TransmissionInterval_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_TransmissionInterval_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + TransmissionInterval_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/TransmissionInterval.h b/vanetza/asn1/its2/TransmissionInterval.h new file mode 100644 index 000000000..5fd81f403 --- /dev/null +++ b/vanetza/asn1/its2/TransmissionInterval.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _TransmissionInterval_H_ +#define _TransmissionInterval_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* TransmissionInterval */ +typedef long TransmissionInterval_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_TransmissionInterval; +asn_struct_free_f TransmissionInterval_free; +asn_struct_print_f TransmissionInterval_print; +asn_constr_check_f TransmissionInterval_constraint; +ber_type_decoder_f TransmissionInterval_decode_ber; +der_type_encoder_f TransmissionInterval_encode_der; +xer_type_decoder_f TransmissionInterval_decode_xer; +xer_type_encoder_f TransmissionInterval_encode_xer; +jer_type_encoder_f TransmissionInterval_encode_jer; +oer_type_decoder_f TransmissionInterval_decode_oer; +oer_type_encoder_f TransmissionInterval_encode_oer; +per_type_decoder_f TransmissionInterval_decode_uper; +per_type_encoder_f TransmissionInterval_encode_uper; +per_type_decoder_f TransmissionInterval_decode_aper; +per_type_encoder_f TransmissionInterval_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _TransmissionInterval_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/TurningDirection.c b/vanetza/asn1/its2/TurningDirection.c new file mode 100644 index 000000000..af2c654bd --- /dev/null +++ b/vanetza/asn1/its2/TurningDirection.c @@ -0,0 +1,71 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "TurningDirection.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_TurningDirection_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_TurningDirection_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_TurningDirection_value2enum_1[] = { + { 0, 4, "left" }, + { 1, 5, "right" } +}; +static const unsigned int asn_MAP_TurningDirection_enum2value_1[] = { + 0, /* left(0) */ + 1 /* right(1) */ +}; +const asn_INTEGER_specifics_t asn_SPC_TurningDirection_specs_1 = { + asn_MAP_TurningDirection_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_TurningDirection_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_TurningDirection_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_TurningDirection = { + "TurningDirection", + "TurningDirection", + &asn_OP_NativeEnumerated, + asn_DEF_TurningDirection_tags_1, + sizeof(asn_DEF_TurningDirection_tags_1) + /sizeof(asn_DEF_TurningDirection_tags_1[0]), /* 1 */ + asn_DEF_TurningDirection_tags_1, /* Same as above */ + sizeof(asn_DEF_TurningDirection_tags_1) + /sizeof(asn_DEF_TurningDirection_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_TurningDirection_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_TurningDirection_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_TurningDirection_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/TurningDirection.h b/vanetza/asn1/its2/TurningDirection.h new file mode 100644 index 000000000..e8376ca2b --- /dev/null +++ b/vanetza/asn1/its2/TurningDirection.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _TurningDirection_H_ +#define _TurningDirection_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum TurningDirection { + TurningDirection_left = 0, + TurningDirection_right = 1 +} e_TurningDirection; + +/* TurningDirection */ +typedef long TurningDirection_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_TurningDirection_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_TurningDirection; +extern const asn_INTEGER_specifics_t asn_SPC_TurningDirection_specs_1; +asn_struct_free_f TurningDirection_free; +asn_struct_print_f TurningDirection_print; +asn_constr_check_f TurningDirection_constraint; +ber_type_decoder_f TurningDirection_decode_ber; +der_type_encoder_f TurningDirection_encode_der; +xer_type_decoder_f TurningDirection_decode_xer; +xer_type_encoder_f TurningDirection_encode_xer; +jer_type_encoder_f TurningDirection_encode_jer; +oer_type_decoder_f TurningDirection_decode_oer; +oer_type_encoder_f TurningDirection_encode_oer; +per_type_decoder_f TurningDirection_decode_uper; +per_type_encoder_f TurningDirection_encode_uper; +per_type_decoder_f TurningDirection_decode_aper; +per_type_encoder_f TurningDirection_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _TurningDirection_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/TurningRadius.c b/vanetza/asn1/its2/TurningRadius.c new file mode 100644 index 000000000..1aa834c07 --- /dev/null +++ b/vanetza/asn1/its2/TurningRadius.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "TurningRadius.h" + +int +TurningRadius_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 <= 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_TurningRadius_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_TurningRadius_constr_1 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) */ +static const ber_tlv_tag_t asn_DEF_TurningRadius_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_TurningRadius = { + "TurningRadius", + "TurningRadius", + &asn_OP_NativeInteger, + asn_DEF_TurningRadius_tags_1, + sizeof(asn_DEF_TurningRadius_tags_1) + /sizeof(asn_DEF_TurningRadius_tags_1[0]), /* 1 */ + asn_DEF_TurningRadius_tags_1, /* Same as above */ + sizeof(asn_DEF_TurningRadius_tags_1) + /sizeof(asn_DEF_TurningRadius_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_TurningRadius_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_TurningRadius_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + TurningRadius_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/TurningRadius.h b/vanetza/asn1/its2/TurningRadius.h new file mode 100644 index 000000000..5b9af4245 --- /dev/null +++ b/vanetza/asn1/its2/TurningRadius.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _TurningRadius_H_ +#define _TurningRadius_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum TurningRadius { + TurningRadius_outOfRange = 254, + TurningRadius_unavailable = 255 +} e_TurningRadius; + +/* TurningRadius */ +typedef long TurningRadius_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_TurningRadius_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_TurningRadius; +asn_struct_free_f TurningRadius_free; +asn_struct_print_f TurningRadius_print; +asn_constr_check_f TurningRadius_constraint; +ber_type_decoder_f TurningRadius_decode_ber; +der_type_encoder_f TurningRadius_encode_der; +xer_type_decoder_f TurningRadius_decode_xer; +xer_type_encoder_f TurningRadius_encode_xer; +jer_type_encoder_f TurningRadius_encode_jer; +oer_type_decoder_f TurningRadius_decode_oer; +oer_type_encoder_f TurningRadius_encode_oer; +per_type_decoder_f TurningRadius_decode_uper; +per_type_encoder_f TurningRadius_encode_uper; +per_type_decoder_f TurningRadius_decode_aper; +per_type_encoder_f TurningRadius_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _TurningRadius_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/UsageIndication.c b/vanetza/asn1/its2/UsageIndication.c new file mode 100644 index 000000000..50e880605 --- /dev/null +++ b/vanetza/asn1/its2/UsageIndication.c @@ -0,0 +1,75 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "UsageIndication.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_UsageIndication_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_UsageIndication_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_UsageIndication_value2enum_1[] = { + { 0, 12, "noIndication" }, + { 1, 10, "specialUse" }, + { 2, 15, "rescueOperation" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_UsageIndication_enum2value_1[] = { + 0, /* noIndication(0) */ + 2, /* rescueOperation(2) */ + 1 /* specialUse(1) */ + /* This list is extensible */ +}; +const asn_INTEGER_specifics_t asn_SPC_UsageIndication_specs_1 = { + asn_MAP_UsageIndication_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_UsageIndication_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_UsageIndication_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_UsageIndication = { + "UsageIndication", + "UsageIndication", + &asn_OP_NativeEnumerated, + asn_DEF_UsageIndication_tags_1, + sizeof(asn_DEF_UsageIndication_tags_1) + /sizeof(asn_DEF_UsageIndication_tags_1[0]), /* 1 */ + asn_DEF_UsageIndication_tags_1, /* Same as above */ + sizeof(asn_DEF_UsageIndication_tags_1) + /sizeof(asn_DEF_UsageIndication_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_UsageIndication_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_UsageIndication_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_UsageIndication_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/UsageIndication.h b/vanetza/asn1/its2/UsageIndication.h new file mode 100644 index 000000000..43ffa3f59 --- /dev/null +++ b/vanetza/asn1/its2/UsageIndication.h @@ -0,0 +1,58 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _UsageIndication_H_ +#define _UsageIndication_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum UsageIndication { + UsageIndication_noIndication = 0, + UsageIndication_specialUse = 1, + UsageIndication_rescueOperation = 2 + /* + * Enumeration is extensible + */ +} e_UsageIndication; + +/* UsageIndication */ +typedef long UsageIndication_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_UsageIndication_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_UsageIndication; +extern const asn_INTEGER_specifics_t asn_SPC_UsageIndication_specs_1; +asn_struct_free_f UsageIndication_free; +asn_struct_print_f UsageIndication_print; +asn_constr_check_f UsageIndication_constraint; +ber_type_decoder_f UsageIndication_decode_ber; +der_type_encoder_f UsageIndication_encode_der; +xer_type_decoder_f UsageIndication_decode_xer; +xer_type_encoder_f UsageIndication_encode_xer; +jer_type_encoder_f UsageIndication_encode_jer; +oer_type_decoder_f UsageIndication_decode_oer; +oer_type_encoder_f UsageIndication_encode_oer; +per_type_decoder_f UsageIndication_decode_uper; +per_type_encoder_f UsageIndication_encode_uper; +per_type_decoder_f UsageIndication_decode_aper; +per_type_encoder_f UsageIndication_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _UsageIndication_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VAM.c b/vanetza/asn1/its2/VAM.c new file mode 100644 index 000000000..94a285b3a --- /dev/null +++ b/vanetza/asn1/its2/VAM.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "VAM-PDU-Descriptions" + * found in "asn1/TS103300-3v221-VAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VAM.h" + +static asn_TYPE_member_t asn_MBR_VAM_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct VAM, header), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ItsPduHeaderVam, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "header" + }, + { ATF_NOFLAGS, 0, offsetof(struct VAM, vam), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VruAwareness, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vam" + }, +}; +static const ber_tlv_tag_t asn_DEF_VAM_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_VAM_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* header */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* vam */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_VAM_specs_1 = { + sizeof(struct VAM), + offsetof(struct VAM, _asn_ctx), + asn_MAP_VAM_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_VAM = { + "VAM", + "VAM", + &asn_OP_SEQUENCE, + asn_DEF_VAM_tags_1, + sizeof(asn_DEF_VAM_tags_1) + /sizeof(asn_DEF_VAM_tags_1[0]), /* 1 */ + asn_DEF_VAM_tags_1, /* Same as above */ + sizeof(asn_DEF_VAM_tags_1) + /sizeof(asn_DEF_VAM_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_VAM_1, + 2, /* Elements count */ + &asn_SPC_VAM_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/VAM.h b/vanetza/asn1/its2/VAM.h new file mode 100644 index 000000000..3e734dd5d --- /dev/null +++ b/vanetza/asn1/its2/VAM.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "VAM-PDU-Descriptions" + * found in "asn1/TS103300-3v221-VAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VAM_H_ +#define _VAM_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "ItsPduHeaderVam.h" +#include "VruAwareness.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* VAM */ +typedef struct VAM { + ItsPduHeaderVam_t header; + VruAwareness_t vam; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} VAM_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_VAM; + +#ifdef __cplusplus +} +#endif + +#endif /* _VAM_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VDS.c b/vanetza/asn1/its2/VDS.c new file mode 100644 index 000000000..68d20fd2a --- /dev/null +++ b/vanetza/asn1/its2/VDS.c @@ -0,0 +1,94 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VDS.h" + +static int check_permitted_alphabet_1(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; +} + +int +VDS_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; + 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) + && !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 IA5String, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_VDS_constr_1 CC_NOTUSED = { + { 0, 0 }, + 6 /* (SIZE(6..6)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_VDS_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_CONSTRAINED, 0, 0, 6, 6 } /* (SIZE(6..6)) */, + 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_VDS_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_VDS = { + "VDS", + "VDS", + &asn_OP_IA5String, + asn_DEF_VDS_tags_1, + sizeof(asn_DEF_VDS_tags_1) + /sizeof(asn_DEF_VDS_tags_1[0]), /* 1 */ + asn_DEF_VDS_tags_1, /* Same as above */ + sizeof(asn_DEF_VDS_tags_1) + /sizeof(asn_DEF_VDS_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_VDS_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_VDS_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + VDS_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/VDS.h b/vanetza/asn1/its2/VDS.h new file mode 100644 index 000000000..567dc6d44 --- /dev/null +++ b/vanetza/asn1/its2/VDS.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VDS_H_ +#define _VDS_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "IA5String.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* VDS */ +typedef IA5String_t VDS_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_VDS_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_VDS; +asn_struct_free_f VDS_free; +asn_struct_print_f VDS_print; +asn_constr_check_f VDS_constraint; +ber_type_decoder_f VDS_decode_ber; +der_type_encoder_f VDS_encode_der; +xer_type_decoder_f VDS_decode_xer; +xer_type_encoder_f VDS_encode_xer; +jer_type_encoder_f VDS_encode_jer; +oer_type_decoder_f VDS_decode_oer; +oer_type_encoder_f VDS_encode_oer; +per_type_decoder_f VDS_decode_uper; +per_type_encoder_f VDS_encode_uper; +per_type_decoder_f VDS_decode_aper; +per_type_encoder_f VDS_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _VDS_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/ValidityDuration.c b/vanetza/asn1/its2/ValidityDuration.c new file mode 100644 index 000000000..8a6f1a089 --- /dev/null +++ b/vanetza/asn1/its2/ValidityDuration.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "ValidityDuration.h" + +int +ValidityDuration_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 <= 86400L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_ValidityDuration_constr_1 CC_NOTUSED = { + { 4, 1 } /* (0..86400) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_ValidityDuration_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 17, -1, 0, 86400 } /* (0..86400) */, + { 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_ValidityDuration_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_ValidityDuration = { + "ValidityDuration", + "ValidityDuration", + &asn_OP_NativeInteger, + asn_DEF_ValidityDuration_tags_1, + sizeof(asn_DEF_ValidityDuration_tags_1) + /sizeof(asn_DEF_ValidityDuration_tags_1[0]), /* 1 */ + asn_DEF_ValidityDuration_tags_1, /* Same as above */ + sizeof(asn_DEF_ValidityDuration_tags_1) + /sizeof(asn_DEF_ValidityDuration_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_ValidityDuration_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_ValidityDuration_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + ValidityDuration_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/ValidityDuration.h b/vanetza/asn1/its2/ValidityDuration.h new file mode 100644 index 000000000..85252e620 --- /dev/null +++ b/vanetza/asn1/its2/ValidityDuration.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _ValidityDuration_H_ +#define _ValidityDuration_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum ValidityDuration { + ValidityDuration_timeOfDetection = 0, + ValidityDuration_oneSecondAfterDetection = 1 +} e_ValidityDuration; + +/* ValidityDuration */ +typedef long ValidityDuration_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_ValidityDuration; +asn_struct_free_f ValidityDuration_free; +asn_struct_print_f ValidityDuration_print; +asn_constr_check_f ValidityDuration_constraint; +ber_type_decoder_f ValidityDuration_decode_ber; +der_type_encoder_f ValidityDuration_encode_der; +xer_type_decoder_f ValidityDuration_decode_xer; +xer_type_encoder_f ValidityDuration_encode_xer; +jer_type_encoder_f ValidityDuration_encode_jer; +oer_type_decoder_f ValidityDuration_decode_oer; +oer_type_encoder_f ValidityDuration_encode_oer; +per_type_decoder_f ValidityDuration_decode_uper; +per_type_encoder_f ValidityDuration_encode_uper; +per_type_decoder_f ValidityDuration_decode_aper; +per_type_encoder_f ValidityDuration_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _ValidityDuration_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VamParameters.c b/vanetza/asn1/its2/VamParameters.c new file mode 100644 index 000000000..fda501765 --- /dev/null +++ b/vanetza/asn1/its2/VamParameters.c @@ -0,0 +1,179 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "VAM-PDU-Descriptions" + * found in "asn1/TS103300-3v221-VAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VamParameters.h" + +asn_TYPE_member_t asn_MBR_VamParameters_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct VamParameters, basicContainer), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_BasicContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "basicContainer" + }, + { ATF_NOFLAGS, 0, offsetof(struct VamParameters, vruHighFrequencyContainer), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VruHighFrequencyContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vruHighFrequencyContainer" + }, + { ATF_POINTER, 4, offsetof(struct VamParameters, vruLowFrequencyContainer), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VruLowFrequencyContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vruLowFrequencyContainer" + }, + { ATF_POINTER, 3, offsetof(struct VamParameters, vruClusterInformationContainer), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VruClusterInformationContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vruClusterInformationContainer" + }, + { ATF_POINTER, 2, offsetof(struct VamParameters, vruClusterOperationContainer), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VruClusterOperationContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vruClusterOperationContainer" + }, + { ATF_POINTER, 1, offsetof(struct VamParameters, vruMotionPredictionContainer), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VruMotionPredictionContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vruMotionPredictionContainer" + }, +}; +static const int asn_MAP_VamParameters_oms_1[] = { 2, 3, 4, 5 }; +static const ber_tlv_tag_t asn_DEF_VamParameters_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_VamParameters_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* basicContainer */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* vruHighFrequencyContainer */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* vruLowFrequencyContainer */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* vruClusterInformationContainer */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* vruClusterOperationContainer */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* vruMotionPredictionContainer */ +}; +asn_SEQUENCE_specifics_t asn_SPC_VamParameters_specs_1 = { + sizeof(struct VamParameters), + offsetof(struct VamParameters, _asn_ctx), + asn_MAP_VamParameters_tag2el_1, + 6, /* Count of tags in the map */ + asn_MAP_VamParameters_oms_1, /* Optional members */ + 4, 0, /* Root/Additions */ + 6, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_VamParameters = { + "VamParameters", + "VamParameters", + &asn_OP_SEQUENCE, + asn_DEF_VamParameters_tags_1, + sizeof(asn_DEF_VamParameters_tags_1) + /sizeof(asn_DEF_VamParameters_tags_1[0]), /* 1 */ + asn_DEF_VamParameters_tags_1, /* Same as above */ + sizeof(asn_DEF_VamParameters_tags_1) + /sizeof(asn_DEF_VamParameters_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_VamParameters_1, + 6, /* Elements count */ + &asn_SPC_VamParameters_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/VamParameters.h b/vanetza/asn1/its2/VamParameters.h new file mode 100644 index 000000000..e65b91716 --- /dev/null +++ b/vanetza/asn1/its2/VamParameters.h @@ -0,0 +1,62 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "VAM-PDU-Descriptions" + * found in "asn1/TS103300-3v221-VAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VamParameters_H_ +#define _VamParameters_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "BasicContainer.h" +#include "VruHighFrequencyContainer.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct VruLowFrequencyContainer; +struct VruClusterInformationContainer; +struct VruClusterOperationContainer; +struct VruMotionPredictionContainer; + +/* VamParameters */ +typedef struct VamParameters { + BasicContainer_t basicContainer; + VruHighFrequencyContainer_t vruHighFrequencyContainer; + struct VruLowFrequencyContainer *vruLowFrequencyContainer; /* OPTIONAL */ + struct VruClusterInformationContainer *vruClusterInformationContainer; /* OPTIONAL */ + struct VruClusterOperationContainer *vruClusterOperationContainer; /* OPTIONAL */ + struct VruMotionPredictionContainer *vruMotionPredictionContainer; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} VamParameters_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_VamParameters; +extern asn_SEQUENCE_specifics_t asn_SPC_VamParameters_specs_1; +extern asn_TYPE_member_t asn_MBR_VamParameters_1[6]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "VruLowFrequencyContainer.h" +#include "VruClusterInformationContainer.h" +#include "VruClusterOperationContainer.h" +#include "VruMotionPredictionContainer.h" + +#endif /* _VamParameters_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VanetzaTest.c b/vanetza/asn1/its2/VanetzaTest.c new file mode 100644 index 000000000..4aa9b7be4 --- /dev/null +++ b/vanetza/asn1/its2/VanetzaTest.c @@ -0,0 +1,130 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Test-Descriptions" + * found in "test.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VanetzaTest.h" + +static int +memb_field_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0L && value <= 321L)) { + /* Constraint check succeeded */ + return 0; + } else { + ASN__CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_field_constr_2 CC_NOTUSED = { + { 2, 1 } /* (0..321) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_field_constr_2 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, 0, 321 } /* (0..321) */, + { 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_VanetzaTest_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct VanetzaTest, field), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_field_constr_2, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_field_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_field_constraint_1 + }, + 0, 0, /* No default value */ + "field" + }, + { ATF_NOFLAGS, 0, offsetof(struct VanetzaTest, string), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NumericString, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "string" + }, +}; +static const ber_tlv_tag_t asn_DEF_VanetzaTest_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_VanetzaTest_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* field */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* string */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_VanetzaTest_specs_1 = { + sizeof(struct VanetzaTest), + offsetof(struct VanetzaTest, _asn_ctx), + asn_MAP_VanetzaTest_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_VanetzaTest = { + "VanetzaTest", + "VanetzaTest", + &asn_OP_SEQUENCE, + asn_DEF_VanetzaTest_tags_1, + sizeof(asn_DEF_VanetzaTest_tags_1) + /sizeof(asn_DEF_VanetzaTest_tags_1[0]), /* 1 */ + asn_DEF_VanetzaTest_tags_1, /* Same as above */ + sizeof(asn_DEF_VanetzaTest_tags_1) + /sizeof(asn_DEF_VanetzaTest_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_VanetzaTest_1, + 2, /* Elements count */ + &asn_SPC_VanetzaTest_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/VanetzaTest.h b/vanetza/asn1/its2/VanetzaTest.h new file mode 100644 index 000000000..a86ac9447 --- /dev/null +++ b/vanetza/asn1/its2/VanetzaTest.h @@ -0,0 +1,45 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "Test-Descriptions" + * found in "test.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VanetzaTest_H_ +#define _VanetzaTest_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" +#include "NumericString.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum VanetzaTest__field { + VanetzaTest__field_magicValue = 42 +} e_VanetzaTest__field; + +/* VanetzaTest */ +typedef struct VanetzaTest { + long field; + NumericString_t string; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} VanetzaTest_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_VanetzaTest; + +#ifdef __cplusplus +} +#endif + +#endif /* _VanetzaTest_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VarLengthNumber.c b/vanetza/asn1/its2/VarLengthNumber.c new file mode 100644 index 000000000..cc801307f --- /dev/null +++ b/vanetza/asn1/its2/VarLengthNumber.c @@ -0,0 +1,139 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VarLengthNumber.h" + +static int +memb_content_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + ASN__CTFAIL(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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_content_constr_2 CC_NOTUSED = { + { 1, 1 } /* (0..127) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_content_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_VarLengthNumber_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_VarLengthNumber_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_VarLengthNumber_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct VarLengthNumber, choice.content), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_content_constr_2, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_content_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_content_constraint_1 + }, + 0, 0, /* No default value */ + "content" + }, + { ATF_NOFLAGS, 0, offsetof(struct VarLengthNumber, choice.extension), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_Ext1, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "extension" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_VarLengthNumber_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* content */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* extension */ +}; +static asn_CHOICE_specifics_t asn_SPC_VarLengthNumber_specs_1 = { + sizeof(struct VarLengthNumber), + offsetof(struct VarLengthNumber, _asn_ctx), + offsetof(struct VarLengthNumber, present), + sizeof(((struct VarLengthNumber *)0)->present), + asn_MAP_VarLengthNumber_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_VarLengthNumber = { + "VarLengthNumber", + "VarLengthNumber", + &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) + &asn_OER_type_VarLengthNumber_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_VarLengthNumber_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_VarLengthNumber_1, + 2, /* Elements count */ + &asn_SPC_VarLengthNumber_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/VarLengthNumber.h b/vanetza/asn1/its2/VarLengthNumber.h new file mode 100644 index 000000000..a9c7ee5f2 --- /dev/null +++ b/vanetza/asn1/its2/VarLengthNumber.h @@ -0,0 +1,50 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VarLengthNumber_H_ +#define _VarLengthNumber_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" +#include "Ext1.h" +#include "constr_CHOICE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum VarLengthNumber_PR { + VarLengthNumber_PR_NOTHING, /* No components present */ + VarLengthNumber_PR_content, + VarLengthNumber_PR_extension +} VarLengthNumber_PR; + +/* VarLengthNumber */ +typedef struct VarLengthNumber { + VarLengthNumber_PR present; + union VarLengthNumber_u { + long content; + Ext1_t extension; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} VarLengthNumber_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_VarLengthNumber; + +#ifdef __cplusplus +} +#endif + +#endif /* _VarLengthNumber_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VehicleBreakdownSubCauseCode.c b/vanetza/asn1/its2/VehicleBreakdownSubCauseCode.c new file mode 100644 index 000000000..eb1b85bf3 --- /dev/null +++ b/vanetza/asn1/its2/VehicleBreakdownSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VehicleBreakdownSubCauseCode.h" + +int +VehicleBreakdownSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_VehicleBreakdownSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_VehicleBreakdownSubCauseCode_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_VehicleBreakdownSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_VehicleBreakdownSubCauseCode = { + "VehicleBreakdownSubCauseCode", + "VehicleBreakdownSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_VehicleBreakdownSubCauseCode_tags_1, + sizeof(asn_DEF_VehicleBreakdownSubCauseCode_tags_1) + /sizeof(asn_DEF_VehicleBreakdownSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_VehicleBreakdownSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_VehicleBreakdownSubCauseCode_tags_1) + /sizeof(asn_DEF_VehicleBreakdownSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_VehicleBreakdownSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_VehicleBreakdownSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + VehicleBreakdownSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/VehicleBreakdownSubCauseCode.h b/vanetza/asn1/its2/VehicleBreakdownSubCauseCode.h new file mode 100644 index 000000000..d7372cafb --- /dev/null +++ b/vanetza/asn1/its2/VehicleBreakdownSubCauseCode.h @@ -0,0 +1,62 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VehicleBreakdownSubCauseCode_H_ +#define _VehicleBreakdownSubCauseCode_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum VehicleBreakdownSubCauseCode { + VehicleBreakdownSubCauseCode_unavailable = 0, + VehicleBreakdownSubCauseCode_lackOfFuel = 1, + VehicleBreakdownSubCauseCode_lackOfBatteryPower = 2, + VehicleBreakdownSubCauseCode_engineProblem = 3, + VehicleBreakdownSubCauseCode_transmissionProblem = 4, + VehicleBreakdownSubCauseCode_engineCoolingProblem = 5, + VehicleBreakdownSubCauseCode_brakingSystemProblem = 6, + VehicleBreakdownSubCauseCode_steeringProblem = 7, + VehicleBreakdownSubCauseCode_tyrePuncture = 8, + VehicleBreakdownSubCauseCode_tyrePressureProblem = 9, + VehicleBreakdownSubCauseCode_vehicleOnFire = 10 +} e_VehicleBreakdownSubCauseCode; + +/* VehicleBreakdownSubCauseCode */ +typedef long VehicleBreakdownSubCauseCode_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_VehicleBreakdownSubCauseCode_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_VehicleBreakdownSubCauseCode; +asn_struct_free_f VehicleBreakdownSubCauseCode_free; +asn_struct_print_f VehicleBreakdownSubCauseCode_print; +asn_constr_check_f VehicleBreakdownSubCauseCode_constraint; +ber_type_decoder_f VehicleBreakdownSubCauseCode_decode_ber; +der_type_encoder_f VehicleBreakdownSubCauseCode_encode_der; +xer_type_decoder_f VehicleBreakdownSubCauseCode_decode_xer; +xer_type_encoder_f VehicleBreakdownSubCauseCode_encode_xer; +jer_type_encoder_f VehicleBreakdownSubCauseCode_encode_jer; +oer_type_decoder_f VehicleBreakdownSubCauseCode_decode_oer; +oer_type_encoder_f VehicleBreakdownSubCauseCode_encode_oer; +per_type_decoder_f VehicleBreakdownSubCauseCode_decode_uper; +per_type_encoder_f VehicleBreakdownSubCauseCode_encode_uper; +per_type_decoder_f VehicleBreakdownSubCauseCode_decode_aper; +per_type_encoder_f VehicleBreakdownSubCauseCode_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _VehicleBreakdownSubCauseCode_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VehicleHeight.c b/vanetza/asn1/its2/VehicleHeight.c new file mode 100644 index 000000000..9bdd01060 --- /dev/null +++ b/vanetza/asn1/its2/VehicleHeight.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VehicleHeight.h" + +int +VehicleHeight_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 <= 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 NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_VehicleHeight_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..128) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_type_VehicleHeight_constr_1 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 const ber_tlv_tag_t asn_DEF_VehicleHeight_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_VehicleHeight = { + "VehicleHeight", + "VehicleHeight", + &asn_OP_NativeInteger, + asn_DEF_VehicleHeight_tags_1, + sizeof(asn_DEF_VehicleHeight_tags_1) + /sizeof(asn_DEF_VehicleHeight_tags_1[0]), /* 1 */ + asn_DEF_VehicleHeight_tags_1, /* Same as above */ + sizeof(asn_DEF_VehicleHeight_tags_1) + /sizeof(asn_DEF_VehicleHeight_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_VehicleHeight_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_VehicleHeight_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + VehicleHeight_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/VehicleHeight.h b/vanetza/asn1/its2/VehicleHeight.h new file mode 100644 index 000000000..7a84262e2 --- /dev/null +++ b/vanetza/asn1/its2/VehicleHeight.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VehicleHeight_H_ +#define _VehicleHeight_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum VehicleHeight { + VehicleHeight_outOfRange = 126, + VehicleHeight_unavailable = 127 +} e_VehicleHeight; + +/* VehicleHeight */ +typedef long VehicleHeight_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_VehicleHeight; +asn_struct_free_f VehicleHeight_free; +asn_struct_print_f VehicleHeight_print; +asn_constr_check_f VehicleHeight_constraint; +ber_type_decoder_f VehicleHeight_decode_ber; +der_type_encoder_f VehicleHeight_encode_der; +xer_type_decoder_f VehicleHeight_decode_xer; +xer_type_encoder_f VehicleHeight_encode_xer; +jer_type_encoder_f VehicleHeight_encode_jer; +oer_type_decoder_f VehicleHeight_decode_oer; +oer_type_encoder_f VehicleHeight_encode_oer; +per_type_decoder_f VehicleHeight_decode_uper; +per_type_encoder_f VehicleHeight_encode_uper; +per_type_decoder_f VehicleHeight_decode_aper; +per_type_encoder_f VehicleHeight_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _VehicleHeight_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VehicleIdentification.c b/vanetza/asn1/its2/VehicleIdentification.c new file mode 100644 index 000000000..a7cfb4f16 --- /dev/null +++ b/vanetza/asn1/its2/VehicleIdentification.c @@ -0,0 +1,95 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VehicleIdentification.h" + +asn_TYPE_member_t asn_MBR_VehicleIdentification_1[] = { + { ATF_POINTER, 2, offsetof(struct VehicleIdentification, wMInumber), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_WMInumber, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "wMInumber" + }, + { ATF_POINTER, 1, offsetof(struct VehicleIdentification, vDS), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VDS, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vDS" + }, +}; +static const int asn_MAP_VehicleIdentification_oms_1[] = { 0, 1 }; +static const ber_tlv_tag_t asn_DEF_VehicleIdentification_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_VehicleIdentification_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* wMInumber */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* vDS */ +}; +asn_SEQUENCE_specifics_t asn_SPC_VehicleIdentification_specs_1 = { + sizeof(struct VehicleIdentification), + offsetof(struct VehicleIdentification, _asn_ctx), + asn_MAP_VehicleIdentification_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_VehicleIdentification_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 2, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_VehicleIdentification = { + "VehicleIdentification", + "VehicleIdentification", + &asn_OP_SEQUENCE, + asn_DEF_VehicleIdentification_tags_1, + sizeof(asn_DEF_VehicleIdentification_tags_1) + /sizeof(asn_DEF_VehicleIdentification_tags_1[0]), /* 1 */ + asn_DEF_VehicleIdentification_tags_1, /* Same as above */ + sizeof(asn_DEF_VehicleIdentification_tags_1) + /sizeof(asn_DEF_VehicleIdentification_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_VehicleIdentification_1, + 2, /* Elements count */ + &asn_SPC_VehicleIdentification_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/VehicleIdentification.h b/vanetza/asn1/its2/VehicleIdentification.h new file mode 100644 index 000000000..ea6c6f3ca --- /dev/null +++ b/vanetza/asn1/its2/VehicleIdentification.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VehicleIdentification_H_ +#define _VehicleIdentification_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "WMInumber.h" +#include "VDS.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* VehicleIdentification */ +typedef struct VehicleIdentification { + WMInumber_t *wMInumber; /* OPTIONAL */ + VDS_t *vDS; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} VehicleIdentification_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_VehicleIdentification; +extern asn_SEQUENCE_specifics_t asn_SPC_VehicleIdentification_specs_1; +extern asn_TYPE_member_t asn_MBR_VehicleIdentification_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _VehicleIdentification_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VehicleLength.c b/vanetza/asn1/its2/VehicleLength.c new file mode 100644 index 000000000..1d6c777d4 --- /dev/null +++ b/vanetza/asn1/its2/VehicleLength.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VehicleLength.h" + +asn_TYPE_member_t asn_MBR_VehicleLength_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct VehicleLength, vehicleLengthValue), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VehicleLengthValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vehicleLengthValue" + }, + { ATF_NOFLAGS, 0, offsetof(struct VehicleLength, vehicleLengthConfidenceIndication), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VehicleLengthConfidenceIndication, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vehicleLengthConfidenceIndication" + }, +}; +static const ber_tlv_tag_t asn_DEF_VehicleLength_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_VehicleLength_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* vehicleLengthValue */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* vehicleLengthConfidenceIndication */ +}; +asn_SEQUENCE_specifics_t asn_SPC_VehicleLength_specs_1 = { + sizeof(struct VehicleLength), + offsetof(struct VehicleLength, _asn_ctx), + asn_MAP_VehicleLength_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_VehicleLength = { + "VehicleLength", + "VehicleLength", + &asn_OP_SEQUENCE, + asn_DEF_VehicleLength_tags_1, + sizeof(asn_DEF_VehicleLength_tags_1) + /sizeof(asn_DEF_VehicleLength_tags_1[0]), /* 1 */ + asn_DEF_VehicleLength_tags_1, /* Same as above */ + sizeof(asn_DEF_VehicleLength_tags_1) + /sizeof(asn_DEF_VehicleLength_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_VehicleLength_1, + 2, /* Elements count */ + &asn_SPC_VehicleLength_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/VehicleLength.h b/vanetza/asn1/its2/VehicleLength.h new file mode 100644 index 000000000..80dfdb7d8 --- /dev/null +++ b/vanetza/asn1/its2/VehicleLength.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VehicleLength_H_ +#define _VehicleLength_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "VehicleLengthValue.h" +#include "VehicleLengthConfidenceIndication.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* VehicleLength */ +typedef struct VehicleLength { + VehicleLengthValue_t vehicleLengthValue; + VehicleLengthConfidenceIndication_t vehicleLengthConfidenceIndication; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} VehicleLength_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_VehicleLength; +extern asn_SEQUENCE_specifics_t asn_SPC_VehicleLength_specs_1; +extern asn_TYPE_member_t asn_MBR_VehicleLength_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _VehicleLength_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VehicleLengthConfidenceIndication.c b/vanetza/asn1/its2/VehicleLengthConfidenceIndication.c new file mode 100644 index 000000000..4eeaadf64 --- /dev/null +++ b/vanetza/asn1/its2/VehicleLengthConfidenceIndication.c @@ -0,0 +1,77 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VehicleLengthConfidenceIndication.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_VehicleLengthConfidenceIndication_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_VehicleLengthConfidenceIndication_constr_1 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_VehicleLengthConfidenceIndication_value2enum_1[] = { + { 0, 16, "noTrailerPresent" }, + { 1, 29, "trailerPresentWithKnownLength" }, + { 2, 31, "trailerPresentWithUnknownLength" }, + { 3, 24, "trailerPresenceIsUnknown" }, + { 4, 11, "unavailable" } +}; +static const unsigned int asn_MAP_VehicleLengthConfidenceIndication_enum2value_1[] = { + 0, /* noTrailerPresent(0) */ + 3, /* trailerPresenceIsUnknown(3) */ + 1, /* trailerPresentWithKnownLength(1) */ + 2, /* trailerPresentWithUnknownLength(2) */ + 4 /* unavailable(4) */ +}; +const asn_INTEGER_specifics_t asn_SPC_VehicleLengthConfidenceIndication_specs_1 = { + asn_MAP_VehicleLengthConfidenceIndication_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_VehicleLengthConfidenceIndication_enum2value_1, /* 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_VehicleLengthConfidenceIndication_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_VehicleLengthConfidenceIndication = { + "VehicleLengthConfidenceIndication", + "VehicleLengthConfidenceIndication", + &asn_OP_NativeEnumerated, + asn_DEF_VehicleLengthConfidenceIndication_tags_1, + sizeof(asn_DEF_VehicleLengthConfidenceIndication_tags_1) + /sizeof(asn_DEF_VehicleLengthConfidenceIndication_tags_1[0]), /* 1 */ + asn_DEF_VehicleLengthConfidenceIndication_tags_1, /* Same as above */ + sizeof(asn_DEF_VehicleLengthConfidenceIndication_tags_1) + /sizeof(asn_DEF_VehicleLengthConfidenceIndication_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_VehicleLengthConfidenceIndication_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_VehicleLengthConfidenceIndication_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_VehicleLengthConfidenceIndication_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/VehicleLengthConfidenceIndication.h b/vanetza/asn1/its2/VehicleLengthConfidenceIndication.h new file mode 100644 index 000000000..834f820ee --- /dev/null +++ b/vanetza/asn1/its2/VehicleLengthConfidenceIndication.h @@ -0,0 +1,57 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VehicleLengthConfidenceIndication_H_ +#define _VehicleLengthConfidenceIndication_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum VehicleLengthConfidenceIndication { + VehicleLengthConfidenceIndication_noTrailerPresent = 0, + VehicleLengthConfidenceIndication_trailerPresentWithKnownLength = 1, + VehicleLengthConfidenceIndication_trailerPresentWithUnknownLength = 2, + VehicleLengthConfidenceIndication_trailerPresenceIsUnknown = 3, + VehicleLengthConfidenceIndication_unavailable = 4 +} e_VehicleLengthConfidenceIndication; + +/* VehicleLengthConfidenceIndication */ +typedef long VehicleLengthConfidenceIndication_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_VehicleLengthConfidenceIndication_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_VehicleLengthConfidenceIndication; +extern const asn_INTEGER_specifics_t asn_SPC_VehicleLengthConfidenceIndication_specs_1; +asn_struct_free_f VehicleLengthConfidenceIndication_free; +asn_struct_print_f VehicleLengthConfidenceIndication_print; +asn_constr_check_f VehicleLengthConfidenceIndication_constraint; +ber_type_decoder_f VehicleLengthConfidenceIndication_decode_ber; +der_type_encoder_f VehicleLengthConfidenceIndication_encode_der; +xer_type_decoder_f VehicleLengthConfidenceIndication_decode_xer; +xer_type_encoder_f VehicleLengthConfidenceIndication_encode_xer; +jer_type_encoder_f VehicleLengthConfidenceIndication_encode_jer; +oer_type_decoder_f VehicleLengthConfidenceIndication_decode_oer; +oer_type_encoder_f VehicleLengthConfidenceIndication_encode_oer; +per_type_decoder_f VehicleLengthConfidenceIndication_decode_uper; +per_type_encoder_f VehicleLengthConfidenceIndication_encode_uper; +per_type_decoder_f VehicleLengthConfidenceIndication_decode_aper; +per_type_encoder_f VehicleLengthConfidenceIndication_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _VehicleLengthConfidenceIndication_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VehicleLengthV2.c b/vanetza/asn1/its2/VehicleLengthV2.c new file mode 100644 index 000000000..e90ceb1da --- /dev/null +++ b/vanetza/asn1/its2/VehicleLengthV2.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VehicleLengthV2.h" + +static asn_TYPE_member_t asn_MBR_VehicleLengthV2_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct VehicleLengthV2, vehicleLengthValue), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VehicleLengthValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vehicleLengthValue" + }, + { ATF_NOFLAGS, 0, offsetof(struct VehicleLengthV2, trailerPresenceInformation), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_TrailerPresenceInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "trailerPresenceInformation" + }, +}; +static const ber_tlv_tag_t asn_DEF_VehicleLengthV2_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_VehicleLengthV2_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* vehicleLengthValue */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* trailerPresenceInformation */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_VehicleLengthV2_specs_1 = { + sizeof(struct VehicleLengthV2), + offsetof(struct VehicleLengthV2, _asn_ctx), + asn_MAP_VehicleLengthV2_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_VehicleLengthV2 = { + "VehicleLengthV2", + "VehicleLengthV2", + &asn_OP_SEQUENCE, + asn_DEF_VehicleLengthV2_tags_1, + sizeof(asn_DEF_VehicleLengthV2_tags_1) + /sizeof(asn_DEF_VehicleLengthV2_tags_1[0]), /* 1 */ + asn_DEF_VehicleLengthV2_tags_1, /* Same as above */ + sizeof(asn_DEF_VehicleLengthV2_tags_1) + /sizeof(asn_DEF_VehicleLengthV2_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_VehicleLengthV2_1, + 2, /* Elements count */ + &asn_SPC_VehicleLengthV2_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/VehicleLengthV2.h b/vanetza/asn1/its2/VehicleLengthV2.h new file mode 100644 index 000000000..ccbc82c2d --- /dev/null +++ b/vanetza/asn1/its2/VehicleLengthV2.h @@ -0,0 +1,40 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VehicleLengthV2_H_ +#define _VehicleLengthV2_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "VehicleLengthValue.h" +#include "TrailerPresenceInformation.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* VehicleLengthV2 */ +typedef struct VehicleLengthV2 { + VehicleLengthValue_t vehicleLengthValue; + TrailerPresenceInformation_t trailerPresenceInformation; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} VehicleLengthV2_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_VehicleLengthV2; + +#ifdef __cplusplus +} +#endif + +#endif /* _VehicleLengthV2_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VehicleLengthValue.c b/vanetza/asn1/its2/VehicleLengthValue.c new file mode 100644 index 000000000..f30dbc273 --- /dev/null +++ b/vanetza/asn1/its2/VehicleLengthValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VehicleLengthValue.h" + +int +VehicleLengthValue_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 <= 1023L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_VehicleLengthValue_constr_1 CC_NOTUSED = { + { 2, 1 } /* (1..1023) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_VehicleLengthValue_constr_1 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) */ +static const ber_tlv_tag_t asn_DEF_VehicleLengthValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_VehicleLengthValue = { + "VehicleLengthValue", + "VehicleLengthValue", + &asn_OP_NativeInteger, + asn_DEF_VehicleLengthValue_tags_1, + sizeof(asn_DEF_VehicleLengthValue_tags_1) + /sizeof(asn_DEF_VehicleLengthValue_tags_1[0]), /* 1 */ + asn_DEF_VehicleLengthValue_tags_1, /* Same as above */ + sizeof(asn_DEF_VehicleLengthValue_tags_1) + /sizeof(asn_DEF_VehicleLengthValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_VehicleLengthValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_VehicleLengthValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + VehicleLengthValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/VehicleLengthValue.h b/vanetza/asn1/its2/VehicleLengthValue.h new file mode 100644 index 000000000..24d525c95 --- /dev/null +++ b/vanetza/asn1/its2/VehicleLengthValue.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VehicleLengthValue_H_ +#define _VehicleLengthValue_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum VehicleLengthValue { + VehicleLengthValue_outOfRange = 1022, + VehicleLengthValue_unavailable = 1023 +} e_VehicleLengthValue; + +/* VehicleLengthValue */ +typedef long VehicleLengthValue_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_VehicleLengthValue_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_VehicleLengthValue; +asn_struct_free_f VehicleLengthValue_free; +asn_struct_print_f VehicleLengthValue_print; +asn_constr_check_f VehicleLengthValue_constraint; +ber_type_decoder_f VehicleLengthValue_decode_ber; +der_type_encoder_f VehicleLengthValue_encode_der; +xer_type_decoder_f VehicleLengthValue_decode_xer; +xer_type_encoder_f VehicleLengthValue_encode_xer; +jer_type_encoder_f VehicleLengthValue_encode_jer; +oer_type_decoder_f VehicleLengthValue_decode_oer; +oer_type_encoder_f VehicleLengthValue_encode_oer; +per_type_decoder_f VehicleLengthValue_decode_uper; +per_type_encoder_f VehicleLengthValue_encode_uper; +per_type_decoder_f VehicleLengthValue_decode_aper; +per_type_encoder_f VehicleLengthValue_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _VehicleLengthValue_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VehicleMass.c b/vanetza/asn1/its2/VehicleMass.c new file mode 100644 index 000000000..9300c61eb --- /dev/null +++ b/vanetza/asn1/its2/VehicleMass.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VehicleMass.h" + +int +VehicleMass_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_VehicleMass_constr_1 CC_NOTUSED = { + { 2, 1 } /* (1..1024) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_VehicleMass_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_VehicleMass_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_VehicleMass = { + "VehicleMass", + "VehicleMass", + &asn_OP_NativeInteger, + asn_DEF_VehicleMass_tags_1, + sizeof(asn_DEF_VehicleMass_tags_1) + /sizeof(asn_DEF_VehicleMass_tags_1[0]), /* 1 */ + asn_DEF_VehicleMass_tags_1, /* Same as above */ + sizeof(asn_DEF_VehicleMass_tags_1) + /sizeof(asn_DEF_VehicleMass_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_VehicleMass_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_VehicleMass_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + VehicleMass_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/VehicleMass.h b/vanetza/asn1/its2/VehicleMass.h new file mode 100644 index 000000000..5caa6576a --- /dev/null +++ b/vanetza/asn1/its2/VehicleMass.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VehicleMass_H_ +#define _VehicleMass_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum VehicleMass { + VehicleMass_outOfRange = 1023, + VehicleMass_unavailable = 1024 +} e_VehicleMass; + +/* VehicleMass */ +typedef long VehicleMass_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_VehicleMass_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_VehicleMass; +asn_struct_free_f VehicleMass_free; +asn_struct_print_f VehicleMass_print; +asn_constr_check_f VehicleMass_constraint; +ber_type_decoder_f VehicleMass_decode_ber; +der_type_encoder_f VehicleMass_encode_der; +xer_type_decoder_f VehicleMass_decode_xer; +xer_type_encoder_f VehicleMass_encode_xer; +jer_type_encoder_f VehicleMass_encode_jer; +oer_type_decoder_f VehicleMass_decode_oer; +oer_type_encoder_f VehicleMass_encode_oer; +per_type_decoder_f VehicleMass_decode_uper; +per_type_encoder_f VehicleMass_encode_uper; +per_type_decoder_f VehicleMass_decode_aper; +per_type_encoder_f VehicleMass_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _VehicleMass_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VehicleRole.c b/vanetza/asn1/its2/VehicleRole.c new file mode 100644 index 000000000..7b77e8667 --- /dev/null +++ b/vanetza/asn1/its2/VehicleRole.c @@ -0,0 +1,99 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VehicleRole.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_VehicleRole_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_VehicleRole_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_VehicleRole_value2enum_1[] = { + { 0, 7, "default" }, + { 1, 15, "publicTransport" }, + { 2, 16, "specialTransport" }, + { 3, 14, "dangerousGoods" }, + { 4, 8, "roadWork" }, + { 5, 6, "rescue" }, + { 6, 9, "emergency" }, + { 7, 9, "safetyCar" }, + { 8, 11, "agriculture" }, + { 9, 10, "commercial" }, + { 10, 8, "military" }, + { 11, 12, "roadOperator" }, + { 12, 4, "taxi" }, + { 13, 4, "uvar" }, + { 14, 4, "rfu1" }, + { 15, 4, "rfu2" } +}; +static const unsigned int asn_MAP_VehicleRole_enum2value_1[] = { + 8, /* agriculture(8) */ + 9, /* commercial(9) */ + 3, /* dangerousGoods(3) */ + 0, /* default(0) */ + 6, /* emergency(6) */ + 10, /* military(10) */ + 1, /* publicTransport(1) */ + 5, /* rescue(5) */ + 14, /* rfu1(14) */ + 15, /* rfu2(15) */ + 11, /* roadOperator(11) */ + 4, /* roadWork(4) */ + 7, /* safetyCar(7) */ + 2, /* specialTransport(2) */ + 12, /* taxi(12) */ + 13 /* uvar(13) */ +}; +const asn_INTEGER_specifics_t asn_SPC_VehicleRole_specs_1 = { + asn_MAP_VehicleRole_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_VehicleRole_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_VehicleRole_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_VehicleRole = { + "VehicleRole", + "VehicleRole", + &asn_OP_NativeEnumerated, + asn_DEF_VehicleRole_tags_1, + sizeof(asn_DEF_VehicleRole_tags_1) + /sizeof(asn_DEF_VehicleRole_tags_1[0]), /* 1 */ + asn_DEF_VehicleRole_tags_1, /* Same as above */ + sizeof(asn_DEF_VehicleRole_tags_1) + /sizeof(asn_DEF_VehicleRole_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_VehicleRole_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_VehicleRole_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_VehicleRole_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/VehicleRole.h b/vanetza/asn1/its2/VehicleRole.h new file mode 100644 index 000000000..0ea42b75c --- /dev/null +++ b/vanetza/asn1/its2/VehicleRole.h @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VehicleRole_H_ +#define _VehicleRole_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum VehicleRole { + VehicleRole_default = 0, + VehicleRole_publicTransport = 1, + VehicleRole_specialTransport = 2, + VehicleRole_dangerousGoods = 3, + VehicleRole_roadWork = 4, + VehicleRole_rescue = 5, + VehicleRole_emergency = 6, + VehicleRole_safetyCar = 7, + VehicleRole_agriculture = 8, + VehicleRole_commercial = 9, + VehicleRole_military = 10, + VehicleRole_roadOperator = 11, + VehicleRole_taxi = 12, + VehicleRole_uvar = 13, + VehicleRole_rfu1 = 14, + VehicleRole_rfu2 = 15 +} e_VehicleRole; + +/* VehicleRole */ +typedef long VehicleRole_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_VehicleRole_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_VehicleRole; +extern const asn_INTEGER_specifics_t asn_SPC_VehicleRole_specs_1; +asn_struct_free_f VehicleRole_free; +asn_struct_print_f VehicleRole_print; +asn_constr_check_f VehicleRole_constraint; +ber_type_decoder_f VehicleRole_decode_ber; +der_type_encoder_f VehicleRole_encode_der; +xer_type_decoder_f VehicleRole_decode_xer; +xer_type_encoder_f VehicleRole_encode_xer; +jer_type_encoder_f VehicleRole_encode_jer; +oer_type_decoder_f VehicleRole_decode_oer; +oer_type_encoder_f VehicleRole_encode_oer; +per_type_decoder_f VehicleRole_decode_uper; +per_type_encoder_f VehicleRole_encode_uper; +per_type_decoder_f VehicleRole_decode_aper; +per_type_encoder_f VehicleRole_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _VehicleRole_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VehicleWidth.c b/vanetza/asn1/its2/VehicleWidth.c new file mode 100644 index 000000000..6d6d8e5a1 --- /dev/null +++ b/vanetza/asn1/its2/VehicleWidth.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VehicleWidth.h" + +int +VehicleWidth_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 <= 62L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_VehicleWidth_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..62) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_VehicleWidth_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 6, 6, 1, 62 } /* (1..62) */, + { 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_VehicleWidth_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_VehicleWidth = { + "VehicleWidth", + "VehicleWidth", + &asn_OP_NativeInteger, + asn_DEF_VehicleWidth_tags_1, + sizeof(asn_DEF_VehicleWidth_tags_1) + /sizeof(asn_DEF_VehicleWidth_tags_1[0]), /* 1 */ + asn_DEF_VehicleWidth_tags_1, /* Same as above */ + sizeof(asn_DEF_VehicleWidth_tags_1) + /sizeof(asn_DEF_VehicleWidth_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_VehicleWidth_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_VehicleWidth_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + VehicleWidth_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/VehicleWidth.h b/vanetza/asn1/its2/VehicleWidth.h new file mode 100644 index 000000000..54b9366a2 --- /dev/null +++ b/vanetza/asn1/its2/VehicleWidth.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VehicleWidth_H_ +#define _VehicleWidth_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum VehicleWidth { + VehicleWidth_outOfRange = 61, + VehicleWidth_unavailable = 62 +} e_VehicleWidth; + +/* VehicleWidth */ +typedef long VehicleWidth_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_VehicleWidth_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_VehicleWidth; +asn_struct_free_f VehicleWidth_free; +asn_struct_print_f VehicleWidth_print; +asn_constr_check_f VehicleWidth_constraint; +ber_type_decoder_f VehicleWidth_decode_ber; +der_type_encoder_f VehicleWidth_encode_der; +xer_type_decoder_f VehicleWidth_decode_xer; +xer_type_encoder_f VehicleWidth_encode_xer; +jer_type_encoder_f VehicleWidth_encode_jer; +oer_type_decoder_f VehicleWidth_decode_oer; +oer_type_encoder_f VehicleWidth_encode_oer; +per_type_decoder_f VehicleWidth_decode_uper; +per_type_encoder_f VehicleWidth_encode_uper; +per_type_decoder_f VehicleWidth_decode_aper; +per_type_encoder_f VehicleWidth_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _VehicleWidth_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/Velocity3dWithConfidence.c b/vanetza/asn1/its2/Velocity3dWithConfidence.c new file mode 100644 index 000000000..e8a614aca --- /dev/null +++ b/vanetza/asn1/its2/Velocity3dWithConfidence.c @@ -0,0 +1,102 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Velocity3dWithConfidence.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_Velocity3dWithConfidence_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Velocity3dWithConfidence_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_Velocity3dWithConfidence_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Velocity3dWithConfidence, choice.polarVelocity), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VelocityPolarWithZ, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "polarVelocity" + }, + { ATF_NOFLAGS, 0, offsetof(struct Velocity3dWithConfidence, choice.cartesianVelocity), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VelocityCartesian, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "cartesianVelocity" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_Velocity3dWithConfidence_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* polarVelocity */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* cartesianVelocity */ +}; +asn_CHOICE_specifics_t asn_SPC_Velocity3dWithConfidence_specs_1 = { + sizeof(struct Velocity3dWithConfidence), + offsetof(struct Velocity3dWithConfidence, _asn_ctx), + offsetof(struct Velocity3dWithConfidence, present), + sizeof(((struct Velocity3dWithConfidence *)0)->present), + asn_MAP_Velocity3dWithConfidence_tag2el_1, + 2, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_Velocity3dWithConfidence = { + "Velocity3dWithConfidence", + "Velocity3dWithConfidence", + &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) + &asn_OER_type_Velocity3dWithConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Velocity3dWithConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_Velocity3dWithConfidence_1, + 2, /* Elements count */ + &asn_SPC_Velocity3dWithConfidence_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/Velocity3dWithConfidence.h b/vanetza/asn1/its2/Velocity3dWithConfidence.h new file mode 100644 index 000000000..b2f817535 --- /dev/null +++ b/vanetza/asn1/its2/Velocity3dWithConfidence.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _Velocity3dWithConfidence_H_ +#define _Velocity3dWithConfidence_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "VelocityPolarWithZ.h" +#include "VelocityCartesian.h" +#include "constr_CHOICE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum Velocity3dWithConfidence_PR { + Velocity3dWithConfidence_PR_NOTHING, /* No components present */ + Velocity3dWithConfidence_PR_polarVelocity, + Velocity3dWithConfidence_PR_cartesianVelocity +} Velocity3dWithConfidence_PR; + +/* Velocity3dWithConfidence */ +typedef struct Velocity3dWithConfidence { + Velocity3dWithConfidence_PR present; + union Velocity3dWithConfidence_u { + VelocityPolarWithZ_t polarVelocity; + VelocityCartesian_t cartesianVelocity; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Velocity3dWithConfidence_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Velocity3dWithConfidence; +extern asn_CHOICE_specifics_t asn_SPC_Velocity3dWithConfidence_specs_1; +extern asn_TYPE_member_t asn_MBR_Velocity3dWithConfidence_1[2]; +extern asn_per_constraints_t asn_PER_type_Velocity3dWithConfidence_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _Velocity3dWithConfidence_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VelocityCartesian.c b/vanetza/asn1/its2/VelocityCartesian.c new file mode 100644 index 000000000..10b02b6a0 --- /dev/null +++ b/vanetza/asn1/its2/VelocityCartesian.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VelocityCartesian.h" + +asn_TYPE_member_t asn_MBR_VelocityCartesian_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct VelocityCartesian, xVelocity), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VelocityComponent, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "xVelocity" + }, + { ATF_NOFLAGS, 0, offsetof(struct VelocityCartesian, yVelocity), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VelocityComponent, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "yVelocity" + }, + { ATF_POINTER, 1, offsetof(struct VelocityCartesian, zVelocity), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VelocityComponent, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "zVelocity" + }, +}; +static const int asn_MAP_VelocityCartesian_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_VelocityCartesian_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_VelocityCartesian_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* xVelocity */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* yVelocity */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* zVelocity */ +}; +asn_SEQUENCE_specifics_t asn_SPC_VelocityCartesian_specs_1 = { + sizeof(struct VelocityCartesian), + offsetof(struct VelocityCartesian, _asn_ctx), + asn_MAP_VelocityCartesian_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_VelocityCartesian_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_VelocityCartesian = { + "VelocityCartesian", + "VelocityCartesian", + &asn_OP_SEQUENCE, + asn_DEF_VelocityCartesian_tags_1, + sizeof(asn_DEF_VelocityCartesian_tags_1) + /sizeof(asn_DEF_VelocityCartesian_tags_1[0]), /* 1 */ + asn_DEF_VelocityCartesian_tags_1, /* Same as above */ + sizeof(asn_DEF_VelocityCartesian_tags_1) + /sizeof(asn_DEF_VelocityCartesian_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_VelocityCartesian_1, + 3, /* Elements count */ + &asn_SPC_VelocityCartesian_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/VelocityCartesian.h b/vanetza/asn1/its2/VelocityCartesian.h new file mode 100644 index 000000000..be371b9ae --- /dev/null +++ b/vanetza/asn1/its2/VelocityCartesian.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VelocityCartesian_H_ +#define _VelocityCartesian_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "VelocityComponent.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct VelocityComponent; + +/* VelocityCartesian */ +typedef struct VelocityCartesian { + VelocityComponent_t xVelocity; + VelocityComponent_t yVelocity; + struct VelocityComponent *zVelocity; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} VelocityCartesian_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_VelocityCartesian; +extern asn_SEQUENCE_specifics_t asn_SPC_VelocityCartesian_specs_1; +extern asn_TYPE_member_t asn_MBR_VelocityCartesian_1[3]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "VelocityComponent.h" + +#endif /* _VelocityCartesian_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VelocityComponent.c b/vanetza/asn1/its2/VelocityComponent.c new file mode 100644 index 000000000..134b1b361 --- /dev/null +++ b/vanetza/asn1/its2/VelocityComponent.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VelocityComponent.h" + +asn_TYPE_member_t asn_MBR_VelocityComponent_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct VelocityComponent, value), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VelocityComponentValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "value" + }, + { ATF_NOFLAGS, 0, offsetof(struct VelocityComponent, confidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SpeedConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "confidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_VelocityComponent_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_VelocityComponent_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* value */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* confidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_VelocityComponent_specs_1 = { + sizeof(struct VelocityComponent), + offsetof(struct VelocityComponent, _asn_ctx), + asn_MAP_VelocityComponent_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_VelocityComponent = { + "VelocityComponent", + "VelocityComponent", + &asn_OP_SEQUENCE, + asn_DEF_VelocityComponent_tags_1, + sizeof(asn_DEF_VelocityComponent_tags_1) + /sizeof(asn_DEF_VelocityComponent_tags_1[0]), /* 1 */ + asn_DEF_VelocityComponent_tags_1, /* Same as above */ + sizeof(asn_DEF_VelocityComponent_tags_1) + /sizeof(asn_DEF_VelocityComponent_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_VelocityComponent_1, + 2, /* Elements count */ + &asn_SPC_VelocityComponent_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/VelocityComponent.h b/vanetza/asn1/its2/VelocityComponent.h new file mode 100644 index 000000000..bc72b4d1f --- /dev/null +++ b/vanetza/asn1/its2/VelocityComponent.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VelocityComponent_H_ +#define _VelocityComponent_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "VelocityComponentValue.h" +#include "SpeedConfidence.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* VelocityComponent */ +typedef struct VelocityComponent { + VelocityComponentValue_t value; + SpeedConfidence_t confidence; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} VelocityComponent_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_VelocityComponent; +extern asn_SEQUENCE_specifics_t asn_SPC_VelocityComponent_specs_1; +extern asn_TYPE_member_t asn_MBR_VelocityComponent_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _VelocityComponent_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VelocityComponentValue.c b/vanetza/asn1/its2/VelocityComponentValue.c new file mode 100644 index 000000000..08f99b92f --- /dev/null +++ b/vanetza/asn1/its2/VelocityComponentValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VelocityComponentValue.h" + +int +VelocityComponentValue_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 >= -16383L && 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_VelocityComponentValue_constr_1 CC_NOTUSED = { + { 2, 0 } /* (-16383..16383) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_VelocityComponentValue_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 15, 15, -16383, 16383 } /* (-16383..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_VelocityComponentValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_VelocityComponentValue = { + "VelocityComponentValue", + "VelocityComponentValue", + &asn_OP_NativeInteger, + asn_DEF_VelocityComponentValue_tags_1, + sizeof(asn_DEF_VelocityComponentValue_tags_1) + /sizeof(asn_DEF_VelocityComponentValue_tags_1[0]), /* 1 */ + asn_DEF_VelocityComponentValue_tags_1, /* Same as above */ + sizeof(asn_DEF_VelocityComponentValue_tags_1) + /sizeof(asn_DEF_VelocityComponentValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_VelocityComponentValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_VelocityComponentValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + VelocityComponentValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/VelocityComponentValue.h b/vanetza/asn1/its2/VelocityComponentValue.h new file mode 100644 index 000000000..78dc35e6e --- /dev/null +++ b/vanetza/asn1/its2/VelocityComponentValue.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VelocityComponentValue_H_ +#define _VelocityComponentValue_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum VelocityComponentValue { + VelocityComponentValue_negativeOutOfRange = -16383, + VelocityComponentValue_positiveOutOfRange = 16382, + VelocityComponentValue_unavailable = 16383 +} e_VelocityComponentValue; + +/* VelocityComponentValue */ +typedef long VelocityComponentValue_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_VelocityComponentValue_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_VelocityComponentValue; +asn_struct_free_f VelocityComponentValue_free; +asn_struct_print_f VelocityComponentValue_print; +asn_constr_check_f VelocityComponentValue_constraint; +ber_type_decoder_f VelocityComponentValue_decode_ber; +der_type_encoder_f VelocityComponentValue_encode_der; +xer_type_decoder_f VelocityComponentValue_decode_xer; +xer_type_encoder_f VelocityComponentValue_encode_xer; +jer_type_encoder_f VelocityComponentValue_encode_jer; +oer_type_decoder_f VelocityComponentValue_decode_oer; +oer_type_encoder_f VelocityComponentValue_encode_oer; +per_type_decoder_f VelocityComponentValue_decode_uper; +per_type_encoder_f VelocityComponentValue_encode_uper; +per_type_decoder_f VelocityComponentValue_decode_aper; +per_type_encoder_f VelocityComponentValue_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _VelocityComponentValue_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VelocityPolarWithZ.c b/vanetza/asn1/its2/VelocityPolarWithZ.c new file mode 100644 index 000000000..c4a60300e --- /dev/null +++ b/vanetza/asn1/its2/VelocityPolarWithZ.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VelocityPolarWithZ.h" + +asn_TYPE_member_t asn_MBR_VelocityPolarWithZ_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct VelocityPolarWithZ, velocityMagnitude), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Speed, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "velocityMagnitude" + }, + { ATF_NOFLAGS, 0, offsetof(struct VelocityPolarWithZ, velocityDirection), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianAngle, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "velocityDirection" + }, + { ATF_POINTER, 1, offsetof(struct VelocityPolarWithZ, zVelocity), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VelocityComponent, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "zVelocity" + }, +}; +static const int asn_MAP_VelocityPolarWithZ_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_VelocityPolarWithZ_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_VelocityPolarWithZ_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* velocityMagnitude */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* velocityDirection */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* zVelocity */ +}; +asn_SEQUENCE_specifics_t asn_SPC_VelocityPolarWithZ_specs_1 = { + sizeof(struct VelocityPolarWithZ), + offsetof(struct VelocityPolarWithZ, _asn_ctx), + asn_MAP_VelocityPolarWithZ_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_VelocityPolarWithZ_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + -1, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_VelocityPolarWithZ = { + "VelocityPolarWithZ", + "VelocityPolarWithZ", + &asn_OP_SEQUENCE, + asn_DEF_VelocityPolarWithZ_tags_1, + sizeof(asn_DEF_VelocityPolarWithZ_tags_1) + /sizeof(asn_DEF_VelocityPolarWithZ_tags_1[0]), /* 1 */ + asn_DEF_VelocityPolarWithZ_tags_1, /* Same as above */ + sizeof(asn_DEF_VelocityPolarWithZ_tags_1) + /sizeof(asn_DEF_VelocityPolarWithZ_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_VelocityPolarWithZ_1, + 3, /* Elements count */ + &asn_SPC_VelocityPolarWithZ_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/VelocityPolarWithZ.h b/vanetza/asn1/its2/VelocityPolarWithZ.h new file mode 100644 index 000000000..9fe72b870 --- /dev/null +++ b/vanetza/asn1/its2/VelocityPolarWithZ.h @@ -0,0 +1,49 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VelocityPolarWithZ_H_ +#define _VelocityPolarWithZ_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "Speed.h" +#include "CartesianAngle.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct VelocityComponent; + +/* VelocityPolarWithZ */ +typedef struct VelocityPolarWithZ { + Speed_t velocityMagnitude; + CartesianAngle_t velocityDirection; + struct VelocityComponent *zVelocity; /* OPTIONAL */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} VelocityPolarWithZ_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_VelocityPolarWithZ; +extern asn_SEQUENCE_specifics_t asn_SPC_VelocityPolarWithZ_specs_1; +extern asn_TYPE_member_t asn_MBR_VelocityPolarWithZ_1[3]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "VelocityComponent.h" + +#endif /* _VelocityPolarWithZ_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VerticalAcceleration.c b/vanetza/asn1/its2/VerticalAcceleration.c new file mode 100644 index 000000000..49d63303f --- /dev/null +++ b/vanetza/asn1/its2/VerticalAcceleration.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VerticalAcceleration.h" + +asn_TYPE_member_t asn_MBR_VerticalAcceleration_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct VerticalAcceleration, verticalAccelerationValue), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VerticalAccelerationValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "verticalAccelerationValue" + }, + { ATF_NOFLAGS, 0, offsetof(struct VerticalAcceleration, verticalAccelerationConfidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AccelerationConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "verticalAccelerationConfidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_VerticalAcceleration_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_VerticalAcceleration_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* verticalAccelerationValue */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* verticalAccelerationConfidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_VerticalAcceleration_specs_1 = { + sizeof(struct VerticalAcceleration), + offsetof(struct VerticalAcceleration, _asn_ctx), + asn_MAP_VerticalAcceleration_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_VerticalAcceleration = { + "VerticalAcceleration", + "VerticalAcceleration", + &asn_OP_SEQUENCE, + asn_DEF_VerticalAcceleration_tags_1, + sizeof(asn_DEF_VerticalAcceleration_tags_1) + /sizeof(asn_DEF_VerticalAcceleration_tags_1[0]), /* 1 */ + asn_DEF_VerticalAcceleration_tags_1, /* Same as above */ + sizeof(asn_DEF_VerticalAcceleration_tags_1) + /sizeof(asn_DEF_VerticalAcceleration_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_VerticalAcceleration_1, + 2, /* Elements count */ + &asn_SPC_VerticalAcceleration_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/VerticalAcceleration.h b/vanetza/asn1/its2/VerticalAcceleration.h new file mode 100644 index 000000000..f3fa2869c --- /dev/null +++ b/vanetza/asn1/its2/VerticalAcceleration.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VerticalAcceleration_H_ +#define _VerticalAcceleration_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "VerticalAccelerationValue.h" +#include "AccelerationConfidence.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* VerticalAcceleration */ +typedef struct VerticalAcceleration { + VerticalAccelerationValue_t verticalAccelerationValue; + AccelerationConfidence_t verticalAccelerationConfidence; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} VerticalAcceleration_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_VerticalAcceleration; +extern asn_SEQUENCE_specifics_t asn_SPC_VerticalAcceleration_specs_1; +extern asn_TYPE_member_t asn_MBR_VerticalAcceleration_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _VerticalAcceleration_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VerticalAccelerationValue.c b/vanetza/asn1/its2/VerticalAccelerationValue.c new file mode 100644 index 000000000..f82fe562c --- /dev/null +++ b/vanetza/asn1/its2/VerticalAccelerationValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VerticalAccelerationValue.h" + +int +VerticalAccelerationValue_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 >= -160L && value <= 161L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_VerticalAccelerationValue_constr_1 CC_NOTUSED = { + { 2, 0 } /* (-160..161) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_VerticalAccelerationValue_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 9, 9, -160, 161 } /* (-160..161) */, + { 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_VerticalAccelerationValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_VerticalAccelerationValue = { + "VerticalAccelerationValue", + "VerticalAccelerationValue", + &asn_OP_NativeInteger, + asn_DEF_VerticalAccelerationValue_tags_1, + sizeof(asn_DEF_VerticalAccelerationValue_tags_1) + /sizeof(asn_DEF_VerticalAccelerationValue_tags_1[0]), /* 1 */ + asn_DEF_VerticalAccelerationValue_tags_1, /* Same as above */ + sizeof(asn_DEF_VerticalAccelerationValue_tags_1) + /sizeof(asn_DEF_VerticalAccelerationValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_VerticalAccelerationValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_VerticalAccelerationValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + VerticalAccelerationValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/VerticalAccelerationValue.h b/vanetza/asn1/its2/VerticalAccelerationValue.h new file mode 100644 index 000000000..258564d7a --- /dev/null +++ b/vanetza/asn1/its2/VerticalAccelerationValue.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VerticalAccelerationValue_H_ +#define _VerticalAccelerationValue_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum VerticalAccelerationValue { + VerticalAccelerationValue_negativeOutOfRange = -160, + VerticalAccelerationValue_positiveOutOfRange = 160, + VerticalAccelerationValue_unavailable = 161 +} e_VerticalAccelerationValue; + +/* VerticalAccelerationValue */ +typedef long VerticalAccelerationValue_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_VerticalAccelerationValue_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_VerticalAccelerationValue; +asn_struct_free_f VerticalAccelerationValue_free; +asn_struct_print_f VerticalAccelerationValue_print; +asn_constr_check_f VerticalAccelerationValue_constraint; +ber_type_decoder_f VerticalAccelerationValue_decode_ber; +der_type_encoder_f VerticalAccelerationValue_encode_der; +xer_type_decoder_f VerticalAccelerationValue_decode_xer; +xer_type_encoder_f VerticalAccelerationValue_encode_xer; +jer_type_encoder_f VerticalAccelerationValue_encode_jer; +oer_type_decoder_f VerticalAccelerationValue_decode_oer; +oer_type_encoder_f VerticalAccelerationValue_encode_oer; +per_type_decoder_f VerticalAccelerationValue_decode_uper; +per_type_encoder_f VerticalAccelerationValue_encode_uper; +per_type_decoder_f VerticalAccelerationValue_decode_aper; +per_type_encoder_f VerticalAccelerationValue_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _VerticalAccelerationValue_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VruAwareness.c b/vanetza/asn1/its2/VruAwareness.c new file mode 100644 index 000000000..f254f362e --- /dev/null +++ b/vanetza/asn1/its2/VruAwareness.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "VAM-PDU-Descriptions" + * found in "asn1/TS103300-3v221-VAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VruAwareness.h" + +asn_TYPE_member_t asn_MBR_VruAwareness_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct VruAwareness, generationDeltaTime), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GenerationDeltaTime, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "generationDeltaTime" + }, + { ATF_NOFLAGS, 0, offsetof(struct VruAwareness, vamParameters), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VamParameters, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vamParameters" + }, +}; +static const ber_tlv_tag_t asn_DEF_VruAwareness_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_VruAwareness_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* generationDeltaTime */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* vamParameters */ +}; +asn_SEQUENCE_specifics_t asn_SPC_VruAwareness_specs_1 = { + sizeof(struct VruAwareness), + offsetof(struct VruAwareness, _asn_ctx), + asn_MAP_VruAwareness_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_VruAwareness = { + "VruAwareness", + "VruAwareness", + &asn_OP_SEQUENCE, + asn_DEF_VruAwareness_tags_1, + sizeof(asn_DEF_VruAwareness_tags_1) + /sizeof(asn_DEF_VruAwareness_tags_1[0]), /* 1 */ + asn_DEF_VruAwareness_tags_1, /* Same as above */ + sizeof(asn_DEF_VruAwareness_tags_1) + /sizeof(asn_DEF_VruAwareness_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_VruAwareness_1, + 2, /* Elements count */ + &asn_SPC_VruAwareness_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/VruAwareness.h b/vanetza/asn1/its2/VruAwareness.h new file mode 100644 index 000000000..90753faf5 --- /dev/null +++ b/vanetza/asn1/its2/VruAwareness.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "VAM-PDU-Descriptions" + * found in "asn1/TS103300-3v221-VAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VruAwareness_H_ +#define _VruAwareness_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "GenerationDeltaTime.h" +#include "VamParameters.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* VruAwareness */ +typedef struct VruAwareness { + GenerationDeltaTime_t generationDeltaTime; + VamParameters_t vamParameters; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} VruAwareness_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_VruAwareness; +extern asn_SEQUENCE_specifics_t asn_SPC_VruAwareness_specs_1; +extern asn_TYPE_member_t asn_MBR_VruAwareness_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _VruAwareness_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VruClusterInformation.c b/vanetza/asn1/its2/VruClusterInformation.c new file mode 100644 index 000000000..8baf63be3 --- /dev/null +++ b/vanetza/asn1/its2/VruClusterInformation.c @@ -0,0 +1,168 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VruClusterInformation.h" + +static int +memb_clusterBoundingBoxShape_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; + } + + + if(1 /* No applicable constraints whatsoever */) { + /* Nothing is here. See below */ + } + + return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); +} + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_clusterBoundingBoxShape_constr_3 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_clusterBoundingBoxShape_constr_3 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_VruClusterInformation_1[] = { + { ATF_POINTER, 2, offsetof(struct VruClusterInformation, clusterId), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Identifier1B, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "clusterId" + }, + { ATF_POINTER, 1, offsetof(struct VruClusterInformation, clusterBoundingBoxShape), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_Shape, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_clusterBoundingBoxShape_constr_3, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_clusterBoundingBoxShape_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_clusterBoundingBoxShape_constraint_1 + }, + 0, 0, /* No default value */ + "clusterBoundingBoxShape" + }, + { ATF_NOFLAGS, 0, offsetof(struct VruClusterInformation, clusterCardinalitySize), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CardinalNumber1B, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "clusterCardinalitySize" + }, + { ATF_POINTER, 1, offsetof(struct VruClusterInformation, clusterProfiles), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VruClusterProfiles, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "clusterProfiles" + }, +}; +static const int asn_MAP_VruClusterInformation_oms_1[] = { 0, 1, 3 }; +static const ber_tlv_tag_t asn_DEF_VruClusterInformation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_VruClusterInformation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* clusterId */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* clusterBoundingBoxShape */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* clusterCardinalitySize */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* clusterProfiles */ +}; +asn_SEQUENCE_specifics_t asn_SPC_VruClusterInformation_specs_1 = { + sizeof(struct VruClusterInformation), + offsetof(struct VruClusterInformation, _asn_ctx), + asn_MAP_VruClusterInformation_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_VruClusterInformation_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_VruClusterInformation = { + "VruClusterInformation", + "VruClusterInformation", + &asn_OP_SEQUENCE, + asn_DEF_VruClusterInformation_tags_1, + sizeof(asn_DEF_VruClusterInformation_tags_1) + /sizeof(asn_DEF_VruClusterInformation_tags_1[0]), /* 1 */ + asn_DEF_VruClusterInformation_tags_1, /* Same as above */ + sizeof(asn_DEF_VruClusterInformation_tags_1) + /sizeof(asn_DEF_VruClusterInformation_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_VruClusterInformation_1, + 4, /* Elements count */ + &asn_SPC_VruClusterInformation_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/VruClusterInformation.h b/vanetza/asn1/its2/VruClusterInformation.h new file mode 100644 index 000000000..93ce8fce1 --- /dev/null +++ b/vanetza/asn1/its2/VruClusterInformation.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VruClusterInformation_H_ +#define _VruClusterInformation_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "Identifier1B.h" +#include "CardinalNumber1B.h" +#include "VruClusterProfiles.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct Shape; + +/* VruClusterInformation */ +typedef struct VruClusterInformation { + Identifier1B_t *clusterId; /* OPTIONAL */ + struct Shape *clusterBoundingBoxShape; /* OPTIONAL */ + CardinalNumber1B_t clusterCardinalitySize; + VruClusterProfiles_t *clusterProfiles; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} VruClusterInformation_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_VruClusterInformation; +extern asn_SEQUENCE_specifics_t asn_SPC_VruClusterInformation_specs_1; +extern asn_TYPE_member_t asn_MBR_VruClusterInformation_1[4]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "Shape.h" + +#endif /* _VruClusterInformation_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VruClusterInformationContainer.c b/vanetza/asn1/its2/VruClusterInformationContainer.c new file mode 100644 index 000000000..7007b95e9 --- /dev/null +++ b/vanetza/asn1/its2/VruClusterInformationContainer.c @@ -0,0 +1,103 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "VAM-PDU-Descriptions" + * found in "asn1/TS103300-3v221-VAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VruClusterInformationContainer.h" + +static int +memb_vruClusterInformation_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; + } + + + if(1 /* No applicable constraints whatsoever */) { + /* Nothing is here. See below */ + } + + return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); +} + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_vruClusterInformation_constr_2 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_vruClusterInformation_constr_2 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 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) */ +asn_TYPE_member_t asn_MBR_VruClusterInformationContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct VruClusterInformationContainer, vruClusterInformation), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VruClusterInformation, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_vruClusterInformation_constr_2, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_vruClusterInformation_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_vruClusterInformation_constraint_1 + }, + 0, 0, /* No default value */ + "vruClusterInformation" + }, +}; +static const ber_tlv_tag_t asn_DEF_VruClusterInformationContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_VruClusterInformationContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* vruClusterInformation */ +}; +asn_SEQUENCE_specifics_t asn_SPC_VruClusterInformationContainer_specs_1 = { + sizeof(struct VruClusterInformationContainer), + offsetof(struct VruClusterInformationContainer, _asn_ctx), + asn_MAP_VruClusterInformationContainer_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_VruClusterInformationContainer = { + "VruClusterInformationContainer", + "VruClusterInformationContainer", + &asn_OP_SEQUENCE, + asn_DEF_VruClusterInformationContainer_tags_1, + sizeof(asn_DEF_VruClusterInformationContainer_tags_1) + /sizeof(asn_DEF_VruClusterInformationContainer_tags_1[0]), /* 1 */ + asn_DEF_VruClusterInformationContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_VruClusterInformationContainer_tags_1) + /sizeof(asn_DEF_VruClusterInformationContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_VruClusterInformationContainer_1, + 1, /* Elements count */ + &asn_SPC_VruClusterInformationContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/VruClusterInformationContainer.h b/vanetza/asn1/its2/VruClusterInformationContainer.h new file mode 100644 index 000000000..a6df1db1e --- /dev/null +++ b/vanetza/asn1/its2/VruClusterInformationContainer.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "VAM-PDU-Descriptions" + * found in "asn1/TS103300-3v221-VAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VruClusterInformationContainer_H_ +#define _VruClusterInformationContainer_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "VruClusterInformation.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* VruClusterInformationContainer */ +typedef struct VruClusterInformationContainer { + VruClusterInformation_t vruClusterInformation; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} VruClusterInformationContainer_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_VruClusterInformationContainer; +extern asn_SEQUENCE_specifics_t asn_SPC_VruClusterInformationContainer_specs_1; +extern asn_TYPE_member_t asn_MBR_VruClusterInformationContainer_1[1]; + +#ifdef __cplusplus +} +#endif + +#endif /* _VruClusterInformationContainer_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VruClusterOperationContainer.c b/vanetza/asn1/its2/VruClusterOperationContainer.c new file mode 100644 index 000000000..f728748b7 --- /dev/null +++ b/vanetza/asn1/its2/VruClusterOperationContainer.c @@ -0,0 +1,137 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "VAM-PDU-Descriptions" + * found in "asn1/TS103300-3v221-VAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VruClusterOperationContainer.h" + +asn_TYPE_member_t asn_MBR_VruClusterOperationContainer_1[] = { + { ATF_POINTER, 4, offsetof(struct VruClusterOperationContainer, clusterJoinInfo), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ClusterJoinInfo, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "clusterJoinInfo" + }, + { ATF_POINTER, 3, offsetof(struct VruClusterOperationContainer, clusterLeaveInfo), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ClusterLeaveInfo, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "clusterLeaveInfo" + }, + { ATF_POINTER, 2, offsetof(struct VruClusterOperationContainer, clusterBreakupInfo), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ClusterBreakupInfo, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "clusterBreakupInfo" + }, + { ATF_POINTER, 1, offsetof(struct VruClusterOperationContainer, clusterIdChangeTimeInfo), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_DeltaTimeQuarterSecond, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "clusterIdChangeTimeInfo" + }, +}; +static const int asn_MAP_VruClusterOperationContainer_oms_1[] = { 0, 1, 2, 3 }; +static const ber_tlv_tag_t asn_DEF_VruClusterOperationContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_VruClusterOperationContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* clusterJoinInfo */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* clusterLeaveInfo */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* clusterBreakupInfo */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* clusterIdChangeTimeInfo */ +}; +asn_SEQUENCE_specifics_t asn_SPC_VruClusterOperationContainer_specs_1 = { + sizeof(struct VruClusterOperationContainer), + offsetof(struct VruClusterOperationContainer, _asn_ctx), + asn_MAP_VruClusterOperationContainer_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_VruClusterOperationContainer_oms_1, /* Optional members */ + 4, 0, /* Root/Additions */ + 4, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_VruClusterOperationContainer = { + "VruClusterOperationContainer", + "VruClusterOperationContainer", + &asn_OP_SEQUENCE, + asn_DEF_VruClusterOperationContainer_tags_1, + sizeof(asn_DEF_VruClusterOperationContainer_tags_1) + /sizeof(asn_DEF_VruClusterOperationContainer_tags_1[0]), /* 1 */ + asn_DEF_VruClusterOperationContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_VruClusterOperationContainer_tags_1) + /sizeof(asn_DEF_VruClusterOperationContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_VruClusterOperationContainer_1, + 4, /* Elements count */ + &asn_SPC_VruClusterOperationContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/VruClusterOperationContainer.h b/vanetza/asn1/its2/VruClusterOperationContainer.h new file mode 100644 index 000000000..b213205b2 --- /dev/null +++ b/vanetza/asn1/its2/VruClusterOperationContainer.h @@ -0,0 +1,57 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "VAM-PDU-Descriptions" + * found in "asn1/TS103300-3v221-VAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VruClusterOperationContainer_H_ +#define _VruClusterOperationContainer_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "DeltaTimeQuarterSecond.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct ClusterJoinInfo; +struct ClusterLeaveInfo; +struct ClusterBreakupInfo; + +/* VruClusterOperationContainer */ +typedef struct VruClusterOperationContainer { + struct ClusterJoinInfo *clusterJoinInfo; /* OPTIONAL */ + struct ClusterLeaveInfo *clusterLeaveInfo; /* OPTIONAL */ + struct ClusterBreakupInfo *clusterBreakupInfo; /* OPTIONAL */ + DeltaTimeQuarterSecond_t *clusterIdChangeTimeInfo; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} VruClusterOperationContainer_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_VruClusterOperationContainer; +extern asn_SEQUENCE_specifics_t asn_SPC_VruClusterOperationContainer_specs_1; +extern asn_TYPE_member_t asn_MBR_VruClusterOperationContainer_1[4]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "ClusterJoinInfo.h" +#include "ClusterLeaveInfo.h" +#include "ClusterBreakupInfo.h" + +#endif /* _VruClusterOperationContainer_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VruClusterProfiles.c b/vanetza/asn1/its2/VruClusterProfiles.c new file mode 100644 index 000000000..74b644c8b --- /dev/null +++ b/vanetza/asn1/its2/VruClusterProfiles.c @@ -0,0 +1,89 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VruClusterProfiles.h" + +int +VruClusterProfiles_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 == 4UL)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_VruClusterProfiles_constr_1 CC_NOTUSED = { + { 0, 0 }, + 4 /* (SIZE(4..4)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_VruClusterProfiles_constr_1 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_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_VruClusterProfiles_constr_1 CC_NOTUSED = { + 4}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_VruClusterProfiles_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_VruClusterProfiles = { + "VruClusterProfiles", + "VruClusterProfiles", + &asn_OP_BIT_STRING, + asn_DEF_VruClusterProfiles_tags_1, + sizeof(asn_DEF_VruClusterProfiles_tags_1) + /sizeof(asn_DEF_VruClusterProfiles_tags_1[0]), /* 1 */ + asn_DEF_VruClusterProfiles_tags_1, /* Same as above */ + sizeof(asn_DEF_VruClusterProfiles_tags_1) + /sizeof(asn_DEF_VruClusterProfiles_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_VruClusterProfiles_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_VruClusterProfiles_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_VruClusterProfiles_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + VruClusterProfiles_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/VruClusterProfiles.h b/vanetza/asn1/its2/VruClusterProfiles.h new file mode 100644 index 000000000..3029661dd --- /dev/null +++ b/vanetza/asn1/its2/VruClusterProfiles.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VruClusterProfiles_H_ +#define _VruClusterProfiles_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "BIT_STRING.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum VruClusterProfiles { + VruClusterProfiles_pedestrian = 0, + VruClusterProfiles_bicyclist = 1, + VruClusterProfiles_motorcyclist = 2, + VruClusterProfiles_animal = 3 +} e_VruClusterProfiles; + +/* VruClusterProfiles */ +typedef BIT_STRING_t VruClusterProfiles_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_VruClusterProfiles_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_VruClusterProfiles; +asn_struct_free_f VruClusterProfiles_free; +asn_struct_print_f VruClusterProfiles_print; +asn_constr_check_f VruClusterProfiles_constraint; +ber_type_decoder_f VruClusterProfiles_decode_ber; +der_type_encoder_f VruClusterProfiles_encode_der; +xer_type_decoder_f VruClusterProfiles_decode_xer; +xer_type_encoder_f VruClusterProfiles_encode_xer; +jer_type_encoder_f VruClusterProfiles_encode_jer; +oer_type_decoder_f VruClusterProfiles_decode_oer; +oer_type_encoder_f VruClusterProfiles_encode_oer; +per_type_decoder_f VruClusterProfiles_decode_uper; +per_type_encoder_f VruClusterProfiles_encode_uper; +per_type_decoder_f VruClusterProfiles_decode_aper; +per_type_encoder_f VruClusterProfiles_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _VruClusterProfiles_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VruDeviceUsage.c b/vanetza/asn1/its2/VruDeviceUsage.c new file mode 100644 index 000000000..b07213826 --- /dev/null +++ b/vanetza/asn1/its2/VruDeviceUsage.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VruDeviceUsage.h" + +int +VruDeviceUsage_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 <= 15L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_VruDeviceUsage_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..15) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_VruDeviceUsage_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 ber_tlv_tag_t asn_DEF_VruDeviceUsage_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_VruDeviceUsage = { + "VruDeviceUsage", + "VruDeviceUsage", + &asn_OP_NativeInteger, + asn_DEF_VruDeviceUsage_tags_1, + sizeof(asn_DEF_VruDeviceUsage_tags_1) + /sizeof(asn_DEF_VruDeviceUsage_tags_1[0]), /* 1 */ + asn_DEF_VruDeviceUsage_tags_1, /* Same as above */ + sizeof(asn_DEF_VruDeviceUsage_tags_1) + /sizeof(asn_DEF_VruDeviceUsage_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_VruDeviceUsage_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_VruDeviceUsage_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + VruDeviceUsage_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/VruDeviceUsage.h b/vanetza/asn1/its2/VruDeviceUsage.h new file mode 100644 index 000000000..55288c3d2 --- /dev/null +++ b/vanetza/asn1/its2/VruDeviceUsage.h @@ -0,0 +1,60 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VruDeviceUsage_H_ +#define _VruDeviceUsage_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum VruDeviceUsage { + VruDeviceUsage_unavailable = 0, + VruDeviceUsage_other = 1, + VruDeviceUsage_idle = 2, + VruDeviceUsage_listeningToAudio = 3, + VruDeviceUsage_typing = 4, + VruDeviceUsage_calling = 5, + VruDeviceUsage_playingGames = 6, + VruDeviceUsage_reading = 7, + VruDeviceUsage_viewing = 8 +} e_VruDeviceUsage; + +/* VruDeviceUsage */ +typedef long VruDeviceUsage_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_VruDeviceUsage_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_VruDeviceUsage; +asn_struct_free_f VruDeviceUsage_free; +asn_struct_print_f VruDeviceUsage_print; +asn_constr_check_f VruDeviceUsage_constraint; +ber_type_decoder_f VruDeviceUsage_decode_ber; +der_type_encoder_f VruDeviceUsage_encode_der; +xer_type_decoder_f VruDeviceUsage_decode_xer; +xer_type_encoder_f VruDeviceUsage_encode_xer; +jer_type_encoder_f VruDeviceUsage_encode_jer; +oer_type_decoder_f VruDeviceUsage_decode_oer; +oer_type_encoder_f VruDeviceUsage_encode_oer; +per_type_decoder_f VruDeviceUsage_decode_uper; +per_type_encoder_f VruDeviceUsage_encode_uper; +per_type_decoder_f VruDeviceUsage_decode_aper; +per_type_encoder_f VruDeviceUsage_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _VruDeviceUsage_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VruEnvironment.c b/vanetza/asn1/its2/VruEnvironment.c new file mode 100644 index 000000000..85508b6c5 --- /dev/null +++ b/vanetza/asn1/its2/VruEnvironment.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VruEnvironment.h" + +int +VruEnvironment_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 <= 15L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_VruEnvironment_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..15) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_VruEnvironment_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 ber_tlv_tag_t asn_DEF_VruEnvironment_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_VruEnvironment = { + "VruEnvironment", + "VruEnvironment", + &asn_OP_NativeInteger, + asn_DEF_VruEnvironment_tags_1, + sizeof(asn_DEF_VruEnvironment_tags_1) + /sizeof(asn_DEF_VruEnvironment_tags_1[0]), /* 1 */ + asn_DEF_VruEnvironment_tags_1, /* Same as above */ + sizeof(asn_DEF_VruEnvironment_tags_1) + /sizeof(asn_DEF_VruEnvironment_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_VruEnvironment_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_VruEnvironment_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + VruEnvironment_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/VruEnvironment.h b/vanetza/asn1/its2/VruEnvironment.h new file mode 100644 index 000000000..35376443b --- /dev/null +++ b/vanetza/asn1/its2/VruEnvironment.h @@ -0,0 +1,57 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VruEnvironment_H_ +#define _VruEnvironment_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum VruEnvironment { + VruEnvironment_unavailable = 0, + VruEnvironment_intersectionCrossing = 1, + VruEnvironment_zebraCrossing = 2, + VruEnvironment_sidewalk = 3, + VruEnvironment_onVehicleRoad = 4, + VruEnvironment_protectedGeographicArea = 5 +} e_VruEnvironment; + +/* VruEnvironment */ +typedef long VruEnvironment_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_VruEnvironment_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_VruEnvironment; +asn_struct_free_f VruEnvironment_free; +asn_struct_print_f VruEnvironment_print; +asn_constr_check_f VruEnvironment_constraint; +ber_type_decoder_f VruEnvironment_decode_ber; +der_type_encoder_f VruEnvironment_encode_der; +xer_type_decoder_f VruEnvironment_decode_xer; +xer_type_encoder_f VruEnvironment_encode_xer; +jer_type_encoder_f VruEnvironment_encode_jer; +oer_type_decoder_f VruEnvironment_decode_oer; +oer_type_encoder_f VruEnvironment_encode_oer; +per_type_decoder_f VruEnvironment_decode_uper; +per_type_encoder_f VruEnvironment_encode_uper; +per_type_decoder_f VruEnvironment_decode_aper; +per_type_encoder_f VruEnvironment_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _VruEnvironment_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VruExteriorLights.c b/vanetza/asn1/its2/VruExteriorLights.c new file mode 100644 index 000000000..38c9cd5be --- /dev/null +++ b/vanetza/asn1/its2/VruExteriorLights.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VruExteriorLights.h" + +asn_TYPE_member_t asn_MBR_VruExteriorLights_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct VruExteriorLights, vehicular), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_ExteriorLights, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vehicular" + }, + { ATF_NOFLAGS, 0, offsetof(struct VruExteriorLights, vruSpecific), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VruSpecificExteriorLights, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vruSpecific" + }, +}; +static const ber_tlv_tag_t asn_DEF_VruExteriorLights_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_VruExteriorLights_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* vehicular */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* vruSpecific */ +}; +asn_SEQUENCE_specifics_t asn_SPC_VruExteriorLights_specs_1 = { + sizeof(struct VruExteriorLights), + offsetof(struct VruExteriorLights, _asn_ctx), + asn_MAP_VruExteriorLights_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_VruExteriorLights = { + "VruExteriorLights", + "VruExteriorLights", + &asn_OP_SEQUENCE, + asn_DEF_VruExteriorLights_tags_1, + sizeof(asn_DEF_VruExteriorLights_tags_1) + /sizeof(asn_DEF_VruExteriorLights_tags_1[0]), /* 1 */ + asn_DEF_VruExteriorLights_tags_1, /* Same as above */ + sizeof(asn_DEF_VruExteriorLights_tags_1) + /sizeof(asn_DEF_VruExteriorLights_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_VruExteriorLights_1, + 2, /* Elements count */ + &asn_SPC_VruExteriorLights_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/VruExteriorLights.h b/vanetza/asn1/its2/VruExteriorLights.h new file mode 100644 index 000000000..955654808 --- /dev/null +++ b/vanetza/asn1/its2/VruExteriorLights.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VruExteriorLights_H_ +#define _VruExteriorLights_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "ExteriorLights.h" +#include "VruSpecificExteriorLights.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* VruExteriorLights */ +typedef struct VruExteriorLights { + ExteriorLights_t vehicular; + VruSpecificExteriorLights_t vruSpecific; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} VruExteriorLights_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_VruExteriorLights; +extern asn_SEQUENCE_specifics_t asn_SPC_VruExteriorLights_specs_1; +extern asn_TYPE_member_t asn_MBR_VruExteriorLights_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _VruExteriorLights_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VruHighFrequencyContainer.c b/vanetza/asn1/its2/VruHighFrequencyContainer.c new file mode 100644 index 000000000..848eae71e --- /dev/null +++ b/vanetza/asn1/its2/VruHighFrequencyContainer.c @@ -0,0 +1,347 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "VAM-PDU-Descriptions" + * found in "asn1/TS103300-3v221-VAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VruHighFrequencyContainer.h" + +asn_TYPE_member_t asn_MBR_VruHighFrequencyContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct VruHighFrequencyContainer, heading), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Wgs84Angle, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "heading" + }, + { ATF_NOFLAGS, 0, offsetof(struct VruHighFrequencyContainer, speed), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Speed, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "speed" + }, + { ATF_NOFLAGS, 0, offsetof(struct VruHighFrequencyContainer, longitudinalAcceleration), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LongitudinalAcceleration, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "longitudinalAcceleration" + }, + { ATF_POINTER, 11, offsetof(struct VruHighFrequencyContainer, curvature), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Curvature, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "curvature" + }, + { ATF_POINTER, 10, offsetof(struct VruHighFrequencyContainer, curvatureCalculationMode), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CurvatureCalculationMode, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "curvatureCalculationMode" + }, + { ATF_POINTER, 9, offsetof(struct VruHighFrequencyContainer, yawRate), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_YawRate, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "yawRate" + }, + { ATF_POINTER, 8, offsetof(struct VruHighFrequencyContainer, lateralAcceleration), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_LateralAcceleration, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "lateralAcceleration" + }, + { ATF_POINTER, 7, offsetof(struct VruHighFrequencyContainer, verticalAcceleration), + (ASN_TAG_CLASS_CONTEXT | (7 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VerticalAcceleration, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "verticalAcceleration" + }, + { ATF_POINTER, 6, offsetof(struct VruHighFrequencyContainer, vruLanePosition), + (ASN_TAG_CLASS_CONTEXT | (8 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_GeneralizedLanePosition, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "vruLanePosition" + }, + { ATF_POINTER, 5, offsetof(struct VruHighFrequencyContainer, environment), + (ASN_TAG_CLASS_CONTEXT | (9 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VruEnvironment, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "environment" + }, + { ATF_POINTER, 4, offsetof(struct VruHighFrequencyContainer, movementControl), + (ASN_TAG_CLASS_CONTEXT | (10 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VruMovementControl, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "movementControl" + }, + { ATF_POINTER, 3, offsetof(struct VruHighFrequencyContainer, orientation), + (ASN_TAG_CLASS_CONTEXT | (11 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Wgs84Angle, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "orientation" + }, + { ATF_POINTER, 2, offsetof(struct VruHighFrequencyContainer, rollAngle), + (ASN_TAG_CLASS_CONTEXT | (12 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CartesianAngle, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "rollAngle" + }, + { ATF_POINTER, 1, offsetof(struct VruHighFrequencyContainer, deviceUsage), + (ASN_TAG_CLASS_CONTEXT | (13 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VruDeviceUsage, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "deviceUsage" + }, +}; +static const int asn_MAP_VruHighFrequencyContainer_oms_1[] = { 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static const ber_tlv_tag_t asn_DEF_VruHighFrequencyContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_VruHighFrequencyContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* heading */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* speed */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* longitudinalAcceleration */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* curvature */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* curvatureCalculationMode */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* yawRate */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* lateralAcceleration */ + { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* verticalAcceleration */ + { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* vruLanePosition */ + { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* environment */ + { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* movementControl */ + { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* orientation */ + { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* rollAngle */ + { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 } /* deviceUsage */ +}; +asn_SEQUENCE_specifics_t asn_SPC_VruHighFrequencyContainer_specs_1 = { + sizeof(struct VruHighFrequencyContainer), + offsetof(struct VruHighFrequencyContainer, _asn_ctx), + asn_MAP_VruHighFrequencyContainer_tag2el_1, + 14, /* Count of tags in the map */ + asn_MAP_VruHighFrequencyContainer_oms_1, /* Optional members */ + 11, 0, /* Root/Additions */ + 14, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_VruHighFrequencyContainer = { + "VruHighFrequencyContainer", + "VruHighFrequencyContainer", + &asn_OP_SEQUENCE, + asn_DEF_VruHighFrequencyContainer_tags_1, + sizeof(asn_DEF_VruHighFrequencyContainer_tags_1) + /sizeof(asn_DEF_VruHighFrequencyContainer_tags_1[0]), /* 1 */ + asn_DEF_VruHighFrequencyContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_VruHighFrequencyContainer_tags_1) + /sizeof(asn_DEF_VruHighFrequencyContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_VruHighFrequencyContainer_1, + 14, /* Elements count */ + &asn_SPC_VruHighFrequencyContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/VruHighFrequencyContainer.h b/vanetza/asn1/its2/VruHighFrequencyContainer.h new file mode 100644 index 000000000..dac080b8a --- /dev/null +++ b/vanetza/asn1/its2/VruHighFrequencyContainer.h @@ -0,0 +1,81 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "VAM-PDU-Descriptions" + * found in "asn1/TS103300-3v221-VAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VruHighFrequencyContainer_H_ +#define _VruHighFrequencyContainer_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "Wgs84Angle.h" +#include "Speed.h" +#include "LongitudinalAcceleration.h" +#include "CurvatureCalculationMode.h" +#include "VruEnvironment.h" +#include "VruMovementControl.h" +#include "VruDeviceUsage.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct Curvature; +struct YawRate; +struct LateralAcceleration; +struct VerticalAcceleration; +struct GeneralizedLanePosition; +struct Wgs84Angle; +struct CartesianAngle; + +/* VruHighFrequencyContainer */ +typedef struct VruHighFrequencyContainer { + Wgs84Angle_t heading; + Speed_t speed; + LongitudinalAcceleration_t longitudinalAcceleration; + struct Curvature *curvature; /* OPTIONAL */ + CurvatureCalculationMode_t *curvatureCalculationMode; /* OPTIONAL */ + struct YawRate *yawRate; /* OPTIONAL */ + struct LateralAcceleration *lateralAcceleration; /* OPTIONAL */ + struct VerticalAcceleration *verticalAcceleration; /* OPTIONAL */ + struct GeneralizedLanePosition *vruLanePosition; /* OPTIONAL */ + VruEnvironment_t *environment; /* OPTIONAL */ + VruMovementControl_t *movementControl; /* OPTIONAL */ + struct Wgs84Angle *orientation; /* OPTIONAL */ + struct CartesianAngle *rollAngle; /* OPTIONAL */ + VruDeviceUsage_t *deviceUsage; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} VruHighFrequencyContainer_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_VruHighFrequencyContainer; +extern asn_SEQUENCE_specifics_t asn_SPC_VruHighFrequencyContainer_specs_1; +extern asn_TYPE_member_t asn_MBR_VruHighFrequencyContainer_1[14]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "Curvature.h" +#include "YawRate.h" +#include "LateralAcceleration.h" +#include "VerticalAcceleration.h" +#include "GeneralizedLanePosition.h" +#include "Wgs84Angle.h" +#include "CartesianAngle.h" + +#endif /* _VruHighFrequencyContainer_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VruLowFrequencyContainer.c b/vanetza/asn1/its2/VruLowFrequencyContainer.c new file mode 100644 index 000000000..095c4537b --- /dev/null +++ b/vanetza/asn1/its2/VruLowFrequencyContainer.c @@ -0,0 +1,116 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "VAM-PDU-Descriptions" + * found in "asn1/TS103300-3v221-VAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VruLowFrequencyContainer.h" + +asn_TYPE_member_t asn_MBR_VruLowFrequencyContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct VruLowFrequencyContainer, profileAndSubprofile), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_VruProfileAndSubprofile, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "profileAndSubprofile" + }, + { ATF_POINTER, 2, offsetof(struct VruLowFrequencyContainer, sizeClass), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VruSizeClass, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "sizeClass" + }, + { ATF_POINTER, 1, offsetof(struct VruLowFrequencyContainer, exteriorLights), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VruExteriorLights, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "exteriorLights" + }, +}; +static const int asn_MAP_VruLowFrequencyContainer_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_VruLowFrequencyContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_VruLowFrequencyContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* profileAndSubprofile */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sizeClass */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* exteriorLights */ +}; +asn_SEQUENCE_specifics_t asn_SPC_VruLowFrequencyContainer_specs_1 = { + sizeof(struct VruLowFrequencyContainer), + offsetof(struct VruLowFrequencyContainer, _asn_ctx), + asn_MAP_VruLowFrequencyContainer_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_VruLowFrequencyContainer_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 3, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_VruLowFrequencyContainer = { + "VruLowFrequencyContainer", + "VruLowFrequencyContainer", + &asn_OP_SEQUENCE, + asn_DEF_VruLowFrequencyContainer_tags_1, + sizeof(asn_DEF_VruLowFrequencyContainer_tags_1) + /sizeof(asn_DEF_VruLowFrequencyContainer_tags_1[0]), /* 1 */ + asn_DEF_VruLowFrequencyContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_VruLowFrequencyContainer_tags_1) + /sizeof(asn_DEF_VruLowFrequencyContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_VruLowFrequencyContainer_1, + 3, /* Elements count */ + &asn_SPC_VruLowFrequencyContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/VruLowFrequencyContainer.h b/vanetza/asn1/its2/VruLowFrequencyContainer.h new file mode 100644 index 000000000..38fead65b --- /dev/null +++ b/vanetza/asn1/its2/VruLowFrequencyContainer.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "VAM-PDU-Descriptions" + * found in "asn1/TS103300-3v221-VAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VruLowFrequencyContainer_H_ +#define _VruLowFrequencyContainer_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "VruProfileAndSubprofile.h" +#include "VruSizeClass.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct VruExteriorLights; + +/* VruLowFrequencyContainer */ +typedef struct VruLowFrequencyContainer { + VruProfileAndSubprofile_t profileAndSubprofile; + VruSizeClass_t *sizeClass; /* OPTIONAL */ + struct VruExteriorLights *exteriorLights; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} VruLowFrequencyContainer_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_VruLowFrequencyContainer; +extern asn_SEQUENCE_specifics_t asn_SPC_VruLowFrequencyContainer_specs_1; +extern asn_TYPE_member_t asn_MBR_VruLowFrequencyContainer_1[3]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "VruExteriorLights.h" + +#endif /* _VruLowFrequencyContainer_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VruMotionPredictionContainer.c b/vanetza/asn1/its2/VruMotionPredictionContainer.c new file mode 100644 index 000000000..d2b031d68 --- /dev/null +++ b/vanetza/asn1/its2/VruMotionPredictionContainer.c @@ -0,0 +1,200 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "VAM-PDU-Descriptions" + * found in "asn1/TS103300-3v221-VAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VruMotionPredictionContainer.h" + +asn_TYPE_member_t asn_MBR_VruMotionPredictionContainer_1[] = { + { ATF_POINTER, 7, offsetof(struct VruMotionPredictionContainer, pathHistory), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PathHistory, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "pathHistory" + }, + { ATF_POINTER, 6, offsetof(struct VruMotionPredictionContainer, pathPrediction), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_PathPredicted, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "pathPrediction" + }, + { ATF_POINTER, 5, offsetof(struct VruMotionPredictionContainer, safeDistance), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SequenceOfSafeDistanceIndication, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "safeDistance" + }, + { ATF_POINTER, 4, offsetof(struct VruMotionPredictionContainer, trajectoryInterceptionIndication), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SequenceOfTrajectoryInterceptionIndication, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "trajectoryInterceptionIndication" + }, + { ATF_POINTER, 3, offsetof(struct VruMotionPredictionContainer, accelerationChangeIndication), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_AccelerationChangeIndication, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "accelerationChangeIndication" + }, + { ATF_POINTER, 2, offsetof(struct VruMotionPredictionContainer, headingChangeIndication), + (ASN_TAG_CLASS_CONTEXT | (5 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HeadingChangeIndication, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "headingChangeIndication" + }, + { ATF_POINTER, 1, offsetof(struct VruMotionPredictionContainer, stabilityChangeIndication), + (ASN_TAG_CLASS_CONTEXT | (6 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_StabilityChangeIndication, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "stabilityChangeIndication" + }, +}; +static const int asn_MAP_VruMotionPredictionContainer_oms_1[] = { 0, 1, 2, 3, 4, 5, 6 }; +static const ber_tlv_tag_t asn_DEF_VruMotionPredictionContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_VruMotionPredictionContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pathHistory */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* pathPrediction */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* safeDistance */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* trajectoryInterceptionIndication */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* accelerationChangeIndication */ + { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* headingChangeIndication */ + { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* stabilityChangeIndication */ +}; +asn_SEQUENCE_specifics_t asn_SPC_VruMotionPredictionContainer_specs_1 = { + sizeof(struct VruMotionPredictionContainer), + offsetof(struct VruMotionPredictionContainer, _asn_ctx), + asn_MAP_VruMotionPredictionContainer_tag2el_1, + 7, /* Count of tags in the map */ + asn_MAP_VruMotionPredictionContainer_oms_1, /* Optional members */ + 7, 0, /* Root/Additions */ + 7, /* First extension addition */ +}; +asn_TYPE_descriptor_t asn_DEF_VruMotionPredictionContainer = { + "VruMotionPredictionContainer", + "VruMotionPredictionContainer", + &asn_OP_SEQUENCE, + asn_DEF_VruMotionPredictionContainer_tags_1, + sizeof(asn_DEF_VruMotionPredictionContainer_tags_1) + /sizeof(asn_DEF_VruMotionPredictionContainer_tags_1[0]), /* 1 */ + asn_DEF_VruMotionPredictionContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_VruMotionPredictionContainer_tags_1) + /sizeof(asn_DEF_VruMotionPredictionContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_VruMotionPredictionContainer_1, + 7, /* Elements count */ + &asn_SPC_VruMotionPredictionContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/VruMotionPredictionContainer.h b/vanetza/asn1/its2/VruMotionPredictionContainer.h new file mode 100644 index 000000000..a32a91180 --- /dev/null +++ b/vanetza/asn1/its2/VruMotionPredictionContainer.h @@ -0,0 +1,67 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "VAM-PDU-Descriptions" + * found in "asn1/TS103300-3v221-VAM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VruMotionPredictionContainer_H_ +#define _VruMotionPredictionContainer_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct PathHistory; +struct PathPredicted; +struct SequenceOfSafeDistanceIndication; +struct SequenceOfTrajectoryInterceptionIndication; +struct AccelerationChangeIndication; +struct HeadingChangeIndication; +struct StabilityChangeIndication; + +/* VruMotionPredictionContainer */ +typedef struct VruMotionPredictionContainer { + struct PathHistory *pathHistory; /* OPTIONAL */ + struct PathPredicted *pathPrediction; /* OPTIONAL */ + struct SequenceOfSafeDistanceIndication *safeDistance; /* OPTIONAL */ + struct SequenceOfTrajectoryInterceptionIndication *trajectoryInterceptionIndication; /* OPTIONAL */ + struct AccelerationChangeIndication *accelerationChangeIndication; /* OPTIONAL */ + struct HeadingChangeIndication *headingChangeIndication; /* OPTIONAL */ + struct StabilityChangeIndication *stabilityChangeIndication; /* OPTIONAL */ + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} VruMotionPredictionContainer_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_VruMotionPredictionContainer; +extern asn_SEQUENCE_specifics_t asn_SPC_VruMotionPredictionContainer_specs_1; +extern asn_TYPE_member_t asn_MBR_VruMotionPredictionContainer_1[7]; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "PathHistory.h" +#include "PathPredicted.h" +#include "SequenceOfSafeDistanceIndication.h" +#include "SequenceOfTrajectoryInterceptionIndication.h" +#include "AccelerationChangeIndication.h" +#include "HeadingChangeIndication.h" +#include "StabilityChangeIndication.h" + +#endif /* _VruMotionPredictionContainer_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VruMovementControl.c b/vanetza/asn1/its2/VruMovementControl.c new file mode 100644 index 000000000..2797db981 --- /dev/null +++ b/vanetza/asn1/its2/VruMovementControl.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VruMovementControl.h" + +int +VruMovementControl_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 <= 15L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_VruMovementControl_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..15) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_VruMovementControl_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 ber_tlv_tag_t asn_DEF_VruMovementControl_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_VruMovementControl = { + "VruMovementControl", + "VruMovementControl", + &asn_OP_NativeInteger, + asn_DEF_VruMovementControl_tags_1, + sizeof(asn_DEF_VruMovementControl_tags_1) + /sizeof(asn_DEF_VruMovementControl_tags_1[0]), /* 1 */ + asn_DEF_VruMovementControl_tags_1, /* Same as above */ + sizeof(asn_DEF_VruMovementControl_tags_1) + /sizeof(asn_DEF_VruMovementControl_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_VruMovementControl_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_VruMovementControl_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + VruMovementControl_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/VruMovementControl.h b/vanetza/asn1/its2/VruMovementControl.h new file mode 100644 index 000000000..b10cd8fff --- /dev/null +++ b/vanetza/asn1/its2/VruMovementControl.h @@ -0,0 +1,58 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VruMovementControl_H_ +#define _VruMovementControl_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum VruMovementControl { + VruMovementControl_unavailable = 0, + VruMovementControl_braking = 1, + VruMovementControl_hardBraking = 2, + VruMovementControl_stopPedaling = 3, + VruMovementControl_brakingAndStopPedaling = 4, + VruMovementControl_hardBrakingAndStopPedaling = 5, + VruMovementControl_noReaction = 6 +} e_VruMovementControl; + +/* VruMovementControl */ +typedef long VruMovementControl_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_VruMovementControl_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_VruMovementControl; +asn_struct_free_f VruMovementControl_free; +asn_struct_print_f VruMovementControl_print; +asn_constr_check_f VruMovementControl_constraint; +ber_type_decoder_f VruMovementControl_decode_ber; +der_type_encoder_f VruMovementControl_encode_der; +xer_type_decoder_f VruMovementControl_decode_xer; +xer_type_encoder_f VruMovementControl_encode_xer; +jer_type_encoder_f VruMovementControl_encode_jer; +oer_type_decoder_f VruMovementControl_decode_oer; +oer_type_encoder_f VruMovementControl_encode_oer; +per_type_decoder_f VruMovementControl_decode_uper; +per_type_encoder_f VruMovementControl_encode_uper; +per_type_decoder_f VruMovementControl_decode_aper; +per_type_encoder_f VruMovementControl_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _VruMovementControl_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VruProfileAndSubprofile.c b/vanetza/asn1/its2/VruProfileAndSubprofile.c new file mode 100644 index 000000000..44568c1e8 --- /dev/null +++ b/vanetza/asn1/its2/VruProfileAndSubprofile.c @@ -0,0 +1,144 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VruProfileAndSubprofile.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_VruProfileAndSubprofile_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_VruProfileAndSubprofile_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_VruProfileAndSubprofile_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct VruProfileAndSubprofile, choice.pedestrian), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VruSubProfilePedestrian, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "pedestrian" + }, + { ATF_NOFLAGS, 0, offsetof(struct VruProfileAndSubprofile, choice.bicyclistAndLightVruVehicle), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VruSubProfileBicyclist, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "bicyclistAndLightVruVehicle" + }, + { ATF_NOFLAGS, 0, offsetof(struct VruProfileAndSubprofile, choice.motorcyclist), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VruSubProfileMotorcyclist, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "motorcyclist" + }, + { ATF_NOFLAGS, 0, offsetof(struct VruProfileAndSubprofile, choice.animal), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_VruSubProfileAnimal, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "animal" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_VruProfileAndSubprofile_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pedestrian */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bicyclistAndLightVruVehicle */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* motorcyclist */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* animal */ +}; +asn_CHOICE_specifics_t asn_SPC_VruProfileAndSubprofile_specs_1 = { + sizeof(struct VruProfileAndSubprofile), + offsetof(struct VruProfileAndSubprofile, _asn_ctx), + offsetof(struct VruProfileAndSubprofile, present), + sizeof(((struct VruProfileAndSubprofile *)0)->present), + asn_MAP_VruProfileAndSubprofile_tag2el_1, + 4, /* Count of tags in the map */ + 0, 0, + 4 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_VruProfileAndSubprofile = { + "VruProfileAndSubprofile", + "VruProfileAndSubprofile", + &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) + &asn_OER_type_VruProfileAndSubprofile_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_VruProfileAndSubprofile_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + CHOICE_constraint + }, + asn_MBR_VruProfileAndSubprofile_1, + 4, /* Elements count */ + &asn_SPC_VruProfileAndSubprofile_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/VruProfileAndSubprofile.h b/vanetza/asn1/its2/VruProfileAndSubprofile.h new file mode 100644 index 000000000..fe0df156a --- /dev/null +++ b/vanetza/asn1/its2/VruProfileAndSubprofile.h @@ -0,0 +1,65 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VruProfileAndSubprofile_H_ +#define _VruProfileAndSubprofile_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "VruSubProfilePedestrian.h" +#include "VruSubProfileBicyclist.h" +#include "VruSubProfileMotorcyclist.h" +#include "VruSubProfileAnimal.h" +#include "constr_CHOICE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum VruProfileAndSubprofile_PR { + VruProfileAndSubprofile_PR_NOTHING, /* No components present */ + VruProfileAndSubprofile_PR_pedestrian, + VruProfileAndSubprofile_PR_bicyclistAndLightVruVehicle, + VruProfileAndSubprofile_PR_motorcyclist, + VruProfileAndSubprofile_PR_animal + /* Extensions may appear below */ + +} VruProfileAndSubprofile_PR; + +/* VruProfileAndSubprofile */ +typedef struct VruProfileAndSubprofile { + VruProfileAndSubprofile_PR present; + union VruProfileAndSubprofile_u { + VruSubProfilePedestrian_t pedestrian; + VruSubProfileBicyclist_t bicyclistAndLightVruVehicle; + VruSubProfileMotorcyclist_t motorcyclist; + VruSubProfileAnimal_t animal; + /* + * This type is extensible, + * possible extensions are below. + */ + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} VruProfileAndSubprofile_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_VruProfileAndSubprofile; +extern asn_CHOICE_specifics_t asn_SPC_VruProfileAndSubprofile_specs_1; +extern asn_TYPE_member_t asn_MBR_VruProfileAndSubprofile_1[4]; +extern asn_per_constraints_t asn_PER_type_VruProfileAndSubprofile_constr_1; + +#ifdef __cplusplus +} +#endif + +#endif /* _VruProfileAndSubprofile_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VruSizeClass.c b/vanetza/asn1/its2/VruSizeClass.c new file mode 100644 index 000000000..c6d96fa17 --- /dev/null +++ b/vanetza/asn1/its2/VruSizeClass.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VruSizeClass.h" + +int +VruSizeClass_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 <= 15L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_VruSizeClass_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..15) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_VruSizeClass_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 ber_tlv_tag_t asn_DEF_VruSizeClass_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_VruSizeClass = { + "VruSizeClass", + "VruSizeClass", + &asn_OP_NativeInteger, + asn_DEF_VruSizeClass_tags_1, + sizeof(asn_DEF_VruSizeClass_tags_1) + /sizeof(asn_DEF_VruSizeClass_tags_1[0]), /* 1 */ + asn_DEF_VruSizeClass_tags_1, /* Same as above */ + sizeof(asn_DEF_VruSizeClass_tags_1) + /sizeof(asn_DEF_VruSizeClass_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_VruSizeClass_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_VruSizeClass_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + VruSizeClass_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/VruSizeClass.h b/vanetza/asn1/its2/VruSizeClass.h new file mode 100644 index 000000000..cf0757f64 --- /dev/null +++ b/vanetza/asn1/its2/VruSizeClass.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VruSizeClass_H_ +#define _VruSizeClass_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum VruSizeClass { + VruSizeClass_unavailable = 0, + VruSizeClass_low = 1, + VruSizeClass_medium = 2, + VruSizeClass_high = 3 +} e_VruSizeClass; + +/* VruSizeClass */ +typedef long VruSizeClass_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_VruSizeClass_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_VruSizeClass; +asn_struct_free_f VruSizeClass_free; +asn_struct_print_f VruSizeClass_print; +asn_constr_check_f VruSizeClass_constraint; +ber_type_decoder_f VruSizeClass_decode_ber; +der_type_encoder_f VruSizeClass_encode_der; +xer_type_decoder_f VruSizeClass_decode_xer; +xer_type_encoder_f VruSizeClass_encode_xer; +jer_type_encoder_f VruSizeClass_encode_jer; +oer_type_decoder_f VruSizeClass_decode_oer; +oer_type_encoder_f VruSizeClass_encode_oer; +per_type_decoder_f VruSizeClass_decode_uper; +per_type_encoder_f VruSizeClass_encode_uper; +per_type_decoder_f VruSizeClass_decode_aper; +per_type_encoder_f VruSizeClass_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _VruSizeClass_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VruSpecificExteriorLights.c b/vanetza/asn1/its2/VruSpecificExteriorLights.c new file mode 100644 index 000000000..9911d8357 --- /dev/null +++ b/vanetza/asn1/its2/VruSpecificExteriorLights.c @@ -0,0 +1,89 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VruSpecificExteriorLights.h" + +int +VruSpecificExteriorLights_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_VruSpecificExteriorLights_constr_1 CC_NOTUSED = { + { 0, 0 }, + 8 /* (SIZE(8..8)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_VruSpecificExteriorLights_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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_VruSpecificExteriorLights_constr_1 CC_NOTUSED = { + 8}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ +static const ber_tlv_tag_t asn_DEF_VruSpecificExteriorLights_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_VruSpecificExteriorLights = { + "VruSpecificExteriorLights", + "VruSpecificExteriorLights", + &asn_OP_BIT_STRING, + asn_DEF_VruSpecificExteriorLights_tags_1, + sizeof(asn_DEF_VruSpecificExteriorLights_tags_1) + /sizeof(asn_DEF_VruSpecificExteriorLights_tags_1[0]), /* 1 */ + asn_DEF_VruSpecificExteriorLights_tags_1, /* Same as above */ + sizeof(asn_DEF_VruSpecificExteriorLights_tags_1) + /sizeof(asn_DEF_VruSpecificExteriorLights_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_VruSpecificExteriorLights_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_VruSpecificExteriorLights_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_VruSpecificExteriorLights_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + VruSpecificExteriorLights_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/VruSpecificExteriorLights.h b/vanetza/asn1/its2/VruSpecificExteriorLights.h new file mode 100644 index 000000000..c3a43ee43 --- /dev/null +++ b/vanetza/asn1/its2/VruSpecificExteriorLights.h @@ -0,0 +1,57 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VruSpecificExteriorLights_H_ +#define _VruSpecificExteriorLights_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "BIT_STRING.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum VruSpecificExteriorLights { + VruSpecificExteriorLights_unavailable = 0, + VruSpecificExteriorLights_backFlashLight = 1, + VruSpecificExteriorLights_helmetLight = 2, + VruSpecificExteriorLights_armLight = 3, + VruSpecificExteriorLights_legLight = 4, + VruSpecificExteriorLights_wheelLight = 5 +} e_VruSpecificExteriorLights; + +/* VruSpecificExteriorLights */ +typedef BIT_STRING_t VruSpecificExteriorLights_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_VruSpecificExteriorLights_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_VruSpecificExteriorLights; +asn_struct_free_f VruSpecificExteriorLights_free; +asn_struct_print_f VruSpecificExteriorLights_print; +asn_constr_check_f VruSpecificExteriorLights_constraint; +ber_type_decoder_f VruSpecificExteriorLights_decode_ber; +der_type_encoder_f VruSpecificExteriorLights_encode_der; +xer_type_decoder_f VruSpecificExteriorLights_decode_xer; +xer_type_encoder_f VruSpecificExteriorLights_encode_xer; +jer_type_encoder_f VruSpecificExteriorLights_encode_jer; +oer_type_decoder_f VruSpecificExteriorLights_decode_oer; +oer_type_encoder_f VruSpecificExteriorLights_encode_oer; +per_type_decoder_f VruSpecificExteriorLights_decode_uper; +per_type_encoder_f VruSpecificExteriorLights_encode_uper; +per_type_decoder_f VruSpecificExteriorLights_decode_aper; +per_type_encoder_f VruSpecificExteriorLights_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _VruSpecificExteriorLights_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VruSubProfileAnimal.c b/vanetza/asn1/its2/VruSubProfileAnimal.c new file mode 100644 index 000000000..722aec425 --- /dev/null +++ b/vanetza/asn1/its2/VruSubProfileAnimal.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VruSubProfileAnimal.h" + +int +VruSubProfileAnimal_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 <= 15L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_VruSubProfileAnimal_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..15) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_VruSubProfileAnimal_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 ber_tlv_tag_t asn_DEF_VruSubProfileAnimal_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_VruSubProfileAnimal = { + "VruSubProfileAnimal", + "VruSubProfileAnimal", + &asn_OP_NativeInteger, + asn_DEF_VruSubProfileAnimal_tags_1, + sizeof(asn_DEF_VruSubProfileAnimal_tags_1) + /sizeof(asn_DEF_VruSubProfileAnimal_tags_1[0]), /* 1 */ + asn_DEF_VruSubProfileAnimal_tags_1, /* Same as above */ + sizeof(asn_DEF_VruSubProfileAnimal_tags_1) + /sizeof(asn_DEF_VruSubProfileAnimal_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_VruSubProfileAnimal_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_VruSubProfileAnimal_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + VruSubProfileAnimal_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/VruSubProfileAnimal.h b/vanetza/asn1/its2/VruSubProfileAnimal.h new file mode 100644 index 000000000..d860821ac --- /dev/null +++ b/vanetza/asn1/its2/VruSubProfileAnimal.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VruSubProfileAnimal_H_ +#define _VruSubProfileAnimal_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum VruSubProfileAnimal { + VruSubProfileAnimal_unavailable = 0, + VruSubProfileAnimal_wild_animal = 1, + VruSubProfileAnimal_farm_animal = 2, + VruSubProfileAnimal_service_animal = 3 +} e_VruSubProfileAnimal; + +/* VruSubProfileAnimal */ +typedef long VruSubProfileAnimal_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_VruSubProfileAnimal_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_VruSubProfileAnimal; +asn_struct_free_f VruSubProfileAnimal_free; +asn_struct_print_f VruSubProfileAnimal_print; +asn_constr_check_f VruSubProfileAnimal_constraint; +ber_type_decoder_f VruSubProfileAnimal_decode_ber; +der_type_encoder_f VruSubProfileAnimal_encode_der; +xer_type_decoder_f VruSubProfileAnimal_decode_xer; +xer_type_encoder_f VruSubProfileAnimal_encode_xer; +jer_type_encoder_f VruSubProfileAnimal_encode_jer; +oer_type_decoder_f VruSubProfileAnimal_decode_oer; +oer_type_encoder_f VruSubProfileAnimal_encode_oer; +per_type_decoder_f VruSubProfileAnimal_decode_uper; +per_type_encoder_f VruSubProfileAnimal_encode_uper; +per_type_decoder_f VruSubProfileAnimal_decode_aper; +per_type_encoder_f VruSubProfileAnimal_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _VruSubProfileAnimal_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VruSubProfileBicyclist.c b/vanetza/asn1/its2/VruSubProfileBicyclist.c new file mode 100644 index 000000000..e487ba412 --- /dev/null +++ b/vanetza/asn1/its2/VruSubProfileBicyclist.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VruSubProfileBicyclist.h" + +int +VruSubProfileBicyclist_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 <= 15L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_VruSubProfileBicyclist_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..15) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_VruSubProfileBicyclist_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 ber_tlv_tag_t asn_DEF_VruSubProfileBicyclist_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_VruSubProfileBicyclist = { + "VruSubProfileBicyclist", + "VruSubProfileBicyclist", + &asn_OP_NativeInteger, + asn_DEF_VruSubProfileBicyclist_tags_1, + sizeof(asn_DEF_VruSubProfileBicyclist_tags_1) + /sizeof(asn_DEF_VruSubProfileBicyclist_tags_1[0]), /* 1 */ + asn_DEF_VruSubProfileBicyclist_tags_1, /* Same as above */ + sizeof(asn_DEF_VruSubProfileBicyclist_tags_1) + /sizeof(asn_DEF_VruSubProfileBicyclist_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_VruSubProfileBicyclist_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_VruSubProfileBicyclist_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + VruSubProfileBicyclist_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/VruSubProfileBicyclist.h b/vanetza/asn1/its2/VruSubProfileBicyclist.h new file mode 100644 index 000000000..5a1401afe --- /dev/null +++ b/vanetza/asn1/its2/VruSubProfileBicyclist.h @@ -0,0 +1,62 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VruSubProfileBicyclist_H_ +#define _VruSubProfileBicyclist_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum VruSubProfileBicyclist { + VruSubProfileBicyclist_unavailable = 0, + VruSubProfileBicyclist_bicyclist = 1, + VruSubProfileBicyclist_wheelchair_user = 2, + VruSubProfileBicyclist_horse_and_rider = 3, + VruSubProfileBicyclist_rollerskater = 4, + VruSubProfileBicyclist_e_scooter = 5, + VruSubProfileBicyclist_personal_transporter = 6, + VruSubProfileBicyclist_pedelec = 7, + VruSubProfileBicyclist_speed_pedelec = 8, + VruSubProfileBicyclist_roadbike = 9, + VruSubProfileBicyclist_childrensbike = 10 +} e_VruSubProfileBicyclist; + +/* VruSubProfileBicyclist */ +typedef long VruSubProfileBicyclist_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_VruSubProfileBicyclist_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_VruSubProfileBicyclist; +asn_struct_free_f VruSubProfileBicyclist_free; +asn_struct_print_f VruSubProfileBicyclist_print; +asn_constr_check_f VruSubProfileBicyclist_constraint; +ber_type_decoder_f VruSubProfileBicyclist_decode_ber; +der_type_encoder_f VruSubProfileBicyclist_encode_der; +xer_type_decoder_f VruSubProfileBicyclist_decode_xer; +xer_type_encoder_f VruSubProfileBicyclist_encode_xer; +jer_type_encoder_f VruSubProfileBicyclist_encode_jer; +oer_type_decoder_f VruSubProfileBicyclist_decode_oer; +oer_type_encoder_f VruSubProfileBicyclist_encode_oer; +per_type_decoder_f VruSubProfileBicyclist_decode_uper; +per_type_encoder_f VruSubProfileBicyclist_encode_uper; +per_type_decoder_f VruSubProfileBicyclist_decode_aper; +per_type_encoder_f VruSubProfileBicyclist_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _VruSubProfileBicyclist_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VruSubProfileMotorcyclist.c b/vanetza/asn1/its2/VruSubProfileMotorcyclist.c new file mode 100644 index 000000000..a91a16d0f --- /dev/null +++ b/vanetza/asn1/its2/VruSubProfileMotorcyclist.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VruSubProfileMotorcyclist.h" + +int +VruSubProfileMotorcyclist_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 <= 15L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_VruSubProfileMotorcyclist_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..15) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_VruSubProfileMotorcyclist_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 ber_tlv_tag_t asn_DEF_VruSubProfileMotorcyclist_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_VruSubProfileMotorcyclist = { + "VruSubProfileMotorcyclist", + "VruSubProfileMotorcyclist", + &asn_OP_NativeInteger, + asn_DEF_VruSubProfileMotorcyclist_tags_1, + sizeof(asn_DEF_VruSubProfileMotorcyclist_tags_1) + /sizeof(asn_DEF_VruSubProfileMotorcyclist_tags_1[0]), /* 1 */ + asn_DEF_VruSubProfileMotorcyclist_tags_1, /* Same as above */ + sizeof(asn_DEF_VruSubProfileMotorcyclist_tags_1) + /sizeof(asn_DEF_VruSubProfileMotorcyclist_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_VruSubProfileMotorcyclist_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_VruSubProfileMotorcyclist_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + VruSubProfileMotorcyclist_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/VruSubProfileMotorcyclist.h b/vanetza/asn1/its2/VruSubProfileMotorcyclist.h new file mode 100644 index 000000000..8d457f451 --- /dev/null +++ b/vanetza/asn1/its2/VruSubProfileMotorcyclist.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VruSubProfileMotorcyclist_H_ +#define _VruSubProfileMotorcyclist_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum VruSubProfileMotorcyclist { + VruSubProfileMotorcyclist_unavailable = 0, + VruSubProfileMotorcyclist_moped = 1, + VruSubProfileMotorcyclist_motorcycle = 2, + VruSubProfileMotorcyclist_motorcycle_and_sidecar_right = 3, + VruSubProfileMotorcyclist_motorcycle_and_sidecar_left = 4 +} e_VruSubProfileMotorcyclist; + +/* VruSubProfileMotorcyclist */ +typedef long VruSubProfileMotorcyclist_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_VruSubProfileMotorcyclist_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_VruSubProfileMotorcyclist; +asn_struct_free_f VruSubProfileMotorcyclist_free; +asn_struct_print_f VruSubProfileMotorcyclist_print; +asn_constr_check_f VruSubProfileMotorcyclist_constraint; +ber_type_decoder_f VruSubProfileMotorcyclist_decode_ber; +der_type_encoder_f VruSubProfileMotorcyclist_encode_der; +xer_type_decoder_f VruSubProfileMotorcyclist_decode_xer; +xer_type_encoder_f VruSubProfileMotorcyclist_encode_xer; +jer_type_encoder_f VruSubProfileMotorcyclist_encode_jer; +oer_type_decoder_f VruSubProfileMotorcyclist_decode_oer; +oer_type_encoder_f VruSubProfileMotorcyclist_encode_oer; +per_type_decoder_f VruSubProfileMotorcyclist_decode_uper; +per_type_encoder_f VruSubProfileMotorcyclist_encode_uper; +per_type_decoder_f VruSubProfileMotorcyclist_decode_aper; +per_type_encoder_f VruSubProfileMotorcyclist_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _VruSubProfileMotorcyclist_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/VruSubProfilePedestrian.c b/vanetza/asn1/its2/VruSubProfilePedestrian.c new file mode 100644 index 000000000..e16ab77a1 --- /dev/null +++ b/vanetza/asn1/its2/VruSubProfilePedestrian.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "VruSubProfilePedestrian.h" + +int +VruSubProfilePedestrian_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 <= 15L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_VruSubProfilePedestrian_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..15) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_VruSubProfilePedestrian_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 ber_tlv_tag_t asn_DEF_VruSubProfilePedestrian_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_VruSubProfilePedestrian = { + "VruSubProfilePedestrian", + "VruSubProfilePedestrian", + &asn_OP_NativeInteger, + asn_DEF_VruSubProfilePedestrian_tags_1, + sizeof(asn_DEF_VruSubProfilePedestrian_tags_1) + /sizeof(asn_DEF_VruSubProfilePedestrian_tags_1[0]), /* 1 */ + asn_DEF_VruSubProfilePedestrian_tags_1, /* Same as above */ + sizeof(asn_DEF_VruSubProfilePedestrian_tags_1) + /sizeof(asn_DEF_VruSubProfilePedestrian_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_VruSubProfilePedestrian_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_VruSubProfilePedestrian_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + VruSubProfilePedestrian_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/VruSubProfilePedestrian.h b/vanetza/asn1/its2/VruSubProfilePedestrian.h new file mode 100644 index 000000000..30bcd3fb9 --- /dev/null +++ b/vanetza/asn1/its2/VruSubProfilePedestrian.h @@ -0,0 +1,55 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _VruSubProfilePedestrian_H_ +#define _VruSubProfilePedestrian_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum VruSubProfilePedestrian { + VruSubProfilePedestrian_unavailable = 0, + VruSubProfilePedestrian_ordinary_pedestrian = 1, + VruSubProfilePedestrian_road_worker = 2, + VruSubProfilePedestrian_first_responder = 3 +} e_VruSubProfilePedestrian; + +/* VruSubProfilePedestrian */ +typedef long VruSubProfilePedestrian_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_VruSubProfilePedestrian_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_VruSubProfilePedestrian; +asn_struct_free_f VruSubProfilePedestrian_free; +asn_struct_print_f VruSubProfilePedestrian_print; +asn_constr_check_f VruSubProfilePedestrian_constraint; +ber_type_decoder_f VruSubProfilePedestrian_decode_ber; +der_type_encoder_f VruSubProfilePedestrian_encode_der; +xer_type_decoder_f VruSubProfilePedestrian_decode_xer; +xer_type_encoder_f VruSubProfilePedestrian_encode_xer; +jer_type_encoder_f VruSubProfilePedestrian_encode_jer; +oer_type_decoder_f VruSubProfilePedestrian_decode_oer; +oer_type_encoder_f VruSubProfilePedestrian_encode_oer; +per_type_decoder_f VruSubProfilePedestrian_decode_uper; +per_type_encoder_f VruSubProfilePedestrian_encode_uper; +per_type_decoder_f VruSubProfilePedestrian_decode_aper; +per_type_encoder_f VruSubProfilePedestrian_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _VruSubProfilePedestrian_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/WMInumber.c b/vanetza/asn1/its2/WMInumber.c new file mode 100644 index 000000000..b9117001d --- /dev/null +++ b/vanetza/asn1/its2/WMInumber.c @@ -0,0 +1,94 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "WMInumber.h" + +static int check_permitted_alphabet_1(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; +} + +int +WMInumber_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; + 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 <= 3UL) + && !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 IA5String, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_WMInumber_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(1..3)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_WMInumber_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */, + { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */, + 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_WMInumber_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_WMInumber = { + "WMInumber", + "WMInumber", + &asn_OP_IA5String, + asn_DEF_WMInumber_tags_1, + sizeof(asn_DEF_WMInumber_tags_1) + /sizeof(asn_DEF_WMInumber_tags_1[0]), /* 1 */ + asn_DEF_WMInumber_tags_1, /* Same as above */ + sizeof(asn_DEF_WMInumber_tags_1) + /sizeof(asn_DEF_WMInumber_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_WMInumber_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_WMInumber_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + WMInumber_constraint + }, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/WMInumber.h b/vanetza/asn1/its2/WMInumber.h new file mode 100644 index 000000000..20635b6b1 --- /dev/null +++ b/vanetza/asn1/its2/WMInumber.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _WMInumber_H_ +#define _WMInumber_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "IA5String.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* WMInumber */ +typedef IA5String_t WMInumber_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_WMInumber_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_WMInumber; +asn_struct_free_f WMInumber_free; +asn_struct_print_f WMInumber_print; +asn_constr_check_f WMInumber_constraint; +ber_type_decoder_f WMInumber_decode_ber; +der_type_encoder_f WMInumber_encode_der; +xer_type_decoder_f WMInumber_decode_xer; +xer_type_encoder_f WMInumber_encode_xer; +jer_type_encoder_f WMInumber_encode_jer; +oer_type_decoder_f WMInumber_decode_oer; +oer_type_encoder_f WMInumber_encode_oer; +per_type_decoder_f WMInumber_decode_uper; +per_type_encoder_f WMInumber_encode_uper; +per_type_decoder_f WMInumber_decode_aper; +per_type_encoder_f WMInumber_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _WMInumber_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/Wgs84Angle.c b/vanetza/asn1/its2/Wgs84Angle.c new file mode 100644 index 000000000..17125850c --- /dev/null +++ b/vanetza/asn1/its2/Wgs84Angle.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Wgs84Angle.h" + +asn_TYPE_member_t asn_MBR_Wgs84Angle_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct Wgs84Angle, value), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Wgs84AngleValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "value" + }, + { ATF_NOFLAGS, 0, offsetof(struct Wgs84Angle, confidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_Wgs84AngleConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "confidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_Wgs84Angle_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_Wgs84Angle_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* value */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* confidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_Wgs84Angle_specs_1 = { + sizeof(struct Wgs84Angle), + offsetof(struct Wgs84Angle, _asn_ctx), + asn_MAP_Wgs84Angle_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_Wgs84Angle = { + "Wgs84Angle", + "Wgs84Angle", + &asn_OP_SEQUENCE, + asn_DEF_Wgs84Angle_tags_1, + sizeof(asn_DEF_Wgs84Angle_tags_1) + /sizeof(asn_DEF_Wgs84Angle_tags_1[0]), /* 1 */ + asn_DEF_Wgs84Angle_tags_1, /* Same as above */ + sizeof(asn_DEF_Wgs84Angle_tags_1) + /sizeof(asn_DEF_Wgs84Angle_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_Wgs84Angle_1, + 2, /* Elements count */ + &asn_SPC_Wgs84Angle_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/Wgs84Angle.h b/vanetza/asn1/its2/Wgs84Angle.h new file mode 100644 index 000000000..e2f9aa48e --- /dev/null +++ b/vanetza/asn1/its2/Wgs84Angle.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _Wgs84Angle_H_ +#define _Wgs84Angle_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "Wgs84AngleValue.h" +#include "Wgs84AngleConfidence.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Wgs84Angle */ +typedef struct Wgs84Angle { + Wgs84AngleValue_t value; + Wgs84AngleConfidence_t confidence; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} Wgs84Angle_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_Wgs84Angle; +extern asn_SEQUENCE_specifics_t asn_SPC_Wgs84Angle_specs_1; +extern asn_TYPE_member_t asn_MBR_Wgs84Angle_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _Wgs84Angle_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/Wgs84AngleConfidence.c b/vanetza/asn1/its2/Wgs84AngleConfidence.c new file mode 100644 index 000000000..815f54f1a --- /dev/null +++ b/vanetza/asn1/its2/Wgs84AngleConfidence.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Wgs84AngleConfidence.h" + +int +Wgs84AngleConfidence_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 <= 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_Wgs84AngleConfidence_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..127) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Wgs84AngleConfidence_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 1, 127 } /* (1..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_Wgs84AngleConfidence_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_Wgs84AngleConfidence = { + "Wgs84AngleConfidence", + "Wgs84AngleConfidence", + &asn_OP_NativeInteger, + asn_DEF_Wgs84AngleConfidence_tags_1, + sizeof(asn_DEF_Wgs84AngleConfidence_tags_1) + /sizeof(asn_DEF_Wgs84AngleConfidence_tags_1[0]), /* 1 */ + asn_DEF_Wgs84AngleConfidence_tags_1, /* Same as above */ + sizeof(asn_DEF_Wgs84AngleConfidence_tags_1) + /sizeof(asn_DEF_Wgs84AngleConfidence_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_Wgs84AngleConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Wgs84AngleConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + Wgs84AngleConfidence_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/Wgs84AngleConfidence.h b/vanetza/asn1/its2/Wgs84AngleConfidence.h new file mode 100644 index 000000000..f420873a5 --- /dev/null +++ b/vanetza/asn1/its2/Wgs84AngleConfidence.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _Wgs84AngleConfidence_H_ +#define _Wgs84AngleConfidence_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum Wgs84AngleConfidence { + Wgs84AngleConfidence_outOfRange = 126, + Wgs84AngleConfidence_unavailable = 127 +} e_Wgs84AngleConfidence; + +/* Wgs84AngleConfidence */ +typedef long Wgs84AngleConfidence_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_Wgs84AngleConfidence_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_Wgs84AngleConfidence; +asn_struct_free_f Wgs84AngleConfidence_free; +asn_struct_print_f Wgs84AngleConfidence_print; +asn_constr_check_f Wgs84AngleConfidence_constraint; +ber_type_decoder_f Wgs84AngleConfidence_decode_ber; +der_type_encoder_f Wgs84AngleConfidence_encode_der; +xer_type_decoder_f Wgs84AngleConfidence_decode_xer; +xer_type_encoder_f Wgs84AngleConfidence_encode_xer; +jer_type_encoder_f Wgs84AngleConfidence_encode_jer; +oer_type_decoder_f Wgs84AngleConfidence_decode_oer; +oer_type_encoder_f Wgs84AngleConfidence_encode_oer; +per_type_decoder_f Wgs84AngleConfidence_decode_uper; +per_type_encoder_f Wgs84AngleConfidence_encode_uper; +per_type_decoder_f Wgs84AngleConfidence_decode_aper; +per_type_encoder_f Wgs84AngleConfidence_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _Wgs84AngleConfidence_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/Wgs84AngleValue.c b/vanetza/asn1/its2/Wgs84AngleValue.c new file mode 100644 index 000000000..1fc9d7ffc --- /dev/null +++ b/vanetza/asn1/its2/Wgs84AngleValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "Wgs84AngleValue.h" + +int +Wgs84AngleValue_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 <= 3601L)) { + /* 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_Wgs84AngleValue_constr_1 CC_NOTUSED = { + { 2, 1 } /* (0..3601) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_Wgs84AngleValue_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 12, 12, 0, 3601 } /* (0..3601) */, + { 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_Wgs84AngleValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_Wgs84AngleValue = { + "Wgs84AngleValue", + "Wgs84AngleValue", + &asn_OP_NativeInteger, + asn_DEF_Wgs84AngleValue_tags_1, + sizeof(asn_DEF_Wgs84AngleValue_tags_1) + /sizeof(asn_DEF_Wgs84AngleValue_tags_1[0]), /* 1 */ + asn_DEF_Wgs84AngleValue_tags_1, /* Same as above */ + sizeof(asn_DEF_Wgs84AngleValue_tags_1) + /sizeof(asn_DEF_Wgs84AngleValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_Wgs84AngleValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_Wgs84AngleValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + Wgs84AngleValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/Wgs84AngleValue.h b/vanetza/asn1/its2/Wgs84AngleValue.h new file mode 100644 index 000000000..d2a3d82d3 --- /dev/null +++ b/vanetza/asn1/its2/Wgs84AngleValue.h @@ -0,0 +1,57 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _Wgs84AngleValue_H_ +#define _Wgs84AngleValue_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum Wgs84AngleValue { + Wgs84AngleValue_wgs84North = 0, + Wgs84AngleValue_wgs84East = 900, + Wgs84AngleValue_wgs84South = 1800, + Wgs84AngleValue_wgs84West = 2700, + Wgs84AngleValue_doNotUse = 3600, + Wgs84AngleValue_unavailable = 3601 +} e_Wgs84AngleValue; + +/* Wgs84AngleValue */ +typedef long Wgs84AngleValue_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_Wgs84AngleValue_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_Wgs84AngleValue; +asn_struct_free_f Wgs84AngleValue_free; +asn_struct_print_f Wgs84AngleValue_print; +asn_constr_check_f Wgs84AngleValue_constraint; +ber_type_decoder_f Wgs84AngleValue_decode_ber; +der_type_encoder_f Wgs84AngleValue_encode_der; +xer_type_decoder_f Wgs84AngleValue_decode_xer; +xer_type_encoder_f Wgs84AngleValue_encode_xer; +jer_type_encoder_f Wgs84AngleValue_encode_jer; +oer_type_decoder_f Wgs84AngleValue_decode_oer; +oer_type_encoder_f Wgs84AngleValue_encode_oer; +per_type_decoder_f Wgs84AngleValue_decode_uper; +per_type_encoder_f Wgs84AngleValue_encode_uper; +per_type_decoder_f Wgs84AngleValue_decode_aper; +per_type_encoder_f Wgs84AngleValue_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _Wgs84AngleValue_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/WheelBaseVehicle.c b/vanetza/asn1/its2/WheelBaseVehicle.c new file mode 100644 index 000000000..ebd94d175 --- /dev/null +++ b/vanetza/asn1/its2/WheelBaseVehicle.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "WheelBaseVehicle.h" + +int +WheelBaseVehicle_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 <= 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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_WheelBaseVehicle_constr_1 CC_NOTUSED = { + { 1, 1 } /* (1..127) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_WheelBaseVehicle_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 7, 7, 1, 127 } /* (1..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_WheelBaseVehicle_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_WheelBaseVehicle = { + "WheelBaseVehicle", + "WheelBaseVehicle", + &asn_OP_NativeInteger, + asn_DEF_WheelBaseVehicle_tags_1, + sizeof(asn_DEF_WheelBaseVehicle_tags_1) + /sizeof(asn_DEF_WheelBaseVehicle_tags_1[0]), /* 1 */ + asn_DEF_WheelBaseVehicle_tags_1, /* Same as above */ + sizeof(asn_DEF_WheelBaseVehicle_tags_1) + /sizeof(asn_DEF_WheelBaseVehicle_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_WheelBaseVehicle_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_WheelBaseVehicle_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + WheelBaseVehicle_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/WheelBaseVehicle.h b/vanetza/asn1/its2/WheelBaseVehicle.h new file mode 100644 index 000000000..e0bbcace8 --- /dev/null +++ b/vanetza/asn1/its2/WheelBaseVehicle.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _WheelBaseVehicle_H_ +#define _WheelBaseVehicle_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum WheelBaseVehicle { + WheelBaseVehicle_outOfRange = 126, + WheelBaseVehicle_unavailable = 127 +} e_WheelBaseVehicle; + +/* WheelBaseVehicle */ +typedef long WheelBaseVehicle_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_WheelBaseVehicle_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_WheelBaseVehicle; +asn_struct_free_f WheelBaseVehicle_free; +asn_struct_print_f WheelBaseVehicle_print; +asn_constr_check_f WheelBaseVehicle_constraint; +ber_type_decoder_f WheelBaseVehicle_decode_ber; +der_type_encoder_f WheelBaseVehicle_encode_der; +xer_type_decoder_f WheelBaseVehicle_decode_xer; +xer_type_encoder_f WheelBaseVehicle_encode_xer; +jer_type_encoder_f WheelBaseVehicle_encode_jer; +oer_type_decoder_f WheelBaseVehicle_decode_oer; +oer_type_encoder_f WheelBaseVehicle_encode_oer; +per_type_decoder_f WheelBaseVehicle_decode_uper; +per_type_encoder_f WheelBaseVehicle_encode_uper; +per_type_decoder_f WheelBaseVehicle_decode_aper; +per_type_encoder_f WheelBaseVehicle_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _WheelBaseVehicle_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/WrappedCpmContainer.c b/vanetza/asn1/its2/WrappedCpmContainer.c new file mode 100644 index 000000000..2bd7f425b --- /dev/null +++ b/vanetza/asn1/its2/WrappedCpmContainer.c @@ -0,0 +1,353 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TS103324v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "WrappedCpmContainer.h" + +static const long asn_VAL_1_originatingVehicleContainer = 1; +static const long asn_VAL_2_originatingRsuContainer = 2; +static const long asn_VAL_3_sensorInformationContainer = 3; +static const long asn_VAL_4_perceptionRegionContainer = 4; +static const long asn_VAL_5_perceivedObjectContainer = 5; +static const asn_ioc_cell_t asn_IOS_CpmContainers_1_rows[] = { + { "&id", aioc__value, &asn_DEF_CpmContainerId, &asn_VAL_1_originatingVehicleContainer }, + { "&Type", aioc__type, &asn_DEF_OriginatingVehicleContainer }, + { "&id", aioc__value, &asn_DEF_CpmContainerId, &asn_VAL_2_originatingRsuContainer }, + { "&Type", aioc__type, &asn_DEF_OriginatingRsuContainer }, + { "&id", aioc__value, &asn_DEF_CpmContainerId, &asn_VAL_3_sensorInformationContainer }, + { "&Type", aioc__type, &asn_DEF_SensorInformationContainer }, + { "&id", aioc__value, &asn_DEF_CpmContainerId, &asn_VAL_4_perceptionRegionContainer }, + { "&Type", aioc__type, &asn_DEF_PerceptionRegionContainer }, + { "&id", aioc__value, &asn_DEF_CpmContainerId, &asn_VAL_5_perceivedObjectContainer }, + { "&Type", aioc__type, &asn_DEF_PerceivedObjectContainer } +}; +static const asn_ioc_set_t asn_IOS_CpmContainers_1[] = { + { 5, 2, asn_IOS_CpmContainers_1_rows } +}; +static int +memb_containerId_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + 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; + } +} + +static asn_type_selector_result_t +select_WrappedCpmContainer_containerData_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) { + asn_type_selector_result_t result = {0, 0}; + const asn_ioc_set_t *itable = asn_IOS_CpmContainers_1; + size_t constraining_column = 0; /* &id */ + size_t for_column = 1; /* &Type */ + size_t row, presence_index = 0; + const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct WrappedCpmContainer, containerId)); + + for(row=0; row < itable->rows_count; row++) { + const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column]; + const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column]; + + if(type_cell->cell_kind == aioc__undefined) + continue; + + presence_index++; + if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) { + result.type_descriptor = type_cell->type_descriptor; + result.presence_index = presence_index; + break; + } + } + + return result; +} + +static int +memb_containerData_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; + } + + + if(1 /* No applicable constraints whatsoever */) { + /* Nothing is here. See below */ + } + + return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); +} + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_containerId_constr_2 CC_NOTUSED = { + { 1, 1 } /* (1..16) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_containerId_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) */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_memb_containerData_constr_3 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +static asn_per_constraints_t asn_PER_memb_containerData_constr_3 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 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_containerData_3[] = { + { ATF_NOFLAGS, 0, offsetof(struct WrappedCpmContainer__containerData, choice.OriginatingVehicleContainer), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_OriginatingVehicleContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "OriginatingVehicleContainer" + }, + { ATF_NOFLAGS, 0, offsetof(struct WrappedCpmContainer__containerData, choice.OriginatingRsuContainer), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_OriginatingRsuContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "OriginatingRsuContainer" + }, + { ATF_NOFLAGS, 0, offsetof(struct WrappedCpmContainer__containerData, choice.SensorInformationContainer), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_SensorInformationContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "SensorInformationContainer" + }, + { ATF_NOFLAGS, 0, offsetof(struct WrappedCpmContainer__containerData, choice.PerceptionRegionContainer), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_PerceptionRegionContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "PerceptionRegionContainer" + }, + { ATF_NOFLAGS, 0, offsetof(struct WrappedCpmContainer__containerData, choice.PerceivedObjectContainer), + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_PerceivedObjectContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "PerceivedObjectContainer" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_containerData_tag2el_3[] = { + { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 4 }, /* OriginatingVehicleContainer */ + { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 3 }, /* OriginatingRsuContainer */ + { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 2, -2, 2 }, /* SensorInformationContainer */ + { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 3, -3, 1 }, /* PerceptionRegionContainer */ + { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 4, -4, 0 } /* PerceivedObjectContainer */ +}; +static asn_CHOICE_specifics_t asn_SPC_containerData_specs_3 = { + sizeof(struct WrappedCpmContainer__containerData), + offsetof(struct WrappedCpmContainer__containerData, _asn_ctx), + offsetof(struct WrappedCpmContainer__containerData, present), + sizeof(((struct WrappedCpmContainer__containerData *)0)->present), + asn_MAP_containerData_tag2el_3, + 5, /* Count of tags in the map */ + 0, 0, + -1 /* Extensions start */ +}; +static /* Use -fall-defs-global to expose */ +asn_TYPE_descriptor_t asn_DEF_containerData_3 = { + "containerData", + "containerData", + &asn_OP_OPEN_TYPE, + 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) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + OPEN_TYPE_constraint + }, + asn_MBR_containerData_3, + 5, /* Elements count */ + &asn_SPC_containerData_specs_3 /* Additional specs */ +}; + +asn_TYPE_member_t asn_MBR_WrappedCpmContainer_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct WrappedCpmContainer, containerId), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_CpmContainerId, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_containerId_constr_2, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_containerId_constr_2, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_containerId_constraint_1 + }, + 0, 0, /* No default value */ + "containerId" + }, + { ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct WrappedCpmContainer, containerData), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_containerData_3, + select_WrappedCpmContainer_containerData_type, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_memb_containerData_constr_3, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_memb_containerData_constr_3, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + memb_containerData_constraint_1 + }, + 0, 0, /* No default value */ + "containerData" + }, +}; +static const ber_tlv_tag_t asn_DEF_WrappedCpmContainer_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_WrappedCpmContainer_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* containerId */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* containerData */ +}; +asn_SEQUENCE_specifics_t asn_SPC_WrappedCpmContainer_specs_1 = { + sizeof(struct WrappedCpmContainer), + offsetof(struct WrappedCpmContainer, _asn_ctx), + asn_MAP_WrappedCpmContainer_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_WrappedCpmContainer = { + "WrappedCpmContainer", + "WrappedCpmContainer", + &asn_OP_SEQUENCE, + asn_DEF_WrappedCpmContainer_tags_1, + sizeof(asn_DEF_WrappedCpmContainer_tags_1) + /sizeof(asn_DEF_WrappedCpmContainer_tags_1[0]), /* 1 */ + asn_DEF_WrappedCpmContainer_tags_1, /* Same as above */ + sizeof(asn_DEF_WrappedCpmContainer_tags_1) + /sizeof(asn_DEF_WrappedCpmContainer_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_WrappedCpmContainer_1, + 2, /* Elements count */ + &asn_SPC_WrappedCpmContainer_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/WrappedCpmContainer.h b/vanetza/asn1/its2/WrappedCpmContainer.h new file mode 100644 index 000000000..1892e3d62 --- /dev/null +++ b/vanetza/asn1/its2/WrappedCpmContainer.h @@ -0,0 +1,72 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TS103324v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _WrappedCpmContainer_H_ +#define _WrappedCpmContainer_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "CpmContainerId.h" +#include "ANY.h" +#include "asn_ioc.h" +#include "OriginatingVehicleContainer.h" +#include "OriginatingRsuContainer.h" +#include "SensorInformationContainer.h" +#include "PerceptionRegionContainer.h" +#include "PerceivedObjectContainer.h" +#include "OPEN_TYPE.h" +#include "constr_CHOICE.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum WrappedCpmContainer__containerData_PR { + WrappedCpmContainer__containerData_PR_NOTHING, /* No components present */ + WrappedCpmContainer__containerData_PR_OriginatingVehicleContainer, + WrappedCpmContainer__containerData_PR_OriginatingRsuContainer, + WrappedCpmContainer__containerData_PR_SensorInformationContainer, + WrappedCpmContainer__containerData_PR_PerceptionRegionContainer, + WrappedCpmContainer__containerData_PR_PerceivedObjectContainer +} WrappedCpmContainer__containerData_PR; + +/* WrappedCpmContainer */ +typedef struct WrappedCpmContainer { + CpmContainerId_t containerId; + struct WrappedCpmContainer__containerData { + WrappedCpmContainer__containerData_PR present; + union WrappedCpmContainer__containerData_u { + OriginatingVehicleContainer_t OriginatingVehicleContainer; + OriginatingRsuContainer_t OriginatingRsuContainer; + SensorInformationContainer_t SensorInformationContainer; + PerceptionRegionContainer_t PerceptionRegionContainer; + PerceivedObjectContainer_t PerceivedObjectContainer; + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } containerData; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} WrappedCpmContainer_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_WrappedCpmContainer; +extern asn_SEQUENCE_specifics_t asn_SPC_WrappedCpmContainer_specs_1; +extern asn_TYPE_member_t asn_MBR_WrappedCpmContainer_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _WrappedCpmContainer_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/WrappedCpmContainers.c b/vanetza/asn1/its2/WrappedCpmContainers.c new file mode 100644 index 000000000..5fca37315 --- /dev/null +++ b/vanetza/asn1/its2/WrappedCpmContainers.c @@ -0,0 +1,78 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TS103324v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "WrappedCpmContainers.h" + +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_WrappedCpmContainers_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1 /* (SIZE(0..MAX)) */}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_WrappedCpmContainers_constr_1 CC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 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_WrappedCpmContainers_1[] = { + { ATF_POINTER, 0, 0, + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + 0, + &asn_DEF_WrappedCpmContainer, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_WrappedCpmContainers_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +asn_SET_OF_specifics_t asn_SPC_WrappedCpmContainers_specs_1 = { + sizeof(struct WrappedCpmContainers), + offsetof(struct WrappedCpmContainers, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_WrappedCpmContainers = { + "WrappedCpmContainers", + "WrappedCpmContainers", + &asn_OP_SEQUENCE_OF, + asn_DEF_WrappedCpmContainers_tags_1, + sizeof(asn_DEF_WrappedCpmContainers_tags_1) + /sizeof(asn_DEF_WrappedCpmContainers_tags_1[0]), /* 1 */ + asn_DEF_WrappedCpmContainers_tags_1, /* Same as above */ + sizeof(asn_DEF_WrappedCpmContainers_tags_1) + /sizeof(asn_DEF_WrappedCpmContainers_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_WrappedCpmContainers_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_WrappedCpmContainers_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_OF_constraint + }, + asn_MBR_WrappedCpmContainers_1, + 1, /* Single element */ + &asn_SPC_WrappedCpmContainers_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/WrappedCpmContainers.h b/vanetza/asn1/its2/WrappedCpmContainers.h new file mode 100644 index 000000000..d65924471 --- /dev/null +++ b/vanetza/asn1/its2/WrappedCpmContainers.h @@ -0,0 +1,47 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "CPM-PDU-Descriptions" + * found in "asn1/TS103324v211-CPM.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _WrappedCpmContainers_H_ +#define _WrappedCpmContainers_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "asn_SEQUENCE_OF.h" +#include "constr_SEQUENCE_OF.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Forward declarations */ +struct WrappedCpmContainer; + +/* WrappedCpmContainers */ +typedef struct WrappedCpmContainers { + A_SEQUENCE_OF(struct WrappedCpmContainer) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} WrappedCpmContainers_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_WrappedCpmContainers; +extern asn_SET_OF_specifics_t asn_SPC_WrappedCpmContainers_specs_1; +extern asn_TYPE_member_t asn_MBR_WrappedCpmContainers_1[1]; +extern asn_per_constraints_t asn_PER_type_WrappedCpmContainers_constr_1; + +#ifdef __cplusplus +} +#endif + +/* Referred external types */ +#include "WrappedCpmContainer.h" + +#endif /* _WrappedCpmContainers_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/WrongWayDrivingSubCauseCode.c b/vanetza/asn1/its2/WrongWayDrivingSubCauseCode.c new file mode 100644 index 000000000..6b4114ed0 --- /dev/null +++ b/vanetza/asn1/its2/WrongWayDrivingSubCauseCode.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "WrongWayDrivingSubCauseCode.h" + +int +WrongWayDrivingSubCauseCode_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_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_WrongWayDrivingSubCauseCode_constr_1 CC_NOTUSED = { + { 1, 1 } /* (0..255) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_WrongWayDrivingSubCauseCode_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_WrongWayDrivingSubCauseCode_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_WrongWayDrivingSubCauseCode = { + "WrongWayDrivingSubCauseCode", + "WrongWayDrivingSubCauseCode", + &asn_OP_NativeInteger, + asn_DEF_WrongWayDrivingSubCauseCode_tags_1, + sizeof(asn_DEF_WrongWayDrivingSubCauseCode_tags_1) + /sizeof(asn_DEF_WrongWayDrivingSubCauseCode_tags_1[0]), /* 1 */ + asn_DEF_WrongWayDrivingSubCauseCode_tags_1, /* Same as above */ + sizeof(asn_DEF_WrongWayDrivingSubCauseCode_tags_1) + /sizeof(asn_DEF_WrongWayDrivingSubCauseCode_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_WrongWayDrivingSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_WrongWayDrivingSubCauseCode_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + WrongWayDrivingSubCauseCode_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/WrongWayDrivingSubCauseCode.h b/vanetza/asn1/its2/WrongWayDrivingSubCauseCode.h new file mode 100644 index 000000000..7bdbb0463 --- /dev/null +++ b/vanetza/asn1/its2/WrongWayDrivingSubCauseCode.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _WrongWayDrivingSubCauseCode_H_ +#define _WrongWayDrivingSubCauseCode_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum WrongWayDrivingSubCauseCode { + WrongWayDrivingSubCauseCode_unavailable = 0, + WrongWayDrivingSubCauseCode_wrongLane = 1, + WrongWayDrivingSubCauseCode_wrongDirection = 2 +} e_WrongWayDrivingSubCauseCode; + +/* WrongWayDrivingSubCauseCode */ +typedef long WrongWayDrivingSubCauseCode_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_WrongWayDrivingSubCauseCode_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_WrongWayDrivingSubCauseCode; +asn_struct_free_f WrongWayDrivingSubCauseCode_free; +asn_struct_print_f WrongWayDrivingSubCauseCode_print; +asn_constr_check_f WrongWayDrivingSubCauseCode_constraint; +ber_type_decoder_f WrongWayDrivingSubCauseCode_decode_ber; +der_type_encoder_f WrongWayDrivingSubCauseCode_encode_der; +xer_type_decoder_f WrongWayDrivingSubCauseCode_decode_xer; +xer_type_encoder_f WrongWayDrivingSubCauseCode_encode_xer; +jer_type_encoder_f WrongWayDrivingSubCauseCode_encode_jer; +oer_type_decoder_f WrongWayDrivingSubCauseCode_decode_oer; +oer_type_encoder_f WrongWayDrivingSubCauseCode_encode_oer; +per_type_decoder_f WrongWayDrivingSubCauseCode_decode_uper; +per_type_encoder_f WrongWayDrivingSubCauseCode_encode_uper; +per_type_decoder_f WrongWayDrivingSubCauseCode_decode_aper; +per_type_encoder_f WrongWayDrivingSubCauseCode_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _WrongWayDrivingSubCauseCode_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/YawRate.c b/vanetza/asn1/its2/YawRate.c new file mode 100644 index 000000000..aa5633fea --- /dev/null +++ b/vanetza/asn1/its2/YawRate.c @@ -0,0 +1,93 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "YawRate.h" + +asn_TYPE_member_t asn_MBR_YawRate_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct YawRate, yawRateValue), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_YawRateValue, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "yawRateValue" + }, + { ATF_NOFLAGS, 0, offsetof(struct YawRate, yawRateConfidence), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_YawRateConfidence, + 0, + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + 0 + }, + 0, 0, /* No default value */ + "yawRateConfidence" + }, +}; +static const ber_tlv_tag_t asn_DEF_YawRate_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_YawRate_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* yawRateValue */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* yawRateConfidence */ +}; +asn_SEQUENCE_specifics_t asn_SPC_YawRate_specs_1 = { + sizeof(struct YawRate), + offsetof(struct YawRate, _asn_ctx), + asn_MAP_YawRate_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_YawRate = { + "YawRate", + "YawRate", + &asn_OP_SEQUENCE, + asn_DEF_YawRate_tags_1, + sizeof(asn_DEF_YawRate_tags_1) + /sizeof(asn_DEF_YawRate_tags_1[0]), /* 1 */ + asn_DEF_YawRate_tags_1, /* Same as above */ + sizeof(asn_DEF_YawRate_tags_1) + /sizeof(asn_DEF_YawRate_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + SEQUENCE_constraint + }, + asn_MBR_YawRate_1, + 2, /* Elements count */ + &asn_SPC_YawRate_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/YawRate.h b/vanetza/asn1/its2/YawRate.h new file mode 100644 index 000000000..8bd15e3dc --- /dev/null +++ b/vanetza/asn1/its2/YawRate.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _YawRate_H_ +#define _YawRate_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "YawRateValue.h" +#include "YawRateConfidence.h" +#include "constr_SEQUENCE.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* YawRate */ +typedef struct YawRate { + YawRateValue_t yawRateValue; + YawRateConfidence_t yawRateConfidence; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} YawRate_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_YawRate; +extern asn_SEQUENCE_specifics_t asn_SPC_YawRate_specs_1; +extern asn_TYPE_member_t asn_MBR_YawRate_1[2]; + +#ifdef __cplusplus +} +#endif + +#endif /* _YawRate_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/YawRateConfidence.c b/vanetza/asn1/its2/YawRateConfidence.c new file mode 100644 index 000000000..91da633b1 --- /dev/null +++ b/vanetza/asn1/its2/YawRateConfidence.c @@ -0,0 +1,85 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "YawRateConfidence.h" + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_YawRateConfidence_constr_1 CC_NOTUSED = { + { 0, 0 }, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_YawRateConfidence_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_YawRateConfidence_value2enum_1[] = { + { 0, 13, "degSec-000-01" }, + { 1, 13, "degSec-000-05" }, + { 2, 13, "degSec-000-10" }, + { 3, 13, "degSec-001-00" }, + { 4, 13, "degSec-005-00" }, + { 5, 13, "degSec-010-00" }, + { 6, 13, "degSec-100-00" }, + { 7, 10, "outOfRange" }, + { 8, 11, "unavailable" } +}; +static const unsigned int asn_MAP_YawRateConfidence_enum2value_1[] = { + 0, /* degSec-000-01(0) */ + 1, /* degSec-000-05(1) */ + 2, /* degSec-000-10(2) */ + 3, /* degSec-001-00(3) */ + 4, /* degSec-005-00(4) */ + 5, /* degSec-010-00(5) */ + 6, /* degSec-100-00(6) */ + 7, /* outOfRange(7) */ + 8 /* unavailable(8) */ +}; +const asn_INTEGER_specifics_t asn_SPC_YawRateConfidence_specs_1 = { + asn_MAP_YawRateConfidence_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_YawRateConfidence_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_YawRateConfidence_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_YawRateConfidence = { + "YawRateConfidence", + "YawRateConfidence", + &asn_OP_NativeEnumerated, + asn_DEF_YawRateConfidence_tags_1, + sizeof(asn_DEF_YawRateConfidence_tags_1) + /sizeof(asn_DEF_YawRateConfidence_tags_1[0]), /* 1 */ + asn_DEF_YawRateConfidence_tags_1, /* Same as above */ + sizeof(asn_DEF_YawRateConfidence_tags_1) + /sizeof(asn_DEF_YawRateConfidence_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_YawRateConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_YawRateConfidence_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + NativeEnumerated_constraint + }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_YawRateConfidence_specs_1 /* Additional specs */ +}; + diff --git a/vanetza/asn1/its2/YawRateConfidence.h b/vanetza/asn1/its2/YawRateConfidence.h new file mode 100644 index 000000000..ba2bbf8b6 --- /dev/null +++ b/vanetza/asn1/its2/YawRateConfidence.h @@ -0,0 +1,61 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _YawRateConfidence_H_ +#define _YawRateConfidence_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeEnumerated.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum YawRateConfidence { + YawRateConfidence_degSec_000_01 = 0, + YawRateConfidence_degSec_000_05 = 1, + YawRateConfidence_degSec_000_10 = 2, + YawRateConfidence_degSec_001_00 = 3, + YawRateConfidence_degSec_005_00 = 4, + YawRateConfidence_degSec_010_00 = 5, + YawRateConfidence_degSec_100_00 = 6, + YawRateConfidence_outOfRange = 7, + YawRateConfidence_unavailable = 8 +} e_YawRateConfidence; + +/* YawRateConfidence */ +typedef long YawRateConfidence_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_YawRateConfidence_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_YawRateConfidence; +extern const asn_INTEGER_specifics_t asn_SPC_YawRateConfidence_specs_1; +asn_struct_free_f YawRateConfidence_free; +asn_struct_print_f YawRateConfidence_print; +asn_constr_check_f YawRateConfidence_constraint; +ber_type_decoder_f YawRateConfidence_decode_ber; +der_type_encoder_f YawRateConfidence_encode_der; +xer_type_decoder_f YawRateConfidence_decode_xer; +xer_type_encoder_f YawRateConfidence_encode_xer; +jer_type_encoder_f YawRateConfidence_encode_jer; +oer_type_decoder_f YawRateConfidence_decode_oer; +oer_type_encoder_f YawRateConfidence_encode_oer; +per_type_decoder_f YawRateConfidence_decode_uper; +per_type_encoder_f YawRateConfidence_encode_uper; +per_type_decoder_f YawRateConfidence_decode_aper; +per_type_encoder_f YawRateConfidence_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _YawRateConfidence_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/YawRateValue.c b/vanetza/asn1/its2/YawRateValue.c new file mode 100644 index 000000000..c96518d23 --- /dev/null +++ b/vanetza/asn1/its2/YawRateValue.c @@ -0,0 +1,79 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#include "YawRateValue.h" + +int +YawRateValue_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 >= -32766L && 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; + } +} + +/* + * This type is implemented using NativeInteger, + * so here we adjust the DEF accordingly. + */ +#if !defined(ASN_DISABLE_OER_SUPPORT) +static asn_oer_constraints_t asn_OER_type_YawRateValue_constr_1 CC_NOTUSED = { + { 2, 0 } /* (-32766..32767) */, + -1}; +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) +asn_per_constraints_t asn_PER_type_YawRateValue_constr_1 CC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, -32766, 32767 } /* (-32766..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 ber_tlv_tag_t asn_DEF_YawRateValue_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_YawRateValue = { + "YawRateValue", + "YawRateValue", + &asn_OP_NativeInteger, + asn_DEF_YawRateValue_tags_1, + sizeof(asn_DEF_YawRateValue_tags_1) + /sizeof(asn_DEF_YawRateValue_tags_1[0]), /* 1 */ + asn_DEF_YawRateValue_tags_1, /* Same as above */ + sizeof(asn_DEF_YawRateValue_tags_1) + /sizeof(asn_DEF_YawRateValue_tags_1[0]), /* 1 */ + { +#if !defined(ASN_DISABLE_OER_SUPPORT) + &asn_OER_type_YawRateValue_constr_1, +#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ +#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) + &asn_PER_type_YawRateValue_constr_1, +#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ + YawRateValue_constraint + }, + 0, 0, /* Defined elsewhere */ + 0 /* No specifics */ +}; + diff --git a/vanetza/asn1/its2/YawRateValue.h b/vanetza/asn1/its2/YawRateValue.h new file mode 100644 index 000000000..103ee5551 --- /dev/null +++ b/vanetza/asn1/its2/YawRateValue.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "ETSI-ITS-CDD" + * found in "asn1/TS102894-2v221-CDD.asn" + * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` + */ + +#ifndef _YawRateValue_H_ +#define _YawRateValue_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "NativeInteger.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum YawRateValue { + YawRateValue_negativeOutOfRange = -32766, + YawRateValue_positiveOutOfRange = 32766, + YawRateValue_unavailable = 32767 +} e_YawRateValue; + +/* YawRateValue */ +typedef long YawRateValue_t; + +/* Implementation */ +extern asn_per_constraints_t asn_PER_type_YawRateValue_constr_1; +extern asn_TYPE_descriptor_t asn_DEF_YawRateValue; +asn_struct_free_f YawRateValue_free; +asn_struct_print_f YawRateValue_print; +asn_constr_check_f YawRateValue_constraint; +ber_type_decoder_f YawRateValue_decode_ber; +der_type_encoder_f YawRateValue_encode_der; +xer_type_decoder_f YawRateValue_decode_xer; +xer_type_encoder_f YawRateValue_encode_xer; +jer_type_encoder_f YawRateValue_encode_jer; +oer_type_decoder_f YawRateValue_decode_oer; +oer_type_encoder_f YawRateValue_encode_oer; +per_type_decoder_f YawRateValue_decode_uper; +per_type_encoder_f YawRateValue_encode_uper; +per_type_decoder_f YawRateValue_decode_aper; +per_type_encoder_f YawRateValue_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _YawRateValue_H_ */ +#include "asn_internal.h" diff --git a/vanetza/asn1/its2/asn_constant.h b/vanetza/asn1/its2/asn_constant.h new file mode 100644 index 000000000..b329f010d --- /dev/null +++ b/vanetza/asn1/its2/asn_constant.h @@ -0,0 +1,299 @@ +/* + * 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_AccelerationConfidence (0) +#define max_val_AccelerationConfidence (102) +#define min_val_AccelerationMagnitudeValue (0) +#define max_val_AccelerationMagnitudeValue (161) +#define min_val_AccelerationValue (-160) +#define max_val_AccelerationValue (161) +#define min_val_AccidentSubCauseCode (0) +#define max_val_AccidentSubCauseCode (255) +#define min_val_AdverseWeatherCondition_AdhesionSubCauseCode (0) +#define max_val_AdverseWeatherCondition_AdhesionSubCauseCode (255) +#define min_val_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode (0) +#define max_val_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode (255) +#define min_val_AdverseWeatherCondition_PrecipitationSubCauseCode (0) +#define max_val_AdverseWeatherCondition_PrecipitationSubCauseCode (255) +#define min_val_AdverseWeatherCondition_VisibilitySubCauseCode (0) +#define max_val_AdverseWeatherCondition_VisibilitySubCauseCode (255) +#define min_val_AirHumidity (1) +#define max_val_AirHumidity (1001) +#define min_val_AltitudeValue (-100000) +#define max_val_AltitudeValue (800001) +#define min_val_AngleConfidence (1) +#define max_val_AngleConfidence (127) +#define min_val_AxlesCount (2) +#define max_val_AxlesCount (1002) +#define min_val_BarometricPressure (2999) +#define max_val_BarometricPressure (12002) +#define min_val_BogiesCount (2) +#define max_val_BogiesCount (101) +#define min_val_CardinalNumber1B (0) +#define max_val_CardinalNumber1B (255) +#define min_val_CardinalNumber3b (1) +#define max_val_CardinalNumber3b (8) +#define min_val_CartesianAngleValue (0) +#define max_val_CartesianAngleValue (3601) +#define min_val_CartesianAngularAccelerationComponentValue (-255) +#define max_val_CartesianAngularAccelerationComponentValue (256) +#define min_val_CartesianAngularVelocityComponentValue (-255) +#define max_val_CartesianAngularVelocityComponentValue (256) +#define min_val_CauseCodeType (0) +#define max_val_CauseCodeType (255) +#define min_val_CartesianCoordinateSmall (-3094) +#define max_val_CartesianCoordinateSmall (1001) +#define min_val_CartesianCoordinate (-32768) +#define max_val_CartesianCoordinate (32767) +#define min_val_CartesianCoordinateLarge (-131072) +#define max_val_CartesianCoordinateLarge (131071) +#define min_val_ClusterBreakupReason (0) +#define max_val_ClusterBreakupReason (15) +#define min_val_ClusterLeaveReason (0) +#define max_val_ClusterLeaveReason (15) +#define min_val_CollisionRiskSubCauseCode (0) +#define max_val_CollisionRiskSubCauseCode (255) +#define min_val_ConfidenceLevel (1) +#define max_val_ConfidenceLevel (101) +#define min_val_CoordinateConfidence (1) +#define max_val_CoordinateConfidence (4096) +#define min_val_CorrelationCellValue (-100) +#define max_val_CorrelationCellValue (101) +#define min_val_CurvatureValue (-1023) +#define max_val_CurvatureValue (1023) +#define min_val_DangerousEndOfQueueSubCauseCode (0) +#define max_val_DangerousEndOfQueueSubCauseCode (255) +#define min_val_DangerousSituationSubCauseCode (0) +#define max_val_DangerousSituationSubCauseCode (255) +#define min_val_DeltaAltitude (-12700) +#define max_val_DeltaAltitude (12800) +#define min_val_DeltaLatitude (-131071) +#define max_val_DeltaLatitude (131072) +#define min_val_DeltaLongitude (-131071) +#define max_val_DeltaLongitude (131072) +#define min_val_DeltaTimeMilliSecondPositive (1) +#define max_val_DeltaTimeMilliSecondPositive (10000) +#define min_val_DeltaTimeMilliSecondSigned (-2048) +#define max_val_DeltaTimeMilliSecondSigned (2047) +#define min_val_DeltaTimeQuarterSecond (1) +#define max_val_DeltaTimeQuarterSecond (255) +#define min_val_DeltaTimeTenthOfSecond (0) +#define max_val_DeltaTimeTenthOfSecond (127) +#define min_val_DeltaTimeSecond (0) +#define max_val_DeltaTimeSecond (86400) +#define min_val_DeltaTimeTenSeconds (0) +#define max_val_DeltaTimeTenSeconds (127) +#define min_val_Direction (0) +#define max_val_Direction (3) +#define min_val_EmergencyVehicleApproachingSubCauseCode (0) +#define max_val_EmergencyVehicleApproachingSubCauseCode (255) +#define min_val_GenerationDeltaTime (0) +#define max_val_GenerationDeltaTime (65535) +#define min_val_HazardousLocation_AnimalOnTheRoadSubCauseCode (0) +#define max_val_HazardousLocation_AnimalOnTheRoadSubCauseCode (255) +#define min_val_HazardousLocation_DangerousCurveSubCauseCode (0) +#define max_val_HazardousLocation_DangerousCurveSubCauseCode (255) +#define min_val_HazardousLocation_ObstacleOnTheRoadSubCauseCode (0) +#define max_val_HazardousLocation_ObstacleOnTheRoadSubCauseCode (255) +#define min_val_HazardousLocation_SurfaceConditionSubCauseCode (0) +#define max_val_HazardousLocation_SurfaceConditionSubCauseCode (255) +#define min_val_HeadingConfidence (1) +#define max_val_HeadingConfidence (127) +#define min_val_HeadingValue (0) +#define max_val_HeadingValue (3601) +#define min_val_HeightLonCarr (1) +#define max_val_HeightLonCarr (100) +#define min_val_HumanPresenceOnTheRoadSubCauseCode (0) +#define max_val_HumanPresenceOnTheRoadSubCauseCode (255) +#define min_val_HumanProblemSubCauseCode (0) +#define max_val_HumanProblemSubCauseCode (255) +#define min_val_Identifier1B (0) +#define max_val_Identifier1B (255) +#define min_val_Identifier2B (0) +#define max_val_Identifier2B (65535) +#define min_val_ImpassabilitySubCauseCode (0) +#define max_val_ImpassabilitySubCauseCode (255) +#define min_val_InformationQuality (0) +#define max_val_InformationQuality (7) +#define min_val_Iso3833VehicleType (0) +#define max_val_Iso3833VehicleType (255) +#define min_val_IssuerIdentifier (0) +#define max_val_IssuerIdentifier (16383) +#define min_val_LanePosition (-1) +#define max_val_LanePosition (14) +#define min_val_LaneType (0) +#define max_val_LaneType (31) +#define min_val_LaneWidth (0) +#define max_val_LaneWidth (1023) +#define min_val_Latitude (-900000000) +#define max_val_Latitude (900000001) +#define min_val_LateralAccelerationValue (-160) +#define max_val_LateralAccelerationValue (161) +#define min_val_Longitude (-1800000000) +#define max_val_Longitude (1800000001) +#define min_val_LongitudinalAccelerationValue (-160) +#define max_val_LongitudinalAccelerationValue (161) +#define min_val_LongitudinalLanePositionValue (0) +#define max_val_LongitudinalLanePositionValue (32767) +#define min_val_LongitudinalLanePositionConfidence (0) +#define max_val_LongitudinalLanePositionConfidence (1023) +#define min_val_MessageId (0) +#define max_val_MessageId (255) +#define min_val_NumberOfOccupants (0) +#define max_val_NumberOfOccupants (127) +#define min_val_ObjectPerceptionQuality (0) +#define max_val_ObjectPerceptionQuality (15) +#define min_val_ObjectDimensionValue (1) +#define max_val_ObjectDimensionValue (256) +#define min_val_ObjectDimensionConfidence (1) +#define max_val_ObjectDimensionConfidence (32) +#define min_val_OrdinalNumber1B (0) +#define max_val_OrdinalNumber1B (255) +#define min_val_OrdinalNumber3b (1) +#define max_val_OrdinalNumber3b (8) +#define min_val_OtherSubClass (0) +#define max_val_OtherSubClass (255) +#define min_val_PathId (0) +#define max_val_PathId (14) +#define min_val_PerformanceClass (0) +#define max_val_PerformanceClass (7) +#define min_val_PosCentMass (1) +#define max_val_PosCentMass (63) +#define min_val_PosFrontAx (1) +#define max_val_PosFrontAx (20) +#define min_val_Position1d (-8190) +#define max_val_Position1d (8191) +#define min_val_PosLonCarr (1) +#define max_val_PosLonCarr (127) +#define min_val_PosPillar (1) +#define max_val_PosPillar (30) +#define min_val_PostCrashSubCauseCode (0) +#define max_val_PostCrashSubCauseCode (255) +#define min_val_PrecipitationIntensity (1) +#define max_val_PrecipitationIntensity (2001) +#define min_val_ProtectedZoneId (0) +#define max_val_ProtectedZoneId (134217727) +#define min_val_PtActivationType (0) +#define max_val_PtActivationType (255) +#define min_val_RailwayLevelCrossingSubCauseCode (0) +#define max_val_RailwayLevelCrossingSubCauseCode (255) +#define min_val_RescueAndRecoveryWorkInProgressSubCauseCode (0) +#define max_val_RescueAndRecoveryWorkInProgressSubCauseCode (255) +#define min_val_RoadworksSubCauseCode (0) +#define max_val_RoadworksSubCauseCode (255) +#define min_val_SemiAxisLength (0) +#define max_val_SemiAxisLength (4095) +#define min_val_SensorType (0) +#define max_val_SensorType (31) +#define min_val_SequenceNumber (0) +#define max_val_SequenceNumber (65535) +#define min_val_SignalViolationSubCauseCode (0) +#define max_val_SignalViolationSubCauseCode (255) +#define min_val_SlowVehicleSubCauseCode (0) +#define max_val_SlowVehicleSubCauseCode (255) +#define min_val_SpeedConfidence (1) +#define max_val_SpeedConfidence (127) +#define min_val_SpeedLimit (1) +#define max_val_SpeedLimit (255) +#define min_val_SpeedValue (0) +#define max_val_SpeedValue (16383) +#define min_val_VelocityComponentValue (-16383) +#define max_val_VelocityComponentValue (16383) +#define min_val_StabilityLossProbability (0) +#define max_val_StabilityLossProbability (63) +#define min_val_StandardLength12b (0) +#define max_val_StandardLength12b (4095) +#define min_val_StandardLength9b (0) +#define max_val_StandardLength9b (511) +#define min_val_StandardLength1B (0) +#define max_val_StandardLength1B (255) +#define min_val_StandardLength2B (0) +#define max_val_StandardLength2B (65535) +#define min_val_StationaryVehicleSubCauseCode (0) +#define max_val_StationaryVehicleSubCauseCode (255) +#define min_val_StationId (0) +#define max_val_StationId (4294967295) +#define min_val_StationID (0) +#define max_val_StationID (4294967295) +#define min_val_StationType (0) +#define max_val_StationType (255) +#define min_val_SteeringWheelAngleConfidence (1) +#define max_val_SteeringWheelAngleConfidence (127) +#define min_val_SteeringWheelAngleValue (-511) +#define max_val_SteeringWheelAngleValue (512) +#define min_val_SubCauseCodeType (0) +#define max_val_SubCauseCodeType (255) +#define min_val_Temperature (-60) +#define max_val_Temperature (67) +#define min_val_TimestampIts (0) +#define max_val_TimestampIts (4398046511103) +#define min_val_TrafficConditionSubCauseCode (0) +#define max_val_TrafficConditionSubCauseCode (255) +#define min_val_TrafficParticipantType (0) +#define max_val_TrafficParticipantType (255) +#define min_val_TrajectoryInterceptionProbability (0) +#define max_val_TrajectoryInterceptionProbability (63) +#define min_val_TrajectoryInterceptionConfidence (0) +#define max_val_TrajectoryInterceptionConfidence (3) +#define min_val_TransmissionInterval (1) +#define max_val_TransmissionInterval (10000) +#define min_val_TurningRadius (1) +#define max_val_TurningRadius (255) +#define min_val_ValidityDuration (0) +#define max_val_ValidityDuration (86400) +#define min_val_VehicleBreakdownSubCauseCode (0) +#define max_val_VehicleBreakdownSubCauseCode (255) +#define min_val_VehicleHeight (1) +#define max_val_VehicleHeight (128) +#define min_val_VehicleLengthValue (1) +#define max_val_VehicleLengthValue (1023) +#define min_val_VehicleMass (1) +#define max_val_VehicleMass (1024) +#define min_val_VehicleWidth (1) +#define max_val_VehicleWidth (62) +#define min_val_VerticalAccelerationValue (-160) +#define max_val_VerticalAccelerationValue (161) +#define min_val_VruDeviceUsage (0) +#define max_val_VruDeviceUsage (15) +#define min_val_VruEnvironment (0) +#define max_val_VruEnvironment (15) +#define min_val_VruMovementControl (0) +#define max_val_VruMovementControl (15) +#define min_val_VruSubProfilePedestrian (0) +#define max_val_VruSubProfilePedestrian (15) +#define min_val_VruSubProfileBicyclist (0) +#define max_val_VruSubProfileBicyclist (15) +#define min_val_VruSubProfileMotorcyclist (0) +#define max_val_VruSubProfileMotorcyclist (15) +#define min_val_VruSubProfileAnimal (0) +#define max_val_VruSubProfileAnimal (15) +#define min_val_VruSizeClass (0) +#define max_val_VruSizeClass (15) +#define min_val_WheelBaseVehicle (1) +#define max_val_WheelBaseVehicle (127) +#define min_val_Wgs84AngleConfidence (1) +#define max_val_Wgs84AngleConfidence (127) +#define min_val_Wgs84AngleValue (0) +#define max_val_Wgs84AngleValue (3601) +#define min_val_WrongWayDrivingSubCauseCode (0) +#define max_val_WrongWayDrivingSubCauseCode (255) +#define min_val_YawRateValue (-32766) +#define max_val_YawRateValue (32767) +#define defaultValidity (600) +#define min_val_CpmContainerId (1) +#define max_val_CpmContainerId (16) + + +#ifdef __cplusplus +} +#endif + +#endif /* _ASN_CONSTANT_H */ diff --git a/vanetza/asn1/patches/iso/circular-dependencies.patch b/vanetza/asn1/patches/iso/circular-dependencies.patch index c459eb137..188ecb035 100644 --- a/vanetza/asn1/patches/iso/circular-dependencies.patch +++ b/vanetza/asn1/patches/iso/circular-dependencies.patch @@ -1,7 +1,7 @@ -diff --git a/vanetza/asn1/its/ConnectionManeuverAssist-addGrpC.c b/vanetza/asn1/its/ConnectionManeuverAssist-addGrpC.c +diff --git a/vanetza/asn1/its1/ConnectionManeuverAssist-addGrpC.c b/vanetza/asn1/its/ConnectionManeuverAssist-addGrpC.c index a5ef3933..5609b8ee 100644 ---- a/vanetza/asn1/its/ConnectionManeuverAssist-addGrpC.c -+++ b/vanetza/asn1/its/ConnectionManeuverAssist-addGrpC.c +--- a/vanetza/asn1/its1/ConnectionManeuverAssist-addGrpC.c ++++ b/vanetza/asn1/its1/ConnectionManeuverAssist-addGrpC.c @@ -6,6 +6,7 @@ */ @@ -10,10 +10,10 @@ index a5ef3933..5609b8ee 100644 asn_TYPE_member_t asn_MBR_ConnectionManeuverAssist_addGrpC_1[] = { { ATF_POINTER, 1, offsetof(struct ConnectionManeuverAssist_addGrpC, itsStationPosition), -diff --git a/vanetza/asn1/its/ConnectionManeuverAssist-addGrpC.h b/vanetza/asn1/its/ConnectionManeuverAssist-addGrpC.h +diff --git a/vanetza/asn1/its1/ConnectionManeuverAssist-addGrpC.h b/vanetza/asn1/its/ConnectionManeuverAssist-addGrpC.h index 2a3438c4..a9937684 100644 ---- a/vanetza/asn1/its/ConnectionManeuverAssist-addGrpC.h -+++ b/vanetza/asn1/its/ConnectionManeuverAssist-addGrpC.h +--- a/vanetza/asn1/its1/ConnectionManeuverAssist-addGrpC.h ++++ b/vanetza/asn1/its1/ConnectionManeuverAssist-addGrpC.h @@ -43,7 +43,7 @@ extern asn_TYPE_member_t asn_MBR_ConnectionManeuverAssist_addGrpC_1[1]; #endif @@ -23,10 +23,10 @@ index 2a3438c4..a9937684 100644 #endif /* _ConnectionManeuverAssist_addGrpC_H_ */ #include "asn_internal.h" -diff --git a/vanetza/asn1/its/MapData-addGrpC.c b/vanetza/asn1/its/MapData-addGrpC.c +diff --git a/vanetza/asn1/its1/MapData-addGrpC.c b/vanetza/asn1/its/MapData-addGrpC.c index 18726629..05ac3a17 100644 ---- a/vanetza/asn1/its/MapData-addGrpC.c -+++ b/vanetza/asn1/its/MapData-addGrpC.c +--- a/vanetza/asn1/its1/MapData-addGrpC.c ++++ b/vanetza/asn1/its1/MapData-addGrpC.c @@ -6,6 +6,7 @@ */ @@ -35,10 +35,10 @@ index 18726629..05ac3a17 100644 asn_TYPE_member_t asn_MBR_MapData_addGrpC_1[] = { { ATF_POINTER, 1, offsetof(struct MapData_addGrpC, signalHeadLocations), -diff --git a/vanetza/asn1/its/MapData-addGrpC.h b/vanetza/asn1/its/MapData-addGrpC.h +diff --git a/vanetza/asn1/its1/MapData-addGrpC.h b/vanetza/asn1/its/MapData-addGrpC.h index 4546458a..5c650c6d 100644 ---- a/vanetza/asn1/its/MapData-addGrpC.h -+++ b/vanetza/asn1/its/MapData-addGrpC.h +--- a/vanetza/asn1/its1/MapData-addGrpC.h ++++ b/vanetza/asn1/its1/MapData-addGrpC.h @@ -43,7 +43,7 @@ extern asn_TYPE_member_t asn_MBR_MapData_addGrpC_1[1]; #endif @@ -48,10 +48,10 @@ index 4546458a..5c650c6d 100644 #endif /* _MapData_addGrpC_H_ */ #include "asn_internal.h" -diff --git a/vanetza/asn1/its/NodeSetXY.c b/vanetza/asn1/its/NodeSetXY.c +diff --git a/vanetza/asn1/its1/NodeSetXY.c b/vanetza/asn1/its/NodeSetXY.c index 5995decd..42f27803 100644 ---- a/vanetza/asn1/its/NodeSetXY.c -+++ b/vanetza/asn1/its/NodeSetXY.c +--- a/vanetza/asn1/its1/NodeSetXY.c ++++ b/vanetza/asn1/its1/NodeSetXY.c @@ -6,6 +6,7 @@ */ @@ -60,10 +60,10 @@ index 5995decd..42f27803 100644 #if !defined(ASN_DISABLE_OER_SUPPORT) static asn_oer_constraints_t asn_OER_type_NodeSetXY_constr_1 CC_NOTUSED = { -diff --git a/vanetza/asn1/its/NodeSetXY.h b/vanetza/asn1/its/NodeSetXY.h +diff --git a/vanetza/asn1/its1/NodeSetXY.h b/vanetza/asn1/its/NodeSetXY.h index d10a2c1e..5c1b3c51 100644 ---- a/vanetza/asn1/its/NodeSetXY.h -+++ b/vanetza/asn1/its/NodeSetXY.h +--- a/vanetza/asn1/its1/NodeSetXY.h ++++ b/vanetza/asn1/its1/NodeSetXY.h @@ -41,7 +41,7 @@ extern asn_per_constraints_t asn_PER_type_NodeSetXY_constr_1; #endif diff --git a/vanetza/asn1/patches/iso/regional_extension_unions.patch b/vanetza/asn1/patches/iso/regional_extension_unions.patch index d7b2d94df..0cc3ffa7f 100644 --- a/vanetza/asn1/patches/iso/regional_extension_unions.patch +++ b/vanetza/asn1/patches/iso/regional_extension_unions.patch @@ -1,7 +1,7 @@ -diff --git a/vanetza/asn1/its/RegionalExtension.h b/vanetza/asn1/its/RegionalExtension.h +diff --git a/vanetza/asn1/its1/RegionalExtension.h b/vanetza/asn1/its/RegionalExtension.h index 3ad7797f..3118dd43 100644 ---- a/vanetza/asn1/its/RegionalExtension.h -+++ b/vanetza/asn1/its/RegionalExtension.h +--- a/vanetza/asn1/its1/RegionalExtension.h ++++ b/vanetza/asn1/its1/RegionalExtension.h @@ -165,6 +165,7 @@ typedef struct Reg_RTCMcorrections { struct Reg_RTCMcorrections__regExtValue { Reg_RTCMcorrections__regExtValue_PR present; diff --git a/vanetza/asn1/security/AaEntry.c b/vanetza/asn1/security/AaEntry.c index 3d79eda21..90834563a 100644 --- a/vanetza/asn1/security/AaEntry.c +++ b/vanetza/asn1/security/AaEntry.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_AaEntry_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_AaEntry_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_AaEntry = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_AaEntry_1, diff --git a/vanetza/asn1/security/AesCcmCiphertext.c b/vanetza/asn1/security/AesCcmCiphertext.c index e11da1a82..37d72a6b4 100644 --- a/vanetza/asn1/security/AesCcmCiphertext.c +++ b/vanetza/asn1/security/AesCcmCiphertext.c @@ -58,6 +58,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_AesCcmCiphertext_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_nonce_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_nonce_constraint_1 }, 0, 0, /* No default value */ @@ -75,6 +78,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_AesCcmCiphertext_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -113,6 +119,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_AesCcmCiphertext = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_AesCcmCiphertext_1, diff --git a/vanetza/asn1/security/AuthorizationRequestMessage.c b/vanetza/asn1/security/AuthorizationRequestMessage.c index 1716aa1b5..7c1f86f63 100644 --- a/vanetza/asn1/security/AuthorizationRequestMessage.c +++ b/vanetza/asn1/security/AuthorizationRequestMessage.c @@ -62,6 +62,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_AuthorizationRequestMessage = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_AuthorizationRequestMessage_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_AuthorizationRequestMessage_constraint }, asn_MBR_Vanetza_Security_Ieee1609Dot2Data_1, diff --git a/vanetza/asn1/security/AuthorizationRequestMessageWithPop.c b/vanetza/asn1/security/AuthorizationRequestMessageWithPop.c index d8e9c6905..25c7ab29f 100644 --- a/vanetza/asn1/security/AuthorizationRequestMessageWithPop.c +++ b/vanetza/asn1/security/AuthorizationRequestMessageWithPop.c @@ -62,6 +62,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_AuthorizationRequestMessageWithPo #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_AuthorizationRequestMessageWithPop_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_AuthorizationRequestMessageWithPop_constraint }, asn_MBR_Vanetza_Security_Ieee1609Dot2Data_1, diff --git a/vanetza/asn1/security/AuthorizationResponseCode.c b/vanetza/asn1/security/AuthorizationResponseCode.c index 619435dce..da6650d6b 100644 --- a/vanetza/asn1/security/AuthorizationResponseCode.c +++ b/vanetza/asn1/security/AuthorizationResponseCode.c @@ -112,6 +112,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_AuthorizationResponseCode = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_AuthorizationResponseCode_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/security/AuthorizationResponseMessage.c b/vanetza/asn1/security/AuthorizationResponseMessage.c index 9fbedd18e..ba2bba16c 100644 --- a/vanetza/asn1/security/AuthorizationResponseMessage.c +++ b/vanetza/asn1/security/AuthorizationResponseMessage.c @@ -62,6 +62,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_AuthorizationResponseMessage = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_AuthorizationResponseMessage_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_AuthorizationResponseMessage_constraint }, asn_MBR_Vanetza_Security_Ieee1609Dot2Data_1, diff --git a/vanetza/asn1/security/AuthorizationValidationRequest.c b/vanetza/asn1/security/AuthorizationValidationRequest.c index 8475a21a1..ea0be5df9 100644 --- a/vanetza/asn1/security/AuthorizationValidationRequest.c +++ b/vanetza/asn1/security/AuthorizationValidationRequest.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_AuthorizationValidationRequest_1[] = #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_AuthorizationValidationRequest_1[] = #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_AuthorizationValidationRequest = #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_AuthorizationValidationRequest_1, diff --git a/vanetza/asn1/security/AuthorizationValidationRequestMessage.c b/vanetza/asn1/security/AuthorizationValidationRequestMessage.c index 7337beb1e..71973b536 100644 --- a/vanetza/asn1/security/AuthorizationValidationRequestMessage.c +++ b/vanetza/asn1/security/AuthorizationValidationRequestMessage.c @@ -62,6 +62,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_AuthorizationValidationRequestMes #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_AuthorizationValidationRequestMessage_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_AuthorizationValidationRequestMessage_constraint }, asn_MBR_Vanetza_Security_Ieee1609Dot2Data_1, diff --git a/vanetza/asn1/security/AuthorizationValidationResponse.c b/vanetza/asn1/security/AuthorizationValidationResponse.c index 3c88e9985..b99f77dbb 100644 --- a/vanetza/asn1/security/AuthorizationValidationResponse.c +++ b/vanetza/asn1/security/AuthorizationValidationResponse.c @@ -101,6 +101,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_AuthorizationValidationResponse_1[] = #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_requestHash_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_requestHash_constraint_1 }, 0, 0, /* No default value */ @@ -118,6 +121,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_AuthorizationValidationResponse_1[] = #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -135,6 +141,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_AuthorizationValidationResponse_1[] = #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_confirmedSubjectAttributes_constr_4, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_confirmedSubjectAttributes_constraint_1 }, 0, 0, /* No default value */ @@ -176,6 +185,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_AuthorizationValidationResponse = #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_AuthorizationValidationResponse_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_AuthorizationValidationResponse_1, diff --git a/vanetza/asn1/security/AuthorizationValidationResponseCode.c b/vanetza/asn1/security/AuthorizationValidationResponseCode.c index cab2c9207..ce7185595 100644 --- a/vanetza/asn1/security/AuthorizationValidationResponseCode.c +++ b/vanetza/asn1/security/AuthorizationValidationResponseCode.c @@ -88,6 +88,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_AuthorizationValidationResponseCo #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_AuthorizationValidationResponseCode_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/security/AuthorizationValidationResponseMessage.c b/vanetza/asn1/security/AuthorizationValidationResponseMessage.c index 5fd773cfc..1c55ab4f2 100644 --- a/vanetza/asn1/security/AuthorizationValidationResponseMessage.c +++ b/vanetza/asn1/security/AuthorizationValidationResponseMessage.c @@ -62,6 +62,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_AuthorizationValidationResponseMe #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_AuthorizationValidationResponseMessage_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_AuthorizationValidationResponseMessage_constraint }, asn_MBR_Vanetza_Security_Ieee1609Dot2Data_1, diff --git a/vanetza/asn1/security/BasePublicEncryptionKey.c b/vanetza/asn1/security/BasePublicEncryptionKey.c index d7cd56aa3..da7c9942c 100644 --- a/vanetza/asn1/security/BasePublicEncryptionKey.c +++ b/vanetza/asn1/security/BasePublicEncryptionKey.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_BasePublicEncryptionKey_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_BasePublicEncryptionKey_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -84,6 +90,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_BasePublicEncryptionKey = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_BasePublicEncryptionKey_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_Vanetza_Security_BasePublicEncryptionKey_1, diff --git a/vanetza/asn1/security/BitmapSsp.c b/vanetza/asn1/security/BitmapSsp.c index 760377505..1cbf46e55 100644 --- a/vanetza/asn1/security/BitmapSsp.c +++ b/vanetza/asn1/security/BitmapSsp.c @@ -69,6 +69,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_BitmapSsp = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_BitmapSsp_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_BitmapSsp_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/security/BitmapSspRange.c b/vanetza/asn1/security/BitmapSspRange.c index ba395a845..1c18d9759 100644 --- a/vanetza/asn1/security/BitmapSspRange.c +++ b/vanetza/asn1/security/BitmapSspRange.c @@ -96,6 +96,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_BitmapSspRange_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_sspValue_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_sspValue_constraint_1 }, 0, 0, /* No default value */ @@ -113,6 +116,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_BitmapSspRange_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_sspBitmask_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_sspBitmask_constraint_1 }, 0, 0, /* No default value */ @@ -151,6 +157,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_BitmapSspRange = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_BitmapSspRange_1, diff --git a/vanetza/asn1/security/CaCertificateRekeyingMessage.c b/vanetza/asn1/security/CaCertificateRekeyingMessage.c index 8cc875570..e57cef4db 100644 --- a/vanetza/asn1/security/CaCertificateRekeyingMessage.c +++ b/vanetza/asn1/security/CaCertificateRekeyingMessage.c @@ -62,6 +62,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_CaCertificateRekeyingMessage = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_CaCertificateRekeyingMessage_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_CaCertificateRekeyingMessage_constraint }, asn_MBR_Vanetza_Security_Ieee1609Dot2Data_1, diff --git a/vanetza/asn1/security/CaCertificateRequest.c b/vanetza/asn1/security/CaCertificateRequest.c index 9bfc92197..7410ede66 100644 --- a/vanetza/asn1/security/CaCertificateRequest.c +++ b/vanetza/asn1/security/CaCertificateRequest.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CaCertificateRequest_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CaCertificateRequest_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_CaCertificateRequest = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_CaCertificateRequest_1, diff --git a/vanetza/asn1/security/CaCertificateRequestMessage.c b/vanetza/asn1/security/CaCertificateRequestMessage.c index 62734a4b7..666618481 100644 --- a/vanetza/asn1/security/CaCertificateRequestMessage.c +++ b/vanetza/asn1/security/CaCertificateRequestMessage.c @@ -62,6 +62,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_CaCertificateRequestMessage = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_CaCertificateRequestMessage_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_CaCertificateRequestMessage_constraint }, asn_MBR_Vanetza_Security_Ieee1609Dot2Data_1, diff --git a/vanetza/asn1/security/Certificate.c b/vanetza/asn1/security/Certificate.c index 3737a91ec..6a68ebcb1 100644 --- a/vanetza/asn1/security/Certificate.c +++ b/vanetza/asn1/security/Certificate.c @@ -62,6 +62,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_Certificate = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_Certificate_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_Certificate_constraint }, asn_MBR_Vanetza_Security_CertificateBase_1, diff --git a/vanetza/asn1/security/CertificateBase.c b/vanetza/asn1/security/CertificateBase.c index 9733baf91..6853eb1d1 100644 --- a/vanetza/asn1/security/CertificateBase.c +++ b/vanetza/asn1/security/CertificateBase.c @@ -57,6 +57,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CertificateBase_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_version_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_version_constraint_1 }, 0, 0, /* No default value */ @@ -74,6 +77,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CertificateBase_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -91,6 +97,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CertificateBase_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -108,6 +117,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CertificateBase_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -125,6 +137,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CertificateBase_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -168,6 +183,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_CertificateBase = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_CertificateBase_1, diff --git a/vanetza/asn1/security/CertificateFormat.c b/vanetza/asn1/security/CertificateFormat.c index 14ee81d6f..42946af98 100644 --- a/vanetza/asn1/security/CertificateFormat.c +++ b/vanetza/asn1/security/CertificateFormat.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_CertificateFormat = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_CertificateFormat_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_CertificateFormat_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/security/CertificateId.c b/vanetza/asn1/security/CertificateId.c index 12247eed7..d0410ba78 100644 --- a/vanetza/asn1/security/CertificateId.c +++ b/vanetza/asn1/security/CertificateId.c @@ -70,6 +70,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CertificateId_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -87,6 +90,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CertificateId_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -104,6 +110,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CertificateId_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_binaryId_constr_4, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_binaryId_constraint_1 }, 0, 0, /* No default value */ @@ -121,6 +130,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CertificateId_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -158,6 +170,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_CertificateId = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_CertificateId_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_Vanetza_Security_CertificateId_1, diff --git a/vanetza/asn1/security/CertificateRevocationListMessage.c b/vanetza/asn1/security/CertificateRevocationListMessage.c index 1aa54d399..11bcd5a54 100644 --- a/vanetza/asn1/security/CertificateRevocationListMessage.c +++ b/vanetza/asn1/security/CertificateRevocationListMessage.c @@ -62,6 +62,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_CertificateRevocationListMessage #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_CertificateRevocationListMessage_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_CertificateRevocationListMessage_constraint }, asn_MBR_Vanetza_Security_Ieee1609Dot2Data_1, diff --git a/vanetza/asn1/security/CertificateSubjectAttributes.c b/vanetza/asn1/security/CertificateSubjectAttributes.c index 28610cbd0..c5db2beed 100644 --- a/vanetza/asn1/security/CertificateSubjectAttributes.c +++ b/vanetza/asn1/security/CertificateSubjectAttributes.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CertificateSubjectAttributes_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CertificateSubjectAttributes_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -66,6 +72,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CertificateSubjectAttributes_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -83,6 +92,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CertificateSubjectAttributes_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -100,6 +112,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CertificateSubjectAttributes_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -117,6 +132,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CertificateSubjectAttributes_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -161,6 +179,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_CertificateSubjectAttributes = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_CertificateSubjectAttributes_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_CertificateSubjectAttributes_1, diff --git a/vanetza/asn1/security/CertificateType.c b/vanetza/asn1/security/CertificateType.c index cac1cc889..12701d7c1 100644 --- a/vanetza/asn1/security/CertificateType.c +++ b/vanetza/asn1/security/CertificateType.c @@ -62,6 +62,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_CertificateType = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_CertificateType_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/security/CircularRegion.c b/vanetza/asn1/security/CircularRegion.c index dd52d1537..3b2576fde 100644 --- a/vanetza/asn1/security/CircularRegion.c +++ b/vanetza/asn1/security/CircularRegion.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CircularRegion_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CircularRegion_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_CircularRegion = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_CircularRegion_1, diff --git a/vanetza/asn1/security/Countersignature.c b/vanetza/asn1/security/Countersignature.c index 4ef1da37f..3f4639edd 100644 --- a/vanetza/asn1/security/Countersignature.c +++ b/vanetza/asn1/security/Countersignature.c @@ -62,6 +62,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_Countersignature = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_Countersignature_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_Countersignature_constraint }, asn_MBR_Vanetza_Security_Ieee1609Dot2Data_1, diff --git a/vanetza/asn1/security/CountryAndRegions.c b/vanetza/asn1/security/CountryAndRegions.c index ba63025e0..be95e6567 100644 --- a/vanetza/asn1/security/CountryAndRegions.c +++ b/vanetza/asn1/security/CountryAndRegions.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CountryAndRegions_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CountryAndRegions_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_CountryAndRegions = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_CountryAndRegions_1, diff --git a/vanetza/asn1/security/CountryAndSubregions.c b/vanetza/asn1/security/CountryAndSubregions.c index 82f8695e5..3d6765346 100644 --- a/vanetza/asn1/security/CountryAndSubregions.c +++ b/vanetza/asn1/security/CountryAndSubregions.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CountryAndSubregions_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CountryAndSubregions_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_CountryAndSubregions = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_CountryAndSubregions_1, diff --git a/vanetza/asn1/security/CountryOnly.c b/vanetza/asn1/security/CountryOnly.c index 473282447..05cbc2afb 100644 --- a/vanetza/asn1/security/CountryOnly.c +++ b/vanetza/asn1/security/CountryOnly.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_CountryOnly = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_CountryOnly_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_CountryOnly_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/security/CrlEntry.c b/vanetza/asn1/security/CrlEntry.c index c1193e5b5..343a85338 100644 --- a/vanetza/asn1/security/CrlEntry.c +++ b/vanetza/asn1/security/CrlEntry.c @@ -69,6 +69,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_CrlEntry = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_CrlEntry_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_CrlEntry_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/security/CrlSeries.c b/vanetza/asn1/security/CrlSeries.c index 95dbb73d6..ae94ab7b2 100644 --- a/vanetza/asn1/security/CrlSeries.c +++ b/vanetza/asn1/security/CrlSeries.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_CrlSeries = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_CrlSeries_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_CrlSeries_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/security/CtlCommand.c b/vanetza/asn1/security/CtlCommand.c index 0db14ed22..73b2ebe3d 100644 --- a/vanetza/asn1/security/CtlCommand.c +++ b/vanetza/asn1/security/CtlCommand.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CtlCommand_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CtlCommand_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -84,6 +90,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_CtlCommand = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_CtlCommand_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_Vanetza_Security_CtlCommand_1, diff --git a/vanetza/asn1/security/CtlDelete.c b/vanetza/asn1/security/CtlDelete.c index 407f40987..41574a1da 100644 --- a/vanetza/asn1/security/CtlDelete.c +++ b/vanetza/asn1/security/CtlDelete.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CtlDelete_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CtlDelete_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -84,6 +90,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_CtlDelete = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_CtlDelete_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_Vanetza_Security_CtlDelete_1, diff --git a/vanetza/asn1/security/CtlEntry.c b/vanetza/asn1/security/CtlEntry.c index b11349f7d..f2bd31e90 100644 --- a/vanetza/asn1/security/CtlEntry.c +++ b/vanetza/asn1/security/CtlEntry.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CtlEntry_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CtlEntry_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -66,6 +72,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CtlEntry_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -83,6 +92,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CtlEntry_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -100,6 +112,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CtlEntry_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -138,6 +153,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_CtlEntry = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_CtlEntry_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_Vanetza_Security_CtlEntry_1, diff --git a/vanetza/asn1/security/CtlFormat.c b/vanetza/asn1/security/CtlFormat.c index d2ef417bd..de7a7f1e8 100644 --- a/vanetza/asn1/security/CtlFormat.c +++ b/vanetza/asn1/security/CtlFormat.c @@ -57,6 +57,9 @@ static asn_TYPE_member_t asn_MBR_Vanetza_Security_ctlCommands_6[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -90,6 +93,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_ctlCommands_6 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_Vanetza_Security_ctlCommands_6, @@ -110,6 +116,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CtlFormat_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -127,6 +136,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CtlFormat_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -144,6 +156,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CtlFormat_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -161,6 +176,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CtlFormat_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_ctlSequence_constr_5, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_ctlSequence_constraint_1 }, 0, 0, /* No default value */ @@ -178,6 +196,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_CtlFormat_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -219,6 +240,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_CtlFormat = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_CtlFormat_1, diff --git a/vanetza/asn1/security/DcDelete.c b/vanetza/asn1/security/DcDelete.c index 2f8030067..ad8cc7c19 100644 --- a/vanetza/asn1/security/DcDelete.c +++ b/vanetza/asn1/security/DcDelete.c @@ -38,6 +38,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_DcDelete = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ IA5String_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/security/DcEntry.c b/vanetza/asn1/security/DcEntry.c index af3906c36..4f1f566e8 100644 --- a/vanetza/asn1/security/DcEntry.c +++ b/vanetza/asn1/security/DcEntry.c @@ -20,6 +20,9 @@ static asn_TYPE_member_t asn_MBR_Vanetza_Security_cert_3[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -53,6 +56,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_cert_3 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_Vanetza_Security_cert_3, @@ -73,6 +79,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_DcEntry_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -90,6 +99,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_DcEntry_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -128,6 +140,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_DcEntry = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_DcEntry_1, diff --git a/vanetza/asn1/security/DeltaCtl.c b/vanetza/asn1/security/DeltaCtl.c index c874b01c7..45e1148d6 100644 --- a/vanetza/asn1/security/DeltaCtl.c +++ b/vanetza/asn1/security/DeltaCtl.c @@ -62,6 +62,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_DeltaCtl = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_DeltaCtl_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_DeltaCtl_constraint }, asn_MBR_Vanetza_Security_CtlFormat_1, diff --git a/vanetza/asn1/security/Duration.c b/vanetza/asn1/security/Duration.c index 53f7e8ec2..764963f61 100644 --- a/vanetza/asn1/security/Duration.c +++ b/vanetza/asn1/security/Duration.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_Duration_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_Duration_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -66,6 +72,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_Duration_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -83,6 +92,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_Duration_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -100,6 +112,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_Duration_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -117,6 +132,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_Duration_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -134,6 +152,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_Duration_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -174,6 +195,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_Duration = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_Duration_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_Vanetza_Security_Duration_1, diff --git a/vanetza/asn1/security/EXTERNAL.c b/vanetza/asn1/security/EXTERNAL.c index 88f7e704d..fe20f6700 100644 --- a/vanetza/asn1/security/EXTERNAL.c +++ b/vanetza/asn1/security/EXTERNAL.c @@ -1,7 +1,7 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ASN1C-UsefulInformationObjectClasses" - * found in "/home/rieblr/opt/asn1c/share/asn1c/standard-modules/ASN1C-UsefulInformationObjectClasses.asn1" + * found in "/usr/local/share/asn1c/standard-modules/ASN1C-UsefulInformationObjectClasses.asn1" * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -fprefix=Vanetza_Security_ -R` */ @@ -32,6 +32,9 @@ static asn_TYPE_member_t asn_MBR_Vanetza_Security_encoding_5[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ static asn_TYPE_member_t asn_MBR_Vanetza_Security_encoding_5[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -66,6 +72,9 @@ static asn_TYPE_member_t asn_MBR_Vanetza_Security_encoding_5[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -103,6 +112,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_encoding_5 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_encoding_constr_5, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_Vanetza_Security_encoding_5, @@ -123,6 +135,9 @@ static asn_TYPE_member_t asn_MBR_Vanetza_Security_EXTERNAL_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -140,6 +155,9 @@ static asn_TYPE_member_t asn_MBR_Vanetza_Security_EXTERNAL_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -157,6 +175,9 @@ static asn_TYPE_member_t asn_MBR_Vanetza_Security_EXTERNAL_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -174,6 +195,9 @@ static asn_TYPE_member_t asn_MBR_Vanetza_Security_EXTERNAL_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -219,6 +243,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_EXTERNAL = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_EXTERNAL_1, diff --git a/vanetza/asn1/security/EXTERNAL.h b/vanetza/asn1/security/EXTERNAL.h index 92cc924a7..f0b33156c 100644 --- a/vanetza/asn1/security/EXTERNAL.h +++ b/vanetza/asn1/security/EXTERNAL.h @@ -1,7 +1,7 @@ /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ASN1C-UsefulInformationObjectClasses" - * found in "/home/rieblr/opt/asn1c/share/asn1c/standard-modules/ASN1C-UsefulInformationObjectClasses.asn1" + * found in "/usr/local/share/asn1c/standard-modules/ASN1C-UsefulInformationObjectClasses.asn1" * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -fprefix=Vanetza_Security_ -R` */ diff --git a/vanetza/asn1/security/EaEntry.c b/vanetza/asn1/security/EaEntry.c index 412852461..dba6d696b 100644 --- a/vanetza/asn1/security/EaEntry.c +++ b/vanetza/asn1/security/EaEntry.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EaEntry_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EaEntry_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EaEntry_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -95,6 +104,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_EaEntry = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_EaEntry_1, diff --git a/vanetza/asn1/security/EcSignature.c b/vanetza/asn1/security/EcSignature.c index e27f732a0..7085d116a 100644 --- a/vanetza/asn1/security/EcSignature.c +++ b/vanetza/asn1/security/EcSignature.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EcSignature_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EcSignature_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -84,6 +90,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_EcSignature = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_EcSignature_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_Vanetza_Security_EcSignature_1, diff --git a/vanetza/asn1/security/EccP256CurvePoint.c b/vanetza/asn1/security/EccP256CurvePoint.c index 93ae9e150..a0e41e682 100644 --- a/vanetza/asn1/security/EccP256CurvePoint.c +++ b/vanetza/asn1/security/EccP256CurvePoint.c @@ -222,6 +222,9 @@ static asn_TYPE_member_t asn_MBR_Vanetza_Security_uncompressedP256_6[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_x_constr_7, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_x_constraint_6 }, 0, 0, /* No default value */ @@ -239,6 +242,9 @@ static asn_TYPE_member_t asn_MBR_Vanetza_Security_uncompressedP256_6[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_y_constr_8, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_y_constraint_6 }, 0, 0, /* No default value */ @@ -279,6 +285,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_uncompressedP256_6 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_uncompressedP256_6, @@ -299,6 +308,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EccP256CurvePoint_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_x_only_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_x_only_constraint_1 }, 0, 0, /* No default value */ @@ -316,6 +328,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EccP256CurvePoint_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -333,6 +348,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EccP256CurvePoint_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_compressed_y_0_constr_4, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_compressed_y_0_constraint_1 }, 0, 0, /* No default value */ @@ -350,6 +368,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EccP256CurvePoint_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_compressed_y_1_constr_5, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_compressed_y_1_constraint_1 }, 0, 0, /* No default value */ @@ -367,6 +388,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EccP256CurvePoint_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -405,6 +429,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_EccP256CurvePoint = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_EccP256CurvePoint_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_Vanetza_Security_EccP256CurvePoint_1, diff --git a/vanetza/asn1/security/EccP384CurvePoint.c b/vanetza/asn1/security/EccP384CurvePoint.c index 7d378ff77..6f372c9ab 100644 --- a/vanetza/asn1/security/EccP384CurvePoint.c +++ b/vanetza/asn1/security/EccP384CurvePoint.c @@ -222,6 +222,9 @@ static asn_TYPE_member_t asn_MBR_Vanetza_Security_uncompressedP384_6[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_x_constr_7, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_x_constraint_6 }, 0, 0, /* No default value */ @@ -239,6 +242,9 @@ static asn_TYPE_member_t asn_MBR_Vanetza_Security_uncompressedP384_6[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_y_constr_8, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_y_constraint_6 }, 0, 0, /* No default value */ @@ -279,6 +285,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_uncompressedP384_6 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_uncompressedP384_6, @@ -299,6 +308,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EccP384CurvePoint_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_x_only_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_x_only_constraint_1 }, 0, 0, /* No default value */ @@ -316,6 +328,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EccP384CurvePoint_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -333,6 +348,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EccP384CurvePoint_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_compressed_y_0_constr_4, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_compressed_y_0_constraint_1 }, 0, 0, /* No default value */ @@ -350,6 +368,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EccP384CurvePoint_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_compressed_y_1_constr_5, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_compressed_y_1_constraint_1 }, 0, 0, /* No default value */ @@ -367,6 +388,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EccP384CurvePoint_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -405,6 +429,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_EccP384CurvePoint = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_EccP384CurvePoint_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_Vanetza_Security_EccP384CurvePoint_1, diff --git a/vanetza/asn1/security/EcdsaP256Signature.c b/vanetza/asn1/security/EcdsaP256Signature.c index 5194e7b65..b6a281400 100644 --- a/vanetza/asn1/security/EcdsaP256Signature.c +++ b/vanetza/asn1/security/EcdsaP256Signature.c @@ -58,6 +58,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EcdsaP256Signature_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +78,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EcdsaP256Signature_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_sSig_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_sSig_constraint_1 }, 0, 0, /* No default value */ @@ -113,6 +119,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_EcdsaP256Signature = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_EcdsaP256Signature_1, diff --git a/vanetza/asn1/security/EcdsaP384Signature.c b/vanetza/asn1/security/EcdsaP384Signature.c index 030900b93..f8f663bfd 100644 --- a/vanetza/asn1/security/EcdsaP384Signature.c +++ b/vanetza/asn1/security/EcdsaP384Signature.c @@ -58,6 +58,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EcdsaP384Signature_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +78,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EcdsaP384Signature_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_sSig_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_sSig_constraint_1 }, 0, 0, /* No default value */ @@ -113,6 +119,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_EcdsaP384Signature = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_EcdsaP384Signature_1, diff --git a/vanetza/asn1/security/EciesP256EncryptedKey.c b/vanetza/asn1/security/EciesP256EncryptedKey.c index b762204d4..bc93d9173 100644 --- a/vanetza/asn1/security/EciesP256EncryptedKey.c +++ b/vanetza/asn1/security/EciesP256EncryptedKey.c @@ -96,6 +96,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EciesP256EncryptedKey_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -113,6 +116,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EciesP256EncryptedKey_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_c_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_c_constraint_1 }, 0, 0, /* No default value */ @@ -130,6 +136,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EciesP256EncryptedKey_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_t_constr_4, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_t_constraint_1 }, 0, 0, /* No default value */ @@ -169,6 +178,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_EciesP256EncryptedKey = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_EciesP256EncryptedKey_1, diff --git a/vanetza/asn1/security/ElevInt.c b/vanetza/asn1/security/ElevInt.c index 8628c026e..e95ee1162 100644 --- a/vanetza/asn1/security/ElevInt.c +++ b/vanetza/asn1/security/ElevInt.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_ElevInt = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_ElevInt_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_ElevInt_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/security/Elevation.c b/vanetza/asn1/security/Elevation.c index 3de106f4e..675d128f8 100644 --- a/vanetza/asn1/security/Elevation.c +++ b/vanetza/asn1/security/Elevation.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_Elevation = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_Elevation_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_Elevation_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/security/EncryptedData.c b/vanetza/asn1/security/EncryptedData.c index 3cb065ed3..f286ab13c 100644 --- a/vanetza/asn1/security/EncryptedData.c +++ b/vanetza/asn1/security/EncryptedData.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EncryptedData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EncryptedData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_EncryptedData = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_EncryptedData_1, diff --git a/vanetza/asn1/security/EncryptedDataEncryptionKey.c b/vanetza/asn1/security/EncryptedDataEncryptionKey.c index 0fb8ec7cc..8a53cc721 100644 --- a/vanetza/asn1/security/EncryptedDataEncryptionKey.c +++ b/vanetza/asn1/security/EncryptedDataEncryptionKey.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EncryptedDataEncryptionKey_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EncryptedDataEncryptionKey_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -84,6 +90,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_EncryptedDataEncryptionKey = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_EncryptedDataEncryptionKey_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_Vanetza_Security_EncryptedDataEncryptionKey_1, diff --git a/vanetza/asn1/security/EncryptionKey.c b/vanetza/asn1/security/EncryptionKey.c index 1654e854e..7a59bd2fd 100644 --- a/vanetza/asn1/security/EncryptionKey.c +++ b/vanetza/asn1/security/EncryptionKey.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EncryptionKey_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EncryptionKey_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -84,6 +90,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_EncryptionKey = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_EncryptionKey_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_Vanetza_Security_EncryptionKey_1, diff --git a/vanetza/asn1/security/EndEntityType.c b/vanetza/asn1/security/EndEntityType.c index c1971da7d..ab2dec395 100644 --- a/vanetza/asn1/security/EndEntityType.c +++ b/vanetza/asn1/security/EndEntityType.c @@ -54,6 +54,10 @@ asn_per_constraints_t asn_PER_type_Vanetza_Security_EndEntityType_constr_1 CC_NO 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) +static asn_jer_constraints_t asn_JER_type_Vanetza_Security_EndEntityType_constr_1 CC_NOTUSED = { + 8}; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ static const ber_tlv_tag_t asn_DEF_Vanetza_Security_EndEntityType_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) }; @@ -74,6 +78,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_EndEntityType = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_EndEntityType_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + &asn_JER_type_Vanetza_Security_EndEntityType_constr_1, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_EndEntityType_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/security/EnrolmentRequestMessage.c b/vanetza/asn1/security/EnrolmentRequestMessage.c index 515af5f25..b0d3f77bd 100644 --- a/vanetza/asn1/security/EnrolmentRequestMessage.c +++ b/vanetza/asn1/security/EnrolmentRequestMessage.c @@ -62,6 +62,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_EnrolmentRequestMessage = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_EnrolmentRequestMessage_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_EnrolmentRequestMessage_constraint }, asn_MBR_Vanetza_Security_Ieee1609Dot2Data_1, diff --git a/vanetza/asn1/security/EnrolmentResponseCode.c b/vanetza/asn1/security/EnrolmentResponseCode.c index 62b8b25b0..bf7532d38 100644 --- a/vanetza/asn1/security/EnrolmentResponseCode.c +++ b/vanetza/asn1/security/EnrolmentResponseCode.c @@ -86,6 +86,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_EnrolmentResponseCode = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_EnrolmentResponseCode_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/security/EnrolmentResponseMessage.c b/vanetza/asn1/security/EnrolmentResponseMessage.c index 43cecae9c..f2e07221c 100644 --- a/vanetza/asn1/security/EnrolmentResponseMessage.c +++ b/vanetza/asn1/security/EnrolmentResponseMessage.c @@ -62,6 +62,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_EnrolmentResponseMessage = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_EnrolmentResponseMessage_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_EnrolmentResponseMessage_constraint }, asn_MBR_Vanetza_Security_Ieee1609Dot2Data_1, diff --git a/vanetza/asn1/security/EtsiTs102941Data.c b/vanetza/asn1/security/EtsiTs102941Data.c index b8a03e712..6b35b6294 100644 --- a/vanetza/asn1/security/EtsiTs102941Data.c +++ b/vanetza/asn1/security/EtsiTs102941Data.c @@ -57,6 +57,9 @@ static asn_TYPE_member_t asn_MBR_Vanetza_Security_EtsiTs102941Data_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_version_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_version_constraint_1 }, 0, 0, /* No default value */ @@ -74,6 +77,9 @@ static asn_TYPE_member_t asn_MBR_Vanetza_Security_EtsiTs102941Data_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -112,6 +118,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_EtsiTs102941Data = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_EtsiTs102941Data_1, diff --git a/vanetza/asn1/security/EtsiTs102941DataContent.c b/vanetza/asn1/security/EtsiTs102941DataContent.c index 6a1895d3e..cf4d4be27 100644 --- a/vanetza/asn1/security/EtsiTs102941DataContent.c +++ b/vanetza/asn1/security/EtsiTs102941DataContent.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EtsiTs102941DataContent_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EtsiTs102941DataContent_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -66,6 +72,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EtsiTs102941DataContent_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -83,6 +92,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EtsiTs102941DataContent_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -100,6 +112,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EtsiTs102941DataContent_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -117,6 +132,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EtsiTs102941DataContent_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -134,6 +152,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EtsiTs102941DataContent_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -151,6 +172,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EtsiTs102941DataContent_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -168,6 +192,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EtsiTs102941DataContent_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -185,6 +212,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_EtsiTs102941DataContent_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -228,6 +258,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_EtsiTs102941DataContent = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_EtsiTs102941DataContent_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_Vanetza_Security_EtsiTs102941DataContent_1, diff --git a/vanetza/asn1/security/EtsiTs103097Certificate.c b/vanetza/asn1/security/EtsiTs103097Certificate.c index 828ee5a8c..98dd872b6 100644 --- a/vanetza/asn1/security/EtsiTs103097Certificate.c +++ b/vanetza/asn1/security/EtsiTs103097Certificate.c @@ -62,6 +62,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_EtsiTs103097Certificate = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_EtsiTs103097Certificate_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_EtsiTs103097Certificate_constraint }, asn_MBR_Vanetza_Security_CertificateBase_1, diff --git a/vanetza/asn1/security/EtsiTs103097Data-Encrypted-Unicast.c b/vanetza/asn1/security/EtsiTs103097Data-Encrypted-Unicast.c index abc7fe9db..fd1754ff9 100644 --- a/vanetza/asn1/security/EtsiTs103097Data-Encrypted-Unicast.c +++ b/vanetza/asn1/security/EtsiTs103097Data-Encrypted-Unicast.c @@ -62,6 +62,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_EtsiTs103097Data_Encrypted_Unicas #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_EtsiTs103097Data_Encrypted_Unicast_55P0_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_EtsiTs103097Data_Encrypted_Unicast_55P0_constraint }, asn_MBR_Vanetza_Security_Ieee1609Dot2Data_1, diff --git a/vanetza/asn1/security/EtsiTs103097Data-Encrypted.c b/vanetza/asn1/security/EtsiTs103097Data-Encrypted.c index ade4eafa0..bd31ab5a8 100644 --- a/vanetza/asn1/security/EtsiTs103097Data-Encrypted.c +++ b/vanetza/asn1/security/EtsiTs103097Data-Encrypted.c @@ -132,6 +132,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_EtsiTs103097Data_Encrypted_85P0 = #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_EtsiTs103097Data_Encrypted_85P0_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_EtsiTs103097Data_Encrypted_85P0_constraint }, asn_MBR_Vanetza_Security_Ieee1609Dot2Data_1, @@ -159,6 +162,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_EtsiTs103097Data_Encrypted_85P1 = #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_EtsiTs103097Data_Encrypted_85P1_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_EtsiTs103097Data_Encrypted_85P1_constraint }, asn_MBR_Vanetza_Security_Ieee1609Dot2Data_1, @@ -186,6 +192,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_EtsiTs103097Data_Encrypted_85P2 = #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_EtsiTs103097Data_Encrypted_85P2_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_EtsiTs103097Data_Encrypted_85P2_constraint }, asn_MBR_Vanetza_Security_Ieee1609Dot2Data_1, diff --git a/vanetza/asn1/security/EtsiTs103097Data-Signed.c b/vanetza/asn1/security/EtsiTs103097Data-Signed.c index 50cf00f33..beb87bdd0 100644 --- a/vanetza/asn1/security/EtsiTs103097Data-Signed.c +++ b/vanetza/asn1/security/EtsiTs103097Data-Signed.c @@ -132,6 +132,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_EtsiTs103097Data_Signed_55P0 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_EtsiTs103097Data_Signed_55P0_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_EtsiTs103097Data_Signed_55P0_constraint }, asn_MBR_Vanetza_Security_Ieee1609Dot2Data_1, @@ -159,6 +162,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_EtsiTs103097Data_Signed_55P1 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_EtsiTs103097Data_Signed_55P1_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_EtsiTs103097Data_Signed_55P1_constraint }, asn_MBR_Vanetza_Security_Ieee1609Dot2Data_1, @@ -186,6 +192,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_EtsiTs103097Data_Signed_55P2 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_EtsiTs103097Data_Signed_55P2_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_EtsiTs103097Data_Signed_55P2_constraint }, asn_MBR_Vanetza_Security_Ieee1609Dot2Data_1, diff --git a/vanetza/asn1/security/EtsiTs103097Data-SignedAndEncrypted-Unicast.c b/vanetza/asn1/security/EtsiTs103097Data-SignedAndEncrypted-Unicast.c index 97fbf8557..11d6ae73b 100644 --- a/vanetza/asn1/security/EtsiTs103097Data-SignedAndEncrypted-Unicast.c +++ b/vanetza/asn1/security/EtsiTs103097Data-SignedAndEncrypted-Unicast.c @@ -62,6 +62,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_EtsiTs103097Data_SignedAndEncrypt #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_EtsiTs103097Data_SignedAndEncrypted_Unicast_64P0_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_EtsiTs103097Data_SignedAndEncrypted_Unicast_64P0_constraint }, asn_MBR_Vanetza_Security_Ieee1609Dot2Data_1, diff --git a/vanetza/asn1/security/EtsiTs103097Data-SignedExternalPayload.c b/vanetza/asn1/security/EtsiTs103097Data-SignedExternalPayload.c index a4115c052..f483bbf4d 100644 --- a/vanetza/asn1/security/EtsiTs103097Data-SignedExternalPayload.c +++ b/vanetza/asn1/security/EtsiTs103097Data-SignedExternalPayload.c @@ -62,6 +62,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_EtsiTs103097Data_SignedExternalPa #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_EtsiTs103097Data_SignedExternalPayload_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_EtsiTs103097Data_SignedExternalPayload_constraint }, asn_MBR_Vanetza_Security_Ieee1609Dot2Data_1, diff --git a/vanetza/asn1/security/EtsiTs103097Data.c b/vanetza/asn1/security/EtsiTs103097Data.c index b402c3e7a..4b293ab3c 100644 --- a/vanetza/asn1/security/EtsiTs103097Data.c +++ b/vanetza/asn1/security/EtsiTs103097Data.c @@ -62,6 +62,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_EtsiTs103097Data = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_EtsiTs103097Data_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_EtsiTs103097Data_constraint }, asn_MBR_Vanetza_Security_Ieee1609Dot2Data_1, diff --git a/vanetza/asn1/security/ExplicitCertificate.c b/vanetza/asn1/security/ExplicitCertificate.c index cadb8384e..eb39dc5ad 100644 --- a/vanetza/asn1/security/ExplicitCertificate.c +++ b/vanetza/asn1/security/ExplicitCertificate.c @@ -62,6 +62,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_ExplicitCertificate = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_ExplicitCertificate_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_ExplicitCertificate_constraint }, asn_MBR_Vanetza_Security_CertificateBase_1, diff --git a/vanetza/asn1/security/FullCtl.c b/vanetza/asn1/security/FullCtl.c index 5ee99124b..df432e41b 100644 --- a/vanetza/asn1/security/FullCtl.c +++ b/vanetza/asn1/security/FullCtl.c @@ -62,6 +62,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_FullCtl = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_FullCtl_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_FullCtl_constraint }, asn_MBR_Vanetza_Security_CtlFormat_1, diff --git a/vanetza/asn1/security/GeographicRegion.c b/vanetza/asn1/security/GeographicRegion.c index 8f26027a9..ab0ff70c8 100644 --- a/vanetza/asn1/security/GeographicRegion.c +++ b/vanetza/asn1/security/GeographicRegion.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_GeographicRegion_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_GeographicRegion_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -66,6 +72,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_GeographicRegion_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -83,6 +92,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_GeographicRegion_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -120,6 +132,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_GeographicRegion = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_GeographicRegion_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_Vanetza_Security_GeographicRegion_1, diff --git a/vanetza/asn1/security/GroupLinkageValue.c b/vanetza/asn1/security/GroupLinkageValue.c index 212001a6c..790f811d4 100644 --- a/vanetza/asn1/security/GroupLinkageValue.c +++ b/vanetza/asn1/security/GroupLinkageValue.c @@ -96,6 +96,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_GroupLinkageValue_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_jValue_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_jValue_constraint_1 }, 0, 0, /* No default value */ @@ -113,6 +116,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_GroupLinkageValue_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_value_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_value_constraint_1 }, 0, 0, /* No default value */ @@ -151,6 +157,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_GroupLinkageValue = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_GroupLinkageValue_1, diff --git a/vanetza/asn1/security/HashAlgorithm.c b/vanetza/asn1/security/HashAlgorithm.c index a748a1093..c9aaded7e 100644 --- a/vanetza/asn1/security/HashAlgorithm.c +++ b/vanetza/asn1/security/HashAlgorithm.c @@ -62,6 +62,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_HashAlgorithm = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_HashAlgorithm_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/security/HashedData.c b/vanetza/asn1/security/HashedData.c index b3e4b8adc..350e8752b 100644 --- a/vanetza/asn1/security/HashedData.c +++ b/vanetza/asn1/security/HashedData.c @@ -70,6 +70,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_HashedData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_sha256HashedData_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_sha256HashedData_constraint_1 }, 0, 0, /* No default value */ @@ -104,6 +107,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_HashedData = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_HashedData_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_Vanetza_Security_HashedData_1, diff --git a/vanetza/asn1/security/HashedId10.c b/vanetza/asn1/security/HashedId10.c index 4f5353079..c5bb5abe5 100644 --- a/vanetza/asn1/security/HashedId10.c +++ b/vanetza/asn1/security/HashedId10.c @@ -69,6 +69,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_HashedId10 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_HashedId10_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_HashedId10_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/security/HashedId3.c b/vanetza/asn1/security/HashedId3.c index aca3d6f58..eda807604 100644 --- a/vanetza/asn1/security/HashedId3.c +++ b/vanetza/asn1/security/HashedId3.c @@ -69,6 +69,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_HashedId3 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_HashedId3_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_HashedId3_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/security/HashedId8.c b/vanetza/asn1/security/HashedId8.c index d401b33b5..259ff1034 100644 --- a/vanetza/asn1/security/HashedId8.c +++ b/vanetza/asn1/security/HashedId8.c @@ -69,6 +69,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_HashedId8 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_HashedId8_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_HashedId8_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/security/HeaderInfo.c b/vanetza/asn1/security/HeaderInfo.c index 835b297f8..347abb64a 100644 --- a/vanetza/asn1/security/HeaderInfo.c +++ b/vanetza/asn1/security/HeaderInfo.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_HeaderInfo_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_HeaderInfo_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_HeaderInfo_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -71,6 +80,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_HeaderInfo_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -88,6 +100,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_HeaderInfo_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -105,6 +120,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_HeaderInfo_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -122,6 +140,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_HeaderInfo_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -139,6 +160,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_HeaderInfo_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -156,6 +180,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_HeaderInfo_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -203,6 +230,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_HeaderInfo = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_HeaderInfo_1, diff --git a/vanetza/asn1/security/Hostname.c b/vanetza/asn1/security/Hostname.c index f06aeb362..dfe28e34f 100644 --- a/vanetza/asn1/security/Hostname.c +++ b/vanetza/asn1/security/Hostname.c @@ -75,6 +75,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_Hostname = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_Hostname_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_Hostname_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/security/IValue.c b/vanetza/asn1/security/IValue.c index ae670646d..d43981f84 100644 --- a/vanetza/asn1/security/IValue.c +++ b/vanetza/asn1/security/IValue.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_IValue = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_IValue_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_IValue_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/security/IdentifiedRegion.c b/vanetza/asn1/security/IdentifiedRegion.c index 2eb62f73c..b47cbbe40 100644 --- a/vanetza/asn1/security/IdentifiedRegion.c +++ b/vanetza/asn1/security/IdentifiedRegion.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_IdentifiedRegion_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_IdentifiedRegion_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -66,6 +72,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_IdentifiedRegion_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -102,6 +111,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_IdentifiedRegion = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_IdentifiedRegion_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_Vanetza_Security_IdentifiedRegion_1, diff --git a/vanetza/asn1/security/Ieee1609Dot2Content.c b/vanetza/asn1/security/Ieee1609Dot2Content.c index 65e49ab45..9950b6551 100644 --- a/vanetza/asn1/security/Ieee1609Dot2Content.c +++ b/vanetza/asn1/security/Ieee1609Dot2Content.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_Ieee1609Dot2Content_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_Ieee1609Dot2Content_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -66,6 +72,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_Ieee1609Dot2Content_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -83,6 +92,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_Ieee1609Dot2Content_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -120,6 +132,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_Ieee1609Dot2Content = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_Ieee1609Dot2Content_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_Vanetza_Security_Ieee1609Dot2Content_1, diff --git a/vanetza/asn1/security/Ieee1609Dot2Data.c b/vanetza/asn1/security/Ieee1609Dot2Data.c index d3e90fe97..6a389334f 100644 --- a/vanetza/asn1/security/Ieee1609Dot2Data.c +++ b/vanetza/asn1/security/Ieee1609Dot2Data.c @@ -57,6 +57,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_Ieee1609Dot2Data_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_protocolVersion_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_protocolVersion_constraint_1 }, 0, 0, /* No default value */ @@ -74,6 +77,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_Ieee1609Dot2Data_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -112,6 +118,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_Ieee1609Dot2Data = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_Ieee1609Dot2Data_1, diff --git a/vanetza/asn1/security/ImplicitCertificate.c b/vanetza/asn1/security/ImplicitCertificate.c index 7a40c5560..3b34f10b4 100644 --- a/vanetza/asn1/security/ImplicitCertificate.c +++ b/vanetza/asn1/security/ImplicitCertificate.c @@ -62,6 +62,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_ImplicitCertificate = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_ImplicitCertificate_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_ImplicitCertificate_constraint }, asn_MBR_Vanetza_Security_CertificateBase_1, diff --git a/vanetza/asn1/security/InnerAtRequest.c b/vanetza/asn1/security/InnerAtRequest.c index 6c1957d59..6edd5ff6f 100644 --- a/vanetza/asn1/security/InnerAtRequest.c +++ b/vanetza/asn1/security/InnerAtRequest.c @@ -58,6 +58,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_InnerAtRequest_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +78,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_InnerAtRequest_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_hmacKey_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_hmacKey_constraint_1 }, 0, 0, /* No default value */ @@ -92,6 +98,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_InnerAtRequest_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -109,6 +118,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_InnerAtRequest_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -149,6 +161,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_InnerAtRequest = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_InnerAtRequest_1, diff --git a/vanetza/asn1/security/InnerAtResponse.c b/vanetza/asn1/security/InnerAtResponse.c index 89605f0c3..409dcb51e 100644 --- a/vanetza/asn1/security/InnerAtResponse.c +++ b/vanetza/asn1/security/InnerAtResponse.c @@ -70,6 +70,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_InnerAtResponse_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_requestHash_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_requestHash_constraint_1 }, 0, 0, /* No default value */ @@ -87,6 +90,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_InnerAtResponse_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -104,6 +110,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_InnerAtResponse_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -145,6 +154,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_InnerAtResponse = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_InnerAtResponse_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_InnerAtResponse_1, diff --git a/vanetza/asn1/security/InnerEcRequest.c b/vanetza/asn1/security/InnerEcRequest.c index 72cd8bafd..920575f22 100644 --- a/vanetza/asn1/security/InnerEcRequest.c +++ b/vanetza/asn1/security/InnerEcRequest.c @@ -51,6 +51,9 @@ static asn_TYPE_member_t asn_MBR_Vanetza_Security_InnerEcRequest_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -68,6 +71,9 @@ static asn_TYPE_member_t asn_MBR_Vanetza_Security_InnerEcRequest_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -85,6 +91,9 @@ static asn_TYPE_member_t asn_MBR_Vanetza_Security_InnerEcRequest_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -102,6 +111,9 @@ static asn_TYPE_member_t asn_MBR_Vanetza_Security_InnerEcRequest_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_requestedSubjectAttributes_constr_5, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_requestedSubjectAttributes_constraint_1 }, 0, 0, /* No default value */ @@ -142,6 +154,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_InnerEcRequest = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_InnerEcRequest_1, diff --git a/vanetza/asn1/security/InnerEcRequestSignedForPop.c b/vanetza/asn1/security/InnerEcRequestSignedForPop.c index e7804112d..d98132cb7 100644 --- a/vanetza/asn1/security/InnerEcRequestSignedForPop.c +++ b/vanetza/asn1/security/InnerEcRequestSignedForPop.c @@ -62,6 +62,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_InnerEcRequestSignedForPop = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_InnerEcRequestSignedForPop_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_InnerEcRequestSignedForPop_constraint }, asn_MBR_Vanetza_Security_Ieee1609Dot2Data_1, diff --git a/vanetza/asn1/security/InnerEcResponse.c b/vanetza/asn1/security/InnerEcResponse.c index 369176007..91dc569db 100644 --- a/vanetza/asn1/security/InnerEcResponse.c +++ b/vanetza/asn1/security/InnerEcResponse.c @@ -70,6 +70,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_InnerEcResponse_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_requestHash_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_requestHash_constraint_1 }, 0, 0, /* No default value */ @@ -87,6 +90,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_InnerEcResponse_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -104,6 +110,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_InnerEcResponse_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -145,6 +154,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_InnerEcResponse = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_InnerEcResponse_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_InnerEcResponse_1, diff --git a/vanetza/asn1/security/IssuerIdentifier.c b/vanetza/asn1/security/IssuerIdentifier.c index f84ec23f9..e338213f5 100644 --- a/vanetza/asn1/security/IssuerIdentifier.c +++ b/vanetza/asn1/security/IssuerIdentifier.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_IssuerIdentifier_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_IssuerIdentifier_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -66,6 +72,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_IssuerIdentifier_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -102,6 +111,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_IssuerIdentifier = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_IssuerIdentifier_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_Vanetza_Security_IssuerIdentifier_1, diff --git a/vanetza/asn1/security/KnownLatitude.c b/vanetza/asn1/security/KnownLatitude.c index 6c0691701..13dcd5993 100644 --- a/vanetza/asn1/security/KnownLatitude.c +++ b/vanetza/asn1/security/KnownLatitude.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_KnownLatitude = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_KnownLatitude_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_KnownLatitude_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/security/KnownLongitude.c b/vanetza/asn1/security/KnownLongitude.c index e4da24eb4..82abe3f24 100644 --- a/vanetza/asn1/security/KnownLongitude.c +++ b/vanetza/asn1/security/KnownLongitude.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_KnownLongitude = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_KnownLongitude_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_KnownLongitude_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/security/LaId.c b/vanetza/asn1/security/LaId.c index 9d87c6f63..ebe64921e 100644 --- a/vanetza/asn1/security/LaId.c +++ b/vanetza/asn1/security/LaId.c @@ -69,6 +69,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_LaId = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_LaId_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_LaId_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/security/Latitude.c b/vanetza/asn1/security/Latitude.c index fc0e2a93f..151be4095 100644 --- a/vanetza/asn1/security/Latitude.c +++ b/vanetza/asn1/security/Latitude.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_Latitude = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_Latitude_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_Latitude_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/security/LinkageData.c b/vanetza/asn1/security/LinkageData.c index 2a0719078..eab33d0a4 100644 --- a/vanetza/asn1/security/LinkageData.c +++ b/vanetza/asn1/security/LinkageData.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_LinkageData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_LinkageData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_LinkageData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -95,6 +104,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_LinkageData = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_LinkageData_1, diff --git a/vanetza/asn1/security/LinkageSeed.c b/vanetza/asn1/security/LinkageSeed.c index 57c34ffa4..b32d01cfb 100644 --- a/vanetza/asn1/security/LinkageSeed.c +++ b/vanetza/asn1/security/LinkageSeed.c @@ -69,6 +69,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_LinkageSeed = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_LinkageSeed_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_LinkageSeed_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/security/LinkageValue.c b/vanetza/asn1/security/LinkageValue.c index d4ba26131..98bc2005b 100644 --- a/vanetza/asn1/security/LinkageValue.c +++ b/vanetza/asn1/security/LinkageValue.c @@ -69,6 +69,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_LinkageValue = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_LinkageValue_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_LinkageValue_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/security/Longitude.c b/vanetza/asn1/security/Longitude.c index eb436c743..b07f1a09e 100644 --- a/vanetza/asn1/security/Longitude.c +++ b/vanetza/asn1/security/Longitude.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_Longitude = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_Longitude_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_Longitude_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/security/MissingCrlIdentifier.c b/vanetza/asn1/security/MissingCrlIdentifier.c index b4ef0b21f..3544de7d3 100644 --- a/vanetza/asn1/security/MissingCrlIdentifier.c +++ b/vanetza/asn1/security/MissingCrlIdentifier.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_MissingCrlIdentifier_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_MissingCrlIdentifier_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_MissingCrlIdentifier = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_MissingCrlIdentifier_1, diff --git a/vanetza/asn1/security/NinetyDegreeInt.c b/vanetza/asn1/security/NinetyDegreeInt.c index 82c29abba..8aa6880cc 100644 --- a/vanetza/asn1/security/NinetyDegreeInt.c +++ b/vanetza/asn1/security/NinetyDegreeInt.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_NinetyDegreeInt = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_NinetyDegreeInt_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_NinetyDegreeInt_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/security/OneEightyDegreeInt.c b/vanetza/asn1/security/OneEightyDegreeInt.c index 34cfda0c8..e10a03066 100644 --- a/vanetza/asn1/security/OneEightyDegreeInt.c +++ b/vanetza/asn1/security/OneEightyDegreeInt.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_OneEightyDegreeInt = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_OneEightyDegreeInt_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_OneEightyDegreeInt_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/security/Opaque.c b/vanetza/asn1/security/Opaque.c index 348bcf9cf..501791461 100644 --- a/vanetza/asn1/security/Opaque.c +++ b/vanetza/asn1/security/Opaque.c @@ -31,6 +31,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_Opaque = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OCTET_STRING_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/security/PKRecipientInfo.c b/vanetza/asn1/security/PKRecipientInfo.c index 031fac40d..d76403969 100644 --- a/vanetza/asn1/security/PKRecipientInfo.c +++ b/vanetza/asn1/security/PKRecipientInfo.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_PKRecipientInfo_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_PKRecipientInfo_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_PKRecipientInfo = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_PKRecipientInfo_1, diff --git a/vanetza/asn1/security/PolygonalRegion.c b/vanetza/asn1/security/PolygonalRegion.c index 5c696a257..11d62884f 100644 --- a/vanetza/asn1/security/PolygonalRegion.c +++ b/vanetza/asn1/security/PolygonalRegion.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_PolygonalRegion_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -63,6 +66,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_PolygonalRegion = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_PolygonalRegion_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_Vanetza_Security_PolygonalRegion_1, diff --git a/vanetza/asn1/security/PreSharedKeyRecipientInfo.c b/vanetza/asn1/security/PreSharedKeyRecipientInfo.c index 7b8fafa96..c648ae9a2 100644 --- a/vanetza/asn1/security/PreSharedKeyRecipientInfo.c +++ b/vanetza/asn1/security/PreSharedKeyRecipientInfo.c @@ -69,6 +69,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_PreSharedKeyRecipientInfo = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_PreSharedKeyRecipientInfo_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_PreSharedKeyRecipientInfo_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/security/Psid.c b/vanetza/asn1/security/Psid.c index 70c2d1c08..79e512e20 100644 --- a/vanetza/asn1/security/Psid.c +++ b/vanetza/asn1/security/Psid.c @@ -70,6 +70,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_Psid = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_Psid_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_Psid_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/security/PsidGroupPermissions.c b/vanetza/asn1/security/PsidGroupPermissions.c index ec690ec26..4b280cfbd 100644 --- a/vanetza/asn1/security/PsidGroupPermissions.c +++ b/vanetza/asn1/security/PsidGroupPermissions.c @@ -97,6 +97,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_PsidGroupPermissions_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -114,6 +117,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_PsidGroupPermissions_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, &asn_DFL_3_cmp_1, /* Compare DEFAULT 1 */ @@ -132,6 +138,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_PsidGroupPermissions_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, &asn_DFL_4_cmp_0, /* Compare DEFAULT 0 */ @@ -150,6 +159,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_PsidGroupPermissions_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, &asn_DFL_5_cmp, /* Compare DEFAULT "" */ @@ -193,6 +205,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_PsidGroupPermissions = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_PsidGroupPermissions_1, diff --git a/vanetza/asn1/security/PsidSsp.c b/vanetza/asn1/security/PsidSsp.c index fbe0226cf..9cdb376b0 100644 --- a/vanetza/asn1/security/PsidSsp.c +++ b/vanetza/asn1/security/PsidSsp.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_PsidSsp_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_PsidSsp_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -77,6 +83,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_PsidSsp = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_PsidSsp_1, diff --git a/vanetza/asn1/security/PsidSspRange.c b/vanetza/asn1/security/PsidSspRange.c index 5f5b19345..61072b6af 100644 --- a/vanetza/asn1/security/PsidSspRange.c +++ b/vanetza/asn1/security/PsidSspRange.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_PsidSspRange_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_PsidSspRange_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -77,6 +83,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_PsidSspRange = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_PsidSspRange_1, diff --git a/vanetza/asn1/security/PublicEncryptionKey.c b/vanetza/asn1/security/PublicEncryptionKey.c index 8a21715ae..c7038b75a 100644 --- a/vanetza/asn1/security/PublicEncryptionKey.c +++ b/vanetza/asn1/security/PublicEncryptionKey.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_PublicEncryptionKey_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_PublicEncryptionKey_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_PublicEncryptionKey = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_PublicEncryptionKey_1, diff --git a/vanetza/asn1/security/PublicKeys.c b/vanetza/asn1/security/PublicKeys.c index a4da6e7b2..6f3f6689a 100644 --- a/vanetza/asn1/security/PublicKeys.c +++ b/vanetza/asn1/security/PublicKeys.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_PublicKeys_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_PublicKeys_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -77,6 +83,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_PublicKeys = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_PublicKeys_1, diff --git a/vanetza/asn1/security/PublicVerificationKey.c b/vanetza/asn1/security/PublicVerificationKey.c index 6b073ece3..2ff4a4045 100644 --- a/vanetza/asn1/security/PublicVerificationKey.c +++ b/vanetza/asn1/security/PublicVerificationKey.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_PublicVerificationKey_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_PublicVerificationKey_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -66,6 +72,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_PublicVerificationKey_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -102,6 +111,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_PublicVerificationKey = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_PublicVerificationKey_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_Vanetza_Security_PublicVerificationKey_1, diff --git a/vanetza/asn1/security/RcaCertificateTrustListMessage.c b/vanetza/asn1/security/RcaCertificateTrustListMessage.c index 078ce4209..f4b06bbf2 100644 --- a/vanetza/asn1/security/RcaCertificateTrustListMessage.c +++ b/vanetza/asn1/security/RcaCertificateTrustListMessage.c @@ -62,6 +62,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_RcaCertificateTrustListMessage = #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_RcaCertificateTrustListMessage_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_RcaCertificateTrustListMessage_constraint }, asn_MBR_Vanetza_Security_Ieee1609Dot2Data_1, diff --git a/vanetza/asn1/security/RecipientInfo.c b/vanetza/asn1/security/RecipientInfo.c index 1784f9e5e..a073ba475 100644 --- a/vanetza/asn1/security/RecipientInfo.c +++ b/vanetza/asn1/security/RecipientInfo.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_RecipientInfo_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_RecipientInfo_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -66,6 +72,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_RecipientInfo_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -83,6 +92,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_RecipientInfo_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -100,6 +112,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_RecipientInfo_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -138,6 +153,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_RecipientInfo = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_RecipientInfo_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_Vanetza_Security_RecipientInfo_1, diff --git a/vanetza/asn1/security/RectangularRegion.c b/vanetza/asn1/security/RectangularRegion.c index b4f0b2c12..e7efeb9be 100644 --- a/vanetza/asn1/security/RectangularRegion.c +++ b/vanetza/asn1/security/RectangularRegion.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_RectangularRegion_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_RectangularRegion_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_RectangularRegion = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_RectangularRegion_1, diff --git a/vanetza/asn1/security/RegionAndSubregions.c b/vanetza/asn1/security/RegionAndSubregions.c index 176ec5c8a..83a90243d 100644 --- a/vanetza/asn1/security/RegionAndSubregions.c +++ b/vanetza/asn1/security/RegionAndSubregions.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_RegionAndSubregions_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_RegionAndSubregions_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_RegionAndSubregions = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_RegionAndSubregions_1, diff --git a/vanetza/asn1/security/RootCaEntry.c b/vanetza/asn1/security/RootCaEntry.c index 978e33841..5d93a06cd 100644 --- a/vanetza/asn1/security/RootCaEntry.c +++ b/vanetza/asn1/security/RootCaEntry.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_RootCaEntry_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_RootCaEntry_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -77,6 +83,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_RootCaEntry = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_RootCaEntry_1, diff --git a/vanetza/asn1/security/SequenceOfCertificate.c b/vanetza/asn1/security/SequenceOfCertificate.c index 3406dfac6..e8c4bd3f4 100644 --- a/vanetza/asn1/security/SequenceOfCertificate.c +++ b/vanetza/asn1/security/SequenceOfCertificate.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SequenceOfCertificate_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -51,6 +54,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_SequenceOfCertificate = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_Vanetza_Security_SequenceOfCertificate_1, diff --git a/vanetza/asn1/security/SequenceOfHashedId3.c b/vanetza/asn1/security/SequenceOfHashedId3.c index d3de73265..8219dafc9 100644 --- a/vanetza/asn1/security/SequenceOfHashedId3.c +++ b/vanetza/asn1/security/SequenceOfHashedId3.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SequenceOfHashedId3_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -51,6 +54,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_SequenceOfHashedId3 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_Vanetza_Security_SequenceOfHashedId3_1, diff --git a/vanetza/asn1/security/SequenceOfIdentifiedRegion.c b/vanetza/asn1/security/SequenceOfIdentifiedRegion.c index 3d2b7b95f..dbb6a5c7d 100644 --- a/vanetza/asn1/security/SequenceOfIdentifiedRegion.c +++ b/vanetza/asn1/security/SequenceOfIdentifiedRegion.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SequenceOfIdentifiedRegion_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -51,6 +54,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_SequenceOfIdentifiedRegion = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_Vanetza_Security_SequenceOfIdentifiedRegion_1, diff --git a/vanetza/asn1/security/SequenceOfOctetString.c b/vanetza/asn1/security/SequenceOfOctetString.c index 34149ae8a..b1d6efbd5 100644 --- a/vanetza/asn1/security/SequenceOfOctetString.c +++ b/vanetza/asn1/security/SequenceOfOctetString.c @@ -65,6 +65,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SequenceOfOctetString_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_Member_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_OCTET_STRING_constraint_1 }, 0, 0, /* No default value */ @@ -96,6 +99,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_SequenceOfOctetString = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_SequenceOfOctetString_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_Vanetza_Security_SequenceOfOctetString_1, diff --git a/vanetza/asn1/security/SequenceOfPsid.c b/vanetza/asn1/security/SequenceOfPsid.c index 774f9f95d..87a6fd42e 100644 --- a/vanetza/asn1/security/SequenceOfPsid.c +++ b/vanetza/asn1/security/SequenceOfPsid.c @@ -20,6 +20,9 @@ static asn_TYPE_member_t asn_MBR_Vanetza_Security_SequenceOfPsid_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -51,6 +54,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_SequenceOfPsid = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_Vanetza_Security_SequenceOfPsid_1, diff --git a/vanetza/asn1/security/SequenceOfPsidGroupPermissions.c b/vanetza/asn1/security/SequenceOfPsidGroupPermissions.c index b9c2407a1..07efe4007 100644 --- a/vanetza/asn1/security/SequenceOfPsidGroupPermissions.c +++ b/vanetza/asn1/security/SequenceOfPsidGroupPermissions.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SequenceOfPsidGroupPermissions_1[] = #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -51,6 +54,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_SequenceOfPsidGroupPermissions = #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_Vanetza_Security_SequenceOfPsidGroupPermissions_1, diff --git a/vanetza/asn1/security/SequenceOfPsidSsp.c b/vanetza/asn1/security/SequenceOfPsidSsp.c index 2c4478c88..d098c4501 100644 --- a/vanetza/asn1/security/SequenceOfPsidSsp.c +++ b/vanetza/asn1/security/SequenceOfPsidSsp.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SequenceOfPsidSsp_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -51,6 +54,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_SequenceOfPsidSsp = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_Vanetza_Security_SequenceOfPsidSsp_1, diff --git a/vanetza/asn1/security/SequenceOfPsidSspRange.c b/vanetza/asn1/security/SequenceOfPsidSspRange.c index aae984f4b..0a9e0599f 100644 --- a/vanetza/asn1/security/SequenceOfPsidSspRange.c +++ b/vanetza/asn1/security/SequenceOfPsidSspRange.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SequenceOfPsidSspRange_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -51,6 +54,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_SequenceOfPsidSspRange = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_Vanetza_Security_SequenceOfPsidSspRange_1, diff --git a/vanetza/asn1/security/SequenceOfRecipientInfo.c b/vanetza/asn1/security/SequenceOfRecipientInfo.c index 7cf906a54..b586c26fb 100644 --- a/vanetza/asn1/security/SequenceOfRecipientInfo.c +++ b/vanetza/asn1/security/SequenceOfRecipientInfo.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SequenceOfRecipientInfo_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -51,6 +54,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_SequenceOfRecipientInfo = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_Vanetza_Security_SequenceOfRecipientInfo_1, diff --git a/vanetza/asn1/security/SequenceOfRectangularRegion.c b/vanetza/asn1/security/SequenceOfRectangularRegion.c index d7bd28910..293ae378c 100644 --- a/vanetza/asn1/security/SequenceOfRectangularRegion.c +++ b/vanetza/asn1/security/SequenceOfRectangularRegion.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SequenceOfRectangularRegion_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -51,6 +54,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_SequenceOfRectangularRegion = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_Vanetza_Security_SequenceOfRectangularRegion_1, diff --git a/vanetza/asn1/security/SequenceOfRegionAndSubregions.c b/vanetza/asn1/security/SequenceOfRegionAndSubregions.c index 19cc35120..278e4f8e0 100644 --- a/vanetza/asn1/security/SequenceOfRegionAndSubregions.c +++ b/vanetza/asn1/security/SequenceOfRegionAndSubregions.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SequenceOfRegionAndSubregions_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -51,6 +54,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_SequenceOfRegionAndSubregions = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_Vanetza_Security_SequenceOfRegionAndSubregions_1, diff --git a/vanetza/asn1/security/SequenceOfUint16.c b/vanetza/asn1/security/SequenceOfUint16.c index 939aee388..fff9e51c8 100644 --- a/vanetza/asn1/security/SequenceOfUint16.c +++ b/vanetza/asn1/security/SequenceOfUint16.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SequenceOfUint16_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -51,6 +54,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_SequenceOfUint16 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_Vanetza_Security_SequenceOfUint16_1, diff --git a/vanetza/asn1/security/SequenceOfUint8.c b/vanetza/asn1/security/SequenceOfUint8.c index 6999f8685..d5597fd4f 100644 --- a/vanetza/asn1/security/SequenceOfUint8.c +++ b/vanetza/asn1/security/SequenceOfUint8.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SequenceOfUint8_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -51,6 +54,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_SequenceOfUint8 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_Vanetza_Security_SequenceOfUint8_1, diff --git a/vanetza/asn1/security/ServiceSpecificPermissions.c b/vanetza/asn1/security/ServiceSpecificPermissions.c index 8d7c5d625..ad7e6b3cb 100644 --- a/vanetza/asn1/security/ServiceSpecificPermissions.c +++ b/vanetza/asn1/security/ServiceSpecificPermissions.c @@ -65,6 +65,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_ServiceSpecificPermissions_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_opaque_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_opaque_constraint_1 }, 0, 0, /* No default value */ @@ -82,6 +85,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_ServiceSpecificPermissions_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -117,6 +123,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_ServiceSpecificPermissions = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_ServiceSpecificPermissions_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_Vanetza_Security_ServiceSpecificPermissions_1, diff --git a/vanetza/asn1/security/SharedAtRequest.c b/vanetza/asn1/security/SharedAtRequest.c index e2bb72707..c01df52d7 100644 --- a/vanetza/asn1/security/SharedAtRequest.c +++ b/vanetza/asn1/security/SharedAtRequest.c @@ -89,6 +89,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SharedAtRequest_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -106,6 +109,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SharedAtRequest_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_keyTag_constr_3, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_keyTag_constraint_1 }, 0, 0, /* No default value */ @@ -123,6 +129,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SharedAtRequest_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -140,6 +149,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SharedAtRequest_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_requestedSubjectAttributes_constr_5, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_requestedSubjectAttributes_constraint_1 }, 0, 0, /* No default value */ @@ -180,6 +192,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_SharedAtRequest = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_SharedAtRequest_1, diff --git a/vanetza/asn1/security/Signature.c b/vanetza/asn1/security/Signature.c index 1c277e2ef..ada38b38a 100644 --- a/vanetza/asn1/security/Signature.c +++ b/vanetza/asn1/security/Signature.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_Signature_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_Signature_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -66,6 +72,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_Signature_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -102,6 +111,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_Signature = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_Signature_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_Vanetza_Security_Signature_1, diff --git a/vanetza/asn1/security/SignedData.c b/vanetza/asn1/security/SignedData.c index aceb18567..9269b0784 100644 --- a/vanetza/asn1/security/SignedData.c +++ b/vanetza/asn1/security/SignedData.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SignedData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SignedData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SignedData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -71,6 +80,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SignedData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -111,6 +123,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_SignedData = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_SignedData_1, diff --git a/vanetza/asn1/security/SignedDataPayload.c b/vanetza/asn1/security/SignedDataPayload.c index 6dcbd7c44..8c9db5eb8 100644 --- a/vanetza/asn1/security/SignedDataPayload.c +++ b/vanetza/asn1/security/SignedDataPayload.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SignedDataPayload_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SignedDataPayload_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -89,6 +95,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_SignedDataPayload = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_SignedDataPayload_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_SignedDataPayload_1, diff --git a/vanetza/asn1/security/SignerIdentifier.c b/vanetza/asn1/security/SignerIdentifier.c index bb5cedf38..e33d559f9 100644 --- a/vanetza/asn1/security/SignerIdentifier.c +++ b/vanetza/asn1/security/SignerIdentifier.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SignerIdentifier_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SignerIdentifier_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -66,6 +72,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SignerIdentifier_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -102,6 +111,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_SignerIdentifier = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_SignerIdentifier_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_Vanetza_Security_SignerIdentifier_1, diff --git a/vanetza/asn1/security/SingleEtsiTs103097Certificate.c b/vanetza/asn1/security/SingleEtsiTs103097Certificate.c index fcc349160..42d340ef5 100644 --- a/vanetza/asn1/security/SingleEtsiTs103097Certificate.c +++ b/vanetza/asn1/security/SingleEtsiTs103097Certificate.c @@ -20,6 +20,9 @@ static asn_TYPE_member_t asn_MBR_Vanetza_Security_SingleEtsiTs103097Certificate_ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -57,6 +60,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_SingleEtsiTs103097Certificate = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_SingleEtsiTs103097Certificate_1, diff --git a/vanetza/asn1/security/SspRange.c b/vanetza/asn1/security/SspRange.c index 874737a2f..68a814cde 100644 --- a/vanetza/asn1/security/SspRange.c +++ b/vanetza/asn1/security/SspRange.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SspRange_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SspRange_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -66,6 +72,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SspRange_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -102,6 +111,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_SspRange = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_SspRange_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_Vanetza_Security_SspRange_1, diff --git a/vanetza/asn1/security/SubjectAssurance.c b/vanetza/asn1/security/SubjectAssurance.c index 5c237ff6b..c7a85e9fa 100644 --- a/vanetza/asn1/security/SubjectAssurance.c +++ b/vanetza/asn1/security/SubjectAssurance.c @@ -69,6 +69,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_SubjectAssurance = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_SubjectAssurance_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_SubjectAssurance_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/security/SubjectPermissions.c b/vanetza/asn1/security/SubjectPermissions.c index 43236046d..caf2827c9 100644 --- a/vanetza/asn1/security/SubjectPermissions.c +++ b/vanetza/asn1/security/SubjectPermissions.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SubjectPermissions_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SubjectPermissions_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -84,6 +90,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_SubjectPermissions = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_SubjectPermissions_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_Vanetza_Security_SubjectPermissions_1, diff --git a/vanetza/asn1/security/SymmAlgorithm.c b/vanetza/asn1/security/SymmAlgorithm.c index 514f82275..a854b6f0b 100644 --- a/vanetza/asn1/security/SymmAlgorithm.c +++ b/vanetza/asn1/security/SymmAlgorithm.c @@ -60,6 +60,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_SymmAlgorithm = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_SymmAlgorithm_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeEnumerated_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/security/SymmRecipientInfo.c b/vanetza/asn1/security/SymmRecipientInfo.c index d07b57c22..1560164d8 100644 --- a/vanetza/asn1/security/SymmRecipientInfo.c +++ b/vanetza/asn1/security/SymmRecipientInfo.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SymmRecipientInfo_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SymmRecipientInfo_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_SymmRecipientInfo = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_SymmRecipientInfo_1, diff --git a/vanetza/asn1/security/SymmetricCiphertext.c b/vanetza/asn1/security/SymmetricCiphertext.c index 60c303858..f016d6b48 100644 --- a/vanetza/asn1/security/SymmetricCiphertext.c +++ b/vanetza/asn1/security/SymmetricCiphertext.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SymmetricCiphertext_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -66,6 +69,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_SymmetricCiphertext = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_SymmetricCiphertext_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_Vanetza_Security_SymmetricCiphertext_1, diff --git a/vanetza/asn1/security/SymmetricEncryptionKey.c b/vanetza/asn1/security/SymmetricEncryptionKey.c index 7111429ed..cc37036e8 100644 --- a/vanetza/asn1/security/SymmetricEncryptionKey.c +++ b/vanetza/asn1/security/SymmetricEncryptionKey.c @@ -70,6 +70,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_SymmetricEncryptionKey_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_Vanetza_Security_aes128Ccm_constr_2, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_Vanetza_Security_aes128Ccm_constraint_1 }, 0, 0, /* No default value */ @@ -104,6 +107,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_SymmetricEncryptionKey = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_SymmetricEncryptionKey_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_Vanetza_Security_SymmetricEncryptionKey_1, diff --git a/vanetza/asn1/security/ThreeDLocation.c b/vanetza/asn1/security/ThreeDLocation.c index c7c050f53..37ba58389 100644 --- a/vanetza/asn1/security/ThreeDLocation.c +++ b/vanetza/asn1/security/ThreeDLocation.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_ThreeDLocation_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_ThreeDLocation_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_ThreeDLocation_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -93,6 +102,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_ThreeDLocation = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_ThreeDLocation_1, diff --git a/vanetza/asn1/security/Time32.c b/vanetza/asn1/security/Time32.c index d3fadefa8..7eb07ae0c 100644 --- a/vanetza/asn1/security/Time32.c +++ b/vanetza/asn1/security/Time32.c @@ -59,6 +59,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_Time32 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_Time32_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_Time32_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/security/Time64.c b/vanetza/asn1/security/Time64.c index 76c8cb3e6..f3ed8a0af 100644 --- a/vanetza/asn1/security/Time64.c +++ b/vanetza/asn1/security/Time64.c @@ -79,6 +79,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_Time64 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_Time64_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_Time64_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/security/TlmCertificateTrustListMessage.c b/vanetza/asn1/security/TlmCertificateTrustListMessage.c index ab574fb15..9e06f1484 100644 --- a/vanetza/asn1/security/TlmCertificateTrustListMessage.c +++ b/vanetza/asn1/security/TlmCertificateTrustListMessage.c @@ -62,6 +62,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_TlmCertificateTrustListMessage = #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_TlmCertificateTrustListMessage_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_TlmCertificateTrustListMessage_constraint }, asn_MBR_Vanetza_Security_Ieee1609Dot2Data_1, diff --git a/vanetza/asn1/security/TlmEntry.c b/vanetza/asn1/security/TlmEntry.c index 7c06777cb..bcea710e5 100644 --- a/vanetza/asn1/security/TlmEntry.c +++ b/vanetza/asn1/security/TlmEntry.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_TlmEntry_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_TlmEntry_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -54,6 +60,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_TlmEntry_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -95,6 +104,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_TlmEntry = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_TlmEntry_1, diff --git a/vanetza/asn1/security/ToBeSignedCertificate.c b/vanetza/asn1/security/ToBeSignedCertificate.c index e1e20963e..b4656a14d 100644 --- a/vanetza/asn1/security/ToBeSignedCertificate.c +++ b/vanetza/asn1/security/ToBeSignedCertificate.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_ToBeSignedCertificate_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_ToBeSignedCertificate_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -66,6 +72,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_ToBeSignedCertificate_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -83,6 +92,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_ToBeSignedCertificate_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -100,6 +112,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_ToBeSignedCertificate_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -117,6 +132,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_ToBeSignedCertificate_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -134,6 +152,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_ToBeSignedCertificate_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -151,6 +172,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_ToBeSignedCertificate_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -168,6 +192,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_ToBeSignedCertificate_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -185,6 +212,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_ToBeSignedCertificate_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -202,6 +232,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_ToBeSignedCertificate_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -219,6 +252,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_ToBeSignedCertificate_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -269,6 +305,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_ToBeSignedCertificate = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_ToBeSignedCertificate_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_ToBeSignedCertificate_1, diff --git a/vanetza/asn1/security/ToBeSignedCrl.c b/vanetza/asn1/security/ToBeSignedCrl.c index 86d5c845e..3809eb3e8 100644 --- a/vanetza/asn1/security/ToBeSignedCrl.c +++ b/vanetza/asn1/security/ToBeSignedCrl.c @@ -20,6 +20,9 @@ static asn_TYPE_member_t asn_MBR_Vanetza_Security_entries_5[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -53,6 +56,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_entries_5 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_OF_constraint }, asn_MBR_Vanetza_Security_entries_5, @@ -73,6 +79,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_ToBeSignedCrl_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -90,6 +99,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_ToBeSignedCrl_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -107,6 +119,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_ToBeSignedCrl_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -124,6 +139,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_ToBeSignedCrl_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -164,6 +182,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_ToBeSignedCrl = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_ToBeSignedCrl_1, diff --git a/vanetza/asn1/security/ToBeSignedData.c b/vanetza/asn1/security/ToBeSignedData.c index 73179f337..701e80ca9 100644 --- a/vanetza/asn1/security/ToBeSignedData.c +++ b/vanetza/asn1/security/ToBeSignedData.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_ToBeSignedData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_ToBeSignedData_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_ToBeSignedData = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_ToBeSignedData_1, diff --git a/vanetza/asn1/security/ToBeSignedRcaCtl.c b/vanetza/asn1/security/ToBeSignedRcaCtl.c index b1619773a..6f444ce00 100644 --- a/vanetza/asn1/security/ToBeSignedRcaCtl.c +++ b/vanetza/asn1/security/ToBeSignedRcaCtl.c @@ -62,6 +62,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_ToBeSignedRcaCtl = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_ToBeSignedRcaCtl_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_ToBeSignedRcaCtl_constraint }, asn_MBR_Vanetza_Security_CtlFormat_1, diff --git a/vanetza/asn1/security/ToBeSignedTlmCtl.c b/vanetza/asn1/security/ToBeSignedTlmCtl.c index f3c1e0947..e4b769563 100644 --- a/vanetza/asn1/security/ToBeSignedTlmCtl.c +++ b/vanetza/asn1/security/ToBeSignedTlmCtl.c @@ -62,6 +62,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_ToBeSignedTlmCtl = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_ToBeSignedTlmCtl_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_ToBeSignedTlmCtl_constraint }, asn_MBR_Vanetza_Security_CtlFormat_1, diff --git a/vanetza/asn1/security/TwoDLocation.c b/vanetza/asn1/security/TwoDLocation.c index defffede3..0133533d0 100644 --- a/vanetza/asn1/security/TwoDLocation.c +++ b/vanetza/asn1/security/TwoDLocation.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_TwoDLocation_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_TwoDLocation_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_TwoDLocation = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_TwoDLocation_1, diff --git a/vanetza/asn1/security/Uint16.c b/vanetza/asn1/security/Uint16.c index 90ee9376a..a1e22af03 100644 --- a/vanetza/asn1/security/Uint16.c +++ b/vanetza/asn1/security/Uint16.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_Uint16 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_Uint16_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_Uint16_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/security/Uint3.c b/vanetza/asn1/security/Uint3.c index 0cdf3108c..ffa7921db 100644 --- a/vanetza/asn1/security/Uint3.c +++ b/vanetza/asn1/security/Uint3.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_Uint3 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_Uint3_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_Uint3_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/security/Uint32.c b/vanetza/asn1/security/Uint32.c index 70218a4d6..48aaacc77 100644 --- a/vanetza/asn1/security/Uint32.c +++ b/vanetza/asn1/security/Uint32.c @@ -64,6 +64,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_Uint32 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_Uint32_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_Uint32_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/security/Uint64.c b/vanetza/asn1/security/Uint64.c index 03821e7b9..03dcc181d 100644 --- a/vanetza/asn1/security/Uint64.c +++ b/vanetza/asn1/security/Uint64.c @@ -79,6 +79,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_Uint64 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_Uint64_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_Uint64_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/security/Uint8.c b/vanetza/asn1/security/Uint8.c index bdd7d8ded..c277e8439 100644 --- a/vanetza/asn1/security/Uint8.c +++ b/vanetza/asn1/security/Uint8.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_Uint8 = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_Uint8_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_Uint8_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/security/UnknownLatitude.c b/vanetza/asn1/security/UnknownLatitude.c index e945e49d0..567aff872 100644 --- a/vanetza/asn1/security/UnknownLatitude.c +++ b/vanetza/asn1/security/UnknownLatitude.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_UnknownLatitude = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_UnknownLatitude_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_UnknownLatitude_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/security/UnknownLongitude.c b/vanetza/asn1/security/UnknownLongitude.c index ec71037de..ba2a6bb47 100644 --- a/vanetza/asn1/security/UnknownLongitude.c +++ b/vanetza/asn1/security/UnknownLongitude.c @@ -68,6 +68,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_UnknownLongitude = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_UnknownLongitude_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ Vanetza_Security_UnknownLongitude_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/security/Url.c b/vanetza/asn1/security/Url.c index 459bdb35d..c891c4a3e 100644 --- a/vanetza/asn1/security/Url.c +++ b/vanetza/asn1/security/Url.c @@ -38,6 +38,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_Url = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_Url_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ IA5String_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/security/ValidityPeriod.c b/vanetza/asn1/security/ValidityPeriod.c index 0f5cf92ec..b9e62ac90 100644 --- a/vanetza/asn1/security/ValidityPeriod.c +++ b/vanetza/asn1/security/ValidityPeriod.c @@ -20,6 +20,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_ValidityPeriod_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -37,6 +40,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_ValidityPeriod_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -75,6 +81,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_ValidityPeriod = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ SEQUENCE_constraint }, asn_MBR_Vanetza_Security_ValidityPeriod_1, diff --git a/vanetza/asn1/security/VerificationKeyIndicator.c b/vanetza/asn1/security/VerificationKeyIndicator.c index def856907..166c9457e 100644 --- a/vanetza/asn1/security/VerificationKeyIndicator.c +++ b/vanetza/asn1/security/VerificationKeyIndicator.c @@ -32,6 +32,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_VerificationKeyIndicator_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -49,6 +52,9 @@ asn_TYPE_member_t asn_MBR_Vanetza_Security_VerificationKeyIndicator_1[] = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ @@ -84,6 +90,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_VerificationKeyIndicator = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_VerificationKeyIndicator_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_Vanetza_Security_VerificationKeyIndicator_1, diff --git a/vanetza/asn1/security/Version.c b/vanetza/asn1/security/Version.c index f86878b03..b5115378e 100644 --- a/vanetza/asn1/security/Version.c +++ b/vanetza/asn1/security/Version.c @@ -31,6 +31,9 @@ asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_Version = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NativeInteger_constraint }, 0, 0, /* Defined elsewhere */ diff --git a/vanetza/asn1/support/ANY.c b/vanetza/asn1/support/ANY.c index f189068f4..6440d72ce 100644 --- a/vanetza/asn1/support/ANY.c +++ b/vanetza/asn1/support/ANY.c @@ -76,6 +76,9 @@ asn_TYPE_descriptor_t asn_DEF_ANY = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ asn_generic_no_constraint }, /* No constraints */ 0, 0, /* No members */ diff --git a/vanetza/asn1/support/ANY_jer.c b/vanetza/asn1/support/ANY_jer.c index 93bd4b628..87feeeaa5 100644 --- a/vanetza/asn1/support/ANY_jer.c +++ b/vanetza/asn1/support/ANY_jer.c @@ -7,11 +7,12 @@ #include "ANY.h" asn_enc_rval_t -ANY_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, +ANY_encode_jer(const asn_TYPE_descriptor_t *td, const asn_jer_constraints_t *constraints, + 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); + return OCTET_STRING_encode_jer(td, constraints, sptr, ilevel, flags, cb, app_key); } diff --git a/vanetza/asn1/support/BIT_STRING.c b/vanetza/asn1/support/BIT_STRING.c index a5e8826de..8469c0c61 100644 --- a/vanetza/asn1/support/BIT_STRING.c +++ b/vanetza/asn1/support/BIT_STRING.c @@ -40,7 +40,7 @@ asn_TYPE_operation_t asn_OP_BIT_STRING = { 0, #endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) - OCTET_STRING_decode_jer_hex, + BIT_STRING_decode_jer, BIT_STRING_encode_jer, #else 0, @@ -91,6 +91,9 @@ asn_TYPE_descriptor_t asn_DEF_BIT_STRING = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ BIT_STRING_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/support/BIT_STRING.h b/vanetza/asn1/support/BIT_STRING.h index 9d699abcc..208557581 100644 --- a/vanetza/asn1/support/BIT_STRING.h +++ b/vanetza/asn1/support/BIT_STRING.h @@ -46,7 +46,7 @@ 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_decoder_f BIT_STRING_decode_jer; jer_type_encoder_f BIT_STRING_encode_jer; #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ diff --git a/vanetza/asn1/support/BIT_STRING_jer.c b/vanetza/asn1/support/BIT_STRING_jer.c index 975a085ae..9597ea6e0 100644 --- a/vanetza/asn1/support/BIT_STRING_jer.c +++ b/vanetza/asn1/support/BIT_STRING_jer.c @@ -3,24 +3,32 @@ * All rights reserved. * Redistribution and modifications are permitted subject to BSD license. */ +#include "asn_application.h" #include "asn_internal.h" #include "BIT_STRING.h" +#include "INTEGER.h" 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, +BIT_STRING_encode_jer(const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + 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; + const asn_jer_constraints_t* cts = constraints ? + constraints : td->encoding_constraints.jer_constraints; uint8_t *buf; uint8_t *end; (void)ilevel; (void)flags; + int jmin = flags & JER_F_MINIFIED; + if(!st || !st->buf) ASN__ENCODE_FAILED; @@ -32,31 +40,256 @@ BIT_STRING_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, /* * 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; + if(cts->size != -1) { /* Fixed size */ + *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]; } - *p++ = h2c[*buf >> 4]; - *p++ = h2c[*buf & 0x0F]; - } - ASN__CALLBACK(scratch, p - scratch); - p = scratch; + 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); + } else { /* Variable size */ + ASN__CALLBACK("{", 1); + if(!jmin) { + ASN__TEXT_INDENT(1, ilevel + 1); + ASN__CALLBACK("\"value\": ", 9); + } else { + ASN__CALLBACK("\"value\":", 8); + } + *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]; + } - 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; + + 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__CALLBACK(",", 1); + if (!jmin) { + ASN__TEXT_INDENT(1, ilevel + 1); + } + + if(!jmin) { + ASN__CALLBACK("\"length\": ", 10); + } else { + ASN__CALLBACK("\"length\":", 9); + } + int wr = snprintf(scratch, sizeof(scratch), "%lu", + st->size * 8 - (st->bits_unused)); + if(wr < 0 || wr >= sizeof(scratch)) { + ASN__ENCODE_FAILED; + } + ASN__CALLBACK(scratch, wr); + if (!jmin) { + ASN__TEXT_INDENT(1, ilevel); + } + ASN__CALLBACK("}", 1); } - *p++ = '"'; - ASN__CALLBACK(scratch, p - scratch); ASN__ENCODED_OK(er); cb_failed: ASN__ENCODE_FAILED; } + +/* + * Return a standardized complex structure. + */ +#undef RETURN +#define RETURN(_code) \ + do { \ + rval.code = _code; \ + rval.consumed = consumed_myself; \ + return rval; \ + } while(0) + +#define SKIPCHAR(_c) \ + do { \ + int found = 0; \ + for (; p < pend; ++p) { \ + if (*p == _c) { \ + found = 1; ++p; \ + break; \ + } \ + } \ + if(!found) RETURN(RC_WMORE); \ + } while(0) + +asn_dec_rval_t +BIT_STRING_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, + const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + void **sptr, + const void *buf_ptr, size_t size) { + BIT_STRING_t *st = (BIT_STRING_t *)*sptr; + const asn_jer_constraints_t *cts = constraints ? + constraints : td->encoding_constraints.jer_constraints; + asn_dec_rval_t rval; /* Return value from the decoder */ + ssize_t consumed_myself = 0; /* Consumed bytes from buf_ptr */ + + /* + * Create the string if does not exist. + */ + if(!st) { + st = (BIT_STRING_t *)(*sptr = CALLOC(1, sizeof(*st))); + if(!st) ASN__DECODE_FAILED; + } + + const char *p = (const char*)buf_ptr; + const char *pend = p + size; + + if(cts->size == -1) { + SKIPCHAR('{'); + SKIPCHAR('"'); + if(pend-p < 5) RETURN(RC_WMORE); + if(0 != memcmp(p, "value", 5)) RETURN(RC_FAIL); + p += 5; + SKIPCHAR('"'); + SKIPCHAR(':'); + } + + /* bitstring value */ + SKIPCHAR('"'); + + /* calculate size */ + const char* p0 = p; + SKIPCHAR('"'); + const char* p1 = p - 1; + p = p0; + + void *nptr = REALLOC(st->buf, (p1-p0 + 1) / 2 + 1); + if(!nptr) RETURN(RC_FAIL); + st->buf = (uint8_t *)nptr; + uint8_t *buf = st->buf; + unsigned int clv = 0; + int half = 0; + + for(; p < p1; p++) { + int ch = *(const unsigned char *)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*/ + 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(RC_FAIL); + } + if(half++) { + half = 0; + *buf++ = clv; + } + } + + /* + * Check partial decoding. + */ + if(half) { + RETURN(RC_FAIL); + } + + st->size = buf - st->buf; /* Adjust the buffer size */ + st->buf[st->size] = 0; /* Courtesy termination */ + + SKIPCHAR('"'); + + if(cts->size == -1) { + SKIPCHAR(','); + SKIPCHAR('"'); + if(pend-p < 6) RETURN(RC_WMORE); + if(0 != memcmp(p, "length", 6)) RETURN(RC_FAIL); + p += 6; + SKIPCHAR('"'); + SKIPCHAR(':'); + p0 = p; + /* Skip whitespace, numbers, for length calc for INTEGER dec + * Stop on first non-whitespace/non-number */ + int numbered = 0; + for (; p < pend; ++p) { + switch (*p) { + case 0x09: case 0x0a: case 0x0c: case 0x0d: + case 0x20: + if(!numbered) continue; + else break; + /* Ignore whitespace */ + case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: /*01234*/ + case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: /*56789*/ + case 0x2d: /*-*/ + numbered = 1; + continue; + } + if(numbered) break; + } + if(!numbered) RETURN(RC_FAIL); + + unsigned long length; + + INTEGER_t integer = { 0 }; + void *integer_ptr = (void *)&integer; + memset(&integer, 0, sizeof(integer)); + + asn_dec_rval_t dec = + INTEGER_decode_jer(NULL, &asn_DEF_INTEGER, NULL, &integer_ptr, p0, p-p0); + if(dec.code == RC_OK) { + if(asn_INTEGER2ulong(&integer, (unsigned long *)&length)) { + RETURN(RC_FAIL); + } + } else { + RETURN(RC_FAIL); + } + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_INTEGER, &integer); + + if(dec.code != RC_OK) RETURN(RC_FAIL); + st->bits_unused = (st->size * 8) - length; + + SKIPCHAR('}'); + } else { + if(st->size * 8 < cts->size) { + RETURN(RC_FAIL); + } + st->bits_unused = (st->size * 8) - cts->size; + } + + consumed_myself = (const char *)p - (const char *)buf_ptr; + RETURN(RC_OK); +} + diff --git a/vanetza/asn1/support/BMPString.c b/vanetza/asn1/support/BMPString.c index 0db15c388..a61a83461 100644 --- a/vanetza/asn1/support/BMPString.c +++ b/vanetza/asn1/support/BMPString.c @@ -99,6 +99,9 @@ asn_TYPE_descriptor_t asn_DEF_BMPString = { #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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ BMPString_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/support/BMPString_jer.c b/vanetza/asn1/support/BMPString_jer.c index 93c394fdf..a5aa11261 100644 --- a/vanetza/asn1/support/BMPString_jer.c +++ b/vanetza/asn1/support/BMPString_jer.c @@ -9,11 +9,12 @@ asn_dec_rval_t BMPString_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, void **sptr, + const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, 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); + rc = OCTET_STRING_decode_jer_utf8(opt_codec_ctx, td, constraints, sptr, buf_ptr, size); if(rc.code == RC_OK) { /* * Now we have a whole string in UTF-8 format. @@ -73,8 +74,10 @@ BMPString_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, } asn_enc_rval_t -BMPString_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, - int ilevel, enum jer_encoder_flags_e flags, +BMPString_encode_jer(const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t* constraints, + 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}; diff --git a/vanetza/asn1/support/BOOLEAN.c b/vanetza/asn1/support/BOOLEAN.c index 655f13f7a..1fbd4e6db 100644 --- a/vanetza/asn1/support/BOOLEAN.c +++ b/vanetza/asn1/support/BOOLEAN.c @@ -84,6 +84,9 @@ asn_TYPE_descriptor_t asn_DEF_BOOLEAN = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ asn_generic_no_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/support/BOOLEAN_jer.c b/vanetza/asn1/support/BOOLEAN_jer.c index 0355688b5..d161b604a 100644 --- a/vanetza/asn1/support/BOOLEAN_jer.c +++ b/vanetza/asn1/support/BOOLEAN_jer.c @@ -34,8 +34,9 @@ BOOLEAN__jer_body_decode(const asn_TYPE_descriptor_t *td, void *sptr, 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) { + const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t* constraints, + 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); @@ -43,8 +44,9 @@ BOOLEAN_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, asn_enc_rval_t -BOOLEAN_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, - int ilevel, enum jer_encoder_flags_e flags, +BOOLEAN_encode_jer(const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + 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}; diff --git a/vanetza/asn1/support/ENUMERATED.c b/vanetza/asn1/support/ENUMERATED.c index 799392c5b..c4eaaa895 100644 --- a/vanetza/asn1/support/ENUMERATED.c +++ b/vanetza/asn1/support/ENUMERATED.c @@ -85,6 +85,9 @@ asn_TYPE_descriptor_t asn_DEF_ENUMERATED = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ asn_generic_no_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/support/ENUMERATED_jer.c b/vanetza/asn1/support/ENUMERATED_jer.c index 1b33ca76e..97915b632 100644 --- a/vanetza/asn1/support/ENUMERATED_jer.c +++ b/vanetza/asn1/support/ENUMERATED_jer.c @@ -81,7 +81,7 @@ ENUMERATED__jer_body_decode(const asn_TYPE_descriptor_t *td, void *sptr, int decoded = 0; for (lp = lstart; lp < lstop; ++lp) { - if (*lp == 0x22 /* '"' */) { + if (*lp == 0x22 /* '"' */) { const asn_INTEGER_enum_map_t *el; el = ENUMERATED_jer_map_enum2value( (const asn_INTEGER_specifics_t *) @@ -117,8 +117,9 @@ ENUMERATED__jer_body_decode(const asn_TYPE_descriptor_t *td, void *sptr, 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) { + const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + 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/vanetza/asn1/support/GeneralString.c b/vanetza/asn1/support/GeneralString.c index d1b43aa0f..72c63dbc1 100644 --- a/vanetza/asn1/support/GeneralString.c +++ b/vanetza/asn1/support/GeneralString.c @@ -87,6 +87,9 @@ asn_TYPE_descriptor_t asn_DEF_GeneralString = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ asn_generic_unknown_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/support/GeneralizedTime.c b/vanetza/asn1/support/GeneralizedTime.c index 2b89af87c..b7e24b273 100644 --- a/vanetza/asn1/support/GeneralizedTime.c +++ b/vanetza/asn1/support/GeneralizedTime.c @@ -251,6 +251,9 @@ asn_TYPE_descriptor_t asn_DEF_GeneralizedTime = { #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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ GeneralizedTime_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/support/GeneralizedTime_jer.c b/vanetza/asn1/support/GeneralizedTime_jer.c index fe6c8bf19..84ee54cd8 100644 --- a/vanetza/asn1/support/GeneralizedTime_jer.c +++ b/vanetza/asn1/support/GeneralizedTime_jer.c @@ -16,8 +16,10 @@ #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, +GeneralizedTime_encode_jer(const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + 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; @@ -33,7 +35,7 @@ GeneralizedTime_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, gt = asn_time2GT_frac(0, &tm, fv, fd, 1); if(!gt) ASN__ENCODE_FAILED; - rv = OCTET_STRING_encode_jer_utf8(td, sptr, ilevel, flags, + rv = OCTET_STRING_encode_jer_utf8(td, constraints, sptr, ilevel, flags, cb, app_key); ASN_STRUCT_FREE(asn_DEF_GeneralizedTime, gt); return rv; diff --git a/vanetza/asn1/support/GraphicString.c b/vanetza/asn1/support/GraphicString.c index e2444c6fd..cd27ee294 100644 --- a/vanetza/asn1/support/GraphicString.c +++ b/vanetza/asn1/support/GraphicString.c @@ -87,6 +87,9 @@ asn_TYPE_descriptor_t asn_DEF_GraphicString = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ asn_generic_unknown_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/support/IA5String.c b/vanetza/asn1/support/IA5String.c index 1582e78c3..6553427e2 100644 --- a/vanetza/asn1/support/IA5String.c +++ b/vanetza/asn1/support/IA5String.c @@ -94,6 +94,9 @@ asn_TYPE_descriptor_t asn_DEF_IA5String = { #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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ IA5String_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/support/INTEGER.c b/vanetza/asn1/support/INTEGER.c index 66c8fd338..2fab5eb5a 100644 --- a/vanetza/asn1/support/INTEGER.c +++ b/vanetza/asn1/support/INTEGER.c @@ -87,6 +87,9 @@ asn_TYPE_descriptor_t asn_DEF_INTEGER = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ asn_generic_no_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/support/INTEGER_jer.c b/vanetza/asn1/support/INTEGER_jer.c index 0ebfbabf3..2606cebc8 100644 --- a/vanetza/asn1/support/INTEGER_jer.c +++ b/vanetza/asn1/support/INTEGER_jer.c @@ -181,8 +181,9 @@ INTEGER__jer_body_decode(const asn_TYPE_descriptor_t *td, void *sptr, 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) { + const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + 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); @@ -190,8 +191,9 @@ INTEGER_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, asn_enc_rval_t -INTEGER_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, - int ilevel, enum jer_encoder_flags_e flags, +INTEGER_encode_jer(const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + 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}; diff --git a/vanetza/asn1/support/ISO646String.c b/vanetza/asn1/support/ISO646String.c index 49f7b8f82..7e9088070 100644 --- a/vanetza/asn1/support/ISO646String.c +++ b/vanetza/asn1/support/ISO646String.c @@ -94,6 +94,9 @@ asn_TYPE_descriptor_t asn_DEF_ISO646String = { #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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ ISO646String_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/support/NULL.c b/vanetza/asn1/support/NULL.c index 0a74f6283..ddf037bc3 100644 --- a/vanetza/asn1/support/NULL.c +++ b/vanetza/asn1/support/NULL.c @@ -84,6 +84,9 @@ asn_TYPE_descriptor_t asn_DEF_NULL = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ asn_generic_no_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/support/NULL_jer.c b/vanetza/asn1/support/NULL_jer.c index d45e080f4..0434e236e 100644 --- a/vanetza/asn1/support/NULL_jer.c +++ b/vanetza/asn1/support/NULL_jer.c @@ -8,8 +8,10 @@ #include "NULL.h" 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, +NULL_encode_jer(const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, 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}; @@ -27,8 +29,8 @@ NULL_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, 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) { +NULL__jer_body_decode(const asn_TYPE_descriptor_t *td, + void *sptr, const void *chunk_buf, size_t chunk_size) { (void)td; (void)sptr; @@ -44,8 +46,9 @@ NULL__jer_body_decode(const asn_TYPE_descriptor_t *td, void *sptr, 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) { + const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + 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/vanetza/asn1/support/NativeEnumerated.c b/vanetza/asn1/support/NativeEnumerated.c index 999480300..0192c3b00 100644 --- a/vanetza/asn1/support/NativeEnumerated.c +++ b/vanetza/asn1/support/NativeEnumerated.c @@ -91,6 +91,9 @@ asn_TYPE_descriptor_t asn_DEF_NativeEnumerated = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ asn_generic_no_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/support/NativeEnumerated_jer.c b/vanetza/asn1/support/NativeEnumerated_jer.c index 03d1d7577..23b4338ae 100644 --- a/vanetza/asn1/support/NativeEnumerated_jer.c +++ b/vanetza/asn1/support/NativeEnumerated_jer.c @@ -11,7 +11,8 @@ */ asn_dec_rval_t NativeEnumerated_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, - const asn_TYPE_descriptor_t *td, void **sptr, + const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, void **sptr, const void *buf_ptr, size_t size) { const asn_INTEGER_specifics_t *specs = (const asn_INTEGER_specifics_t *)td->specifics; @@ -26,7 +27,7 @@ NativeEnumerated_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, } memset(&st, 0, sizeof(st)); - rval = ENUMERATED_decode_jer(opt_codec_ctx, td, &st_ptr, buf_ptr, size); + rval = ENUMERATED_decode_jer(opt_codec_ctx, td, constraints, &st_ptr, buf_ptr, size); if(rval.code == RC_OK) { long l; if((specs&&specs->field_unsigned) @@ -50,8 +51,9 @@ NativeEnumerated_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, } asn_enc_rval_t -NativeEnumerated_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, - int ilevel, enum jer_encoder_flags_e flags, +NativeEnumerated_encode_jer(const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + 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; diff --git a/vanetza/asn1/support/NativeInteger.c b/vanetza/asn1/support/NativeInteger.c index 585daf7bb..9920a20d6 100644 --- a/vanetza/asn1/support/NativeInteger.c +++ b/vanetza/asn1/support/NativeInteger.c @@ -92,6 +92,9 @@ asn_TYPE_descriptor_t asn_DEF_NativeInteger = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ asn_generic_no_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/support/NativeInteger_jer.c b/vanetza/asn1/support/NativeInteger_jer.c index 17abfa641..999b93e0d 100644 --- a/vanetza/asn1/support/NativeInteger_jer.c +++ b/vanetza/asn1/support/NativeInteger_jer.c @@ -11,8 +11,9 @@ */ 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, + const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t* constraints, + void **sptr, const void *buf_ptr, size_t size) { const asn_INTEGER_specifics_t *specs = (const asn_INTEGER_specifics_t *)td->specifics; @@ -27,7 +28,7 @@ NativeInteger_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, } memset(&st, 0, sizeof(st)); - rval = INTEGER_decode_jer(opt_codec_ctx, td, &st_ptr, buf_ptr, size); + rval = INTEGER_decode_jer(opt_codec_ctx, td, constraints, &st_ptr, buf_ptr, size); if(rval.code == RC_OK) { long l; if((specs&&specs->field_unsigned) @@ -51,8 +52,10 @@ NativeInteger_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, } asn_enc_rval_t -NativeInteger_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, - int ilevel, enum jer_encoder_flags_e flags, +NativeInteger_encode_jer(const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t* constraints, + 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; diff --git a/vanetza/asn1/support/NativeReal.c b/vanetza/asn1/support/NativeReal.c index d526277fc..8775d6aa8 100644 --- a/vanetza/asn1/support/NativeReal.c +++ b/vanetza/asn1/support/NativeReal.c @@ -111,6 +111,9 @@ asn_TYPE_descriptor_t asn_DEF_NativeReal = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ asn_generic_no_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/support/NativeReal_jer.c b/vanetza/asn1/support/NativeReal_jer.c index 9124ba282..942a55d1c 100644 --- a/vanetza/asn1/support/NativeReal_jer.c +++ b/vanetza/asn1/support/NativeReal_jer.c @@ -12,13 +12,14 @@ */ 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) { + const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + 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); + rval = REAL_decode_jer(opt_codec_ctx, td, constraints, (void **)&stp, buf_ptr, size); if(rval.code == RC_OK) { double d; if(asn_REAL2double(&st, &d) || NativeReal__set(td, sptr, d) < 0) { @@ -34,11 +35,13 @@ NativeReal_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, } 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) { + NativeReal_encode_jer(const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + 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; + double native; REAL_t tmpreal; (void)ilevel; @@ -48,7 +51,7 @@ asn_enc_rval_t if(asn_double2REAL(&tmpreal, native)) ASN__ENCODE_FAILED; - er = REAL_encode_jer(td, &tmpreal, ilevel, flags, cb, app_key); + er = REAL_encode_jer(td, constraints, &tmpreal, ilevel, flags, cb, app_key); ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_REAL, &tmpreal); return er; } diff --git a/vanetza/asn1/support/NumericString.c b/vanetza/asn1/support/NumericString.c index d87745b25..f4225fdee 100644 --- a/vanetza/asn1/support/NumericString.c +++ b/vanetza/asn1/support/NumericString.c @@ -114,6 +114,9 @@ asn_TYPE_descriptor_t asn_DEF_NumericString = { #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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ NumericString_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/support/OBJECT_IDENTIFIER.c b/vanetza/asn1/support/OBJECT_IDENTIFIER.c index 06644c524..0660e9426 100644 --- a/vanetza/asn1/support/OBJECT_IDENTIFIER.c +++ b/vanetza/asn1/support/OBJECT_IDENTIFIER.c @@ -92,6 +92,9 @@ asn_TYPE_descriptor_t asn_DEF_OBJECT_IDENTIFIER = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ OBJECT_IDENTIFIER_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/support/OBJECT_IDENTIFIER_jer.c b/vanetza/asn1/support/OBJECT_IDENTIFIER_jer.c index e12cb55bc..2b6ed6f48 100644 --- a/vanetza/asn1/support/OBJECT_IDENTIFIER_jer.c +++ b/vanetza/asn1/support/OBJECT_IDENTIFIER_jer.c @@ -31,10 +31,10 @@ OBJECT_IDENTIFIER__jer_body_decode(const asn_TYPE_descriptor_t *td, void *sptr, } --chunk_end; for (; chunk_end >= p; --chunk_end) { - if (*chunk_end == CQUOTE) + if (*chunk_end == CQUOTE) break; } - if (chunk_end - p < 0) + if (chunk_end - p < 0) return JPBD_BROKEN_ENCODING; chunk_size = chunk_end - p; chunk_buf = p; @@ -71,8 +71,9 @@ OBJECT_IDENTIFIER__jer_body_decode(const asn_TYPE_descriptor_t *td, void *sptr, 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, + const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + void **sptr, const void *buf_ptr, size_t size) { return jer_decode_primitive(opt_codec_ctx, td, sptr, sizeof(OBJECT_IDENTIFIER_t), @@ -80,8 +81,10 @@ OBJECT_IDENTIFIER_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, } 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, +OBJECT_IDENTIFIER_encode_jer(const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + 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}; diff --git a/vanetza/asn1/support/OCTET_STRING.c b/vanetza/asn1/support/OCTET_STRING.c index da7fd0df8..0fcdbf9d5 100644 --- a/vanetza/asn1/support/OCTET_STRING.c +++ b/vanetza/asn1/support/OCTET_STRING.c @@ -93,6 +93,9 @@ asn_TYPE_descriptor_t asn_DEF_OCTET_STRING = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ asn_generic_no_constraint }, 0, 0, /* No members */ @@ -253,7 +256,7 @@ OCTET_STRING_compare(const asn_TYPE_descriptor_t *td, const void *aptr, int OCTET_STRING_copy(const asn_TYPE_descriptor_t *td, void **aptr, const void *bptr) { - const asn_OCTET_STRING_specifics_t *specs = + 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; diff --git a/vanetza/asn1/support/OCTET_STRING_aper.c b/vanetza/asn1/support/OCTET_STRING_aper.c index aad493a98..738069634 100644 --- a/vanetza/asn1/support/OCTET_STRING_aper.c +++ b/vanetza/asn1/support/OCTET_STRING_aper.c @@ -59,35 +59,51 @@ OCTET_STRING_decode_aper(const asn_codec_ctx_t *opt_codec_ctx, } 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; + if(cval->flags & APC_CONSTRAINED) { + /* follow power of 2 rule */ + if (cval->range_bits <= 2) { + unit_bits = 2; + } else { + if (cval->range_bits <= 4) { + unit_bits = 4; + /* otherwise, unit_bits = 8; */ + } + } + /* unit_bits = cval->range_bits; */ + ASN_DEBUG("APER decoding ASN_OSUBV_STR range_bits = %d unit_bits = %d\n", + cval->range_bits, unit_bits); + } bpc = OS__BPC_CHAR; break; case ASN_OSUBV_U16: canonical_unit_bits = unit_bits = 16; - if(cval->flags & APC_CONSTRAINED) + if(cval->flags & APC_CONSTRAINED) { unit_bits = cval->range_bits; + ASN_DEBUG("APER decoding ASN_OSUBV_U16 range_bits = %d\n", cval->range_bits); + } bpc = OS__BPC_U16; break; case ASN_OSUBV_U32: canonical_unit_bits = unit_bits = 32; - if(cval->flags & APC_CONSTRAINED) + if(cval->flags & APC_CONSTRAINED) { unit_bits = cval->range_bits; + ASN_DEBUG("APER decoding ASN_OSUBV_U32 range_bits = %d\n", cval->range_bits); + } bpc = OS__BPC_U32; break; +/* + case ASN_OSUBV_ANY: + ASN_DEBUG("Unrecognized subvariant %d", specs->subvariant); + RETURN(RC_FAIL); +*/ + case ASN_OSUBV_BIT: + default: + canonical_unit_bits = unit_bits = 1; + bpc = OS__BPC_BIT; + break; } /* @@ -266,42 +282,54 @@ OCTET_STRING_encode_aper(const asn_TYPE_descriptor_t *td, 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_ANY: case ASN_OSUBV_STR: canonical_unit_bits = unit_bits = 8; -/* - if(cval->flags & APC_CONSTRAINED) - unit_bits = 8; -*/ + if(cval->flags & APC_CONSTRAINED) { + /* follow power of 2 rule */ + if (cval->range_bits <= 2) { + unit_bits = 2; + } else { + if (cval->range_bits <= 4) + unit_bits = 4; + /* otherwise, unit_bits = 8; */ + } + /* unit_bits = cval->range_bits; */ + ASN_DEBUG("APER encoding ASN_OSUBV_STR range_bits = %d unit_bits = %d\n", + cval->range_bits, unit_bits); + } bpc = OS__BPC_CHAR; sizeinunits = st->size; break; case ASN_OSUBV_U16: canonical_unit_bits = unit_bits = 16; - if(cval->flags & APC_CONSTRAINED) + if(cval->flags & APC_CONSTRAINED) { unit_bits = cval->range_bits; + ASN_DEBUG("APER encoding ASN_OSUBV_U16 range_bits = %d\n", 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) + if(cval->flags & APC_CONSTRAINED) { unit_bits = cval->range_bits; + ASN_DEBUG("APER encoding ASN_OSUBV_U32 range_bits = %d\n", cval->range_bits); + } bpc = OS__BPC_U32; sizeinunits = st->size / 4; break; +/* + case ASN_OSUBV_ANY: + ASN__ENCODE_FAILED; +*/ + case ASN_OSUBV_BIT: + default: + 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; } ASN_DEBUG("Encoding %s into %d units of %d bits" diff --git a/vanetza/asn1/support/OCTET_STRING_jer.c b/vanetza/asn1/support/OCTET_STRING_jer.c index 2ffa87203..a2b80c91d 100644 --- a/vanetza/asn1/support/OCTET_STRING_jer.c +++ b/vanetza/asn1/support/OCTET_STRING_jer.c @@ -8,8 +8,10 @@ #include "BIT_STRING.h" /* 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, +OCTET_STRING_encode_jer(const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + 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; @@ -155,8 +157,10 @@ OCTET_STRING__handle_control_chars(void *struct_ptr, const void *chunk_buf, size } 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, +OCTET_STRING_encode_jer_utf8(const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + 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 }; @@ -227,7 +231,7 @@ static ssize_t OCTET_STRING__convert_hexadecimal(void *sptr, const void *chunk_b } --pend; for (; pend >= p; --pend) { - if (*pend == CQUOTE) + if (*pend == CQUOTE) break; } if (pend - p < 0) return -1; @@ -248,9 +252,8 @@ static ssize_t OCTET_STRING__convert_hexadecimal(void *sptr, const void *chunk_b for(; p < pend; p++) { int ch = *(const unsigned char *)p; switch(ch) { - case 0x09: case 0x0a: case 0x0c: case 0x0d: - case 0x20: - /* Ignore whitespace */ + /* allow LF, FF, CR, space */ + case 0x0a: case 0x0c: case 0x0d: case 0x20: continue; case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: /*01234*/ case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: /*56789*/ @@ -358,10 +361,10 @@ OCTET_STRING__convert_entrefs(void *sptr, const void *chunk_buf, } --pend; for(; pend >= p; --pend) { - if (*pend == CQUOTE) + if (*pend == CQUOTE) break; } - if(pend - p < 0) + if(pend - p < 0) return -1; /* Reallocate buffer */ @@ -532,7 +535,7 @@ OCTET_STRING__decode_jer( } } } - + /* Restore parsing context */ ctx = (asn_struct_ctx_t *)(((char *)*sptr) + specs->ctx_offset); @@ -554,7 +557,9 @@ OCTET_STRING__decode_jer( */ 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 asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + void **sptr, const void *buf_ptr, size_t size) { return OCTET_STRING__decode_jer(opt_codec_ctx, td, sptr, buf_ptr, size, 0, @@ -566,8 +571,9 @@ OCTET_STRING_decode_jer_hex(const asn_codec_ctx_t *opt_codec_ctx, */ 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) { + const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + 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, diff --git a/vanetza/asn1/support/OPEN_TYPE_jer.c b/vanetza/asn1/support/OPEN_TYPE_jer.c index e081b3eb6..d209e2de1 100644 --- a/vanetza/asn1/support/OPEN_TYPE_jer.c +++ b/vanetza/asn1/support/OPEN_TYPE_jer.c @@ -9,8 +9,9 @@ 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) { + 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 */ @@ -103,7 +104,8 @@ OPEN_TYPE_jer_get(const asn_codec_ctx_t *opt_codec_ctx, + 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); + opt_codec_ctx, selected.type_descriptor, selected.type_descriptor->encoding_constraints.jer_constraints, + &inner_value, ptr, size); ADVANCE(rv.consumed); rv.consumed = 0; switch(rv.code) { diff --git a/vanetza/asn1/support/OPEN_TYPE_oer.c b/vanetza/asn1/support/OPEN_TYPE_oer.c index 0a98befa8..440ed7c24 100644 --- a/vanetza/asn1/support/OPEN_TYPE_oer.c +++ b/vanetza/asn1/support/OPEN_TYPE_oer.c @@ -94,7 +94,7 @@ 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; + asn_TYPE_member_t *elm; unsigned present; const void *memb_ptr; ssize_t encoded; diff --git a/vanetza/asn1/support/ObjectDescriptor.c b/vanetza/asn1/support/ObjectDescriptor.c index d0b0e77a0..7a73bf586 100644 --- a/vanetza/asn1/support/ObjectDescriptor.c +++ b/vanetza/asn1/support/ObjectDescriptor.c @@ -87,6 +87,9 @@ asn_TYPE_descriptor_t asn_DEF_ObjectDescriptor = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ asn_generic_unknown_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/support/PrintableString.c b/vanetza/asn1/support/PrintableString.c index 96fadcd83..76b8b817f 100644 --- a/vanetza/asn1/support/PrintableString.c +++ b/vanetza/asn1/support/PrintableString.c @@ -124,6 +124,9 @@ asn_TYPE_descriptor_t asn_DEF_PrintableString = { #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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ PrintableString_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/support/REAL.c b/vanetza/asn1/support/REAL.c index b0f799b0f..5ac876bf0 100644 --- a/vanetza/asn1/support/REAL.c +++ b/vanetza/asn1/support/REAL.c @@ -127,6 +127,9 @@ asn_TYPE_descriptor_t asn_DEF_REAL = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ asn_generic_no_constraint }, 0, 0, /* No members */ @@ -377,7 +380,7 @@ REAL_copy(const asn_TYPE_descriptor_t *td, void **aptr, *aptr = 0; } return 0; - } + } if(!a) { a = *aptr = CALLOC(1, sizeof(*a)); @@ -392,7 +395,7 @@ REAL_copy(const asn_TYPE_descriptor_t *td, void **aptr, FREEMEM(a->buf); a->buf = buf; a->size = b->size; - } + } return 0; } diff --git a/vanetza/asn1/support/REAL_jer.c b/vanetza/asn1/support/REAL_jer.c index e592e90ca..13aecabda 100644 --- a/vanetza/asn1/support/REAL_jer.c +++ b/vanetza/asn1/support/REAL_jer.c @@ -233,7 +233,9 @@ REAL__jer_dump(double d, int canonical, asn_app_consume_bytes_f *cb, void *app_k } asn_enc_rval_t -REAL_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, +REAL_encode_jer(const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + 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; @@ -255,8 +257,8 @@ REAL_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, * 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__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; @@ -322,8 +324,9 @@ REAL__jer_body_decode(const asn_TYPE_descriptor_t *td, void *sptr, 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) { + const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + 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/vanetza/asn1/support/RELATIVE-OID.c b/vanetza/asn1/support/RELATIVE-OID.c index 906aacc8b..5a8551a90 100644 --- a/vanetza/asn1/support/RELATIVE-OID.c +++ b/vanetza/asn1/support/RELATIVE-OID.c @@ -89,6 +89,9 @@ asn_TYPE_descriptor_t asn_DEF_RELATIVE_OID = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ asn_generic_no_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/support/RELATIVE-OID_jer.c b/vanetza/asn1/support/RELATIVE-OID_jer.c index 408790533..3791026f3 100644 --- a/vanetza/asn1/support/RELATIVE-OID_jer.c +++ b/vanetza/asn1/support/RELATIVE-OID_jer.c @@ -9,8 +9,9 @@ #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__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; @@ -31,10 +32,10 @@ RELATIVE_OID__jer_body_decode(const asn_TYPE_descriptor_t *td, void *sptr, } --chunk_end; for (; chunk_end >= p; --chunk_end) { - if (*chunk_end == CQUOTE) + if (*chunk_end == CQUOTE) break; } - if (chunk_end - p < 0) + if (chunk_end - p < 0) return JPBD_BROKEN_ENCODING; chunk_size = chunk_end - p; chunk_buf = p; @@ -71,16 +72,19 @@ RELATIVE_OID__jer_body_decode(const asn_TYPE_descriptor_t *td, void *sptr, 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) { + const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + 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, +RELATIVE_OID_encode_jer(const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + 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}; diff --git a/vanetza/asn1/support/T61String.c b/vanetza/asn1/support/T61String.c index b2f65cae4..45572128b 100644 --- a/vanetza/asn1/support/T61String.c +++ b/vanetza/asn1/support/T61String.c @@ -87,6 +87,9 @@ asn_TYPE_descriptor_t asn_DEF_T61String = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ asn_generic_unknown_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/support/TeletexString.c b/vanetza/asn1/support/TeletexString.c index eb04feb5f..ba02caf53 100644 --- a/vanetza/asn1/support/TeletexString.c +++ b/vanetza/asn1/support/TeletexString.c @@ -87,6 +87,9 @@ asn_TYPE_descriptor_t asn_DEF_TeletexString = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ asn_generic_unknown_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/support/UTCTime.c b/vanetza/asn1/support/UTCTime.c index 5d274ffa1..9ad20773d 100644 --- a/vanetza/asn1/support/UTCTime.c +++ b/vanetza/asn1/support/UTCTime.c @@ -105,6 +105,9 @@ asn_TYPE_descriptor_t asn_DEF_UTCTime = { #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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ UTCTime_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/support/UTCTime_jer.c b/vanetza/asn1/support/UTCTime_jer.c index 41daa91a3..04b563f6a 100644 --- a/vanetza/asn1/support/UTCTime_jer.c +++ b/vanetza/asn1/support/UTCTime_jer.c @@ -16,8 +16,9 @@ #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, +UTCTime_encode_jer(const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + 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; @@ -32,7 +33,7 @@ UTCTime_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, ut = asn_time2UT(0, &tm, 1); if(!ut) ASN__ENCODE_FAILED; - rv = OCTET_STRING_encode_jer_utf8(td, sptr, ilevel, flags, + rv = OCTET_STRING_encode_jer_utf8(td, constraints, sptr, ilevel, flags, cb, app_key); OCTET_STRING_free(&asn_DEF_UTCTime, ut, 0); return rv; diff --git a/vanetza/asn1/support/UTF8String.c b/vanetza/asn1/support/UTF8String.c index 1788e6b71..37760250e 100644 --- a/vanetza/asn1/support/UTF8String.c +++ b/vanetza/asn1/support/UTF8String.c @@ -88,6 +88,9 @@ asn_TYPE_descriptor_t asn_DEF_UTF8String = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ UTF8String_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/support/UniversalString.c b/vanetza/asn1/support/UniversalString.c index cf326c83a..afe6a08e9 100644 --- a/vanetza/asn1/support/UniversalString.c +++ b/vanetza/asn1/support/UniversalString.c @@ -99,6 +99,9 @@ asn_TYPE_descriptor_t asn_DEF_UniversalString = { #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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ UniversalString_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/support/UniversalString_jer.c b/vanetza/asn1/support/UniversalString_jer.c index 476ff64a0..ef63cdcf9 100644 --- a/vanetza/asn1/support/UniversalString_jer.c +++ b/vanetza/asn1/support/UniversalString_jer.c @@ -9,11 +9,12 @@ 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) { + const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + 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); + rc = OCTET_STRING_decode_jer_utf8(opt_codec_ctx, td, constraints, sptr, buf_ptr, size); if(rc.code == RC_OK) { /* * Now we have a whole string in UTF-8 format. @@ -64,8 +65,10 @@ UniversalString_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, } asn_enc_rval_t -UniversalString_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, - int ilevel, enum jer_encoder_flags_e flags, +UniversalString_encode_jer(const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + 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}; diff --git a/vanetza/asn1/support/VideotexString.c b/vanetza/asn1/support/VideotexString.c index 0098c7334..7b7c3d99e 100644 --- a/vanetza/asn1/support/VideotexString.c +++ b/vanetza/asn1/support/VideotexString.c @@ -87,6 +87,9 @@ asn_TYPE_descriptor_t asn_DEF_VideotexString = { #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ asn_generic_unknown_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/support/VisibleString.c b/vanetza/asn1/support/VisibleString.c index 307cbf84b..ad2288393 100644 --- a/vanetza/asn1/support/VisibleString.c +++ b/vanetza/asn1/support/VisibleString.c @@ -94,6 +94,9 @@ asn_TYPE_descriptor_t asn_DEF_VisibleString = { #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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + 0, +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ VisibleString_constraint }, 0, 0, /* No members */ diff --git a/vanetza/asn1/support/aper_support.c b/vanetza/asn1/support/aper_support.c index e24d5e629..50e926297 100644 --- a/vanetza/asn1/support/aper_support.c +++ b/vanetza/asn1/support/aper_support.c @@ -140,7 +140,7 @@ aper_get_constrained_whole_number(asn_per_data_t *pd, long lb, long ub) { /* X.691 2002 10.5.7.2 - The one-octet case. */ if (range == 256) { - if (aper_get_align(pd)) + if (aper_get_align(pd) < 0) return -1; value = per_get_few_bits(pd, 8); if (value < 0 || value >= range) @@ -150,7 +150,7 @@ aper_get_constrained_whole_number(asn_per_data_t *pd, long lb, long ub) { /* X.691 2002 10.5.7.3 - The two-octet case. */ if (range <= 65536) { - if (aper_get_align(pd)) + if (aper_get_align(pd) < 0) return -1; value = per_get_few_bits(pd, 16); if (value < 0 || value >= range) @@ -174,7 +174,7 @@ aper_get_constrained_whole_number(asn_per_data_t *pd, long lb, long ub) { ASN_DEBUG("todo: aper_get_constrained_whole_number: value_len > 4"); return -1; } - if (aper_get_align(pd)) + if (aper_get_align(pd) < 0) return -1; value = per_get_few_bits(pd, value_len * 8); if (value < 0 || value >= range) diff --git a/vanetza/asn1/support/constr_CHOICE_jer.c b/vanetza/asn1/support/constr_CHOICE_jer.c index bcf97d98d..f65216277 100644 --- a/vanetza/asn1/support/constr_CHOICE_jer.c +++ b/vanetza/asn1/support/constr_CHOICE_jer.c @@ -31,8 +31,9 @@ */ 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) { + const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + void **struct_ptr, const void *buf_ptr, size_t size) { /* * Bring closer parts of structure description. */ @@ -98,7 +99,9 @@ CHOICE_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, /* Start/Continue decoding the inner member */ tmprval = elm->type->op->jer_decoder(opt_codec_ctx, - elm->type, memb_ptr2, + elm->type, + elm->encoding_constraints.jer_constraints, + memb_ptr2, buf_ptr, size); JER_ADVANCE(tmprval.consumed); ASN_DEBUG("JER/CHOICE: itdf: [%s] code=%d", @@ -133,7 +136,7 @@ CHOICE_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, continue; case PJER_DLM: - case PJER_VALUE: + case PJER_VALUE: case PJER_KEY: break; /* Check the rest down there */ } @@ -263,9 +266,9 @@ CHOICE_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, } 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) { +CHOICE_encode_jer(const asn_TYPE_descriptor_t *td, const asn_jer_constraints_t *constraints, + 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}; @@ -307,7 +310,9 @@ CHOICE_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, ASN__CALLBACK3("\"", 1, mname, mlen, "\":", 2); } - tmper = elm->type->op->jer_encoder(elm->type, memb_ptr, + tmper = elm->type->op->jer_encoder(elm->type, + elm->encoding_constraints.jer_constraints, + memb_ptr, ilevel + 1, flags, cb, app_key); if(tmper.encoded == -1) return tmper; er.encoded += tmper.encoded; diff --git a/vanetza/asn1/support/constr_SEQUENCE.c b/vanetza/asn1/support/constr_SEQUENCE.c index 991d69b3d..d7c5401a5 100644 --- a/vanetza/asn1/support/constr_SEQUENCE.c +++ b/vanetza/asn1/support/constr_SEQUENCE.c @@ -69,7 +69,7 @@ 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 *specs; asn_struct_ctx_t *ctx; /* Decoder context */ if(!td || !sptr) @@ -205,7 +205,7 @@ 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 *specs = (const asn_SEQUENCE_specifics_t *)td->specifics; size_t edx; void *st = *aptr; /* Target structure */ diff --git a/vanetza/asn1/support/constr_SEQUENCE_OF_jer.c b/vanetza/asn1/support/constr_SEQUENCE_OF_jer.c index 1820e3892..abb52fbc7 100644 --- a/vanetza/asn1/support/constr_SEQUENCE_OF_jer.c +++ b/vanetza/asn1/support/constr_SEQUENCE_OF_jer.c @@ -8,8 +8,8 @@ #include "asn_SEQUENCE_OF.h" 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, +SEQUENCE_OF_encode_jer(const asn_TYPE_descriptor_t *td, const asn_jer_constraints_t *constraints, + 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; @@ -29,7 +29,9 @@ SEQUENCE_OF_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, if(!memb_ptr) continue; if(!jmin) ASN__TEXT_INDENT(1, ilevel + 1); - tmper = elm->type->op->jer_encoder(elm->type, memb_ptr, ilevel + 1, + tmper = elm->type->op->jer_encoder(elm->type, + elm->encoding_constraints.jer_constraints, + memb_ptr, ilevel + 1, flags, cb, app_key); if(tmper.encoded == -1) return tmper; er.encoded += tmper.encoded; diff --git a/vanetza/asn1/support/constr_SEQUENCE_jer.c b/vanetza/asn1/support/constr_SEQUENCE_jer.c index c176265b2..d35f06b1e 100644 --- a/vanetza/asn1/support/constr_SEQUENCE_jer.c +++ b/vanetza/asn1/support/constr_SEQUENCE_jer.c @@ -39,8 +39,9 @@ */ 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) { + const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + void **struct_ptr, const void *ptr, size_t size) { /* * Bring closer parts of structure description. */ @@ -108,7 +109,9 @@ SEQUENCE_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, } else { /* Invoke the inner type decoder, m.b. multiple times */ tmprval = elm->type->op->jer_decoder(opt_codec_ctx, - elm->type, memb_ptr2, + elm->type, + elm->encoding_constraints.jer_constraints, + memb_ptr2, ptr, size); } JER_ADVANCE(tmprval.consumed); @@ -179,7 +182,7 @@ SEQUENCE_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, /* All extensions are optional */ IN_EXTENSION_GROUP(specs, edx)) { JER_ADVANCE(ch_size); - JER_ADVANCE(jer_whitespace_span(ptr, size)); + JER_ADVANCE(jer_whitespace_span(ptr, size)); ctx->phase = 4; /* Phase out */ RETURN(RC_OK); } else { @@ -239,7 +242,7 @@ SEQUENCE_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, switch(ch_type) { case PJER_WMORE: RETURN(RC_WMORE); - case PJER_TEXT: + case PJER_TEXT: JER_ADVANCE(ch_size); break; default: @@ -255,7 +258,7 @@ SEQUENCE_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, } break; } - if(n != edx_end) + if(n != edx_end) continue; } else { ASN_DEBUG("Out of defined members: %" ASN_PRI_SIZE "/%u", @@ -294,7 +297,8 @@ SEQUENCE_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, } -asn_enc_rval_t SEQUENCE_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, +asn_enc_rval_t SEQUENCE_encode_jer(const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t* constraints, 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}; @@ -352,8 +356,10 @@ asn_enc_rval_t SEQUENCE_encode_jer(const asn_TYPE_descriptor_t *td, const void * } /* Print the member itself */ - tmper = elm->type->op->jer_encoder(elm->type, memb_ptr, ilevel + 1, - flags, cb, app_key); + tmper = elm->type->op->jer_encoder(elm->type, + elm->encoding_constraints.jer_constraints, + 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; diff --git a/vanetza/asn1/support/constr_SET.c b/vanetza/asn1/support/constr_SET.c index f2f7f43e5..7d0446079 100644 --- a/vanetza/asn1/support/constr_SET.c +++ b/vanetza/asn1/support/constr_SET.c @@ -223,7 +223,7 @@ 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 *specs = (const asn_SET_specifics_t *)td->specifics; size_t edx; void *st = *aptr; /* Target structure */ diff --git a/vanetza/asn1/support/constr_SET_OF_jer.c b/vanetza/asn1/support/constr_SET_OF_jer.c index 9d3c3a063..44a0d27da 100644 --- a/vanetza/asn1/support/constr_SET_OF_jer.c +++ b/vanetza/asn1/support/constr_SET_OF_jer.c @@ -31,8 +31,9 @@ */ 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) { + const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + void **struct_ptr, const void *buf_ptr, size_t size) { /* * Bring closer parts of structure description. */ @@ -83,6 +84,7 @@ SET_OF_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, (*element->name) ? element->name : element->type->xml_tag); tmprval = element->type->op->jer_decoder(opt_codec_ctx, element->type, + element->encoding_constraints.jer_constraints, &ctx->ptr, buf_ptr, size); if(tmprval.code == RC_OK) { @@ -172,9 +174,10 @@ SET_OF_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, } 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) { +SET_OF_encode_jer(const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t* constraints, 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; @@ -194,7 +197,9 @@ SET_OF_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, if(!memb_ptr) continue; if(!jmin) ASN__TEXT_INDENT(1, ilevel + 1); - tmper = elm->type->op->jer_encoder(elm->type, memb_ptr, + tmper = elm->type->op->jer_encoder(elm->type, + elm->encoding_constraints.jer_constraints, + memb_ptr, ilevel + (specs->as_XMLValueList != 2), flags, cb, app_key); if(tmper.encoded == -1) return tmper; diff --git a/vanetza/asn1/support/constr_SET_jer.c b/vanetza/asn1/support/constr_SET_jer.c index e985dfe05..49b8fc4d5 100644 --- a/vanetza/asn1/support/constr_SET_jer.c +++ b/vanetza/asn1/support/constr_SET_jer.c @@ -38,8 +38,9 @@ */ 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) { + const asn_TYPE_descriptor_t *td, + const asn_jer_constraints_t *constraints, + void **struct_ptr, const void *ptr, size_t size) { /* * Bring closer parts of structure description. */ @@ -112,7 +113,9 @@ SET_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, /* Invoke the inner type decoder, m.b. multiple times */ tmprval = elm->type->op->jer_decoder(opt_codec_ctx, - elm->type, memb_ptr2, + elm->type, + elm->encoding_constraints.jer_constraints, + memb_ptr2, ptr, size); JER_ADVANCE(tmprval.consumed); if(tmprval.code != RC_OK) diff --git a/vanetza/asn1/support/constr_TYPE.h b/vanetza/asn1/support/constr_TYPE.h index 38e3cb191..e0d28fdd4 100644 --- a/vanetza/asn1/support/constr_TYPE.h +++ b/vanetza/asn1/support/constr_TYPE.h @@ -212,6 +212,9 @@ typedef struct asn_encoding_constraints_s { #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) */ +#if !defined(ASN_DISABLE_JER_SUPPORT) + const struct asn_jer_constraints_s *jer_constraints; +#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ asn_constr_check_f *general_constraints; } asn_encoding_constraints_t; diff --git a/vanetza/asn1/support/jer_decoder.c b/vanetza/asn1/support/jer_decoder.c index 90b02ead6..020591b89 100644 --- a/vanetza/asn1/support/jer_decoder.c +++ b/vanetza/asn1/support/jer_decoder.c @@ -35,7 +35,7 @@ jer_decode(const asn_codec_ctx_t *opt_codec_ctx, /* * Invoke type-specific decoder. */ - return td->op->jer_decoder(opt_codec_ctx, td, struct_ptr, buffer, size); + return td->op->jer_decoder(opt_codec_ctx, td, 0, struct_ptr, buffer, size); } diff --git a/vanetza/asn1/support/jer_decoder.h b/vanetza/asn1/support/jer_decoder.h index 6da438e61..d0f620c23 100644 --- a/vanetza/asn1/support/jer_decoder.h +++ b/vanetza/asn1/support/jer_decoder.h @@ -6,6 +6,7 @@ #define _JER_DECODER_H_ #include "asn_application.h" +#include "jer_support.h" #ifdef __cplusplus extern "C" { @@ -30,7 +31,9 @@ asn_dec_rval_t jer_decode( */ 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 struct asn_TYPE_descriptor_s *type_descriptor, + const asn_jer_constraints_t *constraints, + void **struct_ptr, const void *buf_ptr, size_t size); /******************************* diff --git a/vanetza/asn1/support/jer_encoder.c b/vanetza/asn1/support/jer_encoder.c index 78c21db45..0d9d6202d 100644 --- a/vanetza/asn1/support/jer_encoder.c +++ b/vanetza/asn1/support/jer_encoder.c @@ -11,14 +11,14 @@ */ 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) { + 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); + tmper = td->op->jer_encoder(td, 0, sptr, 0, jer_flags, cb, app_key); if(tmper.encoded == -1) return tmper; er.encoded += tmper.encoded; diff --git a/vanetza/asn1/support/jer_encoder.h b/vanetza/asn1/support/jer_encoder.h index d684d63c8..deabdb0a6 100644 --- a/vanetza/asn1/support/jer_encoder.h +++ b/vanetza/asn1/support/jer_encoder.h @@ -6,6 +6,7 @@ #define _JER_ENCODER_H_ #include "asn_application.h" +#include "jer_support.h" #ifdef __cplusplus extern "C" { @@ -71,6 +72,7 @@ enum jer_equivalence_e jer_equivalent( */ typedef asn_enc_rval_t(jer_type_encoder_f)( const struct asn_TYPE_descriptor_s *type_descriptor, + const asn_jer_constraints_t *constraints, const void *struct_ptr, /* Structure to be encoded */ int ilevel, /* Level of indentation */ enum jer_encoder_flags_e jer_flags, diff --git a/vanetza/asn1/support/jer_support.h b/vanetza/asn1/support/jer_support.h index 0b60197c6..3dc93c92b 100644 --- a/vanetza/asn1/support/jer_support.h +++ b/vanetza/asn1/support/jer_support.h @@ -12,6 +12,13 @@ extern "C" { #endif +/* + * Pre-computed JER constraints + */ +typedef struct asn_jer_constraints_s { + ssize_t size; /* -1 (no constraint) or >= 0 */ +} asn_jer_constraints_t; + /* * Types of data transferred to the application. */ diff --git a/vanetza/asn1/vam.hpp b/vanetza/asn1/vam.hpp new file mode 100644 index 000000000..bf1035942 --- /dev/null +++ b/vanetza/asn1/vam.hpp @@ -0,0 +1,36 @@ +#ifndef VAM_HPP_RSEIP89V +#define VAM_HPP_RSEIP89V + +#define VANETZA_USE_ITS2 1 + +#include +#include +#if VANETZA_USE_ITS2 +#include +#else +#include +#endif + +namespace vanetza +{ +namespace asn1 +{ +#if VANETZA_USE_ITS2 +class Vam : public asn1c_per_wrapper +#else +class Vam : public asn1c_per_wrapper +#endif +{ +public: +#if VANETZA_USE_ITS2 + Vam() : asn1c_per_wrapper(asn_DEF_VAM) {} +#else + Vam() : asn1c_per_wrapper(asn_DEF_VruAwareness) {} +#endif +}; + +} // namespace asn1 +} // namespace vanetza + +#endif /* VAM_HPP_RSEIP89V */ + diff --git a/vanetza/facilities/.gitignore b/vanetza/facilities/.gitignore new file mode 100644 index 000000000..6c1b67417 --- /dev/null +++ b/vanetza/facilities/.gitignore @@ -0,0 +1 @@ +cam_functions.hpp \ No newline at end of file diff --git a/vanetza/facilities/CMakeLists.txt b/vanetza/facilities/CMakeLists.txt index b92d0bdac..a89d59289 100644 --- a/vanetza/facilities/CMakeLists.txt +++ b/vanetza/facilities/CMakeLists.txt @@ -1,3 +1,5 @@ +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cam_functions.hpp.in ${CMAKE_CURRENT_SOURCE_DIR}/cam_functions.hpp) + set(CXX_SOURCES cam_functions.cpp path_history.cpp diff --git a/vanetza/facilities/cam_functions.cpp b/vanetza/facilities/cam_functions.cpp index b1bd0ef3a..dda16d240 100644 --- a/vanetza/facilities/cam_functions.cpp +++ b/vanetza/facilities/cam_functions.cpp @@ -12,6 +12,24 @@ #include #undef min +#if VANETZA_USE_ITS2 +#define PathDeltaTime_tenMilliSecondsInPast 1 +#define Latitude_oneMicrodegreeNorth 10 +#define Latitude_oneMicrodegreeSouth -10 +#define Latitude_unavailable 900000001 +#define Longitude_oneMicrodegreeEast 10 +#define Longitude_oneMicrodegreeWest -10 +#define Longitude_unavailable 1800000001 +#define AltitudeValue_oneCentimeter 1 +#define AltitudeValue_unavailable 800001 +#define DeltaLatitude_oneMicrodegreeNorth 10 +#define DeltaLatitude_oneMicrodegreeSouth -10 +#define DeltaLatitude_unavailable 131072 +#define DeltaLongitude_oneMicrodegreeEast 10 +#define DeltaLongitude_oneMicrodegreeWest -10 +#define DeltaLongitude_unavailable 131072 +#endif + namespace vanetza { namespace facilities @@ -40,12 +58,21 @@ void copy(const facilities::PathHistory& ph, BasicVehicleContainerLowFrequency& while (!delta_time.is_negative() && path_points < scMaxPathPoints) { ::PathPoint* path_point = asn1::allocate<::PathPoint>(); path_point->pathDeltaTime = asn1::allocate(); +#if VANETZA_USE_ITS2 + *(path_point->pathDeltaTime) = std::min(delta_time, scMaxDeltaTime).total_milliseconds() / + 10 * PathDeltaTime_tenMilliSecondsInPast; + path_point->pathPosition.deltaLatitude = (delta_latitude / scMicrodegree).value() * + DeltaLatitude_oneMicrodegreeNorth; + path_point->pathPosition.deltaLongitude = (delta_longitude / scMicrodegree).value() * + DeltaLongitude_oneMicrodegreeEast; +#else *(path_point->pathDeltaTime) = std::min(delta_time, scMaxDeltaTime).total_milliseconds() / 10 * PathDeltaTime::PathDeltaTime_tenMilliSecondsInPast; path_point->pathPosition.deltaLatitude = (delta_latitude / scMicrodegree).value() * DeltaLatitude::DeltaLatitude_oneMicrodegreeNorth; path_point->pathPosition.deltaLongitude = (delta_longitude / scMicrodegree).value() * DeltaLongitude::DeltaLongitude_oneMicrodegreeEast; +#endif path_point->pathPosition.deltaAltitude = DeltaAltitude::DeltaAltitude_unavailable; ASN_SEQUENCE_ADD(&container.pathHistory, path_point); @@ -129,6 +156,45 @@ units::Length distance(const ReferencePosition_t& a, units::GeoAngle lat, units: return length; } +#if VANETZA_USE_ITS2 +units::Length distance(const ReferencePositionWithConfidence_t& a, const ReferencePositionWithConfidence_t& b) +{ + using geonet::GeodeticPosition; + using units::GeoAngle; + + auto length = units::Length::from_value(std::numeric_limits::quiet_NaN()); + if (is_available(a) && is_available(b)) { + GeodeticPosition geo_a { + GeoAngle { a.latitude / Latitude_oneMicrodegreeNorth * microdegree }, + GeoAngle { a.longitude / Longitude_oneMicrodegreeEast * microdegree } + }; + GeodeticPosition geo_b { + GeoAngle { b.latitude / Latitude_oneMicrodegreeNorth * microdegree }, + GeoAngle { b.longitude / Longitude_oneMicrodegreeEast * microdegree } + }; + length = geonet::distance(geo_a, geo_b); + } + return length; +} + +units::Length distance(const ReferencePositionWithConfidence_t& a, units::GeoAngle lat, units::GeoAngle lon) +{ + using geonet::GeodeticPosition; + using units::GeoAngle; + + auto length = units::Length::from_value(std::numeric_limits::quiet_NaN()); + if (is_available(a)) { + GeodeticPosition geo_a { + GeoAngle { a.latitude / Latitude_oneMicrodegreeNorth * microdegree }, + GeoAngle { a.longitude / Longitude_oneMicrodegreeEast * microdegree } + }; + GeodeticPosition geo_b { lat, lon }; + length = geonet::distance(geo_a, geo_b); + } + return length; +} +#endif + bool is_available(const Heading& hd) { return hd.headingValue != HeadingValue_unavailable; @@ -139,6 +205,12 @@ bool is_available(const ReferencePosition& pos) return pos.latitude != Latitude_unavailable && pos.longitude != Longitude_unavailable; } +#if VANETZA_USE_ITS2 +bool is_available(const ReferencePositionWithConfidence_t& pos) +{ + return pos.latitude != Latitude_unavailable && pos.longitude != Longitude_unavailable; +} +#endif template long round(const boost::units::quantity& q, const U& u) @@ -335,11 +407,20 @@ void print_indented(std::ostream& os, const asn1::Cam& message, const std::strin prefix("ITS PDU Header") << "\n"; ++level; prefix("Protocol Version") << header.protocolVersion << "\n"; +#if VANETZA_USE_ITS2 + prefix("Message Id") << header.messageId << "\n"; + prefix("Station Id") << header.stationId << "\n"; +#else prefix("Message ID") << header.messageID << "\n"; prefix("Station ID") << header.stationID << "\n"; +#endif --level; +#if VANETZA_USE_ITS2 + const CamPayload_t& cam = message->cam; +#else const CoopAwareness_t& cam = message->cam; +#endif prefix("CoopAwarensess") << "\n"; ++level; prefix("Generation Delta Time") << cam.generationDeltaTime << "\n"; @@ -352,9 +433,15 @@ void print_indented(std::ostream& os, const asn1::Cam& message, const std::strin ++level; prefix("Longitude") << basic.referencePosition.longitude << "\n"; prefix("Latitude") << basic.referencePosition.latitude << "\n"; +#if VANETZA_USE_ITS2 + prefix("Semi Major Axis Orientation") << basic.referencePosition.positionConfidenceEllipse.semiMajorAxisOrientation << "\n"; + prefix("Semi Major Axis Length") << basic.referencePosition.positionConfidenceEllipse.semiMajorAxisLength << "\n"; + prefix("Semi Minor Axis Length") << basic.referencePosition.positionConfidenceEllipse.semiMinorAxisLength << "\n"; +#else prefix("Semi Major Orientation") << basic.referencePosition.positionConfidenceEllipse.semiMajorOrientation << "\n"; prefix("Semi Major Confidence") << basic.referencePosition.positionConfidenceEllipse.semiMajorConfidence << "\n"; prefix("Semi Minor Confidence") << basic.referencePosition.positionConfidenceEllipse.semiMinorConfidence << "\n"; +#endif prefix("Altitude [Confidence]") << basic.referencePosition.altitude.altitudeValue << " [" << basic.referencePosition.altitude.altitudeConfidence << "]\n"; --level; @@ -370,8 +457,13 @@ void print_indented(std::ostream& os, const asn1::Cam& message, const std::strin prefix("Speed [Confidence]") << bvc.speed.speedValue << " [" << bvc.speed.speedConfidence << "]\n"; prefix("Drive Direction") << bvc.driveDirection << "\n"; +#if VANETZA_USE_ITS2 + prefix("Longitudinal Acceleration [Confidence]") << bvc.longitudinalAcceleration.value + << " [" << bvc.longitudinalAcceleration.confidence << "]\n"; +#else prefix("Longitudinal Acceleration [Confidence]") << bvc.longitudinalAcceleration.longitudinalAccelerationValue << " [" << bvc.longitudinalAcceleration.longitudinalAccelerationConfidence << "]\n"; +#endif prefix("Vehicle Length [Confidence Indication]") << bvc.vehicleLength.vehicleLengthValue << " [" << bvc.vehicleLength.vehicleLengthConfidenceIndication << "]\n"; prefix("Vehicle Width") << bvc.vehicleWidth << "\n"; @@ -401,7 +493,11 @@ void print_indented(std::ostream& os, const asn1::Cam& message, const std::strin if (nullptr != rsu.protectedCommunicationZonesRSU->list.array[i]->protectedZoneRadius) prefix("Radius") << *(rsu.protectedCommunicationZonesRSU->list.array[i]->protectedZoneRadius) << "\n"; if (nullptr != rsu.protectedCommunicationZonesRSU->list.array[i]->protectedZoneRadius) +#if VANETZA_USE_ITS2 + prefix("ID") << *(rsu.protectedCommunicationZonesRSU->list.array[i]->protectedZoneId) << "\n"; +#else prefix("ID") << *(rsu.protectedCommunicationZonesRSU->list.array[i]->protectedZoneID) << "\n"; +#endif --level; } --level; @@ -504,8 +600,13 @@ void print_indented(std::ostream& os, const asn1::Cam& message, const std::strin if (nullptr != ec.lightBarSirenInUse.buf && ec.lightBarSirenInUse.size > 0) prefix("Light Bar Siren in Use") << (unsigned) ec.lightBarSirenInUse.buf[0] << "\n"; if (nullptr != ec.incidentIndication) { +#if VANETZA_USE_ITS2 + prefix("Incident Indication Cause Code") << ec.incidentIndication->ccAndScc.present << "\n"; + prefix("Incident Indication Sub Cause Code") << ec.incidentIndication->ccAndScc.choice.reserved0 << "\n"; +#else prefix("Incident Indication Cause Code") << ec.incidentIndication->causeCode << "\n"; prefix("Incident Indication Sub Cause Code") << ec.incidentIndication->subCauseCode << "\n"; +#endif } if (nullptr != ec.emergencyPriority && nullptr != ec.emergencyPriority->buf && ec.emergencyPriority->size > 0) { @@ -519,8 +620,13 @@ void print_indented(std::ostream& os, const asn1::Cam& message, const std::strin if (nullptr != sc.lightBarSirenInUse.buf && sc.lightBarSirenInUse.size > 0) prefix("Light Bar Siren in Use") << (unsigned) sc.lightBarSirenInUse.buf[0] << "\n"; if (nullptr != sc.incidentIndication) { +#if VANETZA_USE_ITS2 + prefix("Incident Indication Cause Code") << sc.incidentIndication->ccAndScc.present << "\n"; + prefix("Incident Indication Sub Cause Code") << sc.incidentIndication->ccAndScc.choice.reserved0 << "\n"; +#else prefix("Incident Indication Cause Code") << sc.incidentIndication->causeCode << "\n"; prefix("Incident Indication Sub Cause Code") << sc.incidentIndication->subCauseCode << "\n"; +#endif } if (nullptr != sc.trafficRule) { prefix("Traffic Rule") << *(sc.trafficRule) << "\n"; diff --git a/vanetza/facilities/cam_functions.hpp b/vanetza/facilities/cam_functions.hpp deleted file mode 100644 index 8c765fead..000000000 --- a/vanetza/facilities/cam_functions.hpp +++ /dev/null @@ -1,99 +0,0 @@ -#ifndef CAM_FUNCTIONS_HPP_PUFKBEM8 -#define CAM_FUNCTIONS_HPP_PUFKBEM8 - -#include -#include -#include -#include -#include -#include -#include -#include - -// forward declaration of asn1c generated struct -struct BasicVehicleContainerLowFrequency; - -namespace vanetza -{ - -// forward declaration of CAM message wrapper -namespace asn1 { class Cam; } - -namespace facilities -{ - -class PathHistory; - -/** - * Copy PathHistory into BasicVehicleContainerLowFrequency's pathHistory element - * \param Facilities' path history object (source) - * \param ASN.1 CAM container (destination) - */ -void copy(const PathHistory&, BasicVehicleContainerLowFrequency&); - -/** - * Check if difference of two given heading values is within a limit - * \param a one heading - * \param b another heading - * \param limit maximum difference (positive) - * \return true if similar enough - */ -bool similar_heading(const Heading& a, const Heading& b, units::Angle limit); -bool similar_heading(const Heading& a, units::Angle b, units::Angle limit); -bool similar_heading(units::Angle a, units::Angle b, units::Angle limit); - -/** - * Calculate distance between positions - * \param a one position - * \param b another position - * \return distance between given positions (or NaN if some position is unavailable) - */ -units::Length distance(const ReferencePosition_t& a, const ReferencePosition_t& b); -units::Length distance(const ReferencePosition_t& a, units::GeoAngle lat, units::GeoAngle lon); - -/** - * Check if ASN.1 data element indicates unavailable value - * \return true if value is available - */ -bool is_available(const Heading&); -bool is_available(const ReferencePosition_t&); - -/** - * Copy position information into a ReferencePosition structure from CDD - */ -void copy(const PositionFix&, ReferencePosition&); - -/** - * Convert altitude to AltitudeValue from CDD - */ -AltitudeValue_t to_altitude_value(units::Length); - -/** - * Convert altitude confidence to AltitudeConfidence from CDD - */ -AltitudeConfidence_t to_altitude_confidence(units::Length); - -/** - * Check if a CAM contains only allowed data elements - * \param cam CA message - * \param ssp CA service specific permissions - * \return true if no forbidden data elements are included - */ -bool check_service_specific_permissions(const asn1::Cam& cam, security::CamPermissions ssp); - -/** - * Print CAM content with indentation of nested fields - * \param os output stream - * \param cam CA message - * \param indent indentation marker, by default one tab per level - * \param start initial level of indentation - * - * This function is an idea of Erik de Britto e Silva (erikbritto@github) - * from University of Antwerp - erik.debrittoesilva@uantwerpen.be - */ -void print_indented(std::ostream& os, const asn1::Cam& cam, const std::string& indent = "\t", unsigned start = 0); - -} // namespace facilities -} // namespace vanetza - -#endif /* CAM_FUNCTIONS_HPP_PUFKBEM8 */ diff --git a/vanetza/facilities/cam_functions.hpp.in b/vanetza/facilities/cam_functions.hpp.in new file mode 100644 index 000000000..44799cb0d --- /dev/null +++ b/vanetza/facilities/cam_functions.hpp.in @@ -0,0 +1,119 @@ +#ifndef CAM_FUNCTIONS_HPP_PUFKBEM8 +#define CAM_FUNCTIONS_HPP_PUFKBEM8 + +#define VANETZA_USE_ITS2 @VANETZA_USE_ITS2@ + +#include +#include +#include +#include +#if VANETZA_USE_ITS2 +#include +#endif +#include +#include +#include +#include + +// forward declaration of asn1c generated struct +struct BasicVehicleContainerLowFrequency; + +namespace vanetza +{ + +// forward declaration of CAM message wrapper +namespace asn1 { class Cam; } + +namespace facilities +{ + +class PathHistory; + +/** + * Copy PathHistory into BasicVehicleContainerLowFrequency's pathHistory element + * \param Facilities' path history object (source) + * \param ASN.1 CAM container (destination) + */ +void copy(const PathHistory&, BasicVehicleContainerLowFrequency&); + +/** + * Check if difference of two given heading values is within a limit + * \param a one heading + * \param b another heading + * \param limit maximum difference (positive) + * \return true if similar enough + */ +bool similar_heading(const Heading& a, const Heading& b, units::Angle limit); +bool similar_heading(const Heading& a, units::Angle b, units::Angle limit); +bool similar_heading(units::Angle a, units::Angle b, units::Angle limit); + +/** + * Calculate distance between positions + * \param a one position + * \param b another position + * \return distance between given positions (or NaN if some position is unavailable) + */ +units::Length distance(const ReferencePosition_t& a, const ReferencePosition_t& b); +units::Length distance(const ReferencePosition_t& a, units::GeoAngle lat, units::GeoAngle lon); + +#if VANETZA_USE_ITS2 +/** + * Calculate distance between positions + * \param a one position + * \param b another position + * \return distance between given positions (or NaN if some position is unavailable) + */ +units::Length distance(const ReferencePositionWithConfidence_t& a, const ReferencePositionWithConfidence_t& b); +units::Length distance(const ReferencePositionWithConfidence_t& a, units::GeoAngle lat, units::GeoAngle lon); +#endif + +/** + * Check if ASN.1 data element indicates unavailable value + * \return true if value is available + */ +bool is_available(const Heading&); +bool is_available(const ReferencePosition_t&); + +#if VANETZA_USE_ITS2 +bool is_available(const ReferencePositionWithConfidence_t& pos); +#endif + +/** + * Copy position information into a ReferencePosition structure from CDD + */ +void copy(const PositionFix&, ReferencePosition&); + +/** + * Convert altitude to AltitudeValue from CDD + */ +AltitudeValue_t to_altitude_value(units::Length); + +/** + * Convert altitude confidence to AltitudeConfidence from CDD + */ +AltitudeConfidence_t to_altitude_confidence(units::Length); + +/** + * Check if a CAM contains only allowed data elements + * \param cam CA message + * \param ssp CA service specific permissions + * \return true if no forbidden data elements are included + */ +bool check_service_specific_permissions(const asn1::Cam& cam, security::CamPermissions ssp); + +/** + * Print CAM content with indentation of nested fields + * \param os output stream + * \param cam CA message + * \param indent indentation marker, by default one tab per level + * \param start initial level of indentation + * + * This function is an idea of Erik de Britto e Silva (erikbritto@github) + * from University of Antwerp - erik.debrittoesilva@uantwerpen.be + */ +void print_indented(std::ostream& os, const asn1::Cam& cam, const std::string& indent = "\t", unsigned start = 0); + +} // namespace facilities +} // namespace vanetza + +#endif /* CAM_FUNCTIONS_HPP_PUFKBEM8 */