AM275 FreeRTOS SDK  11.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  uint32_t codecClkDiv;
87  uint32_t mediaClkDiv;
89 
90 /* ========================================================================== */
91 /* Global Variables Declarations */
92 /* ========================================================================== */
93 
94 /* None */
95 
96 /* ========================================================================== */
97 /* Function Declarations */
98 /* ========================================================================== */
99 
108 
109 /* ========================================================================== */
110 /* Deprecated Function Declarations */
111 /* ========================================================================== */
112 
113 /* None */
114 
115 /* ========================================================================== */
116 /* Static Function Definitions */
117 /* ========================================================================== */
118 
119 /* None */
120 
121 #ifdef __cplusplus
122 }
123 #endif
124 
125 #endif /* DP83TG721_H_ */
126 
Dp83tg721_Cfg::srcMacStatusFrameType
uint32_t srcMacStatusFrameType
Definition: dp83tg721.h:81
Dp83tg721_Cfg::enableCodecClock
uint8_t enableCodecClock
Definition: dp83tg721.h:85
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::mediaClkDiv
uint32_t mediaClkDiv
Definition: dp83tg721.h:87
Dp83tg721_Cfg::mediaClockMode
uint8_t mediaClockMode
Definition: dp83tg721.h:84
Dp83tg721_Cfg::codecClkDiv
uint32_t codecClkDiv
Definition: dp83tg721.h:86