DEENESPTFRRUARHIKOZHNL

AUTOSAR Classic FlexRay

Das FlexRay-Cluster bietet deterministische, fehlertolerante High-Speed-Kommunikation mit statischen und dynamischen Segmenten, Bus-Synchronisation, ISO 10681 Transportprotokoll und Transceiver-Diagnose.

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

विवरण दृश्य

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

Fr

Fr_AbortCommunication फ़ंक्शन

Invokes the CC CHI command 'FREEZE'.

Std_ReturnType Fr_AbortCommunication (uint8 Fr_CtrlIdx);
Fr_AckAbsoluteTimerIRQ फ़ंक्शन

Service Fr_AckAbsoluteTimerIRQ.

Std_ReturnType Fr_AckAbsoluteTimerIRQ (uint8 Fr_CtrlIdx, uint8 Fr_AbsTimerIdx);
Fr_AllowColdstart फ़ंक्शन

Invokes the CC CHI command 'ALLOW_ COLDSTART'.

Std_ReturnType Fr_AllowColdstart (uint8 Fr_CtrlIdx);
Fr_AllSlots फ़ंक्शन

Invokes the CC CHI command 'ALL_ SLOTS'.

Std_ReturnType Fr_AllSlots (uint8 Fr_CtrlIdx);
Fr_CancelAbsoluteTimer फ़ंक्शन

Stops an absolute timer.

Std_ReturnType Fr_CancelAbsoluteTimer (uint8 Fr_CtrlIdx, uint8 Fr_AbsTimerIdx);
Fr_CancelTxLPdu फ़ंक्शन

Cancels the already pending transmission of a LPdu contained in a controllers p hysical transmit resource (e.g. message buffer).

Std_ReturnType Fr_CancelTxLPdu (uint8 Fr_CtrlIdx, uint16 Fr_LPduIdx);
Fr_CheckTxLPduStatus फ़ंक्शन

Checks the transmit status of the LSdu.

Std_ReturnType* Fr_CheckTxLPduStatus (uint8 Fr_CtrlIdx, uint16 Fr_LPduIdx, Fr_TxLPduStatusType* Fr_TxLPduStatusPtr, Fr_SlotAssignmentType* Fr_SlotAssignmentPtr);
Fr_ControllerInit फ़ंक्शन

Initialzes a F lex Ray CC.

Std_ReturnType Fr_ControllerInit (uint8 Fr_CtrlIdx);
Fr_DisableAbsoluteTimerIRQ फ़ंक्शन

Disables the in terrupt line of an absolute timer.

Std_ReturnType Fr_DisableAbsoluteTimerIRQ (uint8 Fr_CtrlIdx, uint8 Fr_AbsTimerIdx);
Fr_DisableLPdu फ़ंक्शन

Disables the hardware resource of a LPdu for transmission/ reception.

Std_ReturnType Fr_DisableLPdu (uint8 Fr_CtrlIdx, uint16 Fr_LPduIdx);
Fr_EnableAbsoluteTimerIRQ फ़ंक्शन

Service Fr_EnableAbsoluteTimerIRQ.

Std_ReturnType Fr_EnableAbsoluteTimerIRQ (uint8 Fr_CtrlIdx, uint8 Fr_AbsTimerIdx);
Fr_GetAbsoluteTimerIRQStatus फ़ंक्शन

Gets IRQ status of an absolute timer.

Std_ReturnType Fr_GetAbsoluteTimerIRQStatus (uint8 Fr_CtrlIdx, uint8 Fr_AbsTimerIdx, boolean* Fr_IRQStatusPtr);
Fr_GetChannelStatus फ़ंक्शन

Gets the channe l status information. Specification of FlexRay Driver AUTOSAR CP R20 - of Document ID : AUTOSAR_SWS_FlexRayDriver

Std_ReturnType Fr_GetChannelStatus (uint8 Fr_CtrlIdx, uint16* Fr_ChannelAStatusPtr, uint16* Fr_ChannelBStatusPtr);
Fr_GetClockCorrection फ़ंक्शन

Gets the current clock correction values. See variables v Interim Rate Correction and v Interim Offset Correction of [12] for details.

Std_ReturnType Fr_GetClockCorrection (uint8 Fr_CtrlIdx, sint16* Fr_RateCorrectionPtr, sint32* Fr_OffsetCorrectionPtr);
Fr_GetGlobalTime फ़ंक्शन

Gets the current global Flex Ray time. Important Note: Fr_ Get Global Time may be called within an exclusive area.

Std_ReturnType Fr_GetGlobalTime (uint8 Fr_CtrlIdx, uint8* Fr_CyclePtr, uint16* Fr_MacroTickPtr);
Fr_GetNmVector फ़ंक्शन

Gets the network management vector of the last communication cycle.

Std_ReturnType Fr_GetNmVector (uint8 Fr_CtrlIdx, uint8* Fr_NmVectorPtr);
Fr_GetNumOfStartupFrames फ़ंक्शन

Gets the current number of startup frames seen on the cluster. See variable v Startup Pairs of [12] for details.

Std_ReturnType Fr_GetNumOfStartupFrames (uint8 Fr_CtrlIdx, uint8* Fr_NumOfStartupFramesPtr);
Fr_GetPOCStatus फ़ंक्शन

Gets the POC status.

Std_ReturnType Fr_GetPOCStatus (uint8 Fr_CtrlIdx, Fr_POCStatusType* Fr_POCStatusPtr);
Fr_GetSyncFrameList फ़ंक्शन

Service Fr_GetSyncFrameList.

Std_ReturnType Fr_GetSyncFrameList (uint8 Fr_CtrlIdx, uint8 Fr_ListSize, uint16* Fr_ChannelAEvenListPtr, uint16* Fr_ChannelBEvenListPtr, uint16* Fr_ChannelAOddListPtr, uint16* Fr_ChannelBOddListPtr);
Fr_GetVersionInfo फ़ंक्शन

Returns the version information of this module.

void Fr_GetVersionInfo (Std_VersionInfoType* VersioninfoPtr);
Fr_GetWakeupRxStatus फ़ंक्शन

Gets the wakeup received information from the Flex Ray controller.

Std_ReturnType Fr_GetWakeupRxStatus (uint8 Fr_CtrlIdx, uint8* Fr_WakeupRxStatusPtr);
Fr_HaltCommunication फ़ंक्शन

Invokes the CC CHI command 'DEFERRED_ HALT'.

Std_ReturnType Fr_HaltCommunication (uint8 Fr_CtrlIdx);
Fr_Init फ़ंक्शन

Initializes the Fr.

void Fr_Init (const Fr_ConfigType* Fr_ConfigPtr);
Fr_PrepareLPdu फ़ंक्शन

Prepares a LPdu.

Std_ReturnType Fr_PrepareLPdu (uint8 Fr_CtrlIdx, uint16 Fr_LPduIdx);
Fr_ReadCCConfig फ़ंक्शन

Service Fr_ReadCCConfig.

Std_ReturnType Fr_ReadCCConfig (uint8 Fr_CtrlIdx, uint8 Fr_Config ParamIdx, uint32* Fr_Config ParamValuePtr); ⚠️
Fr_ReceiveRxLPdu फ़ंक्शन

Service Fr_ReceiveRxLPdu.

Std_ReturnType Fr_ReceiveRxLPdu (uint8 Fr_CtrlIdx, uint16 Fr_LPduIdx, uint8* Fr_LSduPtr, Fr_RxLPduStatusType* Fr_LPduStatusPtr, uint8* Fr_LSduLengthPtr, Fr_SlotAssignmentType* Fr_SlotAssignmentPtr);
Fr_ReconfigLPdu फ़ंक्शन

Service Fr_ReconfigLPdu.

Std_ReturnType Fr_ReconfigLPdu (uint8 Fr_CtrlIdx, uint16 Fr_LPduIdx, uint16 Fr_FrameId, Fr_ChannelType Fr_ChnlIdx, uint8 Fr_CycleRepetition, uint8 Fr_CycleOffset, uint8 Fr_PayloadLength, uint16 Fr_Header CRC); ⚠️
Fr_SendWUP फ़ंक्शन

Invokes the CC CHI command 'WAKEUP'.

Std_ReturnType Fr_SendWUP (uint8 Fr_CtrlIdx);
Fr_SetAbsoluteTimer फ़ंक्शन

Sets the absolute Flex Ray timer.

Std_ReturnType Fr_SetAbsoluteTimer (uint8 Fr_CtrlIdx, uint8 Fr_AbsTimerIdx, uint8 Fr_Cycle, uint16 Fr_Offset);
Fr_SetWakeupChannel फ़ंक्शन

Sets a wakeup channel.

Std_ReturnType Fr_SetWakeupChannel (uint8 Fr_CtrlIdx, Fr_ChannelType Fr_ChnlIdx);
Fr_StartCommunication फ़ंक्शन

Starts communication.

Std_ReturnType Fr_StartCommunication (uint8 Fr_CtrlIdx);
Fr_TransmitTxLPdu फ़ंक्शन

