DEENESPTFRRUARHIKOZHNL

TTCAN Interface (TtcanIf)

ModulTtcanIf (TTCAN Interface)
BSW-Modul-ID66
Standard-Header#include "TtcanIf.h"
SWS-SpezifikationAUTOSAR_CP_SWS_TTCANInterface.pdf, AUTOSAR_SWS_TTCANInterface.pdf
Umfang117 Records · 40 Snippets
ClusterCAN-Stack

TTCAN Interface (TtcanIf)

AUTOSAR Classic Communication HW Abstraction-Modul TTCAN Interface (TtcanIf, Spezifikation: AUTOSAR_CP_SWS_TTCANInterface.pdf, AUTOSAR_SWS_TTCANInterface.pdf).

Funktionen — Übersicht

Typen — Übersicht

Anforderungen — Übersicht

Funktionen & Typen — Detailansicht

함수 <User_TriggerTransmit> [SWS_TtCanIf_00058] 📄 PDF

Std_ReturnType <User_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 PduInfoPtr->SduLength. If it fits, it shall copy its data into the buffer provided by PduInfoPtr->SduDataPtr and update the length of the actual copied data in PduInfoPtr->SduLength. If not, it returns E_NOT_OK without changing PduInfoPtr.

함수 CanIf_TTGetControllerTime [SWS_TtCanIf_00065] 📄 PDF

Std_ReturnType CanIf_TTGetControllerTime(uint8 ControllerId, CanIf_TTTimeType* CanIf_TTGlobalTime, CanIf_TTTimeType* CanIf_TTLocalTime, CanIf_TTTimeType* CanIf_TTCycleTime, uint8* CanIf_TTCycleCount);

Gets the current values for the global, local and cycle time and the cycle count of the controller

함수 CanIf_TTGetMasterState [SWS_TtCanIf_00067] 📄 PDF

Std_ReturnType CanIf_TTGetMasterState(uint8 ControllerId, CanIf_TTMasterStateType* CanIf_TTMasterState);

Gets the master state. The master state includes the sync mode (sync_off, synchronizing, in_ gap, in_schedule) the master-slave mode (master_off, slave, backup_master, current_master) and the current value for ref trigger offset.

함수 CanIf_TTGetNTUActual [SWS_TtCanIf_00069] 📄 PDF

Std_ReturnType CanIf_TTGetNTUActual(uint8 ControllerId, float32 CanIf_TTNTUAct);

Gets the actual value of NTU (network time unit). Together with the local oscillator period, the actual value of NTU can be derived from the actual value of TUR.

함수 CanIf_TTGetErrorLevel [SWS_TtCanIf_00070] 📄 PDF

Std_ReturnType CanIf_TTGetErrorLevel(uint8 ControllerId, CanIf_TTErrorLevelType* CanIf_TTErrorLevel);

Gets the error level. This includes the severity of the error level (S0-S3) and the minimum and maximum value of the message status count.

함수 CanIf_TTSetExtClockSyncCommand [SWS_TtCanIf_00076] 📄 PDF

Std_ReturnType CanIf_TTSetExtClockSyncCommand(uint8 ControllerId);

Adjusts the NTU (network time unit) according to the value given by "NTU adjust". Together with the local oscillator period, "TUR adjust" can be derived from "NTU adjust".

함수 CanIf_TTJobListExec_<Controller> [SWS_TtCanIf_00079] 📄 PDF

void CanIf_TTJobListExec_<Controller>(void);

Processes the job list of the TTCAN controller <Controller>.

함수 CanIf_TTSetTimeMark [SWS_TtCanIf_00082] 📄 PDF

Std_ReturnType CanIf_TTSetTimeMark(uint8 ControllerId, CanIf_TTTimeType CanIf_TTTimeMark, CanIf_TTTimeSourceType CanIf_TTTimeSource);

Sets a new value for the time mark for the given time source.

함수 CanIf_TTTimingError [SWS_TtCanIf_00090] 📄 PDF

Std_ReturnType CanIf_TTTimingError(uint8 ControllerId, CanIf_TTTimingErrorIRQType CanIf_TTTimingErrorIRQ);

Reports one of the following errors: • Change of error level • Tx overflow / underflow • Synchronization failed • Init watch trigger

함수 CanIf_TTMasterStateChange [SWS_TtCanIf_00094] 📄 PDF

Std_ReturnType CanIf_TTMasterStateChange(uint8 ControllerId, CanIf_TTMasterStateType CanIf_TTMasterState);

Reports change of the master state between potential and current master.

함수 CanIf_TTSevereError [SWS_TtCanIf_00122] 📄 PDF

void CanIf_TTSevereError(uint8 ControllerId, CanIf_TTSevereErrorEnumType CanIf_TTSevereError);

Reports one of the following errors: • failed to serve appl. watchdog • config error • watch trigger reached

타입 CanIf_TTMasterStateType [SWS_TtCanIf_00060] 📄 PDF

Master state type including sync mode, master-slave mode and current ref trigger offset

타입 CanIf_TTTimingErrorIRQType [SWS_TtCanIf_00064] 📄 PDF

Combines all events that are reported by CanIf_TTTimingError (event indication and error level)

requirement SWS_TtCanIf_00002 [SWS_TtCanIf_00002] 📄 PDF

The Copy Operation into/from the TTCAN Controller shall be scheduled within a Job List .

requirement SWS_TtCanIf_00004 [SWS_TtCanIf_00004] 📄 PDF

If a Job List is used, the TTCAN Job List Execution Function ( JLEF ) shall execute the Communication Jobs of the Job List syn- chronously to the Controller time (i.e. at well-defined points in time).

requirement SWS_TtCanIf_00006 [SWS_TtCanIf_00006] 📄 PDF

The API names of the JLEF shall obey the following pattern: • CanIf_TTJobListExec_0() for Controller # 0 • CanIf_TTJobListExec_1() for Controller # 1 • CanIf_TTJobListExec_2() for Controller # 2 • CanIf_TTJobListExec_3() for Controller # 3 • ... and so on, if more than 4 Controllers are supported.

requirement SWS_TtCanIf_00007 [SWS_TtCanIf_00007] 📄 PDF

If the JLEF lost synchronisation to the Local Time of the TTCAN Controller then the function Dem_SetEventStatus(CANIF_TT_E_- JLE_SYNC, DEM_EVENT_STATUS_FAILED) shall be called.

requirement SWS_TtCanIf_00010 [SWS_TtCanIf_00010] 📄 PDF

If parameter Controller of CanIf_TTGetController- Time() has an invalid value and if development error detection is enabled (i.e. CANIF_DEV_ERROR_DETECT equals ON ), the function CanIf_TTGetController- Time() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_ReportError service of the DET module.

requirement SWS_TtCanIf_00011 [SWS_TtCanIf_00011] 📄 PDF

Caveats of CanIf_TTGetControllerTime() : TtcanIf has to be initialized before this API service may be called.

requirement SWS_TtCanIf_00012 [SWS_TtCanIf_00012] 📄 PDF

If parameter Controller of CanIf_TTGetMasterState () has an invalid value and if development error detection is enabled (i.e. CANIF_- DEV_ERROR_DETECT equals ON ), the function CanIf_TTGetMasterState() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_Re- portError service of the DET module.

requirement SWS_TtCanIf_00013 [SWS_TtCanIf_00013] 📄 PDF

Caveats of CanIf_TTGetMasterState() : TtcanIf has to be initialized before this API service may be called.

