DEENESPTFRRUARHIKOZHNL

Wireless Ethernet Transceiver Driver (WEthTrcv)

ModulWEthTrcv (Wireless Ethernet Transceiver Driver)
BSW-Modul-ID74
Standard-Header#include "WEthTrcv.h"
SWS-SpezifikationAUTOSAR_CP_SWS_WirelessEthernetTransceiverDriver.pdf, AUTOSAR_SWS_WirelessEthernetTransceiverDriver.pdf
Umfang86 Records · 7 Snippets
ClusterEthernet-Stack

Wireless Ethernet Transceiver Driver (WEthTrcv)

AUTOSAR Classic Wireless Comm. HW Abstraction-Modul Wireless Ethernet Transceiver Driver (WEthTrcv, Spezifikation: AUTOSAR_CP_SWS_WirelessEthernetTransceiverDriver.pdf, AUTOSAR_SWS_WirelessEthernetTransceiverDriver.pdf).

Funktionen — Übersicht

Typen — Übersicht

Anforderungen — Übersicht

Funktionen & Typen — Detailansicht

fonction WEthTrcv_Init [SWS_WEthTrcv_00028] 📄 PDF

void WEthTrcv_Init(const WEthTrcv_ConfigType* CfgPtr);

Initializes the Wireless Ethernet Transceiver Driver

fonction WEthTrcv_MainFunction [SWS_WEthTrcv_00106] 📄 PDF

void WEthTrcv_MainFunction(void);

Used for polling state changes. Calls Eth If_ Trcv Mode Indication when the transceiver mode changed.

fonction WEthTrcv_SetRadioParams [SWS_WEthTrcv_10025] 📄 PDF

Std_ReturnType WEthTrcv_SetRadioParams(uint8 TrcvId, const WEthTrcv_SetRadioParamIdType* ParamIds, const uint32* ParamValue, uint8 NumParams);

Set values related to a transceiver's wireless radio. For example, this could be the selection of the radio settings (channel, ...).

fonction WEthTrcv_SetChanRxParams [SWS_WEthTrcv_10033] 📄 PDF

Std_ReturnType WEthTrcv_SetChanRxParams(uint8 TrcvId, uint8 RadioId, const WEthTrcv_SetChanRxParamIdType* ParamIds, const uint32* ParamValues, uint8 NumParams);

Set values related to the receive direction of a transceiver's wireless channel .For example, this could be a channel parameter like the frequency.

fonction WEthTrcv_SetChanTxParams [SWS_WEthTrcv_10040] 📄 PDF

Std_ReturnType WEthTrcv_SetChanTxParams(uint8 TrcvId, uint8 RadioId, const WEthTrcv_SetChanTxParamIdType* TxParamIds, const uint32* ParamValues, uint8 NumParams);

Set values related to the transmit direction of a transceiver's wireless channel. For example, this could be the bitrate of a channel.

fonction WEthTrcv_GetChanRxParams [SWS_WEthTrcv_10048] 📄 PDF

Std_ReturnType WEthTrcv_GetChanRxParams(uint8* TrcvId, uint8 RadioId, const WEthTrcv_GetChanRxParamIdType* ParamIds, uint32* ParamValues, uint8 NumParams);

Read values related to the receive direction of the transceiver. For example, this could be a Channel Busy Ratio (CBR) or the average Channel Idle Time (CIT).

requirement SWS_WEthTrcv_00003 [SWS_WEthTrcv_00003] 📄 PDF

The Wi reless Ethernet Transceiver Driver is using a zero - based index to abstract the access for upper software layers. The parameter WEthTrcvId within configuration corresponds to parameter TrcvId used in the API.

requirement SWS_WEthTrcv_00007 [SWS_WEthTrcv_00007] 📄 PDF

I n case development error detection is enabled for the Wireless Ethernet Transceiver Driver module: The Wireless Ethernet Transceiver Driver module shall check API parameters for validity and repo rt detected errors to the DET.

requirement SWS_WEthTrcv_00017 [SWS_WEthTrcv_00017] 📄 PDF

Type of error Related error code Error value Invalid transceiver index WETHTRCV_ E_ INV_ TRCV_ ID 0x01 WEth Trcv module was not initialized WETHTRCV_ E_ UNINIT 0x02 Invalid pointer in parameter list WETHTRCV_ E_ PARAM_ POINTER 0x03

requirement SWS_WEthTrcv_00027 [SWS_WEthTrcv_00027] 📄 PDF

Module Header File Imported Type Dem Rte_ Dem_ Type.h Dem _ Event Id Type Rte_ Dem_ Type.h Dem _ Event Status Type Eth Eth_ General Types.h Eth _ Mode Type (draft) Eth Trcv Eth_ General Types.h Eth Trcv _ Link State Type Std Std_ Types.h Std _ Return Type Std_ Types.h Std _ Version Info Type

requirement SWS_WEthTrcv_00044 [SWS_WEthTrcv_00044] 📄 PDF

[SWS_WEthTrcv_00044] ⌈If development error detection is enabled: The function shall check that the service WEthTrcv_Init was previously called. If the check fails, the function shall raise the development error WETHTRCV_E_UNINIT otherwise (if DET is disabled) return E_NOT_OK.⌋

requirement SWS_WEthTrcv_00045 [SWS_WEthTrcv_00045] 📄 PDF

[SWS_WEthTrcv_00045] ⌈If development error detection is enabled: The function shall check the parameter TrcvIdx for being valid. If the check fails, the function shall raise the development error WETHTRCV_E_INV_TRCV_IDX otherwise (if DET is dis- abled) return E_NOT_OK.⌋

requirement SWS_WEthTrcv_00046 [SWS_WEthTrcv_00046] 📄 PDF

[SWS_WEthTrcv_00046] ⌈The function shall be pre compile time configurable On/Off by the configuration parameter: WEthTrcvSetTransceiverModeApi.⌋

requirement SWS_WEthTrcv_00047 [SWS_WEthTrcv_00047] 📄 PDF

