DEENESPTFRRUARHIKOZHNL

Vehicle-2-X Basic Transport (V2xBtp)

ModulV2xBtp (Vehicle-2-X Basic Transport)
BSW-Modul-ID183
Standard-Header#include "V2xBtp.h"
SWS-SpezifikationAUTOSAR_CP_SWS_V2XBasicTransport.pdf, AUTOSAR_SWS_V2XBasicTransport.pdf
Umfang21 Records · 3 Snippets
ClusterVehicle-2-X (V2X)

Vehicle-2-X Basic Transport (V2xBtp)

AUTOSAR Classic Off-board Comm. Services-Modul Vehicle-2-X Basic Transport (V2xBtp, Spezifikation: AUTOSAR_CP_SWS_V2XBasicTransport.pdf, AUTOSAR_SWS_V2XBasicTransport.pdf).

Funktionen — Übersicht

Typen — Übersicht

Anforderungen — Übersicht

Funktionen & Typen — Detailansicht

फ़ंक्शन V2xBtp_Transmit [SWS_V2xBtp_00031] 📄 PDF

Std_ReturnType V2xBtp_Transmit(uint16 TransactionId16, const V2xBtp_TxParamsType* TransmitParams, uint16 Length, const uint8* DataPtr);

This API is c alled by the V2x Fac module to request sending a BTP - PDU to the peer BTP entity.

फ़ंक्शन V2xBtp_RxIndication [SWS_V2xBtp_00032] 📄 PDF

void V2xBtp_RxIndication(uint32 TransactionId32, const V2xBtp_RxParamsType* ReceiveParams, uint16 Length, const uint8* DataPtr);

Via this API, the V2x Btp module gets the data (BTP - PDU), the Geo Networking parameters and the Transaction ID of a received Geo Networking packet.

फ़ंक्शन V2xBtp_TxConfirmation [SWS_V2xBtp_00033] 📄 PDF

void V2xBtp_TxConfirmation(uint16 TransactionId16);

By this API primitive, the V2x Btp module gets an indication from the V2x Gn module about the status of the transmission of the data (FAC - PDU) with the associated ID.

फ़ंक्शन <User>_RxIndication [SWS_V2xBtp_00056] 📄 PDF

void <User>_RxIndication(uint32 TransactionId32, const V2xBtp_RxParamsType* ReceiveParams, uint16 Length, const uint8* DataPtr);

Via this API, the BTP upper layer modules gets the data (BTP - SDU), the Geo Networking parameters and the Transaction ID of a received BTP packet.

टाइप V2xBtp_TxParamsType [SWS_V2xBtp_00027] 📄 PDF

Structure containing BTP and Geo Networking related parameters that should be passed to the transmit request function (i.e. V2x Btp_ Transmit defined in 8.3.3) by the V2x Fac module.

टाइप V2xBtp_RxParamsType [SWS_V2xBtp_00028] 📄 PDF

Structure containing BTP and Geo Networking parameters related to a received BTP packet. This structure should be passed to the V2x Btp module from the V2x Gn Module when the V2x Gn module receives a GN packet from the peer Geo Networking entit y.

requirement SWS_V2xBtp_00023 [SWS_V2xBtp_00023] 📄 PDF

Type of error Related error code Error value API service called with invalid parameter V2XBTP_ E_ PARAM 0x01 API service called with invalid pointer V2XBTP_ E_ PARAM_ POINTER 0x02 API service used without module initialization V2XBTP_ E_ UNINIT 0x03 V2x Btp initialization failed V2XBTP_ E_ INIT_ FAILED 0x04

requirement SWS_V2xBtp_00024 [SWS_V2xBtp_00024] 📄 PDF

Module Header File Imported Type Std Std_ Types.h Std _ Return Type Std_ Types.h Std _ Version Info Type V2x_ General Types Rte_ V2x M_ Type.h V2x M _ Sec Report Type V2x_ General Types.h V2x _ Gn Address Type V2x_ General Types.h V2x _ Gn Area Shape Type V2x_ General Types.h V2x _ Gn Destination Area Type V2x_ General Types.h V2x _ Gn Destination Type V2x_ General Types.h V2x _ Gn Long Position Vector Type V2x_ General Types.h V2x _ Gn Packet Transport Type V2x_ General Types.h V2x _ Gn Tx Result Type V2x_ General Types.h V2x _ Gn Upper Protocol Type V2x_ General Types.h V2x _ Sec Profile Type V2x_ General Types.h V2x _ Traffic Class Id Type V2x Fac V2x Fac.h V2x Fac _ Rx Params Type V2x Gn V2x Gn.h V2x Gn _ Tx Params Type

requirement SWS_V2xBtp_00034 [SWS_V2xBtp_00034] 📄 PDF

