AM261x MCU+ SDK  10.02.00
dp83tg721.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 DP83TG721_H_
51 #define DP83TG721_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 DP83TG721_LED_NUM (2U)
69 
70 /* ========================================================================== */
71 /* Structures and Enums */
72 /* ========================================================================== */
73 
77 typedef struct Dp83tg721_Cfg_s
78 {
82  uint8_t clockSource;
84  uint8_t mediaClockMode;
86 
87 /* ========================================================================== */
88 /* Global Variables Declarations */
89 /* ========================================================================== */
90 
91 /* None */
92 
93 /* ========================================================================== */
94 /* Function Declarations */
95 /* ========================================================================== */
96 
105 
106 /* ========================================================================== */
107 /* Deprecated Function Declarations */
108 /* ========================================================================== */
109 
110 /* None */
111 
112 /* ========================================================================== */
113 /* Static Function Definitions */
114 /* ========================================================================== */
115 
116 /* None */
117 
118 #ifdef __cplusplus
119 }
120 #endif
121 
122 #endif /* DP83TG721_H_ */
123 
Dp83tg721_Cfg::srcMacStatusFrameType
uint32_t srcMacStatusFrameType
Definition: dp83tg721.h:81
Dp83tg721_Cfg::isMDIMaster
bool isMDIMaster
Definition: dp83tg721.h:79
Dp83tg721_Cfg::enableMediaClock
uint8_t enableMediaClock
Definition: dp83tg721.h:83
Dp83tg721_initCfg
void Dp83tg721_initCfg(Dp83tg721_Cfg *cfg)
Initialize DP83TC811 PHY specific config params.
Dp83tg721_Cfg::enablePTPstatusFrames
bool enablePTPstatusFrames
Definition: dp83tg721.h:80
Dp83tg721_Cfg
DP83TG721 PHY configuration parameters.
Definition: dp83tg721.h:78
Dp83tg721_Cfg::clockSource
uint8_t clockSource
Definition: dp83tg721.h:82
Dp83tg721_Cfg::mediaClockMode
uint8_t mediaClockMode
Definition: dp83tg721.h:84