DEENESPTFRRUARHIKOZHNL

AUTOSAR Xcp

ModulXcp (XCP)
BSW-Modul-ID212
Standard-Header#include "Xcp.h"
SWS-SpezifikationAUTOSAR_CP_SWS_XCP.pdf, AUTOSAR_SWS_XCP.pdf
Umfang46 Records · 15 Snippets
ClusterKommunikationsdienste (COM)

AUTOSAR Xcp

AUTOSAR Classic Communication Services-Modul XCP (Xcp, Spezifikation: AUTOSAR_CP_SWS_XCP.pdf, AUTOSAR_SWS_XCP.pdf).

Funktionen — Übersicht

Typen — Übersicht

Anforderungen — Übersicht

Funktionen & Typen — Detailansicht

함수 Xcp_Init [SWS_Xcp_00803] 📄 PDF

void Xcp_Init(const Xcp_ConfigType* Xcp_ConfigPtr);

This service initializes interfaces and variables of the AUTOSAR XCP layer.

함수 Xcp_<Lo>RxIndication [SWS_Xcp_00813] 📄 PDF

void Xcp_<Lo>RxIndication(PduIdType RxPduId, const PduInfoType* PduInfoPtr); ⚠️

Indication of a received PDU from a lower layer communication interface module.

함수 Xcp_<Lo>TxConfirmation [SWS_Xcp_00814] 📄 PDF

void Xcp_< Lo>TxConfirmation(PduIdType TxPduId, Std_ReturnType result); ⚠️

The lower layer communication interface module confirms the transmission of a PDU, or the failure to transmit a PDU.

함수 Xcp_<Lo>TriggerTransmit [SWS_Xcp_00835] 📄 PDF

Std_ReturnType Xcp_<Lo>TriggerTransmit(PduIdType TxPduId, PduInfoType* PduInfoPtr); ⚠️

Within this API , the upper layer module (called module) shall check whether the available data fits into the buffer size reported by Pdu Info Ptr - >Sdu Length. If it fits, it shall copy its data into the buffer provided by Pdu Info Ptr - >Sdu Data Ptr and update the length of the actual copied data in Pdu Info Ptr - >Sdu Length. If not, it returns E_ NOT_ OK without changing Pdu Info Ptr.

함수 Xcp_SetTransmissionMode [SWS_Xcp_00844] 📄 PDF

void Xcp_SetTransmissionMode(NetworkHandleType Channel, Xcp_TransmissionModeType Mode);

This API is used to turn on and off of the TX capabilities of used communication bus channel in XCP module.

타입 Xcp_ConfigType [SWS_Xcp_00845] 📄 PDF

This is the type of the data structure containing the initialization data for XCP.

타입 Xcp_TransmissionModeType [SWS_Xcp_00846] 📄 PDF

Handles the enabling and disabling of the transmission mode

requirement SWS_Xcp_00701 [SWS_Xcp_00701] 📄 PDF

Black arrows: Data Path (Signals/Pdus) Orange arrows: Control Path (FlexRay Interface) [SWS_Xcp_00860] Location of the XCP module in the AUTOSAR communication stack Status: DRAFT Replaces: SWS_Xcp_00701 Upstream requirements: SRS_Xcp_29030 ⌈The AUTOSAR XCP Module and the bus specific Interfaces shall be located above the AUTOSAR PDU Routing module (PduR) [4]. ⌋

requirement SWS_Xcp_00702 [SWS_Xcp_00702] 📄 PDF

Black arrows: Data Path (Signals/Pdus) Orange arrows: Control Path (FlexRay Interface) [SWS_Xcp_00860] Location of the XCP module in the AUTOSAR communication stack Status: DRAFT Replaces: SWS_Xcp_00701 Upstream requirements: SRS_Xcp_29030 ⌈The AUTOSAR XCP Module and the bus specific Interfaces shall be located above the AUTOSAR PDU Routing module (PduR) [4]. ⌋

requirement SWS_Xcp_00703 [SWS_Xcp_00703] 📄 PDF