[SWS_WEthTrcv_00047] ⌈Caveat: The function requires previous transceiver initial- ization (EthTrcv_Init).⌋

requirement SWS_WEthTrcv_00050 [SWS_WEthTrcv_00050] 📄 PDF

[SWS_WEthTrcv_00050] ⌈If development error detection is enabled: The function shall check that the service EthTrcv_Init was previously called. If the check fails, the function shall raise the development error WETHTRCV_E_UNINIT otherwise (if DET is disabled) return E_NOT_OK.⌋

requirement SWS_WEthTrcv_00051 [SWS_WEthTrcv_00051] 📄 PDF

[SWS_WEthTrcv_00051] ⌈If development error detection is enabled: The function shall check the parameter TrcvIdx for being valid. If the check fails, the function shall raise the development error WETHTRCV_E_INV_TRCV_IDX otherwise (if DET is disabled) return E_NOT_OK.⌋

requirement SWS_WEthTrcv_00052 [SWS_WEthTrcv_00052] 📄 PDF

[SWS_WEthTrcv_00052] ⌈If development error detection is enabled: The function shall check the parameter TrcvModePtr for being valid. If the check fails, the function shall raise the development error WETHTRCV_E_PARAM_POINTER otherwise (if DET is disabled) return E_NOT_OK.⌋

requirement SWS_WEthTrcv_00053 [SWS_WEthTrcv_00053] 📄 PDF

[SWS_WEthTrcv_00053] ⌈The function shall be pre compile time configurable On/Off by the configuration parameter: WEthTrcvGetTransceiverModeApi.⌋ Driver

requirement SWS_WEthTrcv_00054 [SWS_WEthTrcv_00054] 📄 PDF

[SWS_WEthTrcv_00054] ⌈Caveat: The function requires previous transceiver initial- ization (WEthTrcv_Init).⌋

requirement SWS_WEthTrcv_00063 [SWS_WEthTrcv_00063] 📄 PDF

If development error detection is enabled: The function shall check that t he service WEthTrcv_Init was previously called. If the check fails, the function shall raise the development error WETHTRCV_E_UNINIT otherwise (if DET is disabled) return E_NOT_OK.

requirement SWS_WEthTrcv_00064 [SWS_WEthTrcv_00064] 📄 PDF

[SWS_WEthTrcv_00064] ⌈If development error detection is enabled: The function shall check the parameter TrcvIdx for being valid. If the check fails, the function shall raise the development error WETHTRCV_E_INV_TRCV_IDX otherwise (if DET is disabled) return E_NOT_OK.⌋

requirement SWS_WEthTrcv_00065 [SWS_WEthTrcv_00065] 📄 PDF

[SWS_WEthTrcv_00065] ⌈If development error detection is enabled: The function shall check the parameter LinkStatePtr for being valid. If the check fails, the function shall raise the development error WETHTRCV_E_PARAM_POINTER otherwise (if DET is disabled) return E_NOT_OK.⌋

requirement SWS_WEthTrcv_00066 [SWS_WEthTrcv_00066] 📄 PDF

[SWS_WEthTrcv_00066] ⌈The function shall be pre compile time configurable On/Off by the configuration parameter: WEthTrcvGetLinkStateApi.⌋ Driver

requirement SWS_WEthTrcv_00067 [SWS_WEthTrcv_00067] 📄 PDF

[SWS_WEthTrcv_00067] ⌈Caveat: The function requires previous transceiver initial- ization (WEthTrcv_Init).⌋

requirement SWS_WEthTrcv_00085 [SWS_WEthTrcv_00085] 📄 PDF

Dem _ Set - Event Status Dem.h Called by SW - Cs or BSW modules to report monitor status information to the Dem. BSW modules calling Dem_ Set Event Status can safely ignore the return value. This API will be available only if ({Dem/ Dem Config Set/ Dem Event Parameter/ Dem Event Reporting Type} == STANDARD_ REPORTING) Eth If _ Trcv - Mode - Indication Eth If.h Called asynchronously when a mode change has been read out. If the function is triggered by pre vious call of Eth Trcv_ Set Transceiver Mode it can directly be called within the trigger function. Sch M _ - Enter _ W - Eth Trcv Sch M_<Mip>.h Invokes the Sch M_ Enter function to enter a module local exclusive area. Sch M _ Exit _ - W Eth Trcv Sch M_<Mip>.h Invokes the Sch M_ Exit function to exit an exclusive area. W Eth _ - Read Trcv - Regs WEth.h Reads a transceiver register W Eth _ Write - Trcv Regs WEth.h Configures a transceivers registers or triggers a function offered by the receiver

requirement SWS_WEthTrcv_00093 [SWS_WEthTrcv_00093] 📄 PDF

[SWS_WEthTrcv_00093] ⌈If development error detection is enabled: The function shall check the parameter VersionInfoPtr for being valid. If the check fails, the func- tion shall raise the development error WETHTRCV_E_PARAM_POINTER.⌋

requirement SWS_WEthTrcv_00104 [SWS_WEthTrcv_00104] 📄 PDF

[SWS_WEthTrcv_00104] ⌈The function shall check the access to the Wireless Eth- ernet transceiver. If the check fails, the function shall raise the production error WETHTRCV_E_ACCESS and return E_NOT_OK, otherwise pass the production error WETHTRCV_E_ACCESS and return E_OK.⌋ Driver

requirement SWS_WEthTrcv_00105 [SWS_WEthTrcv_00105] 📄 PDF

Error Name: WETHTRCV_E_ACCESS Short Description: Wireless Ethernet Transceiver Access Failure. Long Description: Monitors the access to the Wireless Ethernet Transceiver if a transceiver hardware is seperate f rom the baseband modem hardware . Detection Criter ia: Fail When access to the Wireless Ethernet Transceiver fails the module shall report the extended production error with event status DEM_EVENT_STATUS_PREFAILED to DEM. Pass When access to the Wireless Ethernet Transceiver succeds the module shall re port the extended production error with event status DEM_EVENT_STATUS_PREPASSED to DEM. Secondary Parameters: None. Time Required: None. Monitor Frequency None.

