phy.h

来自「AMLOGIC DPF source code」· C头文件 代码 · 共 40 行

H
40
字号
/*******************************************************************
 * 
 *  Copyright C 2004 by Amlogic, Inc. All Rights Reserved.
 *
 *  Description: Declarations for ethernet phy configuration
 *
 *  Author: Eric Knudstrup
 *  Created: Wed Jan  5 14:24:30 2005
 *
 *******************************************************************/

#ifndef PHY_H
#define PHY_H

typedef enum {
    PHY_SPEED_10,
    PHY_SPEED_100,
    PHY_SPEED_10_100,
    PHY_SPEED_AUTO /* Enable autonegotiation */
} PhySpeed;

typedef enum {
    PHY_DUPLEX_FULL,
    PHY_DUPLEX_HALF
} PhyDuplex;

typedef struct phy_s {
    PhySpeed  phy_config_speed;     /* Configured speed */
    PhyDuplex phy_config_duplex;    /* Configured duplex */

    PhySpeed  phy_op_speed;         /* Operational speed */
    PhyDuplex phy_op_duplex;        /* Operational duplex */
} phy_t;

/*;emacs generated header for file phy.c. Global function declarations only. */

/*;end emacs generated header for file phy.c. Global function declarations only. */

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?