V2x Fac _ Rx - Indication V2x Fac.h This API primitive is called by the V2x Btp module providing the data and the Geo Networking parameters of a received BTP packet to V2x Fac module. V2x Gn _ - Transmit V2x Gn.h Is called by V2x_ Btp to send a message.

requirement SWS_V2xBtp_00041 [SWS_V2xBtp_00041] 📄 PDF

[SWS_V2xBtp_00041] ⌈If development error detection is enabled: the function shall check the parameter VersionInfoPtr for being valid. If the check fails, the function shall raise the development error V2XBTP_E_PARAM_POINTER.⌋

requirement SWS_V2xBtp_00042 [SWS_V2xBtp_00042] 📄 PDF

[SWS_V2xBtp_00042] ⌈If development error detection is enabled: the function shall check that the service V2xBtp_Init() was previously called. If the check fails, the function shall raise the development error V2XBTP_E_UNINIT.⌋

requirement SWS_V2xBtp_00043 [SWS_V2xBtp_00043] 📄 PDF

[SWS_V2xBtp_00043] ⌈If development error detection is enabled: the function shall check the parameter TransmitParams for being valid. If the check fails, the function shall raise the development error V2XBTP_E_PARAM_POINTER.⌋

requirement SWS_V2xBtp_00044 [SWS_V2xBtp_00044] 📄 PDF

[SWS_V2xBtp_00044] ⌈If development error detection is enabled: the function shall check the parameter DataPtr for being valid. If the check fails, the function shall raise the development error V2XBTP_E_PARAM_POINTER.⌋

requirement SWS_V2xBtp_00053 [SWS_V2xBtp_00053] 📄 PDF

[SWS_V2xBtp_00053] ⌈If development error detection is enabled: the function shall check that the service V2xBtp_Init() was previously called. If the check fails, the function shall raise the development error V2XBTP_E_UNINIT.⌋

requirement SWS_V2xBtp_00054 [SWS_V2xBtp_00054] 📄 PDF

[SWS_V2xBtp_00054] ⌈If development error detection is enabled: the function shall check the parameter DestPtr for being valid. If the check fails, the function shall raise the development error V2XBTP_E_PARAM_POINTER.⌋

requirement SWS_V2xBtp_00057 [SWS_V2xBtp_00057] 📄 PDF

[SWS_V2xBtp_00057] ⌈If development error detection is enabled: the function shall check the parameter Length for being valid (Pointer is not NULL_PTR and value matches to data length). If the check fails, the function shall raise the development error V2XBTP_E_PARAM_POINTER.⌋

requirement SWS_V2xBtp_20274 [SWS_V2xBtp_20274] 📄 PDF

The V2xBt p module shall set the destination port info field to the value 0.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/CP_MOD_V2xBtp
Status
unspecified
Version
AUTOSAR/AP/record/CP_MOD_V2xBtp@rel:R20-11#06872355
Content hash
06872355
Source
https://www.autosar.org/fileadmin/standards/R20-11/CP/AUTOSAR_SWS_V2XBasicTransport.pdf#nameddest=SWS_V2xBtp_00029

विषय मानचित्र

विवरण दृश्य

रूपरेखा में कोई प्रविष्टि चुनें।

आरंभीकरण और स्थिति

V2Btp_GetVersionInfo फ़ंक्शन

Returns the version information of this module.

void V2Btp_GetVersionInfo(Std_VersionInfoType* VersionInfoPtr);
V2xBtp_Init फ़ंक्शन

Initializes the V2x Btp module.

void V2xBtp_Init(void* CfgPtr);

सेवाएँ

V2xBtp_Transmit फ़ंक्शन

This API is c alled by the V2x Fac module to request sending a BTP - PDU to the peer BTP entity.

Std_ReturnType V2xBtp_Transmit(uint16 TransactionId16, const V2xBtp_TxParamsType* TransmitParams, uint16 Length, const uint8* DataPtr);

कॉलबैक

User_RxIndication फ़ंक्शन

Via this API, the BTP upper layer modules gets the data (BTP - SDU), the Geo Networking parameters and the Transaction ID of a received BTP packet.

void <User>_RxIndication(uint32 TransactionId32, const V2xBtp_RxParamsType* ReceiveParams, uint16 Length, const uint8* DataPtr);
V2xBtp_CopyTxData फ़ंक्शन

This API is called by the V2x Gn module to request the V2x Btp module to copy the transmission data to a specific location.

Std_ReturnType V2xBtp_CopyTxData(uint16 TransactionId16, uint8* DestPtr, uint16* Length);
V2xBtp_RxIndication फ़ंक्शन

Via this API, the V2x Btp module gets the data (BTP - PDU), the Geo Networking parameters and the Transaction ID of a received Geo Networking packet.

