AM263x MCU+ SDK  10.00.00
dp83tg720.h
Go to the documentation of this file.
1 
2 /*
3  * Copyright (c) Texas Instruments Incorporated 2024
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  *
9  * Redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer.
11  *
12  * Redistributions in binary form must reproduce the above copyright
13  * notice, this list of conditions and the following disclaimer in the
14  * documentation and/or other materials provided with the
15  * distribution.
16  *
17  * Neither the name of Texas Instruments Incorporated nor the names of
18  * its contributors may be used to endorse or promote products derived
19  * from this software without specific prior written permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32  */
33 
50 #ifndef DP83TG720_H_
51 #define DP83TG720_H_
52 
53 /* ========================================================================== */
54 /* Include Files */
55 /* ========================================================================== */
56 
57 #include <stdint.h>
58 
59 #ifdef __cplusplus
60 extern "C" {
61 #endif
62 
63 /* ========================================================================== */
64 /* Macros */
65 /* ========================================================================== */
66 
68 #define DP83TG720_LED_NUM (2U)
69 
70 /* ========================================================================== */
71 /* Structures and Enums */
72 /* ========================================================================== */
73 
77 typedef enum Dp83tg720_MasterSlaveMode_e
78 {
81 
84 
88 
92 typedef struct Dp83tg720_Cfg_s
93 {
96 
99 
102 
105 
108 } Dp83tg720_Cfg;
109 
110 /* ========================================================================== */
111 /* Global Variables Declarations */
112 /* ========================================================================== */
113 
114 /* None */
115 
116 /* ========================================================================== */
117 /* Function Declarations */
118 /* ========================================================================== */
119 
128 
129 /* ========================================================================== */
130 /* Deprecated Function Declarations */
131 /* ========================================================================== */
132 
133 /* None */
134 
135 /* ========================================================================== */
136 /* Static Function Definitions */
137 /* ========================================================================== */
138 
139 /* None */
140 
141 #ifdef __cplusplus
142 }
143 #endif
144 
145 #endif /* DP83TG720_H_ */
146 
Dp83tg720_Cfg::interruptEn
bool interruptEn
Definition: dp83tg720.h:101
Dp83tg720_Cfg::sgmiiAutoNegEn
bool sgmiiAutoNegEn
Definition: dp83tg720.h:104
Dp83tg720_Cfg::rxClkShiftEn
bool rxClkShiftEn
Definition: dp83tg720.h:98
Dp83tg720_Cfg::MasterSlaveMode
Dp83tg720_MasterSlaveMode MasterSlaveMode
Definition: dp83tg720.h:107
Dp83tg720_Cfg
DP83TG720 PHY configuration parameters.
Definition: dp83tg720.h:93
DP83TG720_MASTER_MODE
@ DP83TG720_MASTER_MODE
Definition: dp83tg720.h:83
Dp83tg720_Cfg::txClkShiftEn
bool txClkShiftEn
Definition: dp83tg720.h:95
Dp83tg720_MasterSlaveMode
Dp83tg720_MasterSlaveMode
DP83TG720 Master/Slave modes.
Definition: dp83tg720.h:78
DP83TG720_SLAVE_MODE
@ DP83TG720_SLAVE_MODE
Definition: dp83tg720.h:86
DP83TG720_MASTER_SLAVE_STRAP
@ DP83TG720_MASTER_SLAVE_STRAP
Definition: dp83tg720.h:80
Dp83tg720_initCfg
void Dp83tg720_initCfg(Dp83tg720_Cfg *cfg)
Initialize DP83TG720 PHY specific config params.