Transmits data on the Flex Ray network.

Std_ReturnType Fr_TransmitTxLPdu (uint8 Fr_CtrlIdx, uint16 Fr_LPduIdx, const uint8* Fr_LSduPtr, uint8 Fr_LSduLength, Fr_SlotAssignmentType* Fr_SlotAssignmentPtr);
Fr_ChannelType टाइप

FlexRay channel identifier: FR_CHANNEL_A, FR_CHANNEL_B, or FR_CHANNEL_AB.

Fr_ConfigType टाइप

This type contains the implementation - specific post build configuration structure.

Fr_ErrorModeType टाइप

This formal definition refers to the description of type T_ Error Mode in chapter 2.2.1.3 POC status of [12].

Fr_POCStatusType टाइप

This formal definition refers to the description of type T_ POCStatus in chapter 2.2.1.3 POC status of [12].

Fr_RxLPduStatusType टाइप

These values are used to determine if a LPdu has been received or not.

This structure contains information about the assignment of a Flex Ray frame to a cycle and a slot ID.

Fr_SlotModeType टाइप

This formal definition refers to the description of type T_ Slot Mode in chapter 2.2.1.3 POC status of [12]. Available Fr_ General Types.h For FlexRay 2.1 Rev A compliant FlexRay controllers see literal SINGL ESLOT instead of KEYSLOT in [14] . Specification of FlexRay Driver AUTOSAR CP R20 - of Document ID : AUTOSAR_SWS_FlexRayDriver via

Fr_StartupStateType टाइप

Type Fr_StartupStateType.

Fr_TxLPduStatusType टाइप

These values are used to determine whether a LPdu has been transmitted or not.

Fr_WakeupStatusType टाइप

This formal definition refers to the description of type T_ Wakeup Status in chapter Specification of FlexRay Driver AUTOSAR CP R20 - of Document ID : AUTOSAR_SWS_FlexRayDriver 2.2.1.3 POC status of [12].

FrArTp

FrArTp_CancelReceive फ़ंक्शन

Requests cancellation of an ongoing reception of a PDU in a lower layer transport protocol module.

Std_ReturnType FrArTp_CancelReceive(PduIdType RxPduId);
FrArTp_CancelTransmit फ़ंक्शन

Requests cancellation of an ongoing transmission of a PDU in a lower layer communication module.

Std_ReturnType FrArTp_CancelTransmit(PduIdType TxPduId);
FrArTp_ChangeParameter फ़ंक्शन

Request to change a specific transport protocol parameter (e.g. block size).

Std_ReturnType FrArTp_ChangeParameter(PduIdType id, TPParameterType parameter, uint16 value);
FrArTp_GetVersionInfo फ़ंक्शन

Returns the version information.

void FrArTp_GetVersionInfo(Std_VersionInfoType* versioninfo);
FrArTp_Init फ़ंक्शन

This service initializes all global variables of the Flex Ray AUTOSAR Transport Layer and sets all states to idle.

void FrArTp_Init(const FrArTp_ConfigType* configPtr);
FrArTp_MainFunction फ़ंक्शन

Schedules the Flex Ray TP. (Entry point for scheduling)

void FrArTp_MainFunction(void);
FrArTp_RxIndication फ़ंक्शन

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

void FrArTp_RxIndication(PduIdType RxPduId, const PduInfoType* PduInfoPtr);
FrArTp_Shutdown फ़ंक्शन

This service closes all pending transport protocol connections by simply stopping operation, frees all resources and stops the Fr Ar Tp Module

void FrArTp_Shutdown(void);
FrArTp_Transmit फ़ंक्शन

Requests transmission of a PDU.

Std_ReturnType FrArTp_Transmit(PduIdType TxPduId, const PduInfoType* PduInfoPtr);
FrArTp_TxConfirmation फ़ंक्शन

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

void FrArTp_TxConfirmation(PduIdType TxPduId, Std_ReturnType result);
FrArTp_ConfigType टाइप

This is the base type for the configuration of the Flex Ray Transport Protocol. A pointer to an instance of this structure will be used in the initialization of the Flex Ray Transport Protocol. The outline of the structure is defined in chapter 10 Configuration Specification.

FrIf

<Free_Op_A> फ़ंक्शन

User defined communication operation in order to support hardware specific or additional communication controller features to increase performance.

void <Free_Op_A> (uint8 FrIf_CtrlIdx, uint16 FrIf_LPduIdx);
<Free_Op_B> फ़ंक्शन

User defined communication operation in order to support hardware specific or additional communication controller features to increase performance.

void <Free_Op_B> (uint8 FrIf_CtrlIdx, uint16 FrIf_LPduIdx);
<UL_TxConflictNotification> फ़ंक्शन

Notification in case a Tx Conflict has been detected.

void <UL_TxConflictNotification> (uint8 FrIf_CtrlIdx, uint16 FrIf_LPduIdx);
<User_RxIndication> फ़ंक्शन

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

void <User_RxIndication> (PduIdType RxPduId, const PduInfoType* PduInfoPtr);
<User_TriggerTransmit> फ़ंक्शन

Within this API, the upper lay er module (called module) shall check whether the AUTOSAR CP R20 - of Document ID : AUTOSAR_SWS_FlexRayInterface 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 c opied data in Pdu Info Ptr - >Sdu Length. If not, it returns E_ NOT_ OK without changing Pdu Info Ptr.

Std_ReturnType <User_TriggerTransmit> (PduIdType TxPduId, PduInfoType* PduInfoPtr);
<User_TxConfirmation> फ़ंक्शन

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

void <User_TxConfirmation> (PduIdType TxPduId, Std_ReturnType result);
FrIf_AbortCommunication फ़ंक्शन

Wraps the Flex Ray Driver API function Fr_ Abort Communication().

Std_ReturnType FrIf_AbortCommunication (uint8 FrIf_CtrlIdx);
FrIf_AckAbsoluteTimerIRQ फ़ंक्शन

Wraps the Flex Ray Driver API function Fr_ Ack Absolute Timer IRQ()

Std_ReturnType FrIf_AckAbsoluteTimerIRQ (uint8 FrIf_CtrlIdx, uint8 FrIf_AbsTimerIdx);
FrIf_AllowColdstart फ़ंक्शन

Wraps the Flex Ray Driver API function Fr_ Allow Coldstart().

Std_ReturnType FrIf_AllowColdstart (uint8 FrIf_CtrlIdx);
FrIf_AllSlots फ़ंक्शन

Wraps the Flex Ray Driver API function Fr_ All Slots

Std_ReturnType FrIf_AllSlots (uint8 FrIf_CtrlIdx);
FrIf_CancelAbsoluteTimer फ़ंक्शन

Wraps the Flex Ray Driver API function Fr_ Cancel Absolute Timer() .

Std_ReturnType FrIf_CancelAbsoluteTimer (uint8 FrIf_CtrlIdx, uint8 FrIf_AbsTimerIdx);
FrIf_CancelTransmit फ़ंक्शन

Requests cancellation of an ongoing transmission o f a PDU in a lower layer communication module.

Std_ReturnType FrIf_CancelTransmit (PduIdType TxPduId);
FrIf_CheckWakeupByTransceiver फ़ंक्शन

Wraps the Flex Ray Transceiver Driver API function Fr Trcv_ Check Wakeup By Transceiver(). The enum value "FR_ CHANNEL_ AB" shall not be used.

void FrIf_CheckWakeupByTransceiver (uint8 FrIf_CtrlIdx, Fr_ChannelType FrIf_ChnlIdx);
FrIf_ClearTransceiverWakeup फ़ंक्शन

Wraps the Flex Ray Transceiver Driver API function Fr Trcv_ Clear Transceiver Wakeup(). The enum value "FR_ CHANNEL_ AB" shall not be used. A vailable via Fr If.h

Std_ReturnType FrIf_ClearTransceiverWakeup (uint8 FrIf_CtrlIdx, Fr_ChannelType FrIf_ChnlIdx);
FrIf_ControllerInit फ़ंक्शन

Initialized a Flex Ray CC.

Std_ReturnType FrIf_ControllerInit (uint8 FrIf_CtrlIdx);
FrIf_DisableAbsoluteTimerIRQ फ़ंक्शन

Wraps the Flex Ray Driver API function Fr_ Disable Absolute Timer IRQ().

Std_ReturnType FrIf_DisableAbsoluteTimerIRQ (uint8 FrIf_CtrlIdx, uint8 FrIf_AbsTimerIdx);
FrIf_DisableLPdu फ़ंक्शन

Wraps the Flex Ray Driver Function Fr_ Disable LPdu. It disables the hardware resource of an LPdu for transmission/ recept ion.

Std_ReturnType FrIf_DisableLPdu (uint8 FrIf_CtrlIdx, uint16 FrIf_LPduIdx);
FrIf_DisableTransceiverBranch फ़ंक्शन