requirement SWS_TtCanIf_00014 [SWS_TtCanIf_00014] 📄 PDF

If parameter Controller of CanIf_TTGetNTUActual() has an invalid value and if development error detection is enabled (i.e. CANIF_DEV_- ERROR_DETECT equals ON ), the function CanIf_TTGetNTUActual() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_ReportError service of the DET module.

requirement SWS_TtCanIf_00015 [SWS_TtCanIf_00015] 📄 PDF

Caveats of CanIf_TTGetNTUActual() : TtcanIf has to be initialized before this API service may be called.

requirement SWS_TtCanIf_00016 [SWS_TtCanIf_00016] 📄 PDF

If parameter Controller of CanIf_TTGetErrorLevel() has an invalid value and if development error detection is enabled (i.e. CANIF_DEV_- ERROR_DETECT equals ON ), the function CanIf_TTGetErrorLevel() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_ReportError service of the DET module.

requirement SWS_TtCanIf_00017 [SWS_TtCanIf_00017] 📄 PDF

Caveats of CanIf_TTGetErrorLevel() : TtcanIf has to be initialized before this API service may be called.

requirement SWS_TtCanIf_00018 [SWS_TtCanIf_00018] 📄 PDF

If parameter Controller of CanIf_TTSetNextIsGap() has an invalid value and if development error detection is enabled (i.e. CANIF_DEV_- ERROR_DETECT equals ON ), the function CanIf_TTSetNextIsGap() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_ReportError service of the DET module.

requirement SWS_TtCanIf_00019 [SWS_TtCanIf_00019] 📄 PDF

Caveats of CanIf_TTSetNextIsGap() : TtcanIf has to be initialized before this API service may be called.

requirement SWS_TtCanIf_00020 [SWS_TtCanIf_00020] 📄 PDF

If parameter Controller of CanIf_TTSetEndOfGap() has an invalid value and if development error detection is enabled (i.e. CANIF_- DEV_ERROR_DETECT equals ON ), the function CanIf_TTSetEndOfGap() shall re- port development error code CANIF_E_PARAM_CONTROLLER to the Det_ReportEr- ror service of the DET module.

requirement SWS_TtCanIf_00021 [SWS_TtCanIf_00021] 📄 PDF

Caveats of CanIf_TTSetEndOfGap() : TtcanIf has to be initialized before this API service may be called.

requirement SWS_TtCanIf_00022 [SWS_TtCanIf_00022] 📄 PDF

If parameter Controller of CanIf_TTSetTimeCommand () has an invalid value and if development error detection is enabled (i.e. CANIF_- DEV_ERROR_DETECT equals ON ), the function CanIf_TTSetTimeCommand() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_Re- portError service of the DET module.

requirement SWS_TtCanIf_00023 [SWS_TtCanIf_00023] 📄 PDF

Caveats of CanIf_TTSetTimeCommand() : TtcanIf has to be initialized before this API service may be called.

requirement SWS_TtCanIf_00024 [SWS_TtCanIf_00024] 📄 PDF

If parameter Controller of CanIf_TTGlobalTimePre- set() has an invalid value and if development error detection is enabled (i.e. CANIF_DEV_ERROR_DETECT equals ON ), the function CanIf_TTGlobalTimePre- set() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_ReportError service of the DET module.

requirement SWS_TtCanIf_00025 [SWS_TtCanIf_00025] 📄 PDF

Caveats of CanIf_TTGlobalTimePreset() : TtcanIf has to be initialized before this API service may be called.

requirement SWS_TtCanIf_00026 [SWS_TtCanIf_00026] 📄 PDF

If parameter Controller of CanIf_TTSe- tExtClockSyncCommand() has an invalid value and if development error de- tection is enabled (i.e. CANIF_DEV_ERROR_DETECT equals ON ), the function CanIf_TTSetExtClockSyncCommand() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_ReportError service of the DET module.

requirement SWS_TtCanIf_00027 [SWS_TtCanIf_00027] 📄 PDF

Caveats of CanIf_TTSetExtClockSyncCommand() : TtcanIf has to be initialized before this API service may be called.

requirement SWS_TtCanIf_00028 [SWS_TtCanIf_00028] 📄 PDF

If parameter Controller of CanIf_TTSetNTUAdjust() has an invalid value and if development error detection is enabled (i.e. CANIF_DEV_- ERROR_DETECT equals ON ), the function CanIf_TTSetNTUAdjust() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_ReportError service of the DET module.

requirement SWS_TtCanIf_00029 [SWS_TtCanIf_00029] 📄 PDF

Caveats of CanIf_TTSetNTUAdjust() : TtcanIf has to be initialized before this API service may be called.

requirement SWS_TtCanIf_00032 [SWS_TtCanIf_00032] 📄 PDF

The function CanIf_TTJobListExec_<Controller>() shall exist once per TTCAN Controller , which use a Job List .

requirement SWS_TtCanIf_00033 [SWS_TtCanIf_00033] 📄 PDF

The function name of each instance of CanIf_TTJobLis- tExec_<Controller>() shall contain the index of the respective TTCAN Con- troller .

requirement SWS_TtCanIf_00034 [SWS_TtCanIf_00034] 📄 PDF

Caveats of CanIf_TTJobListExec_<Controller>() : TtcanIf has to be initialized before this API service may be called.

requirement SWS_TtCanIf_00035 [SWS_TtCanIf_00035] 📄 PDF

If parameter Controller of CanIf_TTGetSyncQuality () has an invalid value and if development error detection is enabled (i.e. CANIF_- DEV_ERROR_DETECT equals ON ), the function CanIf_TTGetSyncQuality() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_Re- portError service of the DET module.

requirement SWS_TtCanIf_00036 [SWS_TtCanIf_00036] 📄 PDF

Caveats of CanIf_TTGetSyncQuality() : TtcanIf has to be initialized before this API service may be called.

requirement SWS_TtCanIf_00037 [SWS_TtCanIf_00037] 📄 PDF

If parameter Controller of CanIf_TTSetTimeMark() has an invalid value and if development error detection is enabled (i.e. CANIF_- DEV_ERROR_DETECT equals ON ), the function CanIf_TTSetTimeMark() shall re- port development error code CANIF_E_PARAM_CONTROLLER to the Det_ReportEr- ror service of the DET module.

requirement SWS_TtCanIf_00038 [SWS_TtCanIf_00038] 📄 PDF

Caveats of CanIf_TTSetTimeMark() : TtcanIf has to be initialized before this API service may be called.

requirement SWS_TtCanIf_00039 [SWS_TtCanIf_00039] 📄 PDF

If parameter Controller of CanIf_TTCancelTimeMark () has an invalid value and if development error detection is enabled (i.e. CANIF_- DEV_ERROR_DETECT equals ON ), the function CanIf_TTCancelTimeMark() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_Re- portError service of the DET module.

requirement SWS_TtCanIf_00040 [SWS_TtCanIf_00040] 📄 PDF

Caveats of CanIf_TTCancelTimeMark() : TtcanIf has to be initialized before this API service may be called.

requirement SWS_TtCanIf_00041 [SWS_TtCanIf_00041] 📄 PDF

If parameter Controller of CanIf_TTAckTimeMark() has an invalid value and if development error detection is enabled (i.e. CANIF_- DEV_ERROR_DETECT equals ON ), the function CanIf_TTAckTimeMark() shall re- port development error code CANIF_E_PARAM_CONTROLLER to the Det_ReportEr- ror service of the DET module.