requirement SWS_WEthTrcv_00107 [SWS_WEthTrcv_00107] 📄 PDF

[SWS_WEthTrcv_00107] ⌈If the transceiver is already in the requested mode E_OK shall be returned and no development error shall be raised.⌋

requirement SWS_WEthTrcv_10023 [SWS_WEthTrcv_10023] 📄 PDF

The function s hall put the index transceiver in the specified mode and indicate the new mode by the API EthIf_TrcvModeIndication latest during the next WEthTrcv_MainFunction.

requirement SWS_WEthTrcv_10026 [SWS_WEthTrcv_10026] 📄 PDF

The function WEthTrcv_SetRadioParams shall set properties of type WEthTrcv_SetRadioParamIdType to the access layer of a specific wireless radio indexed by RadioId.

requirement SWS_WEthTrcv_10027 [SWS_WEthTrcv_10027] 📄 PDF

If development error detection is enabled : Th e function shall check that the service WEthTrcv_Init was previously called . If the check fails, the function shall raise the development error WETHTRCV_E_UNINIT .

requirement SWS_WEthTrcv_10028 [SWS_WEthTrcv_10028] 📄 PDF

If development error detection is enabled : Th e function shall check the parameter Trcv Id for being valid . If the check fails, the function shall raise the development error W ETHTRCV _E_INV_TRCV_ ID otherwise (if DET is disabled) return E_NOT_OK .

requirement SWS_WEthTrcv_10029 [SWS_WEthTrcv_10029] 📄 PDF

If development error detection is enabled : Th e function shall check the parameter Radio Id for being valid . If the check fails, the function shall raise the development error W ETHTRCV_E_INV_PARAM otherwise (if DET is disabled) return E_NOT_OK .

requirement SWS_WEthTrcv_10030 [SWS_WEthTrcv_10030] 📄 PDF

If development error detection is enabled : Th e function shall check the parameter ParamIds for being valid. If the check fails, the func tion shall raise the development error W ETHTRCV_E_PARAM_POINTER .

requirement SWS_WEthTrcv_10031 [SWS_WEthTrcv_10031] 📄 PDF

If development error detection is enabled : Th e function shall check the parameter ParamValues for being valid. If the check fails, the function shall raise the dev elopment error W ETHTRCV_E_PARAM_POINTER .

requirement SWS_WEthTrcv_10034 [SWS_WEthTrcv_10034] 📄 PDF

[SWS_WEthTrcv_10034] Upstream requirements: SRS_BSW_00487 ⌈If development error detection is enabled: The function shall check that the service WEthTrcv_Init was previously called. If the check fails, the function shall raise the development error WETHTRCV_E_UNINIT.⌋

requirement SWS_WEthTrcv_10035 [SWS_WEthTrcv_10035] 📄 PDF

[SWS_WEthTrcv_10035] ⌈If development error detection is enabled: The function shall check the parameter TrcvId for being valid. If the check fails, the function shall Driver raise the development error WETHTRCV_E_INV_TRCV_ID otherwise (if DET is dis- abled) return E_NOT_OK.⌋

requirement SWS_WEthTrcv_10036 [SWS_WEthTrcv_10036] 📄 PDF

If development error detection is enabled : Th e function shall check the parameter Radio Id for being valid . If the check fails, the function shall raise the development error W ETHTRCV_E_INV_PARAM otherwise (if DET is disabl ed) return E_NOT_OK .

requirement SWS_WEthTrcv_10037 [SWS_WEthTrcv_10037] 📄 PDF

If development error detection is enabled : Th e function shall check the parameter ParamIds for being valid. If the check fails, the function shall raise the development error W ETHTRCV_E_PARAM_POINTER .

requirement SWS_WEthTrcv_10038 [SWS_WEthTrcv_10038] 📄 PDF

If development error detection is enabled: the function shall check the parameter ParamValues for being valid . If the check fails, the function shall raise the development error W ETHTRCV_E_PARAM_POINTER .

requirement SWS_WEthTrcv_10042 [SWS_WEthTrcv_10042] 📄 PDF

If development error detection is enabled : Th e fun ction shall check that the service WEthTrcv_Init was previously called . If the check fails, the function shall raise the development error WETHTRCV_E_UNINIT .

requirement SWS_WEthTrcv_10043 [SWS_WEthTrcv_10043] 📄 PDF

If development error detection is enabled : Th e function s hall check the parameter Trcv Id for being valid . If the check fails, the function shall raise the development error W ETHTRCV_E_INV_TRCV_ ID otherwise (if DET is disabled) return E_NOT_OK .

requirement SWS_WEthTrcv_10044 [SWS_WEthTrcv_10044] 📄 PDF

If development error detection is enabled : Th e function shall check the parameter Radio Id for being valid . If the check fails, the function shall raise the development error W ETHTRCV_E_INV_PARAM otherwise (if DET is disabled) return E_NOT_OK .

requirement SWS_WEthTrcv_10045 [SWS_WEthTrcv_10045] 📄 PDF

If development error detec tion is enabled : Th e function shall check the parameter Tx ParamIds for being valid. If the check fails, the function shall raise the development error W ETHTRCV_E_PARAM_POINTER .

requirement SWS_WEthTrcv_10046 [SWS_WEthTrcv_10046] 📄 PDF

If development error detection is enabled : Th e func tion shall check the parameter ParamValues for being valid. If the check fails, the function shall raise the development error W ETHTRCV_E_PARAM_POINTER .

requirement SWS_WEthTrcv_10050 [SWS_WEthTrcv_10050] 📄 PDF

If development error detection is enabled : Th e function shall check that the service WEthTrcv_Init was previously called . If the check fails, the function shall raise the development error WETHTRCV_E_UNINIT .

requirement SWS_WEthTrcv_10051 [SWS_WEthTrcv_10051] 📄 PDF

