Commit 97b75651 authored by wattelet's avatar wattelet
Browse files

Modification of TrafficClass

parent 6bb35839
Loading
Loading
Loading
Loading
+10 −2
Original line number Original line Diff line number Diff line
@@ -1347,12 +1347,20 @@ module LibItsGeoNetworking_Templates {
            /**
            /**
             * @desc    Default send template for traffic class
             * @desc    Default send template for traffic class
             */
             */
            template (value) TrafficClass m_trafficClass := 128; //TODO
            template (value) TrafficClass m_trafficClass ( in SCF p_scf := e_scfEnable, in ChannelOffload p_ChOff := e_choffDisabled ) := {
                scf             := p_scf,
                channelOffload  := p_ChOff,
                tcId            := 0
            }
            
            
            /**
            /**
             * @desc    Receive template for traffic class
             * @desc    Receive template for traffic class
             */
             */
            template TrafficClass mw_trafficClass := ?;
            template TrafficClass mw_trafficClass ( in template SCF p_scf := ?, in template ChannelOffload p_ChOff := ? ) := {
                scf             := p_scf,
                channelOffload  := p_ChOff,
                tcId            := ?
            }
            
            
            /**
            /**
             * @desc    Receive template for any GN_Address
             * @desc    Receive template for any GN_Address
+35 −1
Original line number Original line Diff line number Diff line
@@ -313,7 +313,41 @@ module LibItsGeoNetworking_TypesAndValues {
                variant "4 bits"
                variant "4 bits"
            }
            }
            
            
            type UInt8  TrafficClass;
            /**
             * @desc TrafficClass
             *
             * <pre>
             *  0   1   2   3   4   5   6   7
             * +---+---+---+---+---+---+---+---+
             * |SCF|Ch.|         TC ID         |
             * |   |Off|                       |
             * +---+---+---+---+---+---+---+---+
             * </pre>
             *
             * @see ETSI EN 302 636-4-1 chapter 8.7.5
             *
             * @member scf
             * @member channelOffload
             * @member tcId
             */
            type record TrafficClass {
                SCF                     scf,
                ChannelOffload          channelOffload,
                TcId                    tcId
            }
            type enumerated SCF {
                e_scfDisabled(0),
                e_scfEnable (1)
            } with {
                variant "1 bit"
            }
            type enumerated ChannelOffload {
                e_choffDisabled(0),
                e_choffEnable (1)
            } with {
                variant "1 bit"
            }
            type UInt6 TcId;
            
            
        } // end group geoNetworkingCommonHeader
        } // end group geoNetworkingCommonHeader