requirement SWS_TtCanIf_00042 [SWS_TtCanIf_00042] 📄 PDF

Caveats of CanIf_TTAckTimeMark() : TtcanIf has to be initialized before this API service may be called.

requirement SWS_TtCanIf_00043 [SWS_TtCanIf_00043] 📄 PDF

If parameter Controller of CanIf_TTEnable- TimeMarkIRQ() has an invalid value and if development error detection is enabled (i.e. CANIF_DEV_ERROR_DETECT equals ON ), the function CanIf_TTEnable- TimeMarkIRQ() shall report development error code CANIF_E_PARAM_CON- TROLLER to the Det_ReportError service of the DET module.

requirement SWS_TtCanIf_00044 [SWS_TtCanIf_00044] 📄 PDF

Caveats of CanIf_TTEnableTimeMarkIRQ() : TtcanIf has to be initialized before this API service may be called.

requirement SWS_TtCanIf_00045 [SWS_TtCanIf_00045] 📄 PDF

If parameter Controller of CanIf_TTDisable- TimeMarkIRQ() has an invalid value and if development error detection is enabled (i.e. CANIF_DEV_ERROR_DETECT equals ON ), the function CanIf_TTDisable- TimeMarkIRQ() shall report development error code CANIF_E_PARAM_CON- TROLLER to the Det_ReportError service of the DET module.

requirement SWS_TtCanIf_00046 [SWS_TtCanIf_00046] 📄 PDF

Caveats of CanIf_TTDisableTimeMarkIRQ() : TtcanIf has to be initialized before this API service may be called.

requirement SWS_TtCanIf_00047 [SWS_TtCanIf_00047] 📄 PDF

If parameter Controller of CanIf_TTGet- TimeMarkIRQStatus() has an invalid value and if development error detection is enabled (i.e. CANIF_DEV_ERROR_DETECT equals ON ), the function CanIf_- TTGetTimeMarkIRQStatus() shall report development error code CANIF_- E_PARAM_CONTROLLER to the Det_ReportError service of the DET module.

requirement SWS_TtCanIf_00048 [SWS_TtCanIf_00048] 📄 PDF

Caveats of CanIf_TTGetTimeMarkIRQStatus() : TtcanIf has to be initialized before this API service may be called.

requirement SWS_TtCanIf_00050 [SWS_TtCanIf_00050] 📄 PDF

If parameter ControllerId of CanIf_TTApplWatch- dogError() has an invalid value and if development error detection is enabled (i.e. CANIF_DEV_ERROR_DETECT equals ON ), then the function CanIf_TTApplWatch- dogError() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_ReportError service of the DET module.

requirement SWS_TtCanIf_00051 [SWS_TtCanIf_00051] 📄 PDF

If parameter ControllerId of CanIf_TTTimingError() has an invalid value and if development error detection is enabled (i.e. CANIF_DEV_- ERROR_DETECT equals ON ), then the function CanIf_TTTimingError() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_ReportError service of the DET module.

requirement SWS_TtCanIf_00052 [SWS_TtCanIf_00052] 📄 PDF

If parameter ControllerId of CanIf_TTGap() has an in- valid value and if development error detection is enabled (i.e. CANIF_DEV_ERROR_- DETECT equals ON ), then the function CanIf_TTGap() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_ReportError service of the DET module.

requirement SWS_TtCanIf_00053 [SWS_TtCanIf_00053] 📄 PDF

If parameter ControllerId of CanIf_TTStartOfCycle () has an invalid value and if development error detection is enabled (i.e. CANIF_- DEV_ERROR_DETECT equals ON ), then the function CanIf_TTStartOfCycle() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_- ReportError service of the DET module.

requirement SWS_TtCanIf_00054 [SWS_TtCanIf_00054] 📄 PDF

If parameter ControllerId of CanIf_TTTimeDisc() has an invalid value and if development error detection is enabled (i.e. CANIF_DEV_ER- ROR_DETECT equals ON ), then the function CanIf_TTTimeDisc() shall report devel- opment error code CANIF_E_PARAM_CONTROLLER to the Det_ReportError service of the DET module.

requirement SWS_TtCanIf_00055 [SWS_TtCanIf_00055] 📄 PDF

If parameter ControllerId of CanIf_TTMasterState- Change() has an invalid value and if development error detection is enabled (i.e. CANIF_DEV_ERROR_DETECT equals ON ), then the function CanIf_TTMasterStat- eChange() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_ReportError service of the DET module.

requirement SWS_TtCanIf_00056 [SWS_TtCanIf_00056] 📄 PDF

Can_TTGetControllerTime Ttcan.h Gets the current values for the global, local and cycle time and the cycle count of the controller Can_TTGetErrorLevel Ttcan.h Gets the error level. This includes the severity of the error level (S0-S3) and the minimum and maximum value of the message status count. Can_TTGetMasterState Ttcan.h Gets the master state. The master state includes the sync mode (sync_off, synchronizing, in_gap, in_ schedule) the master-slave mode (master_off, slave, backup_master, current_master) and the current value for ref trigger offset. Can_TTGetNTUActual Ttcan.h Gets the actual value of NTU (network time unit). Together with the local oscillator period, the actual value of NTU can be derived from the actual value of TUR. Can_TTGlobalTimePreset Ttcan.h Sets the value of "global time preset". Can_TTSetEndOfGap Ttcan.h Signals the end of a gap. Can_TTSetExtClockSyncCommand Ttcan.h Adjusts the NTU (network time unit) according to the value given by "NTU adjust". Together with the local oscillator period, "TUR adjust" can be derived from "NTU adjust". Can_TTSetNextIsGap Ttcan.h Sets the "Next_is_Gap" bit. Can_TTSetNTUAdjust Ttcan.h Sets the value of "NTU adjust". Together with the local oscillator period, "TUR adjust" can be derived from "NTU adjust". Can_TTSetTimeCommand Ttcan.h Adjusts the global time at the beginning of the next basic cycle by the amount of "global time preset" Dem_SetEventStatus Dem.h Called by SW-Cs or BSW modules to report monitor status information to the Dem. BSW modules calling Dem_SetEventStatus can safely ignore the return value. This API will be available only if ({Dem/Dem ConfigSet/DemEventParameter/DemEvent ReportingType} == STANDARD_REPORTING)

requirement SWS_TtCanIf_00057 [SWS_TtCanIf_00057] 📄 PDF

Can_TTAckTimeMark Ttcan.h Acknowledges the time mark interrupt by resetting the flag in the interrupt vector register. Can_TTCancelTimeMark Ttcan.h Cancels the time mark. Can_TTDisableTimeMarkIRQ Ttcan.h Disables the time mark interrupt. Can_TTEnableTimeMarkIRQ Ttcan.h Enables the time mark interrupt. API Function Header File Description Can_TTGetSyncQuality Ttcan.h Gets the synchronization quality. Can_TTGetTimeMarkIRQStatus Ttcan.h Gets the IRQ status of the time mark. Can_TTReceive Ttcan.h Reads received data from the controller by returning the pointer of the CanID, the DLC and the Data of the message in the requested HRH. Can_TTSetTimeMark Ttcan.h Sets a new value for the time mark for the given time source.

requirement SWS_TtCanIf_00066 [SWS_TtCanIf_00066] 📄 PDF