Black arrows: Data Path (Signals/Pdus) Orange arrows: Control Path (FlexRay Interface) [SWS_Xcp_00860] Location of the XCP module in the AUTOSAR communication stack Status: DRAFT Replaces: SWS_Xcp_00701 Upstream requirements: SRS_Xcp_29030 ⌈The AUTOSAR XCP Module and the bus specific Interfaces shall be located above the AUTOSAR PDU Routing module (PduR) [4]. ⌋

requirement SWS_Xcp_00705 [SWS_Xcp_00705] 📄 PDF

[SWS_Xcp_00705] Upstream requirements: SRS_Xcp_29009 ⌈The AUTOSAR XCP Module shall support the basic feature "Synchronous data ac- quisition (measurement) ". Please refer to [3]⌋

requirement SWS_Xcp_00706 [SWS_Xcp_00706] 📄 PDF

[SWS_Xcp_00706] Upstream requirements: SRS_Xcp_29013 ⌈The AUTOSAR XCP Module shall support the feature "Dynamic DAQ Configuration". according to [3]⌋

requirement SWS_Xcp_00707 [SWS_Xcp_00707] 📄 PDF

[SWS_Xcp_00707] Upstream requirements: SRS_Xcp_29010 ⌈The AUTOSAR XCP Module shall support the basic feature "Synchronous data stim- ulation" according to [3]⌋

requirement SWS_Xcp_00708 [SWS_Xcp_00708] 📄 PDF

[SWS_Xcp_00708] ⌈The AUTOSAR XCP Module shall support the basic feature "On- line memory calibration (read / write access) ", according to [3]⌋

requirement SWS_Xcp_00709 [SWS_Xcp_00709] 📄 PDF

[SWS_Xcp_00709] Upstream requirements: SRS_Xcp_29014 ⌈The AUTOSAR XCP Module shall support the feature "Timestamped Data Transfer", according to [3]⌋

requirement SWS_Xcp_00711 [SWS_Xcp_00711] 📄 PDF

[SWS_Xcp_00711] ⌈The AUTOSAR XCP Module shall support the feature "Block communication mode", according to [3]⌋

requirement SWS_Xcp_00761 [SWS_Xcp_00761] 📄 PDF

[SWS_Xcp_00761] Upstream requirements: SRS_Xcp_29015 ⌈The AUTOSAR XCP Module shall support the feature "Bypassing", according to [3]⌋

requirement SWS_Xcp_00766 [SWS_Xcp_00766] 📄 PDF

[SWS_Xcp_00766] Upstream requirements: SRS_Xcp_29016 ⌈The AUTOSAR XCP Module shall support the feature "Seed & Key" according to [3]⌋

requirement SWS_Xcp_00768 [SWS_Xcp_00768] 📄 PDF

[SWS_Xcp_00768] ⌈The ECU local time shall be derived from the AUTOSAR OS.⌋

requirement SWS_Xcp_00801 [SWS_Xcp_00801] 📄 PDF

Module Header File Imported Type Com Stack_ Types Com Stack_ Types.h Network Handle Type Com Stack_ Types.h Pdu Id Type Com Stack_ Types.h Pdu Info Type Com Stack_ Types.h Pdu Length Type Fr Fr_ General Types.h Fr _ Channel Type Os Os.h Status Type Os.h Tick Ref Type Os.h Tick Type Rte_ Os_ Type.h Counter Type Std Std_ Types.h Std _ Return Type Std_ Types.h Std _ Version Info Type

requirement SWS_Xcp_00824 [SWS_Xcp_00824] 📄 PDF

[SWS_Xcp_00824] ⌈The XCP Main Function shall be called cyclically.⌋

requirement SWS_Xcp_00825 [SWS_Xcp_00825] 📄 PDF

[SWS_Xcp_00825] ⌈If development error detection for the Xcp module is en- abled, then the function Xcp_GetVersionInfo shall check whether the param- eter VersioninfoPtr is a NULL pointer (NULL_PTR). If VersioninfoPtr is a NULL pointer, then the function Xcp_GetVersionInfo shall raise the development error XCP_E_PARAM_POINTER and return.⌋

requirement SWS_Xcp_00832 [SWS_Xcp_00832] 📄 PDF