Wraps the Flex Ray Transceiver Driver API function Fr Trcv_ Disable Transceiver Branch. The enum value "FR_ CHANNEL_ AB" shall not be used.

Std_ReturnType FrIf_DisableTransceiverBranch (uint8 FrIf_CtrlIdx, Fr_ChannelType FrIf_ChnlIdx, uint8 FrIf_BranchIdx);
FrIf_EnableAbsoluteTimerIRQ फ़ंक्शन

Service FrIf_EnableAbsoluteTimerIRQ.

Std_ReturnType FrIf_EnableAbsoluteTimerIRQ (uint8 FrIf_CtrlIdx, uint8 FrIf_AbsTimerIdx);
FrIf_EnableBusMirroring फ़ंक्शन

Enables or disables mirroring for all Flex Ray controllers connected to the addressed Flex Ray cluster.

Std_ReturnType FrIf_EnableBusMirroring (uint8 FrIf_ClstIdx, boolean FrIf_MirroringActive);
FrIf_EnableTransceiverBranch फ़ंक्शन

Wraps the Flex Ray Transceiver Driver API function Fr Trcv_ Enable Transceiver Branch. The enum value "FR_ CHANNEL_ AB" shall not be used.

Std_ReturnType FrIf_EnableTransceiverBranch (uint8 FrIf_CtrlIdx, Fr_ChannelType FrIf_ChnlIdx, uint8 FrIf_BranchIdx);
FrIf_GetAbsoluteTimerIRQStatus फ़ंक्शन

Wraps the Flex Ray Driver API function Fr_ Get Absolute Timer IRQStatus()

Std_ReturnType FrIf_GetAbsoluteTimerIRQStatus (uint8 FrIf_CtrlIdx, uint8 FrIf_AbsTimerIdx, boolean* FrIf_IRQStatusPtr);
FrIf_GetChannelStatus फ़ंक्शन

Wraps the Flex Ray Driver API function Fr_ Get Channel Status() and gets the channel status information.

Std_ReturnType FrIf_GetChannelStatus (uint8 FrIf_CtrlIdx, uint16* FrIf_ChannelAStatusPtr, uint16* FrIf_ChannelBStatusPtr);
FrIf_GetClockCorrection फ़ंक्शन

Wraps the Flex Ray Driver API function Fr_ Get Clock Correction () and gets the current clock correction values.

Std_ReturnType FrIf_GetClockCorrection (uint8 FrIf_CtrlIdx, sint16* FrIf_RateCorrectionPtr, sint32* FrIf_OffsetCorrectionPtr);
FrIf_GetCycleLength फ़ंक्शन

This API returns the configured time of the configuration parameter "Gd Cycle" in nanoseconds for the Flex Ray controller with index Fr If_ Ctrl Idx.

uint32 FrIf_GetCycleLength (uint8 FrIf_CtrlIdx);
FrIf_GetGlobalTime फ़ंक्शन

Wraps the Flex Ray Driver API function Fr_ Get Global Time(). Impo rtant Note: Fr If_ Get Global Time may be called within an exclusive area.

Std_ReturnType FrIf_GetGlobalTime (uint8 FrIf_CtrlIdx, uint8* FrIf_CyclePtr, uint16* FrIf_MacroTickPtr);
FrIf_GetMacrotickDuration फ़ंक्शन

Retrieves the Duration of a Macrotick in ns

uint16 FrIf_GetMacrotickDuration (uint8 FrIf_CtrlIdx);
FrIf_GetMacroticksPerCycle फ़ंक्शन

Retrieves the amount of Macroticks per Cycle

uint16 FrIf_GetMacroticksPerCycle (uint8 FrIf_CtrlIdx);
FrIf_GetNmVector फ़ंक्शन

Derives the Flex Ray NM Vector. Av ailable via Fr If.h

Std_ReturnType FrIf_GetNmVector (uint8 FrIf_CtrlIdx, uint8* FrIf_NmVectorPtr);
FrIf_GetNumOfStartupFrames फ़ंक्शन

Wraps the Flex Ray Driver API function Fr_ Get Num Of Startup Frames and gets a list of the current number of startup frames seen on the cluster. See variable v Startup Pairs of [12] for details.

Std_ReturnType FrIf_GetNumOfStartupFrames (uint8 FrIf_CtrlIdx, uint8* FrIf_NumOfStartupFramesPtr);
FrIf_GetPOCStatus फ़ंक्शन

Wraps the Flex Ray Driver API function Fr_ Get POCStatus().

Std_ReturnType FrIf_GetPOCStatus (uint8 FrIf_CtrlIdx, Fr_POCStatusType* FrIf_POCStatusPtr);
FrIf_GetState फ़ंक्शन

Get current Fr If state.

Std_ReturnType FrIf_GetState (uint8 FrIf_ClstIdx, FrIf_StateType* FrIf_StatePtr);
FrIf_GetSyncFrameList फ़ंक्शन

Service FrIf_GetSyncFrameList.

Std_ReturnType FrIf_GetSyncFrameList (uint8 FrIf_CtrlIdx, uint8 FrIf_ListSize, uint16* FrIf_ChannelAEvenListPtr, uint16* FrIf_ChannelBEvenListPtr, uint16* FrIf_ChannelAOddListPtr, uint16* FrIf_ChannelBOddListPtr);
FrIf_GetTransceiverError फ़ंक्शन

Wraps the Flex Ray Transceiver Driver API function Fr Trcv_ Get Transceiver Error. The enum value "FR_ CHANNEL_ AB" shall not be used.

Std_ReturnType FrIf_GetTransceiverError (uint8 FrIf_CtrlIdx, Fr_ChannelType FrIf_ChnlIdx, uint8 FrIf_BranchIdx, uint32* FrIf_BusErrorState);
FrIf_GetTransceiverMode फ़ंक्शन

Wraps the Flex Ray Transceiver Driver API function Fr Trcv_ Get Transceiver Mode(). The enum value "FR_ CHANNEL_ AB" shall not be used.

Std_ReturnType FrIf_GetTransceiverMode (uint8 FrIf_CtrlIdx, Fr_ChannelType FrIf_ChnlIdx, FrTrcv_TrcvModeType* FrIf_TrcvModePtr);
FrIf_GetTransceiverWUReason फ़ंक्शन

Wraps the Flex Ray Transceiver Driver API function Fr Trcv_ Get Transceiver WUReason(). The enum value "FR_ CHANNEL_ AB" shall not be used.

Std_ReturnType FrIf_GetTransceiverWUReason (uint8 FrIf_CtrlIdx, Fr_ChannelType FrIf_ChnlIdx, FrTrcv_TrcvWUReasonType* FrIf_TrcvWUReasonPtr);
FrIf_GetVersionInfo फ़ंक्शन

Returns the version information of this module.

void FrIf_GetVersionInfo (Std_VersionInfoType* FrIf_VersionInfoPtr);
FrIf_GetWakeupRxStatus फ़ंक्शन

Wraps the Flex Ray Driver API function Fr_ Get Wakeup Rx Status and gets the wakeup received information from the Flex Ray controller.

Std_ReturnType FrIf_GetWakeupRxStatus (uint8 FrIf_CtrlIdx, uint8* FrIf_WakeupRxStatusPtr);
FrIf_HaltCommunication फ़ंक्शन

Wraps the Flex Ray Driver API function Fr_ Halt Communication().

Std_ReturnType FrIf_HaltCommunication (uint8 FrIf_CtrlIdx);
FrIf_Init फ़ंक्शन

Initializes the Flex Ray Interface.

void FrIf_Init (const FrIf_ConfigType* FrIf_ConfigPtr);
FrIf_ReadCCConfig फ़ंक्शन

Wraps the Flex Ray Driver API function Fr_ Read CCConfig().

Std_ReturnType FrIf_ReadCCConfig (uint8 FrIf_CtrlIdx, uint8 FrIf_Config ParamIdx, uint32* FrIf_Config ParamValuePtr); ⚠️
FrIf_ReconfigLPdu फ़ंक्शन

Service FrIf_ReconfigLPdu.

Std_ReturnType FrIf_ReconfigLPdu (uint8 FrIf_CtrlIdx, uint16 FrIf_LPduIdx, uint16 FrIf_FrameId, Fr_ChannelType FrIf_ChnlIdx, uint8 FrIf_CycleRepetition, uint8 FrIf_CycleOffset, uint8 FrIf_PayloadLength, uint16 FrIf_Header CRC); ⚠️
FrIf_SendWUP फ़ंक्शन

Wraps the Flex Ray Driver API function Fr_ Send WUP().

Std_ReturnType FrIf_SendWUP (uint8 FrIf_CtrlIdx);
FrIf_SetAbsoluteTimer फ़ंक्शन

Wraps the Flex Ray Driver API function Fr_ Set Absolute Timer().

Std_ReturnType FrIf_SetAbsoluteTimer (uint8 FrIf_CtrlIdx, uint8 FrIf_AbsTimerIdx, uint8 FrIf_Cycle, uint16 FrIf_Offset);
FrIf_SetState फ़ंक्शन