If development error detection for TtcanIf is enabled: The function CanIf_TTGetControllerTime() shall raise the error CANIF_E_PARAM_- POINTER and shall return E_NOT_OK if one of the parameter CanIf_TTCycle- Count , CanIf_TTGlobalTime , CanIf_TTLocalTime and CanIf_TTCycleTime is a NULL pointer.

requirement SWS_TtCanIf_00068 [SWS_TtCanIf_00068] 📄 PDF

If development error detection for TtcanIf is enabled: The function CanIf_TTGetMasterState() shall raise the error CAN_E_PARAM_- POINTER and shall return E_NOT_OK if the parameter CanIf_TTMasterState is a NULL pointer.

requirement SWS_TtCanIf_00071 [SWS_TtCanIf_00071] 📄 PDF

If development error detection for TtcanIf is enabled: The function CanIf_TTGetErrorLevel() shall raise the error CAN_E_PARAM_POINTER and shall return E_NOT_OK if the parameter CanIf_TTErrorLevel is a NULL pointer.

requirement SWS_TtCanIf_00081 [SWS_TtCanIf_00081] 📄 PDF

If development error detection for TtcanIf is enabled: The function CanIf_TTGetSyncQuality() shall raise the error CAN_E_PARAM_- POINTER and shall return E_NOT_OK if one of the parameter CanIf_ClockSpeed and CanIf_GlobalTimePhase is a NULL pointer.

requirement SWS_TtCanIf_00088 [SWS_TtCanIf_00088] 📄 PDF

If development error detection for TtcanIf is enabled: The function CanIf_TTGetTimeMarkIRQStatus() shall raise the error CAN_E_- PARAM_POINTER and shall return E_NOT_OK if the parameter CanIf_IRQStatus is a NULL pointer.

requirement SWS_TtCanIf_00101 [SWS_TtCanIf_00101] 📄 PDF

The function CanIf_TTGetControllerTime() shall call Can_TTGetControllerTime(Controller, Can_TTGlobalTime, CanTT- LocalTime, Can_TTCycleTime, Can_TTCycleCount) .

requirement SWS_TtCanIf_00102 [SWS_TtCanIf_00102] 📄 PDF

The function CanIf_TTGetMasterState() shall call Can_TTGetMasterState(Controller, Can_TTMasterState) .

requirement SWS_TtCanIf_00103 [SWS_TtCanIf_00103] 📄 PDF

The function CanIf_TTGetNTUActual() shall call Can_- TTGetNTUActual(Controller, Can_TTTURAct) .

requirement SWS_TtCanIf_00104 [SWS_TtCanIf_00104] 📄 PDF

The function CanIf_TTGetErrorLevel() shall call Can_- TTGetErrorLevel(Controller, Can_TTErrorLevel) .

requirement SWS_TtCanIf_00105 [SWS_TtCanIf_00105] 📄 PDF

The function CanIf_TTSetNextIsGap() shall call Can_- TTSetNextIsGap(Controller) .

requirement SWS_TtCanIf_00106 [SWS_TtCanIf_00106] 📄 PDF

The function CanIf_TTSetEndOfGap() shall call Can_- TTSetNextIsGap(Controller) .

requirement SWS_TtCanIf_00107 [SWS_TtCanIf_00107] 📄 PDF

The function CanIf_TTSetTimeCommand() shall call Can_TTSetTimeCommand(Controller) .

requirement SWS_TtCanIf_00108 [SWS_TtCanIf_00108] 📄 PDF

The function CanIf_TTGlobalTimePreset() shall call Can_TTGlobalTimePreset(Controller, Can_TTGlobalTimePreset) .

requirement SWS_TtCanIf_00109 [SWS_TtCanIf_00109] 📄 PDF

The function CanIf_TTSetExtClockSyncCommand() shall call Can_TTSetExtClockSyncCommand(Controller) .

requirement SWS_TtCanIf_00110 [SWS_TtCanIf_00110] 📄 PDF

The function CanIf_TTSetNTUAdjust() shall call Can_- TTSetNTUAdjust(Controller, Can_TTNTUAdjust) .

requirement SWS_TtCanIf_00112 [SWS_TtCanIf_00112] 📄 PDF

The function CanIf_TTGetSyncQuality() shall call Can_TTGetSyncQuality(Controller, Can_TTClockSpeed, Can_TTGlob- alTimePhase) .

requirement SWS_TtCanIf_00113 [SWS_TtCanIf_00113] 📄 PDF

The function CanIf_TTSetTimeMark() shall call Can_- TTSetTimeMark(Controller, Can_TTTimeMark, Can_TTTimeSource) .

requirement SWS_TtCanIf_00114 [SWS_TtCanIf_00114] 📄 PDF

The function CanIf_TTCancelTimeMark() shall call Can_TTCancelTimeMark(Controller) .

requirement SWS_TtCanIf_00115 [SWS_TtCanIf_00115] 📄 PDF

The function CanIf_TTAckTimeMark() shall call Can_- TTAckTimeMark(Controller) .

requirement SWS_TtCanIf_00116 [SWS_TtCanIf_00116] 📄 PDF

The function CanIf_TTEnableTimeMarkIRQ() shall call Can_TTEnableTimeMarkIRQ(Controller) .

requirement SWS_TtCanIf_00117 [SWS_TtCanIf_00117] 📄 PDF

The function CanIf_TTDisableTimeMarkIRQ() shall call Can_TTDisableTimeMarkIRQ(Controller) .

requirement SWS_TtCanIf_00119 [SWS_TtCanIf_00119] 📄 PDF

The function CanIf_TTGetTimeMarkIRQStatus() shall call Can_TTGetTimeMarkIRQStatus(Controller, Can_TTIRQStatus) .

requirement SWS_TtCanIf_00120 [SWS_TtCanIf_00120] 📄 PDF

If a CanIf Controller mode state machine is either in state CAN_CS_STARTED , CAN_CS_STOPPED or CAN_CS_SLEEP when function CanIf_TT- SevereError() is called, then CanIf shall call the function CanSM_Controller- BusOff() for the CAN Network assigned to parameter Controller of CanIf_TT- SevereError() .

requirement SWS_TtCanIf_00121 [SWS_TtCanIf_00121] 📄 PDF

If a CanIf Controller mode state machine is in state CAN_CS_- STARTED when the function CanIf_TTSevereError(ControllerId, CanIf_- TTSevereError) is called with parameter ControllerId referencing that CanIf Controller mode state machine, then CanIf shall call Can_SetControllerMode (Controller, CAN_CS_STOPPED) and CanIf shall call CanSM_ControllerBu- sOff(ControllerId) of CanSM .

requirement SWS_TtCanIf_00123 [SWS_TtCanIf_00123] 📄 PDF

If parameter ControllerId of CanIf_TTSevereError() has an invalid value and if development error detection is enabled (i.e. CANIF_DEV_- ERROR_DETECT equals ON ), then the function CanIf_TTSevereError() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_ReportError service of the DET module.

requirement SWS_TtCanIf_00124 [SWS_TtCanIf_00124] 📄 PDF

Module Header File Imported Type Can_GeneralTypes.h Can_IdType Ttcan.h Can_TTErrorLevelEnumType Ttcan.h Can_TTErrorLevelType Ttcan.h Can_TTMasterSlaveModeType Ttcan.h Can_TTMasterStateType Ttcan.h Can_TTSyncModeEnumType Ttcan.h Can_TTTURType Ttcan.h Can_TTTimeSourceType Can Ttcan.h Can_TTTimeType ComStack_Types.h PduIdType ComStack_Types.h PduInfoType ComStack_Types ComStack_Types.h PduLengthType Rte_Dem_Type.h Dem_EventIdType Dem Rte_Dem_Type.h Dem_EventStatusType Std Std_Types.h Std_ReturnType