Can If _ - Transmit Can If.h Requests transmission of a PDU. Det _ Report - Error Det.h Service to report development errors. Fr If _ Disable - L Pdu Fr If.h Wraps the Flex Ray Driver Function Fr_ Disable LPdu. It disables the hardware resource of an LPdu for transmission/ reception. Fr If _ - Reconfig L - Pdu Fr If.h Calls the Flex Ray Driver's API Fr_ Reconfig LPdu. The enum value "FR_ CHANNEL_ AB" shall not be used. Fr If _ - Transmit Fr If.h Requests transmission of a PDU. Get Counter - Value Os.h This service reads the current count value of a counter (returning either the hardware timer ticks if counter is driven by hardware or the software ticks when user driv es counter). Get Elapsed - Value Os.h This service gets the number of ticks between the current tick value and a previously read tick value. So Ad _ If - Transmit So Ad.h Requests transmission of a PDU.

requirement SWS_Xcp_00836 [SWS_Xcp_00836] 📄 PDF

[SWS_Xcp_00836] ⌈This is a list of functions provided for other modules.⌋

requirement SWS_Xcp_00840 [SWS_Xcp_00840] 📄 PDF

[SWS_Xcp_00840] ⌈If development error detection for the XCP module is enabled: if the function Xcp_<Lo>TxConfirmation is called before the XCP was initialized successfully, the function Xcp_<Lo>TxConfirmation shall raise the development error XCP_E_UNINIT and return.⌋()

requirement SWS_Xcp_00841 [SWS_Xcp_00841] 📄 PDF

[SWS_Xcp_00841] ⌈Caveats of Xcp_<Lo>TxConfirmation: • The call context is either on interrupt level (interrupt mode) or on task level • The Xcp module is initialized correctly. ⌋()

requirement SWS_Xcp_00842 [SWS_Xcp_00842] 📄 PDF

[SWS_Xcp_00842] ⌈If development error detection for the XCP module is enabled: if the function Xcp_<Lo>TriggerTransmit is called before the XCP was initialized successfully, the function Xcp_<Lo>TriggerTransmit shall raise the development error XCP_E_ UNINIT and return E_NOT_OK.⌋()

requirement SWS_Xcp_00843 [SWS_Xcp_00843] 📄 PDF

[SWS_Xcp_00843] ⌈Caveats of Xcp_<Lo>TriggerTransmit: • The call context is either on interrupt level (interrupt mode) or on task level • The Xcp module is initialized correctly. ⌋()

requirement SWS_Xcp_00849 [SWS_Xcp_00849] 📄 PDF

If Xcp_SetTransmissionMode(Channel, Mode) is called and parameter Mode equals XCP_TX_OFF , all TxPDUs which are assigned to Channel shall not be transmitted.

requirement SWS_Xcp_00852 [SWS_Xcp_00852] 📄 PDF

The AUTOSAR XCP Module shall support the feature “ Page switching “ , according to [ 13]

requirement SWS_Xcp_00853 [SWS_Xcp_00853] 📄 PDF

The code generator of the XCP Module shall generate the A2L IF_DATA section, based on the configuration of XCP

requirement SWS_Xcp_00854 [SWS_Xcp_00854] 📄 PDF

The AUTOSAR XCP Module shall support the feature “ Power - Up data transfer (R ESUME MODE) “ , according to [13]

requirement SWS_Xcp_00855 [SWS_Xcp_00855] 📄 PDF

The AUTOSAR XCP Module shall support the flash programming (PGM) according to [13]

requirement SWS_Xcp_00856 [SWS_Xcp_00856] 📄 PDF

Indication the end of a programming sequence is supported using the opti onal command "PROG RAM_RESET", w here the slave will go to disconnected state but without forcing a device reset

requirement SWS_Xcp_00857 [SWS_Xcp_00857] 📄 PDF

Type of error Related error code Error value Module not initialized XCP_ E_ UNINIT 0x02 API call with wrong PDU ID CP_ E_ INVALID_ PDUID 0x03 Initialization of XCP failed XCP_ E_ INIT_ FAILED 0x04 Null pointer has been passed as an argument XCP_ E_ PARAM_ POINTER 0x12

requirement SWS_Xcp_00859 [SWS_Xcp_00859] 📄 PDF