If development error detection is enabled : Th e function shall check the parameter Trcv Id for bei ng valid. If the check f ails, the function shall raise the development error W ETHTRCV_E_INV_TRCV_ ID otherwise (if DET is disabled) return E_NOT_OK .

requirement SWS_WEthTrcv_10052 [SWS_WEthTrcv_10052] 📄 PDF

If development error detection is enabled : Th e function shall check the parameter Radio Id for being vali d . If the check fails, the function shall raise the development error W ETHTRCV_E_INV_PARAM otherwise (if DET is disabled) return E_NOT_OK .

requirement SWS_WEthTrcv_10053 [SWS_WEthTrcv_10053] 📄 PDF

If development error detection is enabled : Th e function shall check the parameter ParamId s for being valid. If the check fails, the function shall raise the development error W ETHTRCV_E_PARAM_POINTER .

requirement SWS_WEthTrcv_10054 [SWS_WEthTrcv_10054] 📄 PDF

If development error detection is enabled : Th e function shall check the parameter ParamValues for being valid . If th e check fails, the function shall raise the development error W ETHTRCV_E_PARAM_POINTER .

requirement SWS_WEthTrcv_10059 [SWS_WEthTrcv_10059] 📄 PDF

Functi ons using the WEthTrcv_SetRadioParamIdType shall use the foll owing type mapping for the corresponding values: ParamId ParamValue Type WETHTRCV_SETRADIOPID_SEL_TRCV_CHCFG uint8 WETHTRCV_SETRADIOPID_SET_CHCFGID uint8 WETHTRCV_SETRADIOPID_TOLLINGZONE_INFO uint8

requirement SWS_WEthTrcv_10060 [SWS_WEthTrcv_10060] 📄 PDF

Functions using the type WEthTrcv_SetChanRxParamIdType shall use a generic list of uint 32 values for the list of corresponding values.

requirement SWS_WEthTrcv_10061 [SWS_WEthTrcv_10061] 📄 PDF

Functions using the WEthTrcv_SetChanRxParamIdType shall use the fo llowing type mapping for the corresponding values: P aramId ParamValue Type WETHTRCV_SETCHRXPID_BITRATE uint8 WETHTRCV_SETCHRXPID_BANDWIDTH WEthTrcv_Bandwidth Type WETHTRCV_SETCHRXPID_FREQ uint16 WETHTRCV_SETCHRXPID_CSPWRTRESH WEthTrcv_ RssiType WETHTRC V_SETCHRXPID_RADIO_MODE WEthTrcv_RadioModeType WETHT RCV_SETCHRXPID_ANTENNA uint8

requirement SWS_WEthTrcv_10062 [SWS_WEthTrcv_10062] 📄 PDF

Functions using the type WEthTrcv_SetChanTxParamIdType shall use a generic list of uint32 values for the list of corresponding values.

requirement SWS_WEthTrcv_10063 [SWS_WEthTrcv_10063] 📄 PDF

Functions using the WEthTrcv_SetChanTxParamIdType shall use the fo llowing type mapping for the corresponding values: ParamId ParamValue Type WETHTRCV_SETCHTXPID_BITRATE uint8 WETHTRCV_SETCHTXPID_BANDWIDTH WEthTrcv_Bandwidth Type WETHTRCV_SETCHTXPID_TXPOWER WEthTrcv_TxPwrLvlType WETHTRCV_SETCHTXPID_DCC_CBR uint8 WETH TRCV_SETCHTXPID_TXQSEL uint8 WETHTRCV_SETCHTXPID_TXQCFG_AIFSN uint8 WETHTRCV_SETCHTXPID_TXQCFG_CWMIN uint8 WETHTRCV_SETCHTXPID_TXQCFG_CWMAX uint16 WETHTRCV_SETCHTXPID_TXQCFG_TXOP uint8 WETHTRCV_SETCHTXPID_RADIO_MODE WEthTrcv_RadioModeType WETHTRCV_SE TCHTXPID_ANTENNA uint8 WETHTRCV_SETCHTXPID_PACKET_INTERVAL uint16 WETHTRCV_SETCHTXPID_DCC_STATE uint8

requirement SWS_WEthTrcv_10064 [SWS_WEthTrcv_10064] 📄 PDF

Functions using the type WEthTrcv_GetChanRxParamIdType shall use a generic list of uint32 values for the list of correspondi ng values.

requirement SWS_WEthTrcv_10065 [SWS_WEthTrcv_10065] 📄 PDF

Functions using the WEthTrcv_GetChanRxParamIdType shall use the following type mapping for the corresponding values: ParamId ParamValue Type WETHTRCV_GETCHRXPID_CBR uint8 WETHTRCV_GETCHRXPID_CIT uint16

requirement SWS_WEthTrcv_10066 [SWS_WEthTrcv_10066] 📄 PDF

For unique reference to transmission and reception paramete rs, unique enumeration IDs shall be used within this module.

requirement SWS_WEthTrcv_10067 [SWS_WEthTrcv_10067] 📄 PDF

The function shall use the type mapping f rom SWS_WEt hTrcv_10059 for the ParamIds and ParamValues parameters .

requirement SWS_WEthTrcv_10068 [SWS_WEthTrcv_10068] 📄 PDF

The function shall use the type mapping from SWS_WEthTrcv_10061 for the ParamIds and ParamValues parameters .

requirement SWS_WEthTrcv_10069 [SWS_WEthTrcv_10069] 📄 PDF

The function shall use the type mapping from SWS_WEthTrcv_10063 for the Tx ParamIds and ParamValues parameters .

requirement SWS_WEthTrcv_10070 [SWS_WEthTrcv_10070] 📄 PDF

The function shall use the type mapping from SWS_WEthTrcv_10065 for the ParamIds and ParamValues parameters .

requirement SWS_WEthTrcv_10071 [SWS_WEthTrcv_10071] 📄 PDF

The following requirements are only valid for WEth Transceivers used within the V2X Communication Stack [14] .

requirement SWS_WEthTrcv_10073 [SWS_WEthTrcv_10073] 📄 PDF