requirement SWS_TtCanIf_00141 [SWS_TtCanIf_00141] 📄 PDF

If a Job List is configured for a Tx L-PDU (see CanIfT- TJoblist ), a function call of CanIf_Transmit() (see SWS_CanIf_00318 ) shall not directly call Can_Write() . The information that a call of CanIf_Transmit() occurred has to be buffered within TtcanIf until the data is transmitted by the Job List .

requirement SWS_TtCanIf_00143 [SWS_TtCanIf_00143] 📄 PDF

For each Controller that is controlled by TtcanIf one dedicated Job List and one dedicated JLEF (refer to section 7.3) shall be used. It's possible to mixture both variants, with and without the usage of a Job List .

requirement SWS_TtCanIf_00144 [SWS_TtCanIf_00144] 📄 PDF

If during JLEF <User_TriggerTransmit>() returns E_- NOT_OK , TtcanIf shall not call Can_Write() afterwards.

requirement SWS_TtCanIf_00145 [SWS_TtCanIf_00145] 📄 PDF

If the JLEF was executed successfully, then the func- tion Dem_SetEventStatus(CANIF_TT_E_JLE_SYNC, DEM_EVENT_STATUS_- PASSED) shall be called.

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

Record
AUTOSAR/AP/record/CP_MOD_TtcanIf
Status
unspecified
Version
AUTOSAR/AP/record/CP_MOD_TtcanIf@rel:R20-11#46ddc64d
Content hash
46ddc64d
Source
https://www.autosar.org/fileadmin/standards/R20-11/CP/AUTOSAR_SWS_TTCANInterface.pdf#nameddest=SWS_TtCanIf_00058

주제 맵

콜아웃 및 예상 인터페이스

1

상세 보기

개요에서 항목을 선택하세요.

서비스

Acknowledges the time mark interrupt by resetting the flag in the interrupt vector register.

Std_ReturnType CanIf_TTAckTimeMark(uint8 ControllerId);

Reports an application watchdog error.

Std_ReturnType CanIf_TTApplWatchdogError(uint8 ControllerId);

Cancels the time mark.

Std_ReturnType CanIf_TTCancelTimeMark(uint8 ControllerId);

Disables the time mark interrupt.

Std_ReturnType CanIf_TTDisableTimeMarkIRQ(uint8 ControllerId);

Enables the time mark interrupt.

Std_ReturnType CanIf_TTEnableTimeMarkIRQ(uint8 ControllerId);

Reports the occurrence of a gap.

Std_ReturnType CanIf_TTGap(uint8 ControllerId);

Gets the current values for the global, local and cycle time and the cycle count of the controller

Std_ReturnType CanIf_TTGetControllerTime(uint8 ControllerId, CanIf_TTTimeType* CanIf_TTGlobalTime, CanIf_TTTimeType* CanIf_TTLocalTime, CanIf_TTTimeType* CanIf_TTCycleTime, uint8* CanIf_TTCycleCount);

Gets the error level. This includes the severity of the error level (S0-S3) and the minimum and maximum value of the message status count.

Std_ReturnType CanIf_TTGetErrorLevel(uint8 ControllerId, CanIf_TTErrorLevelType* CanIf_TTErrorLevel);

Gets the master state. The master state includes the sync mode (sync_off, synchronizing, in_ gap, in_schedule) the master-slave mode (master_off, slave, backup_master, current_master) and the current value for ref trigger offset.

Std_ReturnType CanIf_TTGetMasterState(uint8 ControllerId, CanIf_TTMasterStateType* CanIf_TTMasterState);

Gets the actual value of NTU (network time unit). Together with the local oscillator period, the actual value of NTU can be derived from the actual value of TUR.

Std_ReturnType CanIf_TTGetNTUActual(uint8 ControllerId, float32 CanIf_TTNTUAct);

Gets the synchronization quality.

Std_ReturnType CanIf_TTGetSyncQuality(uint8 ControllerId, boolean* CanIf_TTClockSpeed, boolean* CanIf_TTGlobalTimePhase);

Gets the IRQ status of the time mark.

Std_ReturnType CanIf_TTGetTimeMarkIRQStatus(uint8 ControllerId, boolean* CanIf_TTIRQStatus);

Sets the value of "global time preset".

Std_ReturnType CanIf_TTGlobalTimePreset(uint8 ControllerId, CanIf_TTTimeType CanIf_TTGlobalTimePreset);

Processes the job list of the TTCAN controller <Controller>.

void CanIf_TTJobListExec_<Controller>(void);

Reports change of the master state between potential and current master.

Std_ReturnType CanIf_TTMasterStateChange(uint8 ControllerId, CanIf_TTMasterStateType CanIf_TTMasterState);

Signals the end of a gap.

Std_ReturnType CanIf_TTSetEndOfGap(uint8 ControllerId);

Adjusts the NTU (network time unit) according to the value given by "NTU adjust". Together with the local oscillator period, "TUR adjust" can be derived from "NTU adjust".

Std_ReturnType CanIf_TTSetExtClockSyncCommand(uint8 ControllerId);

Sets the "Next_is_Gap" bit.

Std_ReturnType CanIf_TTSetNextIsGap(uint8 ControllerId);

Sets the value of "NTU adjust". Together with the local oscillator period, "TUR adjust" can be derived from "NTU adjust".

Std_ReturnType CanIf_TTSetNTUAdjust(uint8 ControllerId, float32 CanIf_TTNTUAdjust);

Adjusts the global time at the beginning of the next basic cycle by the amount of "global time preset"

Std_ReturnType CanIf_TTSetTimeCommand(uint8 ControllerId);

Sets a new value for the time mark for the given time source.

Std_ReturnType CanIf_TTSetTimeMark(uint8 ControllerId, CanIf_TTTimeType CanIf_TTTimeMark, CanIf_TTTimeSourceType CanIf_TTTimeSource);

Reports one of the following errors: • failed to serve appl. watchdog • config error • watch trigger reached

void CanIf_TTSevereError(uint8 ControllerId, CanIf_TTSevereErrorEnumType CanIf_TTSevereError);

Reports the start of a basic cycle.

Std_ReturnType CanIf_TTStartOfCycle(uint8 ControllerId, uint8 CanIf_TTCycleCount);

Reports a time discontinuity.

Std_ReturnType CanIf_TTTimeDisc(uint8 ControllerId);

Reports one of the following errors: • Change of error level • Tx overflow / underflow • Synchronization failed • Init watch trigger

Std_ReturnType CanIf_TTTimingError(uint8 ControllerId, CanIf_TTTimingErrorIRQType CanIf_TTTimingErrorIRQ);

콜아웃 및 예상 인터페이스

Within this API, the upper layer module (called module) shall check whether the available data fits into the buffer size reported by PduInfoPtr->SduLength. If it fits, it shall copy its data into the buffer provided by PduInfoPtr->SduDataPtr and update the length of the actual copied data in PduInfoPtr->SduLength. If not, it returns E_NOT_OK without changing PduInfoPtr.

Std_ReturnType <User_TriggerTransmit>(PduIdType TxPduId, PduInfoType* PduInfoPtr);

타입

Error level (S0-S3)

TTCAN error level including min and max values of message status count

Event that causes a Timing/Error IRQ

