32 #ifdef oC_ETH_LLD_AVAILABLE 39 #define _________________________________________LOCAL_PROT_SECTION_________________________________________________________________________ 44 #undef _________________________________________LOCAL_PROT_SECTION_________________________________________________________________________ 52 #define _________________________________________FUNCTIONS_SECTION__________________________________________________________________________ 72 oC_ErrorCode_t errorCode = oC_ErrorCode_ImplementError;
99 oC_ErrorCode_t errorCode = oC_ErrorCode_ImplementError;
123 oC_ErrorCode_t errorCode = oC_ErrorCode_ImplementError;
136 errorCode = oC_ErrorCode_None;
157 oC_ErrorCode_t errorCode = oC_ErrorCode_ImplementError;
164 ErrorCondition( isram(outLinkStatus) , oC_ErrorCode_OutputAddressNotInRAM )
169 errorCode = oC_ErrorCode_None;
191 oC_ErrorCode_t errorCode = oC_ErrorCode_ImplementError;
195 oC_Timestamp_t endTimestamp = oC_KTime_GetTimestamp() + Timeout;
210 errorCode = oC_ErrorCode_None;
216 && ErrorCondition ( oC_KTime_GetTimestamp() < endTimestamp , oC_ErrorCode_Timeout )
239 oC_ErrorCode_t errorCode = oC_ErrorCode_ImplementError;
264 errorCode = oC_ErrorCode_None;
272 #undef _________________________________________FUNCTIONS_SECTION__________________________________________________________________________ 279 #define _________________________________________LOCAL_FUNCTIONS_SECTION____________________________________________________________________ 288 return oC_ETH_LLD_WritePhyRegister(PhyAddress,(oC_ETH_LLD_PHY_RegisterAddress_t)Register,Value);
298 return oC_ETH_LLD_ReadPhyRegister(PhyAddress,(oC_ETH_LLD_PHY_RegisterAddress_t)Register,outValue);
301 #undef _________________________________________LOCAL_FUNCTIONS_SECTION____________________________________________________________________ uint32_t SoftReset
Soft-Reset: 1 = Software reset.
stores value of the BSR register
oC_ErrorCode_t oC_ETH_ReadPhyRegister(oC_ETH_PhyAddress_t PhyAddress, oC_ETH_PhyRegister_t Register, uint32_t *outValue)
writes PHY register
oC_ETH_PhyRegister_BasicStatusRegister
oC_ErrorCode_t oC_ETH_SetAutoNegotiation(oC_ETH_PhyAddress_t PhyAddress, bool Enabled, oC_Time_t Timeout)
enables/disables AutoNegotiation
static oC_ErrorCode_t ReadRegister(oC_ETH_PhyAddress_t PhyAddress, oC_ETH_PhyRegister_t Register, uint32_t *outValue)
reads PHY register
uint32_t Value
Stores value of the register.
uint32_t AutoNegotiation
Auto-Negotiation Enable: 0 = disable auto-negotiate process, 1 = enable auto negotiate process...
oC_ErrorCode_t oC_ETH_PhyReset(oC_ETH_PhyAddress_t PhyAddress)
resets PHY
Header with definitions for PHY handling.
oC_ErrorCode_t oC_ETH_WritePhyRegister(oC_ETH_PhyAddress_t PhyAddress, oC_ETH_PhyRegister_t Register, uint32_t Value)
writes PHY register
#define ms(time)
Number of ms.
The file with interface for the module library.
oC_ETH_PhyRegister_t
stores PHY register address
static oC_ErrorCode_t WriteRegister(oC_ETH_PhyAddress_t PhyAddress, oC_ETH_PhyRegister_t Register, uint32_t Value)
writes PHY register
oC_ETH_PhyRegister_BasicControlRegister
uint32_t AutoNegotiateComplete
Auto-Negotiate Complete: 0 = auto negotiate process not completed, 1 = auto negotiate process complet...
oC_ErrorCode_t oC_ETH_SetPhyLoopback(oC_ETH_PhyAddress_t PhyAddress, bool Enabled)
enables/disables PHY loopback mode
uint32_t Value
Stores value of the register.
oC_ErrorCode_t oC_ETH_ReadLinkStatus(oC_ETH_PhyAddress_t PhyAddress, oC_Net_LinkStatus_t *outLinkStatus)
reads link status from the PHY
uint32_t SpeedSelect
Speed select: 0 = Slower, 1 = Faster.
Network interface is DOWN (cable is not connected)
uint32_t LinkStatus
Link Status: 0 = link is down, 1 = link is up.
stores value of the BCR register
static bool oC_Module_TurnOnVerification(oC_ErrorCode_t *outErrorCode, oC_Module_t Module)
verify if module is turned on
uint32_t DuplexMode
Duplex mode: 0 = Half duplex, 1 = Full duplex.
Network interface is UP (cable is connected)
oC_Net_LinkStatus_t
stores network interface link status
oC_ETH_LLD_PHY_Address_t oC_ETH_PhyAddress_t
stores address of a PHY
uint32_t Loopback
Loopback mode: 0 = Normal operation, 1 = loopback mode.
The file with interface for ETH driver.
The file with interface of kernel time module.