CLASSIC
Modul: eth
Rolle: constitutive
Konfidenz: 95%
SNIP_CLASSIC_ETH_SECTION_8_4_7_Eth_WriteMii
Wortlaut
8.4.7 Eth_WriteMii
[SWS_Eth_00058] Definition of API function Eth_WriteMii ⌈
Service Name
Eth_WriteMii
Syntax
Std_ReturnType Eth_WriteMii (
uint8 CtrlIdx,
uint8 TrcvIdx,
uint8 RegIdx,
uint16 RegVal
)
Service ID [hex]
0xa0
Sync/Async
Synchronous
Reentrancy
Reentrant for different CtrlIdxs, non reentrant for the same CtrlIdx.
CtrlIdx
Index of the controller.
TrcvIdx
Index of the transceiver on the SMI.
RegIdx
Index of the transceiver register on the SMI.
Parameters (in)
RegVal
Value to be written into the indexed register.
Parameters (inout)
None
Parameters (out)
None
Return value
Std_ReturnType
E_OK: Service accepted
E_NOT_OK: Service denied
Description
Writes a transceiver register.
Available via
Eth.h
⌋
[SWS_Eth_00286]
Status: DRAFT
⌈The function shall check the communication with the Ethernet Controller. If the check
fails, the function shall report the runtime error code ETH_E_COMMUNICATION and
return E_NOT_OK.⌋
[SWS_Eth_00278]
Status:
DRAFT
Upstream requirements: SRS_Eth_00148
⌈The function shall write the specified transceiver register through the MII according to
Clause 22 [17] for the indexed controller.⌋
[SWS_Eth_00273]
Upstream requirements: SRS_Eth_00148
⌈If Clause 45 registers need to be writen via this access mechanism, the API shall use
the register 13 and 14 to access them as explicitly specified by the annex 22D [17].⌋
[SWS_Eth_00287]
Status:
DRAFT
Upstream requirements: SRS_Eth_00147, SRS_Eth_00146
⌈If EthCtrlEnableSpiInterface is TRUE, the function shall process the write request as
described in the TC6 [11].⌋
[SWS_Eth_00390] Sync write
Status:
DRAFT
Upstream requirements: SRS_Eth_00148, SRS_Eth_00147, SRS_Eth_00146
⌈The function shall write the MDIO synchronously and return E_OK when the access
finished.⌋
[SWS_Eth_00062] ⌈The function shall be pre compile time configurable On/Off by the
configuration parameter: EthCtrlEnableMii [ECUC_Eth_00012].⌋
[SWS_Eth_00063] ⌈Eth_Init() shall be called before Eth_WriteMii().⌋
Versionen & Provenienz · Zugeordnete Anforderungen
Diese Angaben zeigt der Versions-Explorer.
Begründung & Zuweisungs-Evidenz
Cited verbatim in the snippet (deterministic citation).
Dokumenten-Herkunft & Rückverfolgbarkeit
| Spezifikations-Dokument | SWS_EthernetDriver.pdf |
|---|---|
| Dokumentseite | Seite 95 |
| Ziel-Modul | eth (classic) |
| Ziel-Anforderung | SWS_Std_00005 |
| Semantische Rolle | constitutive |
| Automatisierungs-Konfidenz | 0.95 |