T he XCP module shall wait for the Xcp_<Lo>TxConfirmation (positive or negative) after each call to <Lo>_Transm it to avoid overwriting previously transmitted data

requirement SWS_Xcp_00860 [SWS_Xcp_00860] 📄 PDF

[SWS_Xcp_00860] Location of the XCP module in the AUTOSAR communication stack Status: DRAFT Replaces: SWS_Xcp_00701 Upstream requirements: SRS_Xcp_29030 ⌈The AUTOSAR XCP Module and the bus specific Interfaces shall be located above the AUTOSAR PDU Routing module (PduR) [4]. ⌋

requirement SWS_Xcp_00863 [SWS_Xcp_00863] 📄 PDF

[SWS_Xcp_00863] Waiting for call of Xcp_TxConfirmation to avoid overwritting previously transmitted data Status: DRAFT Replaces: SWS_Xcp_00859 Upstream requirements: SRS_Xcp_29030 ⌈The XCP module shall wait for the Xcp_TxConfirmation (positive or negative) after each call to PduR_XcpTransmit to avoid overwriting previously transmitted data.⌋

requirement SWS_Xcp_00868 [SWS_Xcp_00868] 📄 PDF

[SWS_Xcp_00868] Development error handling in context of Xcp_TxConfirma- tion Status: DRAFT Replaces: SWS_Xcp_00840 ⌈If development error detection for the XCP module is enabled: if the function Xcp_ TxConfirmation is called before the XCP was initialized successfully, the function Xcp_TxConfirmation shall raise the development error XCP_E_UNINIT and re- turn.⌋

requirement SWS_Xcp_00869 [SWS_Xcp_00869] 📄 PDF

[SWS_Xcp_00869] Caveats on call of Xcp_TxConfirmation Status: DRAFT Replaces: SWS_Xcp_00841 ⌈Caveats of Xcp_TxConfirmation: • The call context is either on interrupt level (interrupt mode) or on task level • The Xcp module is initialized correctly. ⌋

requirement SWS_Xcp_00870 [SWS_Xcp_00870] 📄 PDF

[SWS_Xcp_00870] Development error handling in context of Xcp_Trigger- Transmit Status: DRAFT Replaces: SWS_Xcp_00842 ⌈If development error detection for the XCP module is enabled: if the function Xcp_TriggerTransmit is called before the XCP was initialized successfully, the function Xcp_TriggerTransmit shall raise the development error XCP_E_UNINIT and return E_NOT_OK.⌋

requirement SWS_Xcp_00871 [SWS_Xcp_00871] 📄 PDF

[SWS_Xcp_00871] Caveats on call of Xcp_TriggerTransmit Status: DRAFT Replaces: SWS_Xcp_00843 ⌈Caveats of Xcp_TriggerTransmit: • The call context is either on interrupt level (interrupt mode) or on task level • The Xcp module is initialized correctly. ⌋

requirement SWS_Xcp_CONSTR_00861 [SWS_Xcp_CONSTR_00861] 📄 PDF

[SWS_Xcp_CONSTR_00861] XcpRxPdu and XcpTxPdu constraint for keeping the local buffer Status: DRAFT Upstream requirements: SRS_Xcp_29003 ⌈Each XcpRxPdu and XcpTxPdu shall refer to global PDU that has KeepLocalP- duBuffer set to FALSE.⌋

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

Record
AUTOSAR/AP/record/CP_MOD_Xcp
Status
unspecified
Version
AUTOSAR/AP/record/CP_MOD_Xcp@rel:R20-11#fb09b4cd
Content hash
fb09b4cd
Source
https://www.autosar.org/fileadmin/standards/R20-11/CP/AUTOSAR_SWS_XCP.pdf#nameddest=SWS_Xcp_00803

초기화 및 상태

Returns the version information of this module.

void Xcp_GetVersionInfo(Std_VersionInfoType* versioninfo);
Xcp_Init 함수

This service initializes interfaces and variables of the AUTOSAR XCP layer.

void Xcp_Init(const Xcp_ConfigType* Xcp_ConfigPtr);

서비스