[SWS_WEthTrcv_10073] ⌈The function shall read the current transceiver link state.⌋

requirement SWS_WEthTrcv_20244 [SWS_WEthTrcv_20244] 📄 PDF

The WEthTrcv module sh all abide by the following maximum message rates:  For the relaxed state: the sum of all messages sent on DP1, DP2 and DP3 while in relaxed state shall not surpass R max_relaxed = 16.7 messages per second. Message bursts are allowed for DP0 with R Burst = 20 messages per second, with a maximum duration of T Burst = 1 seconds, and may only take place every T BurstPeriod = 10 seconds. Thus, adding DP0 messages, the maximum message rate amounts to R max_relaxed = 36.7 messages per second.

requirement SWS_WEthTrcv_CONSTR_00095 [SWS_WEthTrcv_CONSTR_00095] 📄 PDF

The module will operate as an independent in- stance in each of the partitions, means the called API will only target the partition it is called in.

requirement SWS_WEthTrcv_CONSTR_00096 [SWS_WEthTrcv_CONSTR_00096] 📄 PDF

WEthTrcvConfig and WEthCtrlConfig of one communication channel shall all reference the same ECUC partition.

requirement SWS_WEthTrcv_CONSTR_00097 [SWS_WEthTrcv_CONSTR_00097] 📄 PDF

The ECUC partitions referenced by WEthTrcv ConfigEcucPartitionRef shall be a subset of the ECUC partitions referenced by WEth TrcvEcucPartitionRef.

requirement SWS_WEthTrcv_CONSTR_00098 [SWS_WEthTrcv_CONSTR_00098] 📄 PDF

If WEthEcucPartitionRef references one or more ECUC partiti ons, WEthTrcvConfigEcucPartitionRef shall have a multiplicity of one and reference one of these ECUC partitions as well.

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

Record
AUTOSAR/AP/record/CP_MOD_WEthTrcv
Status
unspecified
Version
AUTOSAR/AP/record/CP_MOD_WEthTrcv@rel:R20-11#90d97d11
Content hash
90d97d11
Source
https://www.autosar.org/fileadmin/standards/R20-11/CP/AUTOSAR_SWS_WirelessEthernetTransceiverDriver.pdf#nameddest=SWS_WEthTrcv_00028

Carte des thèmes

Initialisation et état

2

Vue détaillée

Sélectionnez une entrée dans le plan.

Initialisation et état

Returns the version information of this module

void WEthTrcv_GetVersionInfo(Std_VersionInfoType* VersionInfoPtr);
WEthTrcv_Init fonction

Initializes the Wireless Ethernet Transceiver Driver

void WEthTrcv_Init(const WEthTrcv_ConfigType* CfgPtr);

Services

Read values related to the receive direction of the transceiver. For example, this could be a Channel Busy Ratio (CBR) or the average Channel Idle Time (CIT).

Std_ReturnType WEthTrcv_GetChanRxParams(uint8* TrcvId, uint8 RadioId, const WEthTrcv_GetChanRxParamIdType* ParamIds, uint32* ParamValues, uint8 NumParams);

Obtains the link state of the indexed transceiver

Std_ReturnType WEthTrcv_GetLinkState(uint8 TrcvId, EthTrcv_LinkStateType* LinkStatePtr);

Ob tains the state of the indexed transceiver

Std_ReturnType WEthTrcv_GetTransceiverMode(uint8 TrcvId, Eth_ModeType* TrcvModePtr);

Set values related to the receive direction of a transceiver's wireless channel .For example, this could be a channel parameter like the frequency.

Std_ReturnType WEthTrcv_SetChanRxParams(uint8 TrcvId, uint8 RadioId, const WEthTrcv_SetChanRxParamIdType* ParamIds, const uint32* ParamValues, uint8 NumParams);

Set values related to the transmit direction of a transceiver's wireless channel. For example, this could be the bitrate of a channel.

Std_ReturnType WEthTrcv_SetChanTxParams(uint8 TrcvId, uint8 RadioId, const WEthTrcv_SetChanTxParamIdType* TxParamIds, const uint32* ParamValues, uint8 NumParams);

Set values related to a transceiver's wireless radio. For example, this could be the selection of the radio settings (channel, ...).

Std_ReturnType WEthTrcv_SetRadioParams(uint8 TrcvId, const WEthTrcv_SetRadioParamIdType* ParamIds, const uint32* ParamValue, uint8 NumParams);

Enables / disables the indexed transceiver

Std_ReturnType WEthTrcv_SetTransceiverMode(uint8 TrcvId, Eth_ModeType TrcvMode);

Cyclique

Used for polling state changes. Calls Eth If_ Trcv Mode Indication when the transceiver mode changed.

void WEthTrcv_MainFunction(void);

Types

Bandwidth of a radio channel

Implementation specific structure of the post build configuration

Wireless channel properties of the receive side

Radio operation mode with multiple radio channel configurations

Power of frame, in 0.5 d Bm units, raw value 0 equals - 100 d Bm

Wireless channel settings for the receive side

Wireless radio settings for the transceiver

Power of frame, in 0.5 d Bm units, raw value 0 equals - 100 d Bm

Exigences

SWS_WEthTrcv_00003 requirement

The Wi reless Ethernet Transceiver Driver is using a zero - based index to abstract the access for upper software layers. The parameter WEthTrcvId within configuration corresponds to parameter TrcvId used in the API.

SWS_WEthTrcv_00007 requirement

I n case development error detection is enabled for the Wireless Ethernet Transceiver Driver module: The Wireless Ethernet Transceiver Driver module shall check API parameters for validity and repo rt detected errors to the DET.

SWS_WEthTrcv_00017 requirement

Type of error Related error code Error value Invalid transceiver index WETHTRCV_ E_ INV_ TRCV_ ID 0x01 WEth Trcv module was not initialized WETHTRCV_ E_ UNINIT 0x02 Invalid pointer in parameter list WETHTRCV_ E_ PARAM_ POINTER 0x03