Requests Fr If state machine transition.

Std_ReturnType FrIf_SetState (uint8 FrIf_ClstIdx, FrIf_StateTransitionType FrIf_StateTransition);
FrIf_SetTransceiverMode फ़ंक्शन

Wraps the Flex Ray Transceiver Driver API function Fr

Std_ReturnType FrIf_SetTransceiverMode (uint8 FrIf_CtrlIdx, Fr_ChannelType FrIf_ChnlIdx, Limited by st atic configuration [Configuration Parameter FrIfCounterLimit, see FrIf06076 ]); ⚠️
FrIf_SetWakeupChannel फ़ंक्शन

Wraps the Flex Ray Driver API functi on Fr_ Set Wakeup Channel(). The enum value "FR_ CHANNEL_ AB" shall not be used.

Std_ReturnType FrIf_SetWakeupChannel (uint8 FrIf_CtrlIdx, Fr_ChannelType FrIf_ChnlIdx);
FrIf_StartCommunication फ़ंक्शन

Wraps the Flex Ray Driver API function Fr_ Start Communication().

Std_ReturnType FrIf_StartCommunication (uint8 FrIf_CtrlIdx);
FrIf_Transmit फ़ंक्शन

Requests transmission of a PDU.

Std_ReturnType FrIf_Transmit (PduIdType TxPduId, const PduInfoType* PduInfoPtr);
FrIf_ConfigType टाइप

This type contains the implementation - specific post build time configuration structure. Only pointers of this type are allowed.

Variables of this type are used to represent the Fr If_ State of a Flex Ray CC.

FrIf_StateType टाइप

Variables of this type are used to represent the Fr If_ State of a Flex Ray CC.

FrNm

<Fr Nm Channel.Short Name> फ़ंक्शन

Main function of Flex Ray NM.

void FrNm_MainFunction_< Fr Nm Channel.Short Name>(void);
<Nm_Network Start Indication> फ़ंक्शन

This API service of an upper layer Nm is called by the Flex Ray Network Management to indicate to this upper layer BSW module that a NM - message was successfully received and the Fr Nm is in the Bus - Sleep Mode.

void <Nm_Network Start Indication>(NetworkHandleType nmNetworkHandle);
<Nm_Pdu RxIndication> फ़ंक्शन

This API service of an upper NM is called by the Flex Ray Network Management to indicate to this upper layer BSW module Nm that a NM - message was successfully received (see FRNM190) This function is only available on the definition of _ PDU_ RX_ INDICATION_ ENABLED

void <Nm_Pdu RxIndication>(NetworkHandleType nmNetworkHandle);
<UL_Remote Sleep Cancellation> फ़ंक्शन

This API service of an upper layer BSW module <UL> (e.g. Com M) is called by the Flex Ray Network Management to indicate to this upper layer BSW module that the "Remote Sleep" has been cancelled as an NM - message with an indication to keep the bus awake has been received and the Remote Sleep indication has been previously detected .

void <UL_Remote Sleep Cancellation>(NetworkHandleType nmNetworkHandle);
<UL_Remote Sleep Indication> फ़ंक्शन

This API service of an upper layer BSW module <UL> (e.g. Com M) is called by the Flex Ray Network Management to indicate to this upper layer BSW module that all other nodes in the cluster are ready to sleep (the 'Remote Sleep Indication'), as no NM - messages with an indication to keep the bus awake are rece ived in the Normal Operation State for a configurable amount of time determined by the FRNM_ REMOTE_ SLEEP_ IND_ TIME (configuration parameter).

void <UL_Remote Sleep Indication>(NetworkHandleType nmNetworkHandle);

This API service of an upper layer BSW module <UL> is called by the Flex Ray Network Management when Fr If calls Fr Nm_ Tx Confirmation with result E_ NOT_ OK to indicate to this upper layer BSW module that NM - message could not be transmitted successfully.

void <UL_Transmission Timeout Exception>(NetworkHandleType nmNetworkHandle);
FrNm_ActivateTxPnShutdownMsg फ़ंक्शन

NM indicate to activate the transmission of PN shutdown messages on the given NM - Channel. This results in transmission of a NM - PDU wi th PNSR bit set to 1 (PN shutdown message).

Std_ReturnType FrNm_ActivateTxPnShutdownMsg(NetworkHandleType nmChannelHandle);
FrNm_CheckRemoteSleepIndication फ़ंक्शन

This function checks if remote sleep indication has taken place or not.

Std_ReturnType FrNm_CheckRemoteSleepIndication(NetworkHandleType NetworkHandle, boolean* nmRemoteSleepIndPtr);
FrNm_DeactivateTxPnShutdownMsg फ़ंक्शन

NM indicate to deactive the transmission of PN shutdown messages on the given NM - Channel. This result in transmission of a usual NM - PDUs with PNSR bit set to 0.

Std_ReturnType FrNm_DeactivateTxPnShutdownMsg(NetworkHandleType nmChannelHandle);
FrNm_DisableCommunication फ़ंक्शन

Disable the NM PDU transmission ability due to a ISO14229 Communication Control (28hex) service

Std_ReturnType FrNm_DisableCommunication(NetworkHandleType nmChannelHandle);
FrNm_EnableCommunication फ़ंक्शन

Enable the NM PDU transmission ability due to a ISO14229 Communication Control (28hex) service

Std_ReturnType FrNm_EnableCommunication(NetworkHandleType nmChannelHandle);
FrNm_GetLocalNodeIdentifier फ़ंक्शन

This function gets the node identifier configured for the local node.

Std_ReturnType FrNm_GetLocalNodeIdentifier(NetworkHandleType NetworkHandle, uint8* nmNodeIdPtr);
FrNm_GetNodeIdentifier फ़ंक्शन

This function gets the node identifier from the last successfully received NM - message.

Std_ReturnType FrNm_GetNodeIdentifier(NetworkHandleType NetworkHandle, uint8* nmNodeIdPtr);
FrNm_GetPduData फ़ंक्शन

Gets PDU data.

Std_ReturnType FrNm_GetPduData(NetworkHandleType NetworkHandle, uint8* nmPduData);
FrNm_GetState फ़ंक्शन

This function returns the state and the mode of the network management.

Std_ReturnType FrNm_GetState(NetworkHandleType NetworkHandle, Nm_StateType* nmStatePtr, Nm_ModeType* nmModePtr);
FrNm_GetUserData फ़ंक्शन

This function gets user da ta from the last successfully received NM message.

Std_ReturnType FrNm_GetUserData(NetworkHandleType NetworkHandle, uint8* nmUserDataPtr);
FrNm_GetVersionInfo फ़ंक्शन

Returns the version information.

void FrNm_GetVersionInfo(Std_VersionInfoType* NmVerInfoPtr);
FrNm_Init फ़ंक्शन

Initializes the Flex Ray NM and its internal state machine.

void FrNm_Init(const FrNm_ConfigType* nmConfigPtr);
FrNm_NetworkRelease फ़ंक्शन

This function releases the network because the ECU doesn't have to communicate on the bus. Network state shall be changed to 'released'.

Std_ReturnType FrNm_NetworkRelease(NetworkHandleType NetworkHandle);
FrNm_NetworkRequest फ़ंक्शन

This function requests the network because the ECU needs to communicate on the bus. Network state shall be changed to 'requested'.

Std_ReturnType FrNm_NetworkRequest(NetworkHandleType NetworkHandle);
FrNm_PassiveStartUp फ़ंक्शन

Initiates the Passive Startup of the Flex Ray NM.

Std_ReturnType FrNm_PassiveStartUp(NetworkHandleType NetworkHandle);
FrNm_PnLearningRequest फ़ंक्शन

Set Repeat Message Request Bit and Partial Network Learning Bit for NM messa ges transmitted next on the bus. This will force all nodes to enter the PNC Learning Phase. This is needed for the optional Dynamic PNC - to - channel - mapping feature. Tags: atp.Status=draft

Std_ReturnType FrNm_PnLearningRequest(NetworkHandleType NetworkHandle);
FrNm_RepeatMessageRequest फ़ंक्शन

This function causes a Repeat Message Request to be transmitted next on the bus.

Std_ReturnType FrNm_RepeatMessageRequest(NetworkHandleType NetworkHandle);
FrNm_RequestBusSynchronization फ़ंक्शन

This function has no functionality - the service is provided only to be compatible to future extensions and to be compatible to the CAN - NM interface.

Std_ReturnType FrNm_RequestBusSynchronization(NetworkHandleType NetworkHandle);

Requests transmission of a NM - PDU with PNSR bit set to 1 (PN shutdown message) Tags: atp.Status=draft

Std_ReturnType FrNm_RequestSynchronizedPncShutdown(NetworkHandleType nmChannelHandle, PNCHandleType pncId);
FrNm_RxIndication फ़ंक्शन

Indication of a receive d PDU from a lower layer communication interface module.