Within this API , the upper layer module (called module) shall check whether the available data fits into the buffer size reported by Pdu Info Ptr - >Sdu Length. If it fits, it shall copy its data into the buffer provided by Pdu Info Ptr - >Sdu Data Ptr and update the length of the actual copied data in Pdu Info Ptr - >Sdu Length. If not, it returns E_ NOT_ OK without changing Pdu Info Ptr.

Std_ReturnType Xcp_<Lo>TriggerTransmit(PduIdType TxPduId, PduInfoType* PduInfoPtr); ⚠️

This API is used to turn on and off of the TX capabilities of used communication bus channel in XCP module.

void Xcp_SetTransmissionMode(NetworkHandleType Channel, Xcp_TransmissionModeType Mode);

콜백

Indication of a received PDU from a lower layer communication interface module.

void Xcp_<Lo>RxIndication(PduIdType RxPduId, const PduInfoType* PduInfoPtr); ⚠️

The lower layer communication interface module confirms the transmission of a PDU, or the failure to transmit a PDU.

void Xcp_< Lo>TxConfirmation(PduIdType TxPduId, Std_ReturnType result); ⚠️

주기적

Scheduled function of the XCP module

void Xcp_MainFunction(void);

타입

This is the type of the data structure containing the initialization data for XCP.

Handles the enabling and disabling of the transmission mode

요구사항

SWS_Xcp_00701 requirement

Black arrows: Data Path (Signals/Pdus) Orange arrows: Control Path (FlexRay Interface) [SWS_Xcp_00860] Location of the XCP module in the AUTOSAR communication stack Status: DRAFT Replaces: SWS_Xcp_00701 Upstream requirements: SRS_Xcp_29030 ⌈The AUTOSAR XCP Module and the bus specific Interfaces shall be located above the AUTOSAR PDU Routing module (PduR) [4]. ⌋

SWS_Xcp_00702 requirement

Black arrows: Data Path (Signals/Pdus) Orange arrows: Control Path (FlexRay Interface) [SWS_Xcp_00860] Location of the XCP module in the AUTOSAR communication stack Status: DRAFT Replaces: SWS_Xcp_00701 Upstream requirements: SRS_Xcp_29030 ⌈The AUTOSAR XCP Module and the bus specific Interfaces shall be located above the AUTOSAR PDU Routing module (PduR) [4]. ⌋

SWS_Xcp_00703 requirement

Black arrows: Data Path (Signals/Pdus) Orange arrows: Control Path (FlexRay Interface) [SWS_Xcp_00860] Location of the XCP module in the AUTOSAR communication stack Status: DRAFT Replaces: SWS_Xcp_00701 Upstream requirements: SRS_Xcp_29030 ⌈The AUTOSAR XCP Module and the bus specific Interfaces shall be located above the AUTOSAR PDU Routing module (PduR) [4]. ⌋

SWS_Xcp_00705 requirement

[SWS_Xcp_00705] Upstream requirements: SRS_Xcp_29009 ⌈The AUTOSAR XCP Module shall support the basic feature "Synchronous data ac- quisition (measurement) ". Please refer to [3]⌋

SWS_Xcp_00706 requirement

[SWS_Xcp_00706] Upstream requirements: SRS_Xcp_29013 ⌈The AUTOSAR XCP Module shall support the feature "Dynamic DAQ Configuration". according to [3]⌋

SWS_Xcp_00707 requirement

[SWS_Xcp_00707] Upstream requirements: SRS_Xcp_29010 ⌈The AUTOSAR XCP Module shall support the basic feature "Synchronous data stim- ulation" according to [3]⌋

SWS_Xcp_00708 requirement

[SWS_Xcp_00708] ⌈The AUTOSAR XCP Module shall support the basic feature "On- line memory calibration (read / write access) ", according to [3]⌋

SWS_Xcp_00709 requirement

[SWS_Xcp_00709] Upstream requirements: SRS_Xcp_29014 ⌈The AUTOSAR XCP Module shall support the feature "Timestamped Data Transfer", according to [3]⌋

SWS_Xcp_00711 requirement

[SWS_Xcp_00711] ⌈The AUTOSAR XCP Module shall support the feature "Block communication mode", according to [3]⌋