Master-Slave Mode

Master state type including sync mode, master-slave mode and current ref trigger offset

Event that causes a severe error

Sync mode

Time source of time values in TTCAN

16 bit value representing time values of TTCAN, e.g. cycle, local or global time

Combines all events that are reported by CanIf_TTTimingError (event indication and error level)

요구사항

SWS_TtCanIf_00002 requirement

The Copy Operation into/from the TTCAN Controller shall be scheduled within a Job List .

SWS_TtCanIf_00004 requirement

If a Job List is used, the TTCAN Job List Execution Function ( JLEF ) shall execute the Communication Jobs of the Job List syn- chronously to the Controller time (i.e. at well-defined points in time).

SWS_TtCanIf_00006 requirement

The API names of the JLEF shall obey the following pattern: • CanIf_TTJobListExec_0() for Controller # 0 • CanIf_TTJobListExec_1() for Controller # 1 • CanIf_TTJobListExec_2() for Controller # 2 • CanIf_TTJobListExec_3() for Controller # 3 • ... and so on, if more than 4 Controllers are supported.

SWS_TtCanIf_00007 requirement

If the JLEF lost synchronisation to the Local Time of the TTCAN Controller then the function Dem_SetEventStatus(CANIF_TT_E_- JLE_SYNC, DEM_EVENT_STATUS_FAILED) shall be called.

SWS_TtCanIf_00008 requirement

Extended Production Errors of TtcanIf are defined in 7.1.

SWS_TtCanIf_00010 requirement

If parameter Controller of CanIf_TTGetController- Time() has an invalid value and if development error detection is enabled (i.e. CANIF_DEV_ERROR_DETECT equals ON ), the function CanIf_TTGetController- Time() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_ReportError service of the DET module.

SWS_TtCanIf_00011 requirement

Caveats of CanIf_TTGetControllerTime() : TtcanIf has to be initialized before this API service may be called.

SWS_TtCanIf_00012 requirement

If parameter Controller of CanIf_TTGetMasterState () has an invalid value and if development error detection is enabled (i.e. CANIF_- DEV_ERROR_DETECT equals ON ), the function CanIf_TTGetMasterState() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_Re- portError service of the DET module.

SWS_TtCanIf_00013 requirement

Caveats of CanIf_TTGetMasterState() : TtcanIf has to be initialized before this API service may be called.

SWS_TtCanIf_00014 requirement

If parameter Controller of CanIf_TTGetNTUActual() has an invalid value and if development error detection is enabled (i.e. CANIF_DEV_- ERROR_DETECT equals ON ), the function CanIf_TTGetNTUActual() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_ReportError service of the DET module.

SWS_TtCanIf_00015 requirement

Caveats of CanIf_TTGetNTUActual() : TtcanIf has to be initialized before this API service may be called.

SWS_TtCanIf_00016 requirement

If parameter Controller of CanIf_TTGetErrorLevel() has an invalid value and if development error detection is enabled (i.e. CANIF_DEV_- ERROR_DETECT equals ON ), the function CanIf_TTGetErrorLevel() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_ReportError service of the DET module.

SWS_TtCanIf_00017 requirement

Caveats of CanIf_TTGetErrorLevel() : TtcanIf has to be initialized before this API service may be called.

SWS_TtCanIf_00018 requirement

If parameter Controller of CanIf_TTSetNextIsGap() has an invalid value and if development error detection is enabled (i.e. CANIF_DEV_- ERROR_DETECT equals ON ), the function CanIf_TTSetNextIsGap() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_ReportError service of the DET module.

SWS_TtCanIf_00019 requirement

Caveats of CanIf_TTSetNextIsGap() : TtcanIf has to be initialized before this API service may be called.

SWS_TtCanIf_00020 requirement

If parameter Controller of CanIf_TTSetEndOfGap() has an invalid value and if development error detection is enabled (i.e. CANIF_- DEV_ERROR_DETECT equals ON ), the function CanIf_TTSetEndOfGap() shall re- port development error code CANIF_E_PARAM_CONTROLLER to the Det_ReportEr- ror service of the DET module.

SWS_TtCanIf_00021 requirement

Caveats of CanIf_TTSetEndOfGap() : TtcanIf has to be initialized before this API service may be called.

SWS_TtCanIf_00022 requirement

If parameter Controller of CanIf_TTSetTimeCommand () has an invalid value and if development error detection is enabled (i.e. CANIF_- DEV_ERROR_DETECT equals ON ), the function CanIf_TTSetTimeCommand() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_Re- portError service of the DET module.

SWS_TtCanIf_00023 requirement

Caveats of CanIf_TTSetTimeCommand() : TtcanIf has to be initialized before this API service may be called.

SWS_TtCanIf_00024 requirement

If parameter Controller of CanIf_TTGlobalTimePre- set() has an invalid value and if development error detection is enabled (i.e. CANIF_DEV_ERROR_DETECT equals ON ), the function CanIf_TTGlobalTimePre- set() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_ReportError service of the DET module.

SWS_TtCanIf_00025 requirement

Caveats of CanIf_TTGlobalTimePreset() : TtcanIf has to be initialized before this API service may be called.

SWS_TtCanIf_00026 requirement

If parameter Controller of CanIf_TTSe- tExtClockSyncCommand() has an invalid value and if development error de- tection is enabled (i.e. CANIF_DEV_ERROR_DETECT equals ON ), the function CanIf_TTSetExtClockSyncCommand() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_ReportError service of the DET module.

SWS_TtCanIf_00027 requirement

Caveats of CanIf_TTSetExtClockSyncCommand() : TtcanIf has to be initialized before this API service may be called.

SWS_TtCanIf_00028 requirement

If parameter Controller of CanIf_TTSetNTUAdjust() has an invalid value and if development error detection is enabled (i.e. CANIF_DEV_- ERROR_DETECT equals ON ), the function CanIf_TTSetNTUAdjust() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_ReportError service of the DET module.

SWS_TtCanIf_00029 requirement

Caveats of CanIf_TTSetNTUAdjust() : TtcanIf has to be initialized before this API service may be called.

SWS_TtCanIf_00032 requirement

The function CanIf_TTJobListExec_<Controller>() shall exist once per TTCAN Controller , which use a Job List .

SWS_TtCanIf_00033 requirement

The function name of each instance of CanIf_TTJobLis- tExec_<Controller>() shall contain the index of the respective TTCAN Con- troller .

SWS_TtCanIf_00034 requirement

Caveats of CanIf_TTJobListExec_<Controller>() : TtcanIf has to be initialized before this API service may be called.

SWS_TtCanIf_00035 requirement

If parameter Controller of CanIf_TTGetSyncQuality () has an invalid value and if development error detection is enabled (i.e. CANIF_- DEV_ERROR_DETECT equals ON ), the function CanIf_TTGetSyncQuality() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_Re- portError service of the DET module.

SWS_TtCanIf_00036 requirement

Caveats of CanIf_TTGetSyncQuality() : TtcanIf has to be initialized before this API service may be called.

SWS_TtCanIf_00037 requirement

If parameter Controller of CanIf_TTSetTimeMark() has an invalid value and if development error detection is enabled (i.e. CANIF_- DEV_ERROR_DETECT equals ON ), the function CanIf_TTSetTimeMark() shall re- port development error code CANIF_E_PARAM_CONTROLLER to the Det_ReportEr- ror service of the DET module.

SWS_TtCanIf_00038 requirement