SWS_WEthTrcv_00027 requirement

Module Header File Imported Type Dem Rte_ Dem_ Type.h Dem _ Event Id Type Rte_ Dem_ Type.h Dem _ Event Status Type Eth Eth_ General Types.h Eth _ Mode Type (draft) Eth Trcv Eth_ General Types.h Eth Trcv _ Link State Type Std Std_ Types.h Std _ Return Type Std_ Types.h Std _ Version Info Type

SWS_WEthTrcv_00044 requirement

[SWS_WEthTrcv_00044] ⌈If development error detection is enabled: The function shall check that the service WEthTrcv_Init was previously called. If the check fails, the function shall raise the development error WETHTRCV_E_UNINIT otherwise (if DET is disabled) return E_NOT_OK.⌋

SWS_WEthTrcv_00045 requirement

[SWS_WEthTrcv_00045] ⌈If development error detection is enabled: The function shall check the parameter TrcvIdx for being valid. If the check fails, the function shall raise the development error WETHTRCV_E_INV_TRCV_IDX otherwise (if DET is dis- abled) return E_NOT_OK.⌋

SWS_WEthTrcv_00046 requirement

[SWS_WEthTrcv_00046] ⌈The function shall be pre compile time configurable On/Off by the configuration parameter: WEthTrcvSetTransceiverModeApi.⌋

SWS_WEthTrcv_00047 requirement

[SWS_WEthTrcv_00047] ⌈Caveat: The function requires previous transceiver initial- ization (EthTrcv_Init).⌋

SWS_WEthTrcv_00050 requirement

[SWS_WEthTrcv_00050] ⌈If development error detection is enabled: The function shall check that the service EthTrcv_Init was previously called. If the check fails, the function shall raise the development error WETHTRCV_E_UNINIT otherwise (if DET is disabled) return E_NOT_OK.⌋

SWS_WEthTrcv_00051 requirement

[SWS_WEthTrcv_00051] ⌈If development error detection is enabled: The function shall check the parameter TrcvIdx for being valid. If the check fails, the function shall raise the development error WETHTRCV_E_INV_TRCV_IDX otherwise (if DET is disabled) return E_NOT_OK.⌋

SWS_WEthTrcv_00052 requirement

[SWS_WEthTrcv_00052] ⌈If development error detection is enabled: The function shall check the parameter TrcvModePtr for being valid. If the check fails, the function shall raise the development error WETHTRCV_E_PARAM_POINTER otherwise (if DET is disabled) return E_NOT_OK.⌋

SWS_WEthTrcv_00053 requirement

[SWS_WEthTrcv_00053] ⌈The function shall be pre compile time configurable On/Off by the configuration parameter: WEthTrcvGetTransceiverModeApi.⌋ Driver

SWS_WEthTrcv_00054 requirement

[SWS_WEthTrcv_00054] ⌈Caveat: The function requires previous transceiver initial- ization (WEthTrcv_Init).⌋

SWS_WEthTrcv_00063 requirement

If development error detection is enabled: The function shall check that t he service WEthTrcv_Init was previously called. If the check fails, the function shall raise the development error WETHTRCV_E_UNINIT otherwise (if DET is disabled) return E_NOT_OK.

SWS_WEthTrcv_00064 requirement

[SWS_WEthTrcv_00064] ⌈If development error detection is enabled: The function shall check the parameter TrcvIdx for being valid. If the check fails, the function shall raise the development error WETHTRCV_E_INV_TRCV_IDX otherwise (if DET is disabled) return E_NOT_OK.⌋

SWS_WEthTrcv_00065 requirement

[SWS_WEthTrcv_00065] ⌈If development error detection is enabled: The function shall check the parameter LinkStatePtr for being valid. If the check fails, the function shall raise the development error WETHTRCV_E_PARAM_POINTER otherwise (if DET is disabled) return E_NOT_OK.⌋

SWS_WEthTrcv_00066 requirement

[SWS_WEthTrcv_00066] ⌈The function shall be pre compile time configurable On/Off by the configuration parameter: WEthTrcvGetLinkStateApi.⌋ Driver

SWS_WEthTrcv_00067 requirement

[SWS_WEthTrcv_00067] ⌈Caveat: The function requires previous transceiver initial- ization (WEthTrcv_Init).⌋

SWS_WEthTrcv_00085 requirement

Dem _ Set - Event Status Dem.h Called by SW - Cs or BSW modules to report monitor status information to the Dem. BSW modules calling Dem_ Set Event Status can safely ignore the return value. This API will be available only if ({Dem/ Dem Config Set/ Dem Event Parameter/ Dem Event Reporting Type} == STANDARD_ REPORTING) Eth If _ Trcv - Mode - Indication Eth If.h Called asynchronously when a mode change has been read out. If the function is triggered by pre vious call of Eth Trcv_ Set Transceiver Mode it can directly be called within the trigger function. Sch M _ - Enter _ W - Eth Trcv Sch M_<Mip>.h Invokes the Sch M_ Enter function to enter a module local exclusive area. Sch M _ Exit _ - W Eth Trcv Sch M_<Mip>.h Invokes the Sch M_ Exit function to exit an exclusive area. W Eth _ - Read Trcv - Regs WEth.h Reads a transceiver register W Eth _ Write - Trcv Regs WEth.h Configures a transceivers registers or triggers a function offered by the receiver

SWS_WEthTrcv_00093 requirement

[SWS_WEthTrcv_00093] ⌈If development error detection is enabled: The function shall check the parameter VersionInfoPtr for being valid. If the check fails, the func- tion shall raise the development error WETHTRCV_E_PARAM_POINTER.⌋

SWS_WEthTrcv_00104 requirement

[SWS_WEthTrcv_00104] ⌈The function shall check the access to the Wireless Eth- ernet transceiver. If the check fails, the function shall raise the production error WETHTRCV_E_ACCESS and return E_NOT_OK, otherwise pass the production error WETHTRCV_E_ACCESS and return E_OK.⌋ Driver

