Commit 5db5faad authored by garciay's avatar garciay
Browse files

Add support of SSP CAM

parent bb6c1a74
Loading
Loading
Loading
Loading
+99 −0
Original line number Diff line number Diff line
@@ -2013,6 +2013,105 @@ module LibItsSecurity_Templates {
                
            } // End of group sspTest 
            
            group sspCam {
                    
                group sspCamSend {
                    
                    /**
                     * @desc 
                     */
                    template (value) SspCAM m_sspCAMContainer_sign_all := {
                        cenDsrcTollingZone                      := '1'B,
                        publicTransport                         := '1'B,
                        specialTransport                        := '1'B,
                        dangerousGoods                          := '1'B,
                        roadwork                                := '1'B,
                        rescue                                  := '1'B,
                        emergency                               := '1'B,
                        safetyCar                               := '1'B,
                        closedLanes                             := '1'B,
                        requestForRightOfWay                    := '1'B,
                        requestForFreeCrossingAtATrafficLight   := '1'B,
                        noPassing                               := '1'B,
                        noPassingForTrucks                      := '1'B,
                        speedLimit                              := '1'B,
                        reserved1                               := '0'B,
                        reserved2                               := '0'B
                    } // End of template m_sspCAMContainer_sign_all
                    
                    /**
                     * @desc 
                     */
                    template (value) SspCAM m_sspCAMContainer_vehicle 
                    modifies m_sspCAMContainer_sign_all := {
                        cenDsrcTollingZone                      := '0'B,
                        closedLanes                             := '0'B,
                        noPassing                               := '0'B,
                        noPassingForTrucks                      := '0'B,
                        speedLimit                              := '0'B
                    } // End of template m_sspCAMContainer_vehicle
                    
                    
                    /**
                     * @desc 
                     */
                    template (value) ServiceSpecificPermissions m_sspCAM_sign_all := {
                        version         := '01'O,
                        sspContainer    := {
                            sspCAM := m_sspCAMContainer_sign_all
                        } // End of field sspContainer
                    } // End of template m_sspCAM_sign_all
                    
                    /**
                     * @desc 
                     */
                    template (value) ServiceSpecificPermissions m_sspCAM_vehicle 
                    modifies m_sspCAM_sign_all := {
                        sspContainer    := {
                            sspCAM := m_sspCAMContainer_vehicle
                        } // End of field sspContainer
                    } // End of template m_sspCAM_vehicle
                    
                } // End of group sspCamSend
                
                group sspCamRecv {
                    
                    /**
                     * @desc 
                     */
                    template (present) SspCAM mw_sspCAMContainer_dummy := {
                        cenDsrcTollingZone                      := ?,
                        publicTransport                         := ?,
                        specialTransport                        := ?,
                        dangerousGoods                          := ?,
                        roadwork                                := ?,
                        rescue                                  := ?,
                        emergency                               := ?,
                        safetyCar                               := ?,
                        closedLanes                             := ?,
                        requestForRightOfWay                    := ?,
                        requestForFreeCrossingAtATrafficLight   := ?,
                        noPassing                               := ?,
                        noPassingForTrucks                      := ?,
                        speedLimit                              := ?,
                        reserved1                               := ?,
                        reserved2                               := ?
                    } // End of template mw_sspCAMContainer_dummy
                    
                    /**
                     * @desc 
                     */
                    template (present) ServiceSpecificPermissions mw_sspCAM_dummy := {
                        version         := '01'O,
                        sspContainer    := {
                            sspCAM := mw_sspCAMContainer_dummy
                        }
                    } // End of template mw_sspCAM_dummy
                    
                } // End of group sspCamRecv
                
            } // End of group sspCam
            
            group sspDenm {
                    
                group sspDenmSend {
+28 −0
Original line number Diff line number Diff line
@@ -816,14 +816,42 @@ module LibItsSecurity_TypesAndValues {
        
        /**
         * @desc Service specific permissions definition
         * @member sspCAM  Service specific permissions definition for DENM
         * @member sspDENM  Service specific permissions definition for DENM
         * @member opaque   Service specific permissions definition for others
         * 
         * @see ETSI EN 302 637-2 V1.3.2 (2014-11) Clause 6.2.2.2  Service Specific Permissions (SSP)
         * @see ETSI EN 302 637-3 V1.2.2 (2014-11) Clause 6.2.2.2   Service Specific Permissions (SSP)
         */
        type union ServiceSpecificPermissionsContainer {
            SspCAM          sspCAM,
            SspDENM         sspDENM,
            Oct0to30        opaque
        } // End of type ServiceSpecificPermissions
        
        /**
         * @desc Service specific permissions definition for CAM
         * @see ETSI EN 302 637-2 V1.3.2 (2014-11) Clause 6.2.2.2  Service Specific Permissions (SSP)
         */
        type record SspCAM {
            Bit1        cenDsrcTollingZone,
            Bit1        publicTransport,
            Bit1        specialTransport,
            Bit1        dangerousGoods,
            Bit1        roadwork,
            Bit1        rescue,
            Bit1        emergency,
            Bit1        safetyCar,
            Bit1        closedLanes,
            Bit1        requestForRightOfWay,
            Bit1        requestForFreeCrossingAtATrafficLight,
            Bit1        noPassing,
            Bit1        noPassingForTrucks,
            Bit1        speedLimit,
            Bit1        reserved1,
            Bit1        reserved2
        } // End of type SspCAM
        
        /**
         * @desc Service specific permissions definition for DENM
         * @member trafficCondition