Caveats of CanIf_TTSetTimeMark() : TtcanIf has to be initialized before this API service may be called.

SWS_TtCanIf_00039 requirement

If parameter Controller of CanIf_TTCancelTimeMark () has an invalid value and if development error detection is enabled (i.e. CANIF_- DEV_ERROR_DETECT equals ON ), the function CanIf_TTCancelTimeMark() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_Re- portError service of the DET module.

SWS_TtCanIf_00040 requirement

Caveats of CanIf_TTCancelTimeMark() : TtcanIf has to be initialized before this API service may be called.

SWS_TtCanIf_00041 requirement

If parameter Controller of CanIf_TTAckTimeMark() has an invalid value and if development error detection is enabled (i.e. CANIF_- DEV_ERROR_DETECT equals ON ), the function CanIf_TTAckTimeMark() shall re- port development error code CANIF_E_PARAM_CONTROLLER to the Det_ReportEr- ror service of the DET module.

SWS_TtCanIf_00042 requirement

Caveats of CanIf_TTAckTimeMark() : TtcanIf has to be initialized before this API service may be called.

SWS_TtCanIf_00043 requirement

If parameter Controller of CanIf_TTEnable- TimeMarkIRQ() has an invalid value and if development error detection is enabled (i.e. CANIF_DEV_ERROR_DETECT equals ON ), the function CanIf_TTEnable- TimeMarkIRQ() shall report development error code CANIF_E_PARAM_CON- TROLLER to the Det_ReportError service of the DET module.

SWS_TtCanIf_00044 requirement

Caveats of CanIf_TTEnableTimeMarkIRQ() : TtcanIf has to be initialized before this API service may be called.

SWS_TtCanIf_00045 requirement

If parameter Controller of CanIf_TTDisable- TimeMarkIRQ() has an invalid value and if development error detection is enabled (i.e. CANIF_DEV_ERROR_DETECT equals ON ), the function CanIf_TTDisable- TimeMarkIRQ() shall report development error code CANIF_E_PARAM_CON- TROLLER to the Det_ReportError service of the DET module.

SWS_TtCanIf_00046 requirement

Caveats of CanIf_TTDisableTimeMarkIRQ() : TtcanIf has to be initialized before this API service may be called.

SWS_TtCanIf_00047 requirement

If parameter Controller of CanIf_TTGet- TimeMarkIRQStatus() has an invalid value and if development error detection is enabled (i.e. CANIF_DEV_ERROR_DETECT equals ON ), the function CanIf_- TTGetTimeMarkIRQStatus() shall report development error code CANIF_- E_PARAM_CONTROLLER to the Det_ReportError service of the DET module.

SWS_TtCanIf_00048 requirement

Caveats of CanIf_TTGetTimeMarkIRQStatus() : TtcanIf has to be initialized before this API service may be called.

SWS_TtCanIf_00050 requirement

If parameter ControllerId of CanIf_TTApplWatch- dogError() has an invalid value and if development error detection is enabled (i.e. CANIF_DEV_ERROR_DETECT equals ON ), then the function CanIf_TTApplWatch- dogError() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_ReportError service of the DET module.

SWS_TtCanIf_00051 requirement

If parameter ControllerId of CanIf_TTTimingError() has an invalid value and if development error detection is enabled (i.e. CANIF_DEV_- ERROR_DETECT equals ON ), then the function CanIf_TTTimingError() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_ReportError service of the DET module.

SWS_TtCanIf_00052 requirement

If parameter ControllerId of CanIf_TTGap() has an in- valid value and if development error detection is enabled (i.e. CANIF_DEV_ERROR_- DETECT equals ON ), then the function CanIf_TTGap() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_ReportError service of the DET module.

SWS_TtCanIf_00053 requirement

If parameter ControllerId of CanIf_TTStartOfCycle () has an invalid value and if development error detection is enabled (i.e. CANIF_- DEV_ERROR_DETECT equals ON ), then the function CanIf_TTStartOfCycle() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_- ReportError service of the DET module.

SWS_TtCanIf_00054 requirement

If parameter ControllerId of CanIf_TTTimeDisc() has an invalid value and if development error detection is enabled (i.e. CANIF_DEV_ER- ROR_DETECT equals ON ), then the function CanIf_TTTimeDisc() shall report devel- opment error code CANIF_E_PARAM_CONTROLLER to the Det_ReportError service of the DET module.

SWS_TtCanIf_00055 requirement

If parameter ControllerId of CanIf_TTMasterState- Change() has an invalid value and if development error detection is enabled (i.e. CANIF_DEV_ERROR_DETECT equals ON ), then the function CanIf_TTMasterStat- eChange() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_ReportError service of the DET module.

SWS_TtCanIf_00056 requirement

Can_TTGetControllerTime Ttcan.h Gets the current values for the global, local and cycle time and the cycle count of the controller Can_TTGetErrorLevel Ttcan.h Gets the error level. This includes the severity of the error level (S0-S3) and the minimum and maximum value of the message status count. Can_TTGetMasterState Ttcan.h Gets the master state. The master state includes the sync mode (sync_off, synchronizing, in_gap, in_ schedule) the master-slave mode (master_off, slave, backup_master, current_master) and the current value for ref trigger offset. Can_TTGetNTUActual Ttcan.h Gets the actual value of NTU (network time unit). Together with the local oscillator period, the actual value of NTU can be derived from the actual value of TUR. Can_TTGlobalTimePreset Ttcan.h Sets the value of "global time preset". Can_TTSetEndOfGap Ttcan.h Signals the end of a gap. Can_TTSetExtClockSyncCommand Ttcan.h Adjusts the NTU (network time unit) according to the value given by "NTU adjust". Together with the local oscillator period, "TUR adjust" can be derived from "NTU adjust". Can_TTSetNextIsGap Ttcan.h Sets the "Next_is_Gap" bit. Can_TTSetNTUAdjust Ttcan.h Sets the value of "NTU adjust". Together with the local oscillator period, "TUR adjust" can be derived from "NTU adjust". Can_TTSetTimeCommand Ttcan.h Adjusts the global time at the beginning of the next basic cycle by the amount of "global time preset" Dem_SetEventStatus Dem.h Called by SW-Cs or BSW modules to report monitor status information to the Dem. BSW modules calling Dem_SetEventStatus can safely ignore the return value. This API will be available only if ({Dem/Dem ConfigSet/DemEventParameter/DemEvent ReportingType} == STANDARD_REPORTING)

SWS_TtCanIf_00057 requirement

Can_TTAckTimeMark Ttcan.h Acknowledges the time mark interrupt by resetting the flag in the interrupt vector register. Can_TTCancelTimeMark Ttcan.h Cancels the time mark. Can_TTDisableTimeMarkIRQ Ttcan.h Disables the time mark interrupt. Can_TTEnableTimeMarkIRQ Ttcan.h Enables the time mark interrupt. API Function Header File Description Can_TTGetSyncQuality Ttcan.h Gets the synchronization quality. Can_TTGetTimeMarkIRQStatus Ttcan.h Gets the IRQ status of the time mark. Can_TTReceive Ttcan.h Reads received data from the controller by returning the pointer of the CanID, the DLC and the Data of the message in the requested HRH. Can_TTSetTimeMark Ttcan.h Sets a new value for the time mark for the given time source.

SWS_TtCanIf_00066 requirement