SWS_WEthTrcv_00105 requirement

Error Name: WETHTRCV_E_ACCESS Short Description: Wireless Ethernet Transceiver Access Failure. Long Description: Monitors the access to the Wireless Ethernet Transceiver if a transceiver hardware is seperate f rom the baseband modem hardware . Detection Criter ia: Fail When access to the Wireless Ethernet Transceiver fails the module shall report the extended production error with event status DEM_EVENT_STATUS_PREFAILED to DEM. Pass When access to the Wireless Ethernet Transceiver succeds the module shall re port the extended production error with event status DEM_EVENT_STATUS_PREPASSED to DEM. Secondary Parameters: None. Time Required: None. Monitor Frequency None.

SWS_WEthTrcv_00107 requirement

[SWS_WEthTrcv_00107] ⌈If the transceiver is already in the requested mode E_OK shall be returned and no development error shall be raised.⌋

SWS_WEthTrcv_00120 requirement

Det _ Report Error Det.h Service to report development errors.

SWS_WEthTrcv_10023 requirement

The function s hall put the index transceiver in the specified mode and indicate the new mode by the API EthIf_TrcvModeIndication latest during the next WEthTrcv_MainFunction.

SWS_WEthTrcv_10024 requirement

The function shall read the current transceiver mode.

SWS_WEthTrcv_10026 requirement

The function WEthTrcv_SetRadioParams shall set properties of type WEthTrcv_SetRadioParamIdType to the access layer of a specific wireless radio indexed by RadioId.

SWS_WEthTrcv_10027 requirement

If development error detection is enabled : Th e function shall check that the service WEthTrcv_Init was previously called . If the check fails, the function shall raise the development error WETHTRCV_E_UNINIT .

SWS_WEthTrcv_10028 requirement

If development error detection is enabled : Th e function shall check the parameter Trcv Id for being valid . If the check fails, the function shall raise the development error W ETHTRCV _E_INV_TRCV_ ID otherwise (if DET is disabled) return E_NOT_OK .

SWS_WEthTrcv_10029 requirement

If development error detection is enabled : Th e function shall check the parameter Radio Id for being valid . If the check fails, the function shall raise the development error W ETHTRCV_E_INV_PARAM otherwise (if DET is disabled) return E_NOT_OK .

SWS_WEthTrcv_10030 requirement

If development error detection is enabled : Th e function shall check the parameter ParamIds for being valid. If the check fails, the func tion shall raise the development error W ETHTRCV_E_PARAM_POINTER .

SWS_WEthTrcv_10031 requirement

If development error detection is enabled : Th e function shall check the parameter ParamValues for being valid. If the check fails, the function shall raise the dev elopment error W ETHTRCV_E_PARAM_POINTER .

SWS_WEthTrcv_10034 requirement

[SWS_WEthTrcv_10034] Upstream requirements: SRS_BSW_00487 ⌈If development error detection is enabled: The function shall check that the service WEthTrcv_Init was previously called. If the check fails, the function shall raise the development error WETHTRCV_E_UNINIT.⌋

SWS_WEthTrcv_10035 requirement

[SWS_WEthTrcv_10035] ⌈If development error detection is enabled: The function shall check the parameter TrcvId for being valid. If the check fails, the function shall Driver raise the development error WETHTRCV_E_INV_TRCV_ID otherwise (if DET is dis- abled) return E_NOT_OK.⌋

SWS_WEthTrcv_10036 requirement

If development error detection is enabled : Th e function shall check the parameter Radio Id for being valid . If the check fails, the function shall raise the development error W ETHTRCV_E_INV_PARAM otherwise (if DET is disabl ed) return E_NOT_OK .

SWS_WEthTrcv_10037 requirement

If development error detection is enabled : Th e function shall check the parameter ParamIds for being valid. If the check fails, the function shall raise the development error W ETHTRCV_E_PARAM_POINTER .

SWS_WEthTrcv_10038 requirement

If development error detection is enabled: the function shall check the parameter ParamValues for being valid . If the check fails, the function shall raise the development error W ETHTRCV_E_PARAM_POINTER .

SWS_WEthTrcv_10042 requirement

If development error detection is enabled : Th e fun ction shall check that the service WEthTrcv_Init was previously called . If the check fails, the function shall raise the development error WETHTRCV_E_UNINIT .

SWS_WEthTrcv_10043 requirement

If development error detection is enabled : Th e function s hall check the parameter Trcv Id for being valid . If the check fails, the function shall raise the development error W ETHTRCV_E_INV_TRCV_ ID otherwise (if DET is disabled) return E_NOT_OK .

SWS_WEthTrcv_10044 requirement

If development error detection is enabled : Th e function shall check the parameter Radio Id for being valid . If the check fails, the function shall raise the development error W ETHTRCV_E_INV_PARAM otherwise (if DET is disabled) return E_NOT_OK .

SWS_WEthTrcv_10045 requirement

If development error detec tion is enabled : Th e function shall check the parameter Tx ParamIds for being valid. If the check fails, the function shall raise the development error W ETHTRCV_E_PARAM_POINTER .

SWS_WEthTrcv_10046 requirement

If development error detection is enabled : Th e func tion shall check the parameter ParamValues for being valid. If the check fails, the function shall raise the development error W ETHTRCV_E_PARAM_POINTER .

SWS_WEthTrcv_10050 requirement

If development error detection is enabled : Th e function shall check that the service WEthTrcv_Init was previously called . If the check fails, the function shall raise the development error WETHTRCV_E_UNINIT .

SWS_WEthTrcv_10051 requirement

If development error detection is enabled : Th e function shall check the parameter Trcv Id for bei ng valid. If the check f ails, the function shall raise the development error W ETHTRCV_E_INV_TRCV_ ID otherwise (if DET is disabled) return E_NOT_OK .

SWS_WEthTrcv_10052 requirement

If development error detection is enabled : Th e function shall check the parameter Radio Id for being vali d . If the check fails, the function shall raise the development error W ETHTRCV_E_INV_PARAM otherwise (if DET is disabled) return E_NOT_OK .

