Newer
Older
* @version $URL$
* $Id$
* @desc GeoNetworking Templates
* @copyright ETSI Copyright Notification
* No part may be reproduced except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* All rights reserved.
module LibItsGeoNetworking_Templates {
// Libcommon
import from LibCommon_BasicTypesAndValues all;
import from LibCommon_DataStrings all;
import from LibItsCommon_TypesAndValues all;
import from LibItsExternal_TypesAndValues all;
// LibItsBtp
// import from LibItsBtp_Templates all;
// LibItsSecurity
import from LibItsSecurity_TypesAndValues all;
//import from LibItsIpv6OverGeoNetworking_TypesAndValues all;
//import from LibItsIpv6OverGeoNetworking_Templates all;
// import from LibItsGeoNetworking_EncdecDeclarations all;
group geoNwPrimitivesTemplates {
/**
* @desc Send template for GeoNetworking packet (GeonetworkingPort Primitive)
* @param p_geoNwMsg GeoNetworking packet to be sent
* @param p_its_aid ITS-AID used in secured mode. Default: 0, means unused
template (omit) GeoNetworkingReq m_geoNwReq_linkLayerBroadcast(
in template (value) GeoNetworkingPdu p_geoNwMsg,
in template (value) UInt32 p_its_aid := 0
msgOut := p_geoNwMsg,
macDestinationAddress := c_llBroadcast,
/**
* @desc Send template for GeoNetworking packet (GeonetworkingPort Primitive)
* @param p_geoNwMsg GeoNetworking packet to be sent
* @param p_its_aid ITS-AID used in secured mode. Default: 0, means unused
* @param p_llDestinationAdress Link-layer destination address
template (omit) GeoNetworkingReq m_geoNwReq_withLinkLayerDestination(
in template (value) GeoNetworkingPdu p_geoNwMsg,
in template (value) UInt32 p_its_aid := 0,
in template (value) MacAddress p_llDestinationAdress
macDestinationAddress := p_llDestinationAdress
/**
* @desc Receive template for GeoNetworking packet (GeonetworkingPort Primitive)
* @param p_geoNwMsg GeoNetworking packet to be received
template GeoNetworkingInd mw_geoNwInd(
msgIn := p_geoNwMsg,
macDestinationAddress := ?,
ssp := *,
its_aid := *
/**
* @desc Receive template for GeoNetworking packet (GeonetworkingPort Primitive)
* @param p_geoNwMsg GeoNetworking packet to be received
* @param p_llDestinationAdress Link-layer destination address
template GeoNetworkingInd mw_geoNwInd_withLinkLayerDestination(
template (present) MacAddress p_llDestinationAdress
) modifies mw_geoNwInd := {
/**
* @desc Request IUT to send a GeoUnicast message to a specific destination
* @param p_destinationGnAddr Destination of the GeoUnicast message
template (value) UtGnTrigger m_generateGeoUnicastMessage(GN_Address p_destinationGnAddr) := {
tepelmann
committed
gnAddress := p_destinationGnAddr,
trafficClass := valueof(m_trafficClass),
/**
* @desc Request IUT to send a GeoUnicast message to a specific destination with specific lifetime
* @param p_destinationGnAddr Destination of the GeoUnicast message
* @param p_trafficClass TrafficClass of the GeoUnicast message
* @see m_generateGeoUnicastMessage
*/
template (value) UtGnTrigger m_generateGeoUnicastMessageWithTrafficClass(
GN_Address p_destinationGnAddr,
TrafficClass p_trafficClass
) modifies m_generateGeoUnicastMessage := {
geoUnicast := {
trafficClass := p_trafficClass
}
}
/**
* @desc Request IUT to send a GeoUnicast message to a specific destination with specific lifetime
* @param p_destinationGnAddr Destination of the GeoUnicast message
* @param p_lifetime Lifetime of the GeoUnicast message
template (value) UtGnTrigger m_generateGeoUnicastMessageWithLifetime(
GN_Address p_destinationGnAddr,
) modifies m_generateGeoUnicastMessage := {
tepelmann
committed
geoUnicast := {
lifetime := p_lifetime
}
/**
* @desc Request IUT to send a GeoUnicast message to a specific destination with a payload
* @param p_destinationGnAddr Destination of the GeoUnicast message
* @param p_payload Payload of the GeoUnicast message
template (value) UtGnTrigger m_generateGeoUnicastMessageWithPayload(
GN_Address p_destinationGnAddr,
tepelmann
committed
) modifies m_generateGeoUnicastMessage := {
geoUnicast := {
tepelmann
committed
}
/**
* @desc Request IUT to send a GeoUnicast message to a specific destination with specific lifetime with specific payload
* @param p_destinationGnAddr Destination of the GeoUnicast message
* @param p_lifetime Lifetime of the GeoUnicast message
* @param p_payload Payload of the GeoUnicast message
* @see m_generateGeoUnicastMessage
*/
template (value) UtGnTrigger m_generateGeoUnicastMessageWithLifetimeWithPayload(
octetstring p_payload
) modifies m_generateGeoUnicastMessageWithLifetime := {
tepelmann
committed
geoUnicast := {
tepelmann
committed
}
reinaortega
committed
/**
* @desc Request IUT to send a GeoBroadcast message to a specific area
* @param p_geoArea Destination area of the message
GeoArea p_geoArea
tepelmann
committed
geoBroadcast := {
trafficClass := valueof(m_trafficClass),
reserved := c_uInt24Zero,
area := p_geoArea.area,
tepelmann
committed
}
}
Loading full blame...