void V2xBtp_RxIndication(uint32 TransactionId32, const V2xBtp_RxParamsType* ReceiveParams, uint16 Length, const uint8* DataPtr);
V2xBtp_TxConfirmation फ़ंक्शन

By this API primitive, the V2x Btp module gets an indication from the V2x Gn module about the status of the transmission of the data (FAC - PDU) with the associated ID.

void V2xBtp_TxConfirmation(uint16 TransactionId16);

टाइप

V2xBtp_RxParamsType टाइप

Structure containing BTP and Geo Networking parameters related to a received BTP packet. This structure should be passed to the V2x Btp module from the V2x Gn Module when the V2x Gn module receives a GN packet from the peer Geo Networking entit y.

V2xBtp_TxParamsType टाइप

Structure containing BTP and Geo Networking related parameters that should be passed to the transmit request function (i.e. V2x Btp_ Transmit defined in 8.3.3) by the V2x Fac module.

आवश्यकताएँ

SWS_V2xBtp_00023 requirement

Type of error Related error code Error value API service called with invalid parameter V2XBTP_ E_ PARAM 0x01 API service called with invalid pointer V2XBTP_ E_ PARAM_ POINTER 0x02 API service used without module initialization V2XBTP_ E_ UNINIT 0x03 V2x Btp initialization failed V2XBTP_ E_ INIT_ FAILED 0x04

SWS_V2xBtp_00024 requirement

Module Header File Imported Type Std Std_ Types.h Std _ Return Type Std_ Types.h Std _ Version Info Type V2x_ General Types Rte_ V2x M_ Type.h V2x M _ Sec Report Type V2x_ General Types.h V2x _ Gn Address Type V2x_ General Types.h V2x _ Gn Area Shape Type V2x_ General Types.h V2x _ Gn Destination Area Type V2x_ General Types.h V2x _ Gn Destination Type V2x_ General Types.h V2x _ Gn Long Position Vector Type V2x_ General Types.h V2x _ Gn Packet Transport Type V2x_ General Types.h V2x _ Gn Tx Result Type V2x_ General Types.h V2x _ Gn Upper Protocol Type V2x_ General Types.h V2x _ Sec Profile Type V2x_ General Types.h V2x _ Traffic Class Id Type V2x Fac V2x Fac.h V2x Fac _ Rx Params Type V2x Gn V2x Gn.h V2x Gn _ Tx Params Type

SWS_V2xBtp_00034 requirement

V2x Fac _ Rx - Indication V2x Fac.h This API primitive is called by the V2x Btp module providing the data and the Geo Networking parameters of a received BTP packet to V2x Fac module. V2x Gn _ - Transmit V2x Gn.h Is called by V2x_ Btp to send a message.

SWS_V2xBtp_00035 requirement

Det_ReportError Det.h Service to report development errors. ⌋

SWS_V2xBtp_00041 requirement

[SWS_V2xBtp_00041] ⌈If development error detection is enabled: the function shall check the parameter VersionInfoPtr for being valid. If the check fails, the function shall raise the development error V2XBTP_E_PARAM_POINTER.⌋

SWS_V2xBtp_00042 requirement

[SWS_V2xBtp_00042] ⌈If development error detection is enabled: the function shall check that the service V2xBtp_Init() was previously called. If the check fails, the function shall raise the development error V2XBTP_E_UNINIT.⌋

SWS_V2xBtp_00043 requirement

[SWS_V2xBtp_00043] ⌈If development error detection is enabled: the function shall check the parameter TransmitParams for being valid. If the check fails, the function shall raise the development error V2XBTP_E_PARAM_POINTER.⌋

SWS_V2xBtp_00044 requirement

[SWS_V2xBtp_00044] ⌈If development error detection is enabled: the function shall check the parameter DataPtr for being valid. If the check fails, the function shall raise the development error V2XBTP_E_PARAM_POINTER.⌋

SWS_V2xBtp_00053 requirement

[SWS_V2xBtp_00053] ⌈If development error detection is enabled: the function shall check that the service V2xBtp_Init() was previously called. If the check fails, the function shall raise the development error V2XBTP_E_UNINIT.⌋

SWS_V2xBtp_00054 requirement

[SWS_V2xBtp_00054] ⌈If development error detection is enabled: the function shall check the parameter DestPtr for being valid. If the check fails, the function shall raise the development error V2XBTP_E_PARAM_POINTER.⌋

SWS_V2xBtp_00057 requirement

[SWS_V2xBtp_00057] ⌈If development error detection is enabled: the function shall check the parameter Length for being valid (Pointer is not NULL_PTR and value matches to data length). If the check fails, the function shall raise the development error V2XBTP_E_PARAM_POINTER.⌋

SWS_V2xBtp_20274 requirement

The V2xBt p module shall set the destination port info field to the value 0.