SWS_WEthTrcv_10053 requirement

If development error detection is enabled : Th e function shall check the parameter ParamId s for being valid. If the check fails, the function shall raise the development error W ETHTRCV_E_PARAM_POINTER .

SWS_WEthTrcv_10054 requirement

If development error detection is enabled : Th e function shall check the parameter ParamValues for being valid . If th e check fails, the function shall raise the development error W ETHTRCV_E_PARAM_POINTER .

SWS_WEthTrcv_10059 requirement

Functi ons using the WEthTrcv_SetRadioParamIdType shall use the foll owing type mapping for the corresponding values: ParamId ParamValue Type WETHTRCV_SETRADIOPID_SEL_TRCV_CHCFG uint8 WETHTRCV_SETRADIOPID_SET_CHCFGID uint8 WETHTRCV_SETRADIOPID_TOLLINGZONE_INFO uint8

SWS_WEthTrcv_10060 requirement

Functions using the type WEthTrcv_SetChanRxParamIdType shall use a generic list of uint 32 values for the list of corresponding values.

SWS_WEthTrcv_10061 requirement

Functions using the WEthTrcv_SetChanRxParamIdType shall use the fo llowing type mapping for the corresponding values: P aramId ParamValue Type WETHTRCV_SETCHRXPID_BITRATE uint8 WETHTRCV_SETCHRXPID_BANDWIDTH WEthTrcv_Bandwidth Type WETHTRCV_SETCHRXPID_FREQ uint16 WETHTRCV_SETCHRXPID_CSPWRTRESH WEthTrcv_ RssiType WETHTRC V_SETCHRXPID_RADIO_MODE WEthTrcv_RadioModeType WETHT RCV_SETCHRXPID_ANTENNA uint8

SWS_WEthTrcv_10062 requirement

Functions using the type WEthTrcv_SetChanTxParamIdType shall use a generic list of uint32 values for the list of corresponding values.

SWS_WEthTrcv_10063 requirement

Functions using the WEthTrcv_SetChanTxParamIdType shall use the fo llowing type mapping for the corresponding values: ParamId ParamValue Type WETHTRCV_SETCHTXPID_BITRATE uint8 WETHTRCV_SETCHTXPID_BANDWIDTH WEthTrcv_Bandwidth Type WETHTRCV_SETCHTXPID_TXPOWER WEthTrcv_TxPwrLvlType WETHTRCV_SETCHTXPID_DCC_CBR uint8 WETH TRCV_SETCHTXPID_TXQSEL uint8 WETHTRCV_SETCHTXPID_TXQCFG_AIFSN uint8 WETHTRCV_SETCHTXPID_TXQCFG_CWMIN uint8 WETHTRCV_SETCHTXPID_TXQCFG_CWMAX uint16 WETHTRCV_SETCHTXPID_TXQCFG_TXOP uint8 WETHTRCV_SETCHTXPID_RADIO_MODE WEthTrcv_RadioModeType WETHTRCV_SE TCHTXPID_ANTENNA uint8 WETHTRCV_SETCHTXPID_PACKET_INTERVAL uint16 WETHTRCV_SETCHTXPID_DCC_STATE uint8

SWS_WEthTrcv_10064 requirement

Functions using the type WEthTrcv_GetChanRxParamIdType shall use a generic list of uint32 values for the list of correspondi ng values.

SWS_WEthTrcv_10065 requirement

Functions using the WEthTrcv_GetChanRxParamIdType shall use the following type mapping for the corresponding values: ParamId ParamValue Type WETHTRCV_GETCHRXPID_CBR uint8 WETHTRCV_GETCHRXPID_CIT uint16

SWS_WEthTrcv_10066 requirement

For unique reference to transmission and reception paramete rs, unique enumeration IDs shall be used within this module.

SWS_WEthTrcv_10067 requirement

The function shall use the type mapping f rom SWS_WEt hTrcv_10059 for the ParamIds and ParamValues parameters .

SWS_WEthTrcv_10068 requirement

The function shall use the type mapping from SWS_WEthTrcv_10061 for the ParamIds and ParamValues parameters .

SWS_WEthTrcv_10069 requirement

The function shall use the type mapping from SWS_WEthTrcv_10063 for the Tx ParamIds and ParamValues parameters .

SWS_WEthTrcv_10070 requirement

The function shall use the type mapping from SWS_WEthTrcv_10065 for the ParamIds and ParamValues parameters .

SWS_WEthTrcv_10071 requirement

The following requirements are only valid for WEth Transceivers used within the V2X Communication Stack [14] .

SWS_WEthTrcv_10073 requirement

[SWS_WEthTrcv_10073] ⌈The function shall read the current transceiver link state.⌋

SWS_WEthTrcv_20226 requirement

RF output power of the WEthTrcv module shall be adjustable.

SWS_WEthTrcv_20244 requirement

The WEthTrcv module sh all abide by the following maximum message rates:  For the relaxed state: the sum of all messages sent on DP1, DP2 and DP3 while in relaxed state shall not surpass R max_relaxed = 16.7 messages per second. Message bursts are allowed for DP0 with R Burst = 20 messages per second, with a maximum duration of T Burst = 1 seconds, and may only take place every T BurstPeriod = 10 seconds. Thus, adding DP0 messages, the maximum message rate amounts to R max_relaxed = 36.7 messages per second.

The module will operate as an independent in- stance in each of the partitions, means the called API will only target the partition it is called in.

WEthTrcvConfig and WEthCtrlConfig of one communication channel shall all reference the same ECUC partition.

The ECUC partitions referenced by WEthTrcv ConfigEcucPartitionRef shall be a subset of the ECUC partitions referenced by WEth TrcvEcucPartitionRef.

If WEthEcucPartitionRef references one or more ECUC partiti ons, WEthTrcvConfigEcucPartitionRef shall have a multiplicity of one and reference one of these ECUC partitions as well.