If development error detection for TtcanIf is enabled: The function CanIf_TTGetControllerTime() shall raise the error CANIF_E_PARAM_- POINTER and shall return E_NOT_OK if one of the parameter CanIf_TTCycle- Count , CanIf_TTGlobalTime , CanIf_TTLocalTime and CanIf_TTCycleTime is a NULL pointer.

SWS_TtCanIf_00068 requirement

If development error detection for TtcanIf is enabled: The function CanIf_TTGetMasterState() shall raise the error CAN_E_PARAM_- POINTER and shall return E_NOT_OK if the parameter CanIf_TTMasterState is a NULL pointer.

SWS_TtCanIf_00071 requirement

If development error detection for TtcanIf is enabled: The function CanIf_TTGetErrorLevel() shall raise the error CAN_E_PARAM_POINTER and shall return E_NOT_OK if the parameter CanIf_TTErrorLevel is a NULL pointer.

SWS_TtCanIf_00081 requirement

If development error detection for TtcanIf is enabled: The function CanIf_TTGetSyncQuality() shall raise the error CAN_E_PARAM_- POINTER and shall return E_NOT_OK if one of the parameter CanIf_ClockSpeed and CanIf_GlobalTimePhase is a NULL pointer.

SWS_TtCanIf_00088 requirement

If development error detection for TtcanIf is enabled: The function CanIf_TTGetTimeMarkIRQStatus() shall raise the error CAN_E_- PARAM_POINTER and shall return E_NOT_OK if the parameter CanIf_IRQStatus is a NULL pointer.

SWS_TtCanIf_00101 requirement

The function CanIf_TTGetControllerTime() shall call Can_TTGetControllerTime(Controller, Can_TTGlobalTime, CanTT- LocalTime, Can_TTCycleTime, Can_TTCycleCount) .

SWS_TtCanIf_00102 requirement

The function CanIf_TTGetMasterState() shall call Can_TTGetMasterState(Controller, Can_TTMasterState) .

SWS_TtCanIf_00103 requirement

The function CanIf_TTGetNTUActual() shall call Can_- TTGetNTUActual(Controller, Can_TTTURAct) .

SWS_TtCanIf_00104 requirement

The function CanIf_TTGetErrorLevel() shall call Can_- TTGetErrorLevel(Controller, Can_TTErrorLevel) .

SWS_TtCanIf_00105 requirement

The function CanIf_TTSetNextIsGap() shall call Can_- TTSetNextIsGap(Controller) .

SWS_TtCanIf_00106 requirement

The function CanIf_TTSetEndOfGap() shall call Can_- TTSetNextIsGap(Controller) .

SWS_TtCanIf_00107 requirement

The function CanIf_TTSetTimeCommand() shall call Can_TTSetTimeCommand(Controller) .

SWS_TtCanIf_00108 requirement

The function CanIf_TTGlobalTimePreset() shall call Can_TTGlobalTimePreset(Controller, Can_TTGlobalTimePreset) .

SWS_TtCanIf_00109 requirement

The function CanIf_TTSetExtClockSyncCommand() shall call Can_TTSetExtClockSyncCommand(Controller) .

SWS_TtCanIf_00110 requirement

The function CanIf_TTSetNTUAdjust() shall call Can_- TTSetNTUAdjust(Controller, Can_TTNTUAdjust) .

SWS_TtCanIf_00112 requirement

The function CanIf_TTGetSyncQuality() shall call Can_TTGetSyncQuality(Controller, Can_TTClockSpeed, Can_TTGlob- alTimePhase) .

SWS_TtCanIf_00113 requirement

The function CanIf_TTSetTimeMark() shall call Can_- TTSetTimeMark(Controller, Can_TTTimeMark, Can_TTTimeSource) .

SWS_TtCanIf_00114 requirement

The function CanIf_TTCancelTimeMark() shall call Can_TTCancelTimeMark(Controller) .

SWS_TtCanIf_00115 requirement

The function CanIf_TTAckTimeMark() shall call Can_- TTAckTimeMark(Controller) .

SWS_TtCanIf_00116 requirement

The function CanIf_TTEnableTimeMarkIRQ() shall call Can_TTEnableTimeMarkIRQ(Controller) .

SWS_TtCanIf_00117 requirement

The function CanIf_TTDisableTimeMarkIRQ() shall call Can_TTDisableTimeMarkIRQ(Controller) .

SWS_TtCanIf_00119 requirement

The function CanIf_TTGetTimeMarkIRQStatus() shall call Can_TTGetTimeMarkIRQStatus(Controller, Can_TTIRQStatus) .

SWS_TtCanIf_00120 requirement

If a CanIf Controller mode state machine is either in state CAN_CS_STARTED , CAN_CS_STOPPED or CAN_CS_SLEEP when function CanIf_TT- SevereError() is called, then CanIf shall call the function CanSM_Controller- BusOff() for the CAN Network assigned to parameter Controller of CanIf_TT- SevereError() .

SWS_TtCanIf_00121 requirement

If a CanIf Controller mode state machine is in state CAN_CS_- STARTED when the function CanIf_TTSevereError(ControllerId, CanIf_- TTSevereError) is called with parameter ControllerId referencing that CanIf Controller mode state machine, then CanIf shall call Can_SetControllerMode (Controller, CAN_CS_STOPPED) and CanIf shall call CanSM_ControllerBu- sOff(ControllerId) of CanSM .

SWS_TtCanIf_00123 requirement

If parameter ControllerId of CanIf_TTSevereError() has an invalid value and if development error detection is enabled (i.e. CANIF_DEV_- ERROR_DETECT equals ON ), then the function CanIf_TTSevereError() shall report development error code CANIF_E_PARAM_CONTROLLER to the Det_ReportError service of the DET module.

SWS_TtCanIf_00124 requirement

Module Header File Imported Type Can_GeneralTypes.h Can_IdType Ttcan.h Can_TTErrorLevelEnumType Ttcan.h Can_TTErrorLevelType Ttcan.h Can_TTMasterSlaveModeType Ttcan.h Can_TTMasterStateType Ttcan.h Can_TTSyncModeEnumType Ttcan.h Can_TTTURType Ttcan.h Can_TTTimeSourceType Can Ttcan.h Can_TTTimeType ComStack_Types.h PduIdType ComStack_Types.h PduInfoType ComStack_Types ComStack_Types.h PduLengthType Rte_Dem_Type.h Dem_EventIdType Dem Rte_Dem_Type.h Dem_EventStatusType Std Std_Types.h Std_ReturnType

SWS_TtCanIf_00141 requirement

If a Job List is configured for a Tx L-PDU (see CanIfT- TJoblist ), a function call of CanIf_Transmit() (see SWS_CanIf_00318 ) shall not directly call Can_Write() . The information that a call of CanIf_Transmit() occurred has to be buffered within TtcanIf until the data is transmitted by the Job List .

SWS_TtCanIf_00143 requirement

For each Controller that is controlled by TtcanIf one dedicated Job List and one dedicated JLEF (refer to section 7.3) shall be used. It's possible to mixture both variants, with and without the usage of a Job List .

SWS_TtCanIf_00144 requirement

If during JLEF <User_TriggerTransmit>() returns E_- NOT_OK , TtcanIf shall not call Can_Write() afterwards.

SWS_TtCanIf_00145 requirement

If the JLEF was executed successfully, then the func- tion Dem_SetEventStatus(CANIF_TT_E_JLE_SYNC, DEM_EVENT_STATUS_- PASSED) shall be called.

SWS_TtCanIf_99999 requirement

These requirements are not applicable to this specification.