用于EagleEye3.0 规则集漏报和误报测试的示例项目,项目收集于github和gitee
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

43 lines
1014 B

/**
* \file mdio.h
*
* \brief MDIO APIs and macros.
*
* This file contains the driver API prototypes and macro definitions.
*/
/* (c) Texas Instruments 2009-2013, All rights reserved. */
#ifndef __MDIO_H__
#define __MDIO_H__
#include "sys_common.h"
#include "hw_mdio.h"
#ifdef __cplusplus
extern "C" {
#endif
/*****************************************************************************/
/**
* @addtogroup EMACMDIO
* @{
*/
/*
** Prototypes for the APIs
*/
extern uint32 MDIOPhyAliveStatusGet(uint32 baseAddr);
extern uint32 MDIOPhyLinkStatusGet(uint32 baseAddr);
extern void MDIOInit(uint32 baseAddr, uint32 mdioInputFreq,
uint32 mdioOutputFreq);
extern uint32 MDIOPhyRegRead(uint32 baseAddr, uint32 phyAddr,
uint32 regNum, volatile uint16 * dataPtr);
extern void MDIOPhyRegWrite(uint32 baseAddr, uint32 phyAddr,
uint32 regNum, uint16 RegVal);
#ifdef __cplusplus
}
#endif
/**@}*/
#endif /* __MDIO_H__ */