MCUSW
EthTrcv.h File Reference

Introduction

This file contains interface header for Ethernet Transceiver MCAL driver.

Go to the source code of this file.

Macros

EthTrcv Driver Module SW Version Info

Defines for ETHTRCV Driver version used for compatibility checks

#define ETHTRCV_SW_MAJOR_VERSION   (11U)
 Driver Implementation Major Version. More...
 
#define ETHTRCV_SW_MINOR_VERSION   (0U)
 Driver Implementation Minor Version. More...
 
#define ETHTRCV_SW_PATCH_VERSION   (0U)
 Driver Implementation Patch Version. More...
 
EthTrcv Driver Module AUTOSAR Version Info

Defines for ETHTRCV Driver AUTOSAR version used for compatibility checks

#define ETHTRCV_AR_RELEASE_MAJOR_VERSION   (4U)
 AUTOSAR Major Version implemented. More...
 
#define ETHTRCV_AR_RELEASE_MINOR_VERSION   (3U)
 AUTOSAR Minor Version implemented. More...
 
#define ETHTRCV_AR_RELEASE_REVISION_VERSION   (1U)
 AUTOSAR patch Version implemented. More...
 
EthTrcv Driver ID Info
#define ETHTRCV_VENDOR_ID   (44U)
 Texas Instruments Vendor ID. More...
 
#define ETHTRCV_MODULE_ID   (73U)
 EthTrcv Driver ID. More...
 
#define ETHTRCV_INSTANCE_ID   (0U)
 EthTrcv Instace ID. More...
 
EthTrcv Driver Service Id

The Service Id is one of the argument to Det_ReportError function and is used to identify the source of the error

#define ETHTRCV_INIT_ID   ((uint8) 0x01U)
 EthTrcv_Init() API Service ID. More...
 
#define ETHTRCV_CONTROLLER_INIT_ID   ((uint8) 0x02U)
 EthTrcv_Init() API Service ID. More...
 
#define ETHTRCV_SETTRCVMODE_ID   ((uint8) 0x03U)
 EthTrcv_SetTransceiverMode() API Service ID. More...
 
#define ETHTRCV_GETTRCVMODE_ID   ((uint8) 0x04U)
 EthTrcv_GetTransceiverMode() API Service ID. More...
 
#define ETHTRCV_SRTAUTONEGOTIA_ID   ((uint8) 0x05U)
 EthTrcv_StartAutoNegotiation() API Service ID. More...
 
#define ETHTRCV_GETLNKSTATE_ID   ((uint8) 0x06U)
 EthTrcv_GetLinkState() API Service ID. More...
 
#define ETHTRCV_GETBAUD_ID   ((uint8) 0x07U)
 EthTrcv_GetBaudRate() API Service ID. More...
 
#define ETHTRCV_GETDPLXMODE_ID   ((uint8) 0x08U)
 EthTrcv_GetDuplexMode() API Service ID. More...
 
#define ETHTRCV_READMIIIND_ID   ((uint8) 0x09U)
 EthTrcv_ReadMiiIndication callback() API Service ID. More...
 
#define ETHTRCV_WRITEMIIIND_ID   ((uint8) 0x0AU)
 EthTrcv_WriteMiiIndication callback() API Service ID. More...
 
#define ETHTRCV_VERSION_ID   ((uint8) 0x0BU)
 EthTrcv_GetVersionInfo() API Service ID. More...
 
#define ETHTRCV_MAINFCT_WRITE_ID   ((uint8) 0x0CU)
 EthTrcv_MainFunction() API Service ID. More...
 
#define ETHTRCV_GETTRCVWKUPMODE_ID   ((uint8) 0x0DU)
 EthTrcv_GetTransceiverWakeupMode() API Service ID. More...
 
#define ETHTRCV_SETTRCVWKUPMODE_ID   ((uint8) 0x0EU)
 EthTrcv_SetTransceiverWakeupMode() API Service ID. More...
 
#define ETHTRCV_CHKWKUP_ID   ((uint8) 0x0FU)
 EthTrcv_CheckWakeup() API Service ID. More...
 
#define ETHTRCV_SETPHYTESTMODE_ID   ((uint8) 0x10U)
 EthTrcv_SetPhyTestMode() API Service ID. More...
 
#define ETHTRCV_SETPHYLOOPBACKMODE_ID   ((uint8) 0x11U)
 EthTrcv_SetPhyLoopbackMode() API Service ID. More...
 
#define ETHTRCV_GETPHYSIGNALQUALITY_ID   ((uint8) 0x12U)
 EthTrcv_GetPhySignalQuality() API Service ID. More...
 
#define ETHTRCV_SETPHYTXMODE_ID   ((uint8) 0x13U)
 EthTrcv_SetPhyTxMode() API Service ID. More...
 
#define ETHTRCV_GETCABLEDIAGNOSTICSRESULT_ID   ((uint8) 0x014U)
 EthTrcv_GetCableDiagnosticsResult() API Service ID. More...
 
#define ETHTRCV_GETPHYIDENTIFIER_ID   ((uint8) 0x015U)
 EthTrcv_GetPhyIdentifier() API Service ID. More...
 
EthTrcv Error Codes

Error codes returned by EthTrcv functions

#define ETHTRCV_E_INV_TRCV_IDX   ((uint8) 0x01U)
 Invalid transceiver index. More...
 
#define ETHTRCV_E_UNINIT   ((uint8) 0x02U)
 EthTrcv module was not initialized. More...
 
#define ETHTRCV_E_PARAM_POINTER   ((uint8) 0x03U)
 
#define ETHTRCV_E_INIT_FAILED   ((uint8) 0x04U)
 
#define ETHTRCV_E_NOT_SUPPORTED   ((uint8) 0x05U)
 

Functions

 FUNC (void, ETHTRCV_CODE) EthTrcv_Init(P2CONST(EthTrcv_ConfigType
 This function initializes the Ethernet Transceiver controller. All the required initialization for the transceiver driver is performed in this function. More...
 
 FUNC (Std_ReturnType, ETHTRCV_CODE) EthTrcv_TransceiverInit(uint8 TrcvIdx)
 This function initializes the Ethernet Transceiver controller. All the required initialization for the transceiver driver is performed in this function. More...
 

Variables

 AUTOMATIC
 
ETHTRCV_PBCFG CfgPtr
 
EthTrcv_ModeType CtrlMode
 
EthTrcv_ModeType * TrcvModePtr
 
EthTrcv_LinkStateType * LinkStatePtr
 
EthTrcv_BaudRateType * BaudRatePtr
 
EthTrcv_DuplexModeType * DuplexModePtr
 
EthTrcv_PhyTestModeType Mode
 
uint32 * SignalQualityPtr
 
EthTrcv_CableDiagResultType * ResultPtr
 
uint32 * OrgUniqueIdPtr
 
uint32 uint8 * ModelNrPtr
 
uint32 uint8 uint8 * RevisionNrPtr
 
ETHTRCV_APPL_DATA VersionInfoPtr
 
uint8 TrcvIdx
 
uint8 uint8 RegIdx
 
uint8 uint8 uint16 RegVal
 
uint8 uint8 RegId