void FrNm_RxIndication(PduIdType RxPduId, const PduInfoType* PduInfoPtr);
FrNm_SetSleepReadyBit फ़ंक्शन

Set the NM Coordinator Sleep Ready bit in t he Control Bit Vector

Std_ReturnType FrNm_SetSleepReadyBit(NetworkHandleType nmChannelHandle, boolean nmSleepReadyBit);
FrNm_SetUserData फ़ंक्शन

This function sets user data for NM - Data transmitted next on the bus.

Std_ReturnType FrNm_SetUserData(NetworkHandleType NetworkHandle, const uint8* nmUserDataPtr);
FrNm_StartupError फ़ंक्शन

This function is called by the Fr SM when synchronization of the Flex Ray cluster could not be achieved.

void FrNm_StartupError(NetworkHandleType NetworkHandle);
FrNm_Transmit फ़ंक्शन

Requests transmission of a PDU.

Std_ReturnType FrNm_Transmit(PduIdType TxPduId, const PduInfoType* PduInfoPtr);
FrNm_TriggerTransmit फ़ंक्शन

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 upd ate 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 FrNm_TriggerTransmit(PduIdType TxPduId, PduInfoType* PduInfoPtr);
FrNm_TxConfirmation फ़ंक्शन

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

void FrNm_TxConfirmation(PduIdType TxPduId, Std_ReturnType result);
FrNm_ConfigType टाइप

Contains configuration parameters.

FrSM

FrSm_AllSlots फ़ंक्शन

Service FrSm_AllSlots.

Std_ReturnType FrSm_AllSlots (NetworkHandleType NetworkHandle);
FrSM_GetCurrentComMode फ़ंक्शन

This API function can be used to determine the current communication mode of a Flex Ray cluster.

Std_ReturnType FrSM_GetCurrentComMode (NetworkHandleType NetworkHandle, ComM_ModeType* ComM_ModePtr);
FrSM_GetVersionInfo फ़ंक्शन

This service returns the version information of this module. The version information includes:  Module Id  Vendor Id  Vendor specific version numbers (BSW00407 ). This function shall be pre compile time configurable On/ Off by the configuration parameter: FRSM_ VERSION_ INFO_ API Hint: If source code for caller and callee of this function is available this function should be realized as a macro. The macro should be defined in the modules header file.

void FrSM_GetVersionInfo (Std_VersionInfoType* versioninfo);
FrSm_Init फ़ंक्शन

Initializes the Flex Ray State Manager.

void FrSm_Init (const FrSM_ConfigType* FrSM_ConfigPtr);
FrSM_RequestComMode फ़ंक्शन

This API function is used by the Com M to startup or shutdown the communication on a Flex Ray cluster.

Std_ReturnType FrSM_RequestComMode (NetworkHandleType NetworkHandle, ComM_ModeType ComM_Mode);
FrSm_SetEcuPassive फ़ंक्शन

This API function can be used to set all Flex Ray clusters of the ECU to a receive AUTOSAR CP R20 - of Document ID : AUTOSAR_S WS_FlexRayStateManager only mode.

Std_ReturnType FrSm_SetEcuPassive (boolean FrSM_Passive);
FrSM_BswM_StateType टाइप

This type defines the states that are reported to the Bsw

FrSM_ConfigType टाइप

This type contains the implementation - specific post build time configuration structure AUTOSAR CP R20 - of Document ID : AUTOSAR_S WS_FlexRayStateManager that is for Fr SM_ Init.

FrTp

FrTp_CancelReceive फ़ंक्शन

Requests cancellation of an ongoing reception of a PDU in a lower layer transport protocol module.

Std_ReturnType FrTp_CancelReceive (PduIdType RxPduId);
FrTp_CancelTransmit फ़ंक्शन

Requests cancellation of an ongoing transmission of a PDU in a lower layer communication module.

Std_ReturnType FrTp_CancelTransmit (PduIdType TxPduId);
FrTp_ChangeParameter फ़ंक्शन

Request to change a specific transport protocol parameter (e.g. block size).

Std_ReturnType FrTp_ChangeParameter (PduIdType id, TPParameterType parameter, uint16 value);
FrTp_GetVersionInfo फ़ंक्शन

Returns the version information.

void FrTp_GetVersionInfo (Std_VersionInfoType* versioninfo);
FrTp_Init फ़ंक्शन

This service initializes all global variables of a Flex Ray Transport Layer instance and set it in the idle state. It has no return value because software errors in initialisation data shall be detected during configuration time (e.g. by configuration tool ).

void FrTp_Init (const FrTp_ConfigType* configPtr);
FrTp_MainFunction फ़ंक्शन

Schedules the Flex Ray TP. (Entry point for scheduling)

void FrTp_MainFunction (void);
FrTp_RxIndication फ़ंक्शन

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

void FrTp_RxIndication (PduIdType RxPduId, const PduInfoType* PduInfoPtr);
FrTp_Shutdown फ़ंक्शन

This service closes all pending transport pro tocol connections by simply stopping operation, frees all resources and stops the Fr Tp Module

void FrTp_Shutdown (void);
FrTp_Transmit फ़ंक्शन

Requests transmission of a PDU.

Std_ReturnType FrTp_Transmit (PduIdType TxPduId, const PduInfoType* PduInfoPtr);
FrTp_TriggerTransmit फ़ंक्शन

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 FrTp_TriggerTransmit (PduIdType TxPduId, PduInfoType* PduInfoPtr);
FrTp_TxConfirmation फ़ंक्शन

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

void FrTp_TxConfirmation (PduIdType TxPduId, Std_ReturnType result);
FrTp_ConfigType टाइप

This is the base type for the configuration of the Flex Ray Transport Protocol A pointer to an instance of this structure will be used in the initialization of the Flex Ray Transport Protocol. The outline of the structure is defined in chapter 10 Configura tion Specification

FrTrcv

FrTrcv_CheckWakeupByTransceiver फ़ंक्शन

-

void FrTrcv_CheckWakeupByTransceiver (uint8 FrTrcv_TrcvIdx);
FrTrcv_ClearTransceiverWakeup फ़ंक्शन

This function clears a pending wake up event.

Std_ReturnType FrTrcv_ClearTransceiverWakeup (uint8 FrTrcv_TrcvIdx);
FrTrcv_DisableTransceiverBranch फ़ंक्शन

This function disable s the specified branch on the addressed (active star) transceiver.

Std_ReturnType FrTrcv_DisableTransceiverBranch (uint8 FrTrcv_TrcvIdx, uint8 FrTrcv_BranchIdx);
FrTrcv_EnableTransceiverBranch फ़ंक्शन

This function enables the specified branch on the addressed (active star) transceiver.

Std_ReturnType FrTrcv_EnableTransceiverBranch (uint8 FrTrcv_TrcvIdx, uint8 FrTrcv_BranchIdx);
FrTrcv_GetTransceiverError फ़ंक्शन

All mandatory errors defined by the Flex Ray EPL [5] which are supported by the Flex Ray transceiver hardware can be acce ssed via this API:In addition to errors on the physical layer and local to the ECU hardware, a global error flag is provided.

Std_ReturnType FrTrcv_GetTransceiverError (uint8 FrTrcv_TrcvIdx, uint8 FrTrcv_BranchIdx, uint32* FrTrcv_BusErrorState);
FrTrcv_GetTransceiverMode फ़ंक्शन

This function returns the actual state of the transceiver.

Std_ReturnType FrTrcv_GetTransceiverMode (uint8 FrTrcv_TrcvIdx, FrTrcv_TrcvModeType* FrTrcv_TrcvModePtr);
FrTrcv_GetTransceiverWUReason फ़ंक्शन

This function returns the wakeup reason.

Std_ReturnType FrTrcv_GetTransceiverWUReason (uint8 FrTrcv_TrcvIdx, FrTrcv_TrcvWUReasonType* FrTrcv_TrcvWUReasonPtr);
FrTrcv_GetVersionInfo फ़ंक्शन

This service returns the version information of this module.

void FrTrcv_GetVersionInfo (Std_VersionInfoType* versioninfo);
FrTrcv_Init फ़ंक्शन

This service initializes the Fr Trcv.

void FrTrcv_Init (const FrTrcv_ConfigType* ConfigPtr);
FrTrcv_MainFunction फ़ंक्शन

-

void FrTrcv_MainFunction (void);
FrTrcv_SetTransceiverMode फ़ंक्शन

This service sets the transceiver mode.

Std_ReturnType FrTrcv_SetTransceiverMode (uint8 FrTrcv_TrcvIdx, FrTrcv_TrcvModeType FrTrcv_TrcvMode);
FrTrcv_ConfigType टाइप

Configuration data structure of the Fr Trcv module.

FrTrcv_TrcvModeType टाइप

Transceiver modes in state ACTIVE. AUTOSAR CP R20 - of Document ID : AUTOSAR_SWS_FlexRayTransceiverDriver

This type to be used to specify the wake up reason detected by the FR transceiver in detail.

Type ofaCfunctionwhichsubstitutesMultiplicityType.

