FlexRay Transceiver Driver (FrTrcv)
Controls physical bus transceiver states and bus diagnostics on FlexRay lines.
Funktionen — Übersicht
void FrTrcv_Init (const FrTrcv_ConfigType* ConfigPtr);This service initializes the Fr Trcv.Std_ReturnType FrTrcv_SetTransceiverMode (uint8 FrTrcv_TrcvIdx, FrTrcv_TrcvModeType FrTrcv_TrcvMode);This service sets the transceiver mode.Std_ReturnType FrTrcv_GetTransceiverMode (uint8 FrTrcv_TrcvIdx, FrTrcv_TrcvModeType* FrTrcv_TrcvModePtr);This function returns the actual state of the transceiver.Std_ReturnType FrTrcv_GetTransceiverWUReason (uint8 FrTrcv_TrcvIdx, FrTrcv_TrcvWUReasonType* FrTrcv_TrcvWUReasonPtr);This function returns the wakeup reason.void FrTrcv_GetVersionInfo (Std_VersionInfoType* versioninfo);This service returns the version information of this module.Std_ReturnType FrTrcv_ClearTransceiverWakeup (uint8 FrTrcv_TrcvIdx);This function clears a pending wake up event.void FrTrcv_CheckWakeupByTransceiver (uint8 FrTrcv_TrcvIdx);-Std_ReturnType FrTrcv_GetTransceiverError (uint8 FrTrcv_TrcvIdx, uint8 FrTrcv_BranchIdx, uint32* FrTrcv_BusErrorState);All mandatory errors defined by the Flex Ray EPL [5] which are supported by the Flex Ray transceiver hardware can be acce ssed...Std_ReturnType FrTrcv_DisableTransceiverBranch (uint8 FrTrcv_TrcvIdx, uint8 FrTrcv_BranchIdx);This function disable s the specified branch on the addressed (active star) transceiver.Std_ReturnType FrTrcv_EnableTransceiverBranch (uint8 FrTrcv_TrcvIdx, uint8 FrTrcv_BranchIdx);This function enables the specified branch on the addressed (active star) transceiver.void FrTrcv_MainFunction (void);-
Typen — Übersicht
struct FrTrcv_ConfigTypeConfiguration data structure of the Fr Trcv module.enum FrTrcv_TrcvModeTypeTransceiver modes in state ACTIVE.enum FrTrcv_TrcvWUReasonTypeThis type to be used to specify the wake up reason detected by the FR transceiver in detail.ofaCfunctionwhichsubstitutesMultiplicityTypeType ofaCfunctionwhichsubstitutesMultiplicityType.
Funktionen & Typen — Detailansicht
function FrTrcv_Init [SWS_FrTrcv_00322] 📄 PDF
void FrTrcv_Init (const FrTrcv_ConfigType* ConfigPtr);
This service initializes the Fr Trcv.
The synchronous function FrTrcv_Init initializes the FlexRay transceiver driver of the AUTOSAR Classic Platform ([SWS_FrTrcv_00322]). It has the service ID 0x00 and is provided via the header file FrTrcv.h ([SWS_FrTrcv_00322]). The module FrTrcv provides this service for configuring and initializing the transceiver hardware ([SWS_FrTrcv_00322]).
As its only parameter, the interface expects the pointer ConfigPtr of type const FrTrcv_ConfigType*, which points to the selected configuration dataset of the transceiver ([SWS_FrTrcv_00322]):
- Input parameter:
ConfigPtr(pointer to the selected configuration set) ([SWS_FrTrcv_00322]). - Input/output parameters: none present ([SWS_FrTrcv_00322]).
- Output parameters: none present ([SWS_FrTrcv_00322]).
- Return value:
void; no status or error value is returned ([SWS_FrTrcv_00322]).
Since FrTrcv_Init is specified as non-reentrant (Non Reentrant), the function must under no circumstances be called concurrently or multiple times simultaneously ([SWS_FrTrcv_00322]). Execution is synchronous until initialization is completed ([SWS_FrTrcv_00322]).
The present specification makes no explicit statements regarding call context and sequence requirements; presumably, initialization is performed during system startup by the basic software state management prior to all regular communication activities. Question Q-5fa4966e37b10516 (open) Specific error codes, reactions to null pointers, and interactions with DET or DEM are not contained in the provided specification scope and are therefore not elaborated further ([SWS_FrTrcv_00322]).
This usage note was generated automatically based on the specification AUTOSAR Classic R20-11.
Implementer's Guide to follow (complexity I1)
function FrTrcv_SetTransceiverMode [SWS_FrTrcv_00323] 📄 PDF
Std_ReturnType FrTrcv_SetTransceiverMode (uint8 FrTrcv_TrcvIdx, FrTrcv_TrcvModeType FrTrcv_TrcvMode);
This service sets the transceiver mode.
The synchronous function FrTrcv_SetTransceiverMode is used to switch the operating mode of a FlexRay transceiver [SWS_FrTrcv_00323]. The declaration of this service is provided via the header file FrTrcv.h [SWS_FrTrcv_00323].
Parameters and Control
The function expects two input parameters [SWS_FrTrcv_00323]:
FrTrcv_TrcvIdx: This zero-based index identifies the specific transceiver within the transceiver driver for which the state transition is to be performed [SWS_FrTrcv_00323].FrTrcv_TrcvMode: Selects the target state to which the transceiver shall transition [SWS_FrTrcv_00323]. It should be noted that transitions to optional states may fail [SWS_FrTrcv_00323].
Return Values and Fault Behavior
The result of the mode switch is communicated synchronously via the return value of type Std_ReturnType [SWS_FrTrcv_00323]:
E_OK: Indicates that the state of the transceiver was successfully changed to the requested mode [SWS_FrTrcv_00323].E_NOT_OK: Signals a failure of the state transition; the previous state of the transceiver remains unchanged [SWS_FrTrcv_00323].
Concurrency
The service is specified as non-reentrant (Non Reentrant) and has synchronous execution semantics [SWS_FrTrcv_00323]. Due to the Non Reentrant property, the calling context is presumably responsible for protecting against parallel or overlapping calls to the driver. Question Q-b83c7a2879a572b7 (open)
This usage note was generated automatically and is based exclusively on the specification data from AUTOSAR Release R20-11.
Implementer's Guide to follow (complexity I1)
function FrTrcv_GetTransceiverMode [SWS_FrTrcv_00324] 📄 PDF
Std_ReturnType FrTrcv_GetTransceiverMode (uint8 FrTrcv_TrcvIdx, FrTrcv_TrcvModeType* FrTrcv_TrcvModePtr);
This function returns the actual state of the transceiver.
function FrTrcv_GetTransceiverWUReason [SWS_FrTrcv_00325] 📄 PDF
Std_ReturnType FrTrcv_GetTransceiverWUReason (uint8 FrTrcv_TrcvIdx, FrTrcv_TrcvWUReasonType* FrTrcv_TrcvWUReasonPtr);
This function returns the wakeup reason.
function FrTrcv_GetVersionInfo [SWS_FrTrcv_00326] 📄 PDF
void FrTrcv_GetVersionInfo (Std_VersionInfoType* versioninfo);
This service returns the version information of this module.
function FrTrcv_ClearTransceiverWakeup [SWS_FrTrcv_00329] 📄 PDF
Std_ReturnType FrTrcv_ClearTransceiverWakeup (uint8 FrTrcv_TrcvIdx);
This function clears a pending wake up event.
Usage and Semantics
The synchronous function FrTrcv_ClearTransceiverWakeup is used to reset a pending wakeup event on a FlexRay transceiver [SWS_FrTrcv_00329]. It is declared in the header file FrTrcv.h and has the service ID 0x0c [SWS_FrTrcv_00329].
The zero-based input parameter FrTrcv_TrcvIdx specifies the transceiver in question within the driver [SWS_FrTrcv_00329].
Error Handling and Return Values
The return value of type Std_ReturnType provides information about the outcome of the operation [SWS_FrTrcv_00329]:
E_OK: The wakeup event of the transceiver wakeup source was successfully cleared [SWS_FrTrcv_00329].E_NOT_OK: The parameterFrTrcv_TrcvIdxis outside the valid range; in this case, the wakeup status remains unchanged [SWS_FrTrcv_00329].
Concurrency and Limitations
The function is specified as non-reentrant [SWS_FrTrcv_00329]. Callers must therefore ensure that calls for the same instance do not occur preemptively or in parallel. Since the function is defined as synchronous, clearing the wakeup event is presumably completed immediately during the call at the driver level. Question Q-e548008f8bae0ff0 (open)
This usage note was generated automatically based on the specification SWS_FrTrcv_00329.
function FrTrcv_CheckWakeupByTransceiver [SWS_FrTrcv_00331] 📄 PDF
void FrTrcv_CheckWakeupByTransceiver (uint8 FrTrcv_TrcvIdx);
-
Usage and Call Context
The function FrTrcv_CheckWakeupByTransceiver belongs to the FlexRay transceiver driver (module FrTrcv) and is declared via the header file FrTrcv.h [SWS_FrTrcv_00331]. The function has the service ID 0x0e and is executed synchronously [SWS_FrTrcv_00331]. It takes as its only input parameter FrTrcv_TrcvIdx of type uint8, which as a zero-based index determines the respective transceiver in the context of the transceiver driver for which the operation is to be executed [SWS_FrTrcv_00331]. There are neither input/output parameters nor pure output parameters, and the function returns no value (void) [SWS_FrTrcv_00331].
No detailed functional description is stored in the specification data. Interpretation: Based on the naming, the function presumably serves to check whether a wakeup event is present at or was detected by the addressed transceiver hardware [SWS_FrTrcv_00331]. Question Q-9b8b5d8fb8e4543f (open)
Concurrency and Error Handling
Regarding concurrency behavior, FrTrcv_CheckWakeupByTransceiver is classified as reentrant [SWS_FrTrcv_00331]. This permits parallel calls for different transceiver instances in the system. Specific error handling mechanisms, such as checks for invalid indices or notifications to the Default Error Tracer (DET) or Diagnostic Event Manager (DEM), are not defined in this specification element [SWS_FrTrcv_00331].
This usage note was generated by an AI and is based exclusively on the specification details of the AUTOSAR R20-11 package.
function FrTrcv_GetTransceiverError [SWS_FrTrcv_00419] 📄 PDF
Std_ReturnType FrTrcv_GetTransceiverError (uint8 FrTrcv_TrcvIdx, uint8 FrTrcv_BranchIdx, uint32* FrTrcv_BusErrorState);
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.
function FrTrcv_DisableTransceiverBranch [SWS_FrTrcv_00442] 📄 PDF
Std_ReturnType FrTrcv_DisableTransceiverBranch (uint8 FrTrcv_TrcvIdx, uint8 FrTrcv_BranchIdx);
This function disable s the specified branch on the addressed (active star) transceiver.
The synchronous function FrTrcv_DisableTransceiverBranch serves to disable an individual, specified branch on an addressed active star transceiver ([SWS_FrTrcv_00442]). It is provided via the header file FrTrcv.h and has service ID 0x0f ([SWS_FrTrcv_00442]).
Parameters and call context
The call takes place synchronously and is specified as non-reentrant (Non Reentrant) ([SWS_FrTrcv_00442]). The function expects two zero-based input parameters:
FrTrcv_TrcvIdx: Zero-based index identifying the transceiver in the context of the transceiver driver to which the operation shall be applied ([SWS_FrTrcv_00442]).FrTrcv_BranchIdx: Zero-based index determining the branch of the addressed active star transceiver to be disabled ([SWS_FrTrcv_00442]).
Return Values and Error Handling
The result of the operation is signaled via the return type Std_ReturnType ([SWS_FrTrcv_00442]):
E_OK: The specified transceiver branch was successfully disabled ([SWS_FrTrcv_00442]).E_NOT_OK: ParameterFrTrcv_TrcvIdxorFrTrcv_BranchIdxis outside the valid range ([SWS_FrTrcv_00442]). In this error case, the state of the transceiver branch remains unchanged ([SWS_FrTrcv_00442]).
Restrictions and Concurrency
Since FrTrcv_DisableTransceiverBranch is non-reentrant, calls must not be executed concurrently without protection ([SWS_FrTrcv_00442]). Callers must also ensure that both indices lie within the configured boundaries in order to avoid a rejection with an unchanged branch state ([SWS_FrTrcv_00442]).
This usage note is based on the specification SWS_FrTrcv_00442 from Release R20-11.
function FrTrcv_EnableTransceiverBranch [SWS_FrTrcv_00443] 📄 PDF
Std_ReturnType FrTrcv_EnableTransceiverBranch (uint8 FrTrcv_TrcvIdx, uint8 FrTrcv_BranchIdx);
This function enables the specified branch on the addressed (active star) transceiver.
The synchronous function FrTrcv_EnableTransceiverBranch serves to activate a specific branch on an addressed transceiver, typically in an active star topology (Active Star) [SWS_FrTrcv_00443].
Parameters and call context
FrTrcv_TrcvIdx: Zero-based index of the transceiver in the context of the driver [SWS_FrTrcv_00443].FrTrcv_BranchIdx: Zero-based index of the specific transceiver branch to be activated [SWS_FrTrcv_00443].
Return Values and Error Handling
The function returns a status of type Std_ReturnType [SWS_FrTrcv_00443]:
E_OK: The specified transceiver branch was successfully activated [SWS_FrTrcv_00443].E_NOT_OK: One of the parameters (FrTrcv_TrcvIdxorFrTrcv_BranchIdx) is outside the valid range; in this case, the state of the branch remains unchanged [SWS_FrTrcv_00443].
Concurrency and Limitations
The call is executed synchronously and specified as non-reentrant (Non Reentrant) [SWS_FrTrcv_00443]. Callers must therefore ensure that the function is not called concurrently for the same or parallel contexts.
This usage note was generated automatically based on the specification.
function FrTrcv_MainFunction [SWS_FrTrcv_00330] 📄 PDF
void FrTrcv_MainFunction (void);
-
The function FrTrcv_MainFunction constitutes the periodic main function of the driver for the FlexRay transceiver (module FrTrcv) and is stored with service ID 0x0d [SWS_FrTrcv_00330]. The C interface is defined with signature void FrTrcv_MainFunction (void) as a parameterless function, which is why neither input parameters are passed upon the call nor does a status value exist as return type [SWS_FrTrcv_00330].
Header SchM_FrTrcv.h is specified as include file for the function [SWS_FrTrcv_00330]. The provision via the interface of the Schedule Manager substantiates the interpretation that the call during system operation typically occurs cyclically through the BSW Scheduler in the context of a configured operating system task.
In the absence of parameters and return values, upcoming control and monitoring procedures of the transceiver are expected to be executed autonomously within the module. Question Q-2710fa5096bf4d90 (open) The specification contains no stipulations at this point regarding aspects such as reentrancy, concurrency, DET error handling, or interactions with other driver interfaces [SWS_FrTrcv_00330].
This usage note was generated by an AI and is based exclusively on the specification contents of Release R20-11.
type FrTrcv_ConfigType [SWS_FrTrcv_00487] 📄 PDF
Configuration data structure of the Fr Trcv module.
type FrTrcv_TrcvModeType [SWS_FrTrcv_00481] 📄 PDF
Transceiver modes in state ACTIVE. AUTOSAR CP R20 - of Document ID : AUTOSAR_SWS_FlexRayTransceiverDriver
The enumeration type FrTrcv_TrcvModeType specifies the permitted operating modes of a FlexRay transceiver in the overarching operating state ACTIVE according to [SWS_FrTrcv_00481]. The typed definition is an integral part of the FlexRay transceiver driver FrTrcv and is provided platform-wide via the header file Fr_GeneralTypes.h for higher-level software modules [SWS_FrTrcv_00481].
The enumeration comprises four defined states for transceiver operation [SWS_FrTrcv_00481]:
FRTRCV_TRCVMODE_NORMAL: Indicates that the transceiver is in the regular operating state NORMAL [SWS_FrTrcv_00481].FRTRCV_TRCVMODE_STANDBY: Indicates that the transceiver is in the power-saving standby state STANDBY [SWS_FrTrcv_00481].FRTRCV_TRCVMODE_SLEEP: Indicates that the transceiver is in the idle state SLEEP [SWS_FrTrcv_00481].FRTRCV_TRCVMODE_RECEIVEONLY: Indicates that the transceiver is in the RECEIVEONLY state, permitting reception operations only [SWS_FrTrcv_00481].
Regarding usage and interaction, the type acts as a central interface variable for controlling and acquiring the state of the FlexRay transceiver hardware (Interpretation: The enumeration values presumably serve as parameters for function calls to switch the operating mode as well as for feedback in status queries, since the payload contains no function signatures). Question Q-205f2b0575c32460 (open) Specific error codes, error handling via DET or DEM, and restrictions on reentrancy are not defined in the specifications for this elementary enumeration type [SWS_FrTrcv_00481].
This usage note was generated automatically and is based on the AUTOSAR CP R20-11 specification.
Implementer's Guide to follow (complexity I1)
type FrTrcv_TrcvWUReasonType [SWS_FrTrcv_00074] 📄 PDF
This type to be used to specify the wake up reason detected by the FR transceiver in detail.
type ofaCfunctionwhichsubstitutesMultiplicityType [SWS_FrTrcv_00497] 📄 PDF
Type ofaCfunctionwhichsubstitutesMultiplicityType.
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/CP_MOD_FrTrcv- Status
- unspecified
- Version
AUTOSAR/AP/record/CP_MOD_FrTrcv@rel:R20-11#4be977ac- Content hash
4be977ac- Source
- https://www.autosar.org/fileadmin/standards/R20-11/CP/AUTOSAR_SWS_FlexRayTransceiverDriver.pdf#nameddest=SWS_FrTrcv_00322
gemini-3.8-flash-low· 2026-10-13 · German original