SWS_Xcp_00761 requirement

[SWS_Xcp_00761] Upstream requirements: SRS_Xcp_29015 ⌈The AUTOSAR XCP Module shall support the feature "Bypassing", according to [3]⌋

SWS_Xcp_00766 requirement

[SWS_Xcp_00766] Upstream requirements: SRS_Xcp_29016 ⌈The AUTOSAR XCP Module shall support the feature "Seed & Key" according to [3]⌋

SWS_Xcp_00768 requirement

[SWS_Xcp_00768] ⌈The ECU local time shall be derived from the AUTOSAR OS.⌋

SWS_Xcp_00801 requirement

Module Header File Imported Type Com Stack_ Types Com Stack_ Types.h Network Handle Type Com Stack_ Types.h Pdu Id Type Com Stack_ Types.h Pdu Info Type Com Stack_ Types.h Pdu Length Type Fr Fr_ General Types.h Fr _ Channel Type Os Os.h Status Type Os.h Tick Ref Type Os.h Tick Type Rte_ Os_ Type.h Counter Type Std Std_ Types.h Std _ Return Type Std_ Types.h Std _ Version Info Type

SWS_Xcp_00824 requirement

[SWS_Xcp_00824] ⌈The XCP Main Function shall be called cyclically.⌋

SWS_Xcp_00825 requirement

[SWS_Xcp_00825] ⌈If development error detection for the Xcp module is en- abled, then the function Xcp_GetVersionInfo shall check whether the param- eter VersioninfoPtr is a NULL pointer (NULL_PTR). If VersioninfoPtr is a NULL pointer, then the function Xcp_GetVersionInfo shall raise the development error XCP_E_PARAM_POINTER and return.⌋

SWS_Xcp_00832 requirement

Can If _ - Transmit Can If.h Requests transmission of a PDU. Det _ Report - Error Det.h Service to report development errors. Fr If _ Disable - L Pdu Fr If.h Wraps the Flex Ray Driver Function Fr_ Disable LPdu. It disables the hardware resource of an LPdu for transmission/ reception. Fr If _ - Reconfig L - Pdu Fr If.h Calls the Flex Ray Driver's API Fr_ Reconfig LPdu. The enum value "FR_ CHANNEL_ AB" shall not be used. Fr If _ - Transmit Fr If.h Requests transmission of a PDU. Get Counter - Value Os.h This service reads the current count value of a counter (returning either the hardware timer ticks if counter is driven by hardware or the software ticks when user driv es counter). Get Elapsed - Value Os.h This service gets the number of ticks between the current tick value and a previously read tick value. So Ad _ If - Transmit So Ad.h Requests transmission of a PDU.

SWS_Xcp_00836 requirement

[SWS_Xcp_00836] ⌈This is a list of functions provided for other modules.⌋

SWS_Xcp_00840 requirement

[SWS_Xcp_00840] ⌈If development error detection for the XCP module is enabled: if the function Xcp_<Lo>TxConfirmation is called before the XCP was initialized successfully, the function Xcp_<Lo>TxConfirmation shall raise the development error XCP_E_UNINIT and return.⌋()

SWS_Xcp_00841 requirement

[SWS_Xcp_00841] ⌈Caveats of Xcp_<Lo>TxConfirmation: • The call context is either on interrupt level (interrupt mode) or on task level • The Xcp module is initialized correctly. ⌋()

SWS_Xcp_00842 requirement

[SWS_Xcp_00842] ⌈If development error detection for the XCP module is enabled: if the function Xcp_<Lo>TriggerTransmit is called before the XCP was initialized successfully, the function Xcp_<Lo>TriggerTransmit shall raise the development error XCP_E_ UNINIT and return E_NOT_OK.⌋()

SWS_Xcp_00843 requirement

[SWS_Xcp_00843] ⌈Caveats of Xcp_<Lo>TriggerTransmit: • The call context is either on interrupt level (interrupt mode) or on task level • The Xcp module is initialized correctly. ⌋()

SWS_Xcp_00849 requirement

If Xcp_SetTransmissionMode(Channel, Mode) is called and parameter Mode equals XCP_TX_OFF , all TxPDUs which are assigned to Channel shall not be transmitted.