क्लस्टर गाइडएआई जनित

TDMA चक्रों पर निर्धारक FlexRay संचार, बस मोड और खंडित डेटा ट्रांसफ़र का समन्वय करता है।
एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 1e01dd1630aa उद्गम खुले प्रश्न (2)
कारणात्मक एंकर: R20-11 R20-11 से मान्य इस विनिर्देश संस्करण के लिए नए सिरे से संश्लेषित।
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

TDMA चक्रों पर निर्धारक FlexRay संचार, बस मोड और खंडित डेटा ट्रांसफ़र का समन्वय करता है।

FlexRay Communication मॉड्यूल क्लस्टर AUTOSAR Classic R20-11 [SWS_FrIf_05001] SWS FlexRayInterface पृ. 170 में TDMA प्रक्रिया के अनुसार निर्धारक डेटा विनिमय और ISO 10681-2 के अनुसार खंडित डायग्नोस्टिक स्थानांतरण का एहसास कराता है। यह Fr, FrTrcv, FrIf, FrSM और FrTp मॉड्यूल के माध्यम से क्लस्टर-व्यापी मोड प्रबंधन, बस वेकअप पैटर्न और हार्डवेयर सिंक्रोनाइज़ेशन का समन्वय करता है। एक सख्त समय बाधा के तहत ट्रांसपोर्ट मुख्य फ़ंक्शन को प्रति FlexRay संचार चक्र में कम से कम एक बार कॉल करने की आवश्यकता होती है [SWS_FrTp_01152]।

मॉड्यूल क्लस्टर FlexRay Communication AUTOSAR Classic R20-11 में FlexRay बस प्रणाली SWS FlexRayInterface पृ. 170 के माध्यम से निर्धारक, TDMA-आधारित संचार सुनिश्चित करता है। यह हार्डवेयर ड्राइवर fr (Communication Controller) और frtrcv (Transceiver), केंद्रीय एब्स्ट्रैक्शन परत frif, स्टेट मैनेजर frsm तथा ISO-10681-2 ट्रांसपोर्ट प्रोटोकॉल frtp [SWS_FrIf_05001] [SWS_FrTp_01028] में विभाजित है।

FrClusterArch ComM ComM FrSM FrSM ComM->FrSM FrIf FrIf FrSM->FrIf BswM BswM BswM->FrSM PduR PduR FrTp FrTp PduR->FrTp PduR->FrIf FrTp->FrIf Fr Fr FrIf->Fr FrTrcv FrTrcv FrIf->FrTrcv HW_CC HW_CC Fr->HW_CC HW_Trcv HW_Trcv FrTrcv->HW_Trcv

आर्किटेक्चर आरेख: FlexRay मॉड्यूल की परत संरचना और इंटरफ़ेस संबंध। स्रोत: [SWS_FrIf_05001], [SWS_FrSM_00199]।

डेटा पथ FrIf_Transmit के माध्यम से नियंत्रित होता है, जहाँ FrTp डायग्नोस्टिक संदेशों और बड़े पेलोड के लिए विभाजन और पुनर्संयोजन सेवाएँ प्रदान करता है [SWS_FrIf_05033] [SWS_FrTp_01009]। रनटाइम पर, सिंक्रोनाइज़ेशन चक्रीय TDMA ग्रिड के माध्यम से होता है; FrTp_MainFunction को मानक रूप से प्रति FlexRay चक्र में कम से कम एक बार कॉल किया जाना चाहिए [SWS_FrTp_01152] SWS FlexRayISOTransportLayer पृ. 88। व्याख्या: इससे ISO-10681-2 फ़्लो कंट्रोल और पावती टाइमर का समय पर निष्पादन सुनिश्चित होने की संभावना है। प्रश्न (खुला)

स्टेट ट्रांज़िशन, वेकअप अनुक्रम (सिंगल और डुअल चैनल) और क्लस्टर स्टार्टअप FrSM द्वारा ऑर्केस्ट्रेट किए जाते हैं, जो FrIf और Fr के माध्यम से कंट्रोलर के POC स्टेट्स को नियंत्रित करता है और स्थिति को ComM तथा BswM को प्रेषित करता है [SWS_FrSM_00013] [SWS_Fr_00010] SWS FlexRayStateManager पृ. 50।

FlexRay क्लस्टर स्टार्टअप और वेकअपComMBswMFrSMFrIfFrFrTrcvFrSM_RequestComMode(Network, COMM_FULL_COM)FrIf_SetTransceiverMode(Ctrl, Chnl, NORMAL)FrTrcv_SetTransceiverMode(TrcvIdx, NORMAL)FrIf_SendWUP(CtrlIdx)Fr_SendWUP(CtrlIdx)BswM_FrSM_CurrentState(FRSM_WAKEUP)Use Case: स्टार्टअप और सिंक्रोनाइज़ेशनFrIf_StartCommunication(CtrlIdx)Fr_StartCommunication(CtrlIdx)FrIf_GetPOCStatus(CtrlIdx, POCStatusPtr)Fr_GetPOCStatus(CtrlIdx, POCStatusPtr)POC:normal activeE_OK (POC:normal active)FrIf_SetState(ClstIdx, FRIF_GOTO_ONLINE)BswM_FrSM_CurrentState(FRSM_ONLINE)

अनुक्रम आरेख: FrSM, FrIf, Fr और FrTrcv के माध्यम से वेकअप और क्लस्टर स्टार्टअप का प्रवाह। स्रोत: [SWS_FrSM_00013], [SWS_FrIf_05005]।

रनटाइम और हार्डवेयर त्रुटियों को DET (उदा. FRIF_E_INV_CTRL_IDX के माध्यम से अमान्य इंडेक्स) और DEM (उदा. FR_E_CTRL_TESTRESULT, FRSM_E_CLUSTER_STARTUP) के माध्यम से अलग किया जाता है [SWS_FrIf_05158] [SWS_Fr_00181]। सक्रिय स्टार कपलर शाखाओं को खराबी की स्थिति में FrTrcv_DisableTransceiverBranch के माध्यम से चुनिंदा रूप से निष्क्रिय किया जा सकता है [SWS_FrTrcv_00442] SWS FlexRayTransceiverDriver पृ. 50।

सिस्टम आर्किटेक्चर & मॉड्यूल क्लस्टर की भूमिका

मॉड्यूल क्लस्टर FlexRay Communication AUTOSAR Classic Platform (रिलीज़ R20-11) में FlexRay बस प्रणाली SWS FlexRayInterface पृ. 170 के माध्यम से निर्धारक, रीयल-टाइम सक्षम और दोष-सहिष्णु संचार प्रदान करता है। यह TDMA-आधारित संचरण विधि (Time Division Multiple Access) और ISO 10681-2 के अनुसार ट्रांसपोर्ट परत को लागू करता है। क्लस्टर में पाँच कोर मॉड्यूल शामिल हैं: FlexRay ड्राइवर (fr), FlexRay ट्रांसीवर ड्राइवर (frtrcv), FlexRay इंटरफ़ेस (frif), FlexRay State Manager (frsm) और FlexRay ISO Transport Layer (frtp) [SWS_FrIf_05001]।

मॉड्यूल AUTOSAR बेसिक सॉफ्टवेयर की परतों में वितरित हैं: FlexRay ड्राइवर fr Microcontroller Abstraction Layer (MCAL) से संबंधित है और Communication Controller (CC) तथा इसके Protocol Operation Control (POC) को सीधे नियंत्रित करता है [SWS_Fr_00510]। ट्रांसीवर ड्राइवर frtrcv भौतिक बस ट्रांसीवर को एब्स्ट्रैक्ट करता है और मानक चैनलों के अलावा सक्रिय स्टार कपलर (Active Stars) का भी समर्थन करता है [SWS_FrTrcv_00487]। केंद्रीय एब्स्ट्रैक्शन इंस्टेंस के रूप में FlexRay इंटरफ़ेस frif ड्राइवर एक्सेस को इनकैप्सुलेट करके और क्रॉस-कंट्रोलर क्लस्टर संचालन प्रदान करके ऊपरी परतों को हार्डवेयर से डिकपल करता है SWS FlexRayDriver पृ. 36।

सिस्टम स्तर पर, FlexRay State Manager frsm संपूर्ण FlexRay क्लस्टर की संचार स्थिति को नियंत्रित करने और रिपोर्ट करने के लिए सिस्टम सेवाओं (Communication Manager ComM, Basic Software Mode Manager BswM) और इंटरफ़ेस frif के बीच एक कड़ी के रूप में कार्य करता है [SWS_FrSM_00199]। FlexRay ISO Transport Layer frtp Communication Services में स्थित है और PDU रूटर (PduR) [SWS_FrTp_01028] SWS FlexRayStateManager पृ. 35 के ऊपर बड़े डेटा वॉल्यूम (उदा. DCM के माध्यम से डायग्नोस्टिक्स या जटिल एप्लिकेशन SDU के लिए) के लिए विभाजन, पुनर्संयोजन और फ़्लो कंट्रोल सेवाएँ प्रदान करता है।

FrClusterArch ComM ComM FrSM FrSM ComM->FrSM FrIf FrIf FrSM->FrIf BswM BswM BswM->FrSM PduR PduR FrTp FrTp PduR->FrTp PduR->FrIf FrTp->FrIf Fr Fr FrIf->Fr FrTrcv FrTrcv FrIf->FrTrcv HW_CC HW_CC Fr->HW_CC HW_Trcv HW_Trcv FrTrcv->HW_Trcv

आर्किटेक्चर आरेख: AUTOSAR FlexRay क्लस्टर में पाँच मॉड्यूल की स्थिर परत संरचना और इंटरैक्शन संबंध। स्रोत: [SWS_FrIf_05001], [SWS_FrSM_00199], [SWS_FrTp_01028]।

मॉड्यूल के बीच परस्पर क्रिया और इंटरैक्शन पथ

नियमित ट्रांसमिट डेटा फ़्लो ऊपरी परतों (उदा. COM या FrTp) से शुरू होता है, जो FrIf_Transmit [SWS_FrIf_05033] का उपयोग करके PDU पास करती हैं। FrIf क्लस्टर की ऑनलाइन स्थिति की जाँच करता है और अनुरोध को FlexRay ड्राइवर को अग्रेषित करता है। ट्रांसपोर्ट PDU के मामले में, FrTp फ़्लैग TX_SDU_AVAILABLE और इंटरफ़ेस PduR_FrTpCopyTxData के माध्यम से डेटा का अनुरोध करता है और मुक्त Tx-PDU संसाधनों के आवंटन को नियंत्रित करता है [SWS_FrTp_00416] [SWS_FrTp_01038]। व्याख्या: FrTp और FrIf के बीच इंटरैक्शन में, PDU पूल और बफ़र एक्सेस मोड (Immediate बनाम Decoupled Buffer Access) का कॉन्फ़िगरेशन मुख्य रूप से यह तय करने की संभावना है कि क्या पेलोड सीधे कॉल संदर्भ में प्रदान किया जाता है या ट्रिगर-ट्रांसमिट के माध्यम से समय-विच्छेदित रूप में प्रदान किया जाता है SWS FlexRayInterface पृ. 68। प्रश्न Q-f84c2cfb8cc303a6 (खुला)

प्राप्ति पक्ष पर, कंट्रोलर और ड्राइवर द्वारा प्राप्त होने के बाद FlexRay फ़्रेम को FlexRay इंटरफ़ेस पर स्थानांतरित कर दिया जाता है, जो कॉन्फ़िगर किए गए रिसेप्शन नोटिफिकेशन (जैसे FrTp_RxIndication) को कॉल करता है [SWS_FrTp_00152]। खंडित डेटा स्ट्रीम के लिए, FrTp प्राप्त N-PDU को बफ़र करता है, प्रोटोकॉल नियंत्रण जानकारी (PCI) को संसाधित करता है और PduR_FrTpStartOfReception तथा PduR_FrTpCopyRxData [SWS_FrTp_01074] SWS FlexRayISOTransportLayer पृ. 92 के माध्यम से ऊपरी परत के बफ़र क्षेत्रों का अनुरोध करता है।

ISO 10681-2 के अनुसार ट्रांसपोर्ट प्रोटोकॉल StartFrame (बिना पावती के STFU, पावती के साथ STFA) का उपयोग करके गैर-खंडित प्रसारण और खंडित प्रक्रियाओं [SWS_FrTp_01007] [SWS_FrTp_01008] के बीच अंतर करता है। खंडित स्थानांतरण में, StartFrame के बाद रिसीवर फ़्लो कंट्रोल फ़्रेम (Flow Control, FC.CTS या FC.WAIT) भेजता है, जिसके बाद प्रेषक Consecutive Frames (CF, CFEOB) और अंत में एक Last Frame (LF) प्रेषित करता है [SWS_FrTp_01009]। रनटाइम पर, फ़्लो कंट्रोल को FrTp_ChangeParameter के माध्यम से बैंडविड्थ नियंत्रण मापदंडों (BC) द्वारा गतिशील रूप से अनुकूलित किया जा सकता है [SWS_FrTp_00242] AUTOSAR SWS FlexRay ISO TP पृ. 27।

FrTp डेटा ट्रांसमिशन और प्रवाह नियंत्रण (ISO 10681-2)PduRFrTpFrIfFrTp_Transmit(TxSduId, PduInfo)Kanal belegen & TX_SDU_AVAILABLE setzenPduR_FrTpCopyTxData(TxSduId, ...)BUFREQ_OK (StartFrame Payload)FrIf_Transmit(TxPduId, PduInfo)FrTp_TxConfirmation(TxPduId, E_OK)Use Case: Empfang von Flow Control (FC)FrTp_RxIndication(RxPduId, FC.CTS)PduR_FrTpCopyTxData(TxSduId, ...)BUFREQ_OK (ConsecutiveFrame)FrIf_Transmit(TxPduId, CF N-PDU)FrTp_TxConfirmation(TxPduId, E_OK)PduR_FrTpTxConfirmation(TxSduId, E_OK)

अनुक्रम आरेख: PduR, FrTp और FrIf के बीच ISO 10681-2 के अनुसार खंडित डेटा स्थानांतरण और फ़्लो कंट्रोल। स्रोत: [SWS_FrTp_01009], [SWS_FrTp_00152], [SWS_FrIf_05033]।

सिंक्रोनाइज़ेशन, री-एंट्रेंसी और टास्क संदर्भ

FlexRay क्लस्टर में निष्पादन स्थिर संचार समय-आधार से निकटता से जुड़ा हुआ है। चक्रीय मुख्य फ़ंक्शन आवधिक कार्यों को नियंत्रित करते हैं: FrTrcv_MainFunction ट्रांसीवर स्थितियों और वेकअप घटनाओं का नमूना लेता है [SWS_FrTrcv_00330], जबकि FrTp_MainFunction को प्रति FlexRay संचार चक्र में कम से कम एक बार निष्पादित किया जाना चाहिए [SWS_FrTp_01152] [SWS_FrTp_00162]। व्याख्या: प्रति FlexRay संचार चक्र में कम से कम एक बार FrTp_MainFunction का निष्पादन स्थिर TDMA ग्रिड के साथ सिंक्रनाइज़ प्रोटोकॉल टाइमर (जैसे Timeout_BS और Timeout_CR) का समय पर अद्यतन सुनिश्चित करने की संभावना है SWS FlexRayISOTransportLayer पृ. 88। प्रश्न Q-c7a18cbb3c37b980 (खुला)

TDMA ग्रिड में समय सिंक्रोनाइज़ेशन और अनुक्रम नियंत्रण के लिए क्लस्टर पूर्ण टाइमर प्रदान करता है। CC में टाइमर इंटरप्ट FrIf_SetAbsoluteTimer, FrIf_EnableAbsoluteTimerIRQ और FrIf_AckAbsoluteTimerIRQ [SWS_Fr_00034] [SWS_FrIf_05021] के माध्यम से कॉन्फ़िगर और स्वीकृत किए जाते हैं। इसके अतिरिक्त, FrIf वैश्विक समय (FrIf_GetGlobalTime), चक्र लंबाई (FrIf_GetCycleLength) और मैक्रोटिक्स (FrIf_GetMacrotickDuration, FrIf_GetMacroticksPerCycle) की क्वेरी के लिए सिंक्रोनस सेवाएँ प्रदान करता है [SWS_FrIf_05015] [SWS_FrIf_05018] SWS FlexRayInterface पृ. 56।

रीएंट्रेंसी और संदर्भों के संबंध में: मॉड्यूल fr के ड्राइवर API आमतौर पर समान कंट्रोलर इंस्टेंस (Non Reentrant for the same device) [SWS_Fr_00034] के लिए गैर-रीएंट्रेंट होते हैं। frif के इंटरफ़ेस विभिन्न क्लस्टर या कंट्रोलर इंडेक्स के लिए रीएंट्रेंट होने के लिए डिज़ाइन किए गए हैं। विशिष्ट क्वेरी फ़ंक्शन जैसे FrIf_GetGlobalTime को स्पष्ट रूप से विशेष क्षेत्रों के भीतर कॉल करने की अनुमति है [SWS_FrIf_05015] SWS FlexRayInterface पृ. 64।

विशिष्ट जीवन चक्र और परिचालन मोड

क्लस्टर का प्रारंभीकरण पदानुक्रमित रूप से होता है: BSW प्रारंभीकरण अनुक्रम FrSM_Init से शुरू होता है, जिससे सभी क्लस्टर स्टेट मशीनें बेस स्थिति FRSM_READY में परिवर्तित हो जाती हैं [SWS_FrSM_00013] [SWS_FrSM_00126]। इसके बाद, कंट्रोलर FrIf_ControllerInit [SWS_FrIf_05004] के माध्यम से प्रारंभ किए जाते हैं, और FrTp मॉड्यूल FrTp_Init द्वारा स्थिति FRTP_OFF से FRTP_ON [SWS_FrTp_01032] SWS FlexRayStateManager पृ. 35 में बदल जाता है।

