102 #include "EthTrcv_Types.h"
122 #define ETHTRCV_SW_MAJOR_VERSION (11U)
124 #define ETHTRCV_SW_MINOR_VERSION (0U)
126 #define ETHTRCV_SW_PATCH_VERSION (0U)
139 #define ETHTRCV_AR_RELEASE_MAJOR_VERSION (4U)
141 #define ETHTRCV_AR_RELEASE_MINOR_VERSION (3U)
143 #define ETHTRCV_AR_RELEASE_REVISION_VERSION (1U)
151 #define ETHTRCV_VENDOR_ID (44U)
153 #define ETHTRCV_MODULE_ID (73U)
155 #define ETHTRCV_INSTANCE_ID (0U)
171 #define ETHTRCV_INIT_ID ((uint8) 0x01U)
174 #define ETHTRCV_CONTROLLER_INIT_ID ((uint8) 0x02U)
177 #define ETHTRCV_SETTRCVMODE_ID ((uint8) 0x03U)
180 #define ETHTRCV_GETTRCVMODE_ID ((uint8) 0x04U)
183 #define ETHTRCV_SRTAUTONEGOTIA_ID ((uint8) 0x05U)
186 #define ETHTRCV_GETLNKSTATE_ID ((uint8) 0x06U)
189 #define ETHTRCV_GETBAUD_ID ((uint8) 0x07U)
192 #define ETHTRCV_GETDPLXMODE_ID ((uint8) 0x08U)
195 #define ETHTRCV_READMIIIND_ID ((uint8) 0x09U)
198 #define ETHTRCV_WRITEMIIIND_ID ((uint8) 0x0AU)
201 #define ETHTRCV_VERSION_ID ((uint8) 0x0BU)
204 #define ETHTRCV_MAINFCT_WRITE_ID ((uint8) 0x0CU)
207 #define ETHTRCV_GETTRCVWKUPMODE_ID ((uint8) 0x0DU)
210 #define ETHTRCV_SETTRCVWKUPMODE_ID ((uint8) 0x0EU)
213 #define ETHTRCV_CHKWKUP_ID ((uint8) 0x0FU)
216 #define ETHTRCV_SETPHYTESTMODE_ID ((uint8) 0x10U)
219 #define ETHTRCV_SETPHYLOOPBACKMODE_ID ((uint8) 0x11U)
222 #define ETHTRCV_GETPHYSIGNALQUALITY_ID ((uint8) 0x12U)
225 #define ETHTRCV_SETPHYTXMODE_ID ((uint8) 0x13U)
228 #define ETHTRCV_GETCABLEDIAGNOSTICSRESULT_ID ((uint8) 0x014U)
231 #define ETHTRCV_GETPHYIDENTIFIER_ID ((uint8) 0x015U)
246 #ifndef ETHTRCV_E_INV_TRCV_IDX
248 #define ETHTRCV_E_INV_TRCV_IDX ((uint8) 0x01U)
251 #ifndef ETHTRCV_E_UNINIT
253 #define ETHTRCV_E_UNINIT ((uint8) 0x02U)
256 #ifndef ETHTRCV_E_PARAM_POINTER
258 #define ETHTRCV_E_PARAM_POINTER ((uint8) 0x03U)
261 #ifndef ETHTRCV_E_INIT_FAILED
263 #define ETHTRCV_E_INIT_FAILED ((uint8) 0x04U)
266 #ifndef ETHTRCV_E_NOT_SUPPORTED
268 #define ETHTRCV_E_NOT_SUPPORTED ((uint8) 0x05U)
329 FUNC(Std_ReturnType, ETHTRCV_CODE)
330 EthTrcv_TransceiverInit(uint8
TrcvIdx);
333 #if (STD_ON == ETHTRCV_SETTRANSCEIVERMODE_API)
360 FUNC(Std_ReturnType, ETHTRCV_CODE)
361 EthTrcv_SetTransceiverMode(uint8
TrcvIdx,
365 #if (STD_ON == ETHTRCV_GETTRANSCEIVERMODE_API)
389 FUNC(Std_ReturnType, ETHTRCV_CODE)
390 EthTrcv_GetTransceiverMode(uint8
TrcvIdx,
394 #if (ETHTRCV_WAKEUPSUPPORT_API != ETHTRCV_WAKEUP_NOT_SUPPORTED)
426 FUNC(Std_ReturnType, ETHTRCV_CODE)
427 EthTrcv_SetTransceiverWakeupMode(uint8
TrcvIdx,
428 EthTrcv_WakeupModeType TrcvWakeupMode);
431 #if (ETHTRCV_WAKEUPSUPPORT_API != ETHTRCV_WAKEUP_NOT_SUPPORTED)
458 FUNC(Std_ReturnType, ETHTRCV_CODE)
459 EthTrcv_GetTransceiverWakeupMode(uint8
TrcvIdx,
460 EthTrcv_WakeupModeType *TrcvWakeupModePtr);
463 #if (ETHTRCV_WAKEUPSUPPORT_API != ETHTRCV_WAKEUP_NOT_SUPPORTED)
489 FUNC(Std_ReturnType, ETHTRCV_CODE)
490 EthTrcv_CheckWakeup(uint8
TrcvIdx);
496 #if (STD_ON == ETHTRCV_STARTAUTONEGOTIATION_API)
521 FUNC(Std_ReturnType, ETHTRCV_CODE)
522 EthTrcv_StartAutoNegotiation(uint8
TrcvIdx);
525 #if (STD_ON == ETHTRCV_GETLINKSTATE_API)
551 FUNC(Std_ReturnType, ETHTRCV_CODE)
552 EthTrcv_GetLinkState(uint8
TrcvIdx,
561 #if (STD_ON == ETHTRCV_GETBAUDRATE_API)
588 FUNC(Std_ReturnType, ETHTRCV_CODE)
589 EthTrcv_GetBaudRate(uint8
TrcvIdx,
593 #if (STD_ON == ETHTRCV_GETDUPLEXMODE_API)
619 FUNC(Std_ReturnType, ETHTRCV_CODE)
620 EthTrcv_GetDuplexMode(uint8
TrcvIdx,
624 #if (STD_ON == ETHTRCV_SETPHYTESTMODE_API)
647 FUNC(Std_ReturnType, ETHTRCV_CODE)
648 EthTrcv_SetPhyTestMode(uint8
TrcvIdx,
652 #if (STD_ON == ETHTRCV_SETPHYLOOPBACKMODE_API)
676 FUNC(Std_ReturnType, ETHTRCV_CODE)
677 EthTrcv_SetPhyLoopbackMode(uint8
TrcvIdx,
678 EthTrcv_PhyLoopbackModeType
Mode);
681 #if (STD_ON == ETHTRCV_GETPHYSIGNALQUALITY_API)
706 FUNC(Std_ReturnType, ETHTRCV_CODE)
707 EthTrcv_GetPhySignalQuality(uint8
TrcvIdx,
711 #if (STD_ON == ETHTRCV_SETPHYTXMODE_API)
735 FUNC(Std_ReturnType, ETHTRCV_CODE)
736 EthTrcv_SetPhyTxMode(uint8
TrcvIdx,
737 EthTrcv_PhyTxModeType
Mode);
740 #if (STD_ON == ETHTRCV_GETCABLEDIAGNOSTICSRESULT_API)
765 FUNC(Std_ReturnType, ETHTRCV_CODE)
766 EthTrcv_GetCableDiagnosticsResult(uint8
TrcvIdx,
770 #if (STD_ON == ETHTRCV_GETPHYIDENTIFIER_API)
803 FUNC(Std_ReturnType, ETHTRCV_CODE)
804 EthTrcv_GetPhyIdentifier(uint8
TrcvIdx,
810 #if (STD_ON == ETHTRCV_VERSION_INFO_API)
832 FUNC(
void, ETHTRCV_CODE)
872 FUNC(
void, ETHTRCV_CODE)
873 EthTrcv_ReadMiiIndication(uint8 CtrlIdx,
907 FUNC(
void, ETHTRCV_CODE)
908 EthTrcv_WriteMiiIndication(uint8 CtrlIdx,
931 FUNC(
void, ETHTRCV_CODE)
932 EthTrcv_MainFunction(
void);