SWS_Xcp_00852 requirement

The AUTOSAR XCP Module shall support the feature “ Page switching “ , according to [ 13]

SWS_Xcp_00853 requirement

The code generator of the XCP Module shall generate the A2L IF_DATA section, based on the configuration of XCP

SWS_Xcp_00854 requirement

The AUTOSAR XCP Module shall support the feature “ Power - Up data transfer (R ESUME MODE) “ , according to [13]

SWS_Xcp_00855 requirement

The AUTOSAR XCP Module shall support the flash programming (PGM) according to [13]

SWS_Xcp_00856 requirement

Indication the end of a programming sequence is supported using the opti onal command "PROG RAM_RESET", w here the slave will go to disconnected state but without forcing a device reset

SWS_Xcp_00857 requirement

Type of error Related error code Error value Module not initialized XCP_ E_ UNINIT 0x02 API call with wrong PDU ID CP_ E_ INVALID_ PDUID 0x03 Initialization of XCP failed XCP_ E_ INIT_ FAILED 0x04 Null pointer has been passed as an argument XCP_ E_ PARAM_ POINTER 0x12

SWS_Xcp_00859 requirement

T he XCP module shall wait for the Xcp_<Lo>TxConfirmation (positive or negative) after each call to <Lo>_Transm it to avoid overwriting previously transmitted data

SWS_Xcp_00860 requirement

[SWS_Xcp_00860] Location of the XCP module in the AUTOSAR communication stack Status: DRAFT Replaces: SWS_Xcp_00701 Upstream requirements: SRS_Xcp_29030 ⌈The AUTOSAR XCP Module and the bus specific Interfaces shall be located above the AUTOSAR PDU Routing module (PduR) [4]. ⌋

SWS_Xcp_00863 requirement

[SWS_Xcp_00863] Waiting for call of Xcp_TxConfirmation to avoid overwritting previously transmitted data Status: DRAFT Replaces: SWS_Xcp_00859 Upstream requirements: SRS_Xcp_29030 ⌈The XCP module shall wait for the Xcp_TxConfirmation (positive or negative) after each call to PduR_XcpTransmit to avoid overwriting previously transmitted data.⌋

SWS_Xcp_00868 requirement

[SWS_Xcp_00868] Development error handling in context of Xcp_TxConfirma- tion Status: DRAFT Replaces: SWS_Xcp_00840 ⌈If development error detection for the XCP module is enabled: if the function Xcp_ TxConfirmation is called before the XCP was initialized successfully, the function Xcp_TxConfirmation shall raise the development error XCP_E_UNINIT and re- turn.⌋

SWS_Xcp_00869 requirement

[SWS_Xcp_00869] Caveats on call of Xcp_TxConfirmation Status: DRAFT Replaces: SWS_Xcp_00841 ⌈Caveats of Xcp_TxConfirmation: • The call context is either on interrupt level (interrupt mode) or on task level • The Xcp module is initialized correctly. ⌋

SWS_Xcp_00870 requirement

[SWS_Xcp_00870] Development error handling in context of Xcp_Trigger- Transmit Status: DRAFT Replaces: SWS_Xcp_00842 ⌈If development error detection for the XCP module is enabled: if the function Xcp_TriggerTransmit is called before the XCP was initialized successfully, the function Xcp_TriggerTransmit shall raise the development error XCP_E_UNINIT and return E_NOT_OK.⌋

SWS_Xcp_00871 requirement

[SWS_Xcp_00871] Caveats on call of Xcp_TriggerTransmit Status: DRAFT Replaces: SWS_Xcp_00843 ⌈Caveats of Xcp_TriggerTransmit: • The call context is either on interrupt level (interrupt mode) or on task level • The Xcp module is initialized correctly. ⌋

SWS_Xcp_91001 requirement

There are no mandatory interfaces.

[SWS_Xcp_CONSTR_00861] XcpRxPdu and XcpTxPdu constraint for keeping the local buffer Status: DRAFT Upstream requirements: SRS_Xcp_29003 ⌈Each XcpRxPdu and XcpTxPdu shall refer to global PDU that has KeepLocalP- duBuffer set to FALSE.⌋