Communication Controller FlexRay विनिर्देश के अनुसार POC स्टेट मशीन (Protocol Operation Control) से गुजरता है: स्थिति POC:ready से, कमांड RUN Fr_StartCommunication के माध्यम से POC:startup [SWS_Fr_00010] में संक्रमण शुरू करता है। यदि ECU को कोल्डस्टार्ट नोड के रूप में कॉन्फ़िगर किया गया है, तो CHI कमांड ALLOW_COLDSTART Fr_AllowColdstart [SWS_Fr_00114] के माध्यम से जारी किया जाता है। सफल एकीकरण और सिंक्रोनाइज़ेशन के बाद, कंट्रोलर POC:normal active या POC:normal passive [SWS_Fr_00507] [SWS_Fr_00509] SWS FlexRayDriver पृ. 42 तक पहुँच जाता है।

संचार शुरू करने से पहले, एक स्लीपिंग बस को वेकअप अनुक्रम की आवश्यकता होती है: FrSM सिंगल-चैनल या डुअल-चैनल वेकअप का समन्वय करता है। वेकअप चैनल FrIf_SetWakeupChannel के माध्यम से पैरामीट्रिज्ड होता है, ट्रांसीवर को FRTRCV_TRCVMODE_NORMAL में स्विच किया जाता है और वेकअप पैटर्न (WUP) को FrIf_SendWUP या Fr_SendWUP [SWS_Fr_00009] [SWS_FrIf_05011] [SWS_FrIf_05034] के माध्यम से बस पर भेजा जाता है। वेकअप कारण का मूल्यांकन FrTrcv_GetTransceiverWUReason [SWS_FrTrcv_00325] SWS FlexRayStateManager पृ. 50 के माध्यम से किया जा सकता है।

शटडाउन के दौरान, FrSM ComM के अनुरोध पर COMM_FULL_COM से COMM_NO_COM में बदल जाता है। संचार को FrIf_HaltCommunication के माध्यम से रोक दिया जाता है, FrIf FrIf_SetState(FRIF_GOTO_OFFLINE) का उपयोग करके ऑफ़लाइन मोड में बदल जाता है और ट्रांसीवर STANDBY [SWS_FrIf_05006] में सेट हो जाते हैं। डायग्नोस्टिक या सुरक्षा मामलों के लिए, क्लस्टर को FrSM_SetEcuPassive [SWS_FrSM_00174] के माध्यम से केवल-प्राप्ति मोड (ECU Passive) में रखा जा सकता है। एक पूर्ण FrTp स्टॉप FrTp_Shutdown [SWS_FrTp_00148] SWS FlexRayStateManager पृ. 58 के माध्यम से होता है।

FlexRay क्लस्टर स्टार्टअप और वेकअपComMBswMFrSMFrIfFrFrTrcvFrSM_RequestComMode(Network, COMM_FULL_COM)FrIf_SetTransceiverMode(Ctrl, Chnl, NORMAL)FrTrcv_SetTransceiverMode(TrcvIdx, NORMAL)FrIf_SendWUP(CtrlIdx)Fr_SendWUP(CtrlIdx)BswM_FrSM_CurrentState(FRSM_WAKEUP)Use Case: स्टार्टअप और सिंक्रोनाइज़ेशनFrIf_StartCommunication(CtrlIdx)Fr_StartCommunication(CtrlIdx)FrIf_GetPOCStatus(CtrlIdx, POCStatusPtr)Fr_GetPOCStatus(CtrlIdx, POCStatusPtr)POC:normal activeE_OK (POC:normal active)FrIf_SetState(ClstIdx, FRIF_GOTO_ONLINE)BswM_FrSM_CurrentState(FRSM_ONLINE)

अनुक्रम आरेख: क्लस्टर स्टार्टअप और वेकअप के दौरान ComM, BswM, FrSM, FrIf, Fr और FrTrcv का इंटरैक्शन। स्रोत: [SWS_FrSM_00013], [SWS_FrIf_05005], [SWS_Fr_00010]।

त्रुटि प्रबंधन, DET-ट्रेसिंग और डिग्रेडेशन

गलत संचालन और अमान्य API पैरामीटर Development Error Tracer (DET) के माध्यम से रिकॉर्ड किए जाते हैं। यदि अमान्य कंट्रोलर या चैनल इंडेक्स पास किए जाते हैं या मॉड्यूल प्रारंभीकरण से पहले API को कॉल किया जाता है, तो FrIf, FrTp, FrTrcv और FrSM मानकीकृत त्रुटियों जैसे FRIF_E_INV_CTRL_IDX, FRTP_E_INVALID_PDU_SDU_ID, FRTRCV_E_UNINIT या FRSM_E_INV_HANDLE को DET को रिपोर्ट करते हैं [SWS_FrIf_05158] [SWS_FrTp_01143] [SWS_FrTrcv_00462] [SWS_FrSM_00168] SWS FlexRayISOTransportLayer पृ. 77।

गंभीर रनटाइम और हार्डवेयर त्रुटियों की रिपोर्ट Diagnostic Event Manager (DEM) को की जाती है। कंट्रोलर के हार्डवेयर परीक्षण स्थिति DEM_EVENT_STATUS_FAILED [SWS_Fr_00181] [SWS_Fr_00297] के साथ घटना FR_E_CTRL_TESTRESULT के माध्यम से त्रुटियों का संकेत देते हैं। यदि FrSM के भीतर क्लस्टर स्टार्टअप विफल हो जाता है, तो डायग्नोस्टिक घटना FRSM_E_CLUSTER_STARTUP की रिपोर्ट की जाती है SWS FlexRayStateManager पृ. 50।

गिरावट और दोष सहिष्णुता के लिए, क्लस्टर लक्षित पृथक्करण तंत्र प्रदान करता है: सक्रिय स्टार कपलर (Active Star) वाले ट्रांसीवर में, संपूर्ण क्लस्टर में व्यवधान को रोकने के लिए दोषपूर्ण लाइन शाखाओं को FrTrcv_DisableTransceiverBranch या FrIf_DisableTransceiverBranch [SWS_FrTrcv_00442] [SWS_FrIf_05028] के माध्यम से निष्क्रिय किया जा सकता है। चल रहे प्रसारणों को FrTp_CancelTransmit और FrIf_CancelTransmit के माध्यम से चुनिंदा रूप से निरस्त किया जा सकता है, और व्यक्तिगत हार्डवेयर बफ़र्स को FrIf_DisableLPdu [SWS_FrTp_00150] [SWS_FrIf_05710] SWS FlexRayTransceiverDriver पृ. 50 के माध्यम से लॉक किया जा सकता है।

यह गाइड रिलीज़ R20-11 के लिए AUTOSAR विनिर्देशों के आधार पर एक कृत्रिम बुद्धिमत्ता (AI) द्वारा तैयार किया गया था।

Module im Cluster

FlexRay Driver (Fr)

Provides hardware-dependent access to FlexRay communication controllers.

BSW ID 81 42 APIs (32 Funktionen, 10 Typen) #include "Fr.h"

FlexRay AUTOSAR Transport Layer (FrArTp)

AUTOSAR Classic Communication Services-Modul FlexRay AUTOSAR Transport Layer (FrArTp, Spezifikation: AUTOSAR_CP_SWS_FlexRayARTransportLayer.pdf, AUTOSAR_SWS_FlexRayARTransportLayer.pdf).

BSW ID 38 10 APIs (10 Funktionen, 0 Typen) #include "FrArTp.h"

FlexRay Interface (FrIf)

Abstracts FlexRay hardware controllers for upper layers.

BSW ID 61 52 APIs (49 Funktionen, 3 Typen) #include "FrIf.h"

FlexRay Network Management (FrNm)

AUTOSAR Classic Communication Services-Modul FlexRay Network Management (FrNm, Spezifikation: AUTOSAR_CP_SWS_FlexRayNetworkManagement.pdf, AUTOSAR_SWS_FlexRayNetworkManagement.pdf, AUTOSAR_SWS_FlexrayNM.pdf).

BSW ID 32 32 APIs (32 Funktionen, 0 Typen) #include "FrNm.h"

FlexRay State Manager (FrSM)

Controls the operational states and startup/wakeup of FlexRay clusters.

BSW ID 142 8 APIs (6 Funktionen, 2 Typen) #include "FrSM.h"

FlexRay Transport Layer (FrTp)

Provides segmented data transmission over FlexRay (ISO 10681-2).

BSW ID 36 12 APIs (11 Funktionen, 1 Typen) #include "FrTp.h"

FlexRay Transceiver Driver (FrTrcv)

Controls physical bus transceiver states and bus diagnostics on FlexRay lines.

BSW ID 71 15 APIs (11 Funktionen, 4 Typen) #include "FrTrcv.h"