annotate Common/Drivers/STM32F4xx_HAL_DRIVER_v120/Inc/stm32f4xx_hal_eth.h @ 80:cc2bb7bb8456

Added Spanish language
author heinrichsweikamp
date Sat, 06 Oct 2018 15:02:11 +0200
parents 5f11787b4f42
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
38
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2 ******************************************************************************
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
3 * @file stm32f4xx_hal_eth.h
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
4 * @author MCD Application Team
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
5 * @version V1.2.0
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
6 * @date 26-December-2014
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
7 * @brief Header file of ETH HAL module.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
8 ******************************************************************************
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
9 * @attention
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
10 *
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
11 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
12 *
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
13 * Redistribution and use in source and binary forms, with or without modification,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
14 * are permitted provided that the following conditions are met:
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
15 * 1. Redistributions of source code must retain the above copyright notice,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
16 * this list of conditions and the following disclaimer.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
17 * 2. Redistributions in binary form must reproduce the above copyright notice,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
18 * this list of conditions and the following disclaimer in the documentation
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
19 * and/or other materials provided with the distribution.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
21 * may be used to endorse or promote products derived from this software
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
22 * without specific prior written permission.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
23 *
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
34 *
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
35 ******************************************************************************
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
36 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
37
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
38 /* Define to prevent recursive inclusion -------------------------------------*/
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
39 #ifndef __STM32F4xx_HAL_ETH_H
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
40 #define __STM32F4xx_HAL_ETH_H
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
41
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
42 #ifdef __cplusplus
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
43 extern "C" {
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
44 #endif
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
45
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
46 #if defined(STM32F407xx) || defined(STM32F417xx) || defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
47 /* Includes ------------------------------------------------------------------*/
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
48 #include "stm32f4xx_hal_def.h"
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
49
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
50 /** @addtogroup STM32F4xx_HAL_Driver
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
51 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
52 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
53
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
54 /** @addtogroup ETH
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
55 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
56 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
57
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
58 /** @addtogroup ETH_Private_Macros
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
59 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
60 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
61 #define IS_ETH_PHY_ADDRESS(ADDRESS) ((ADDRESS) <= 0x20)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
62 #define IS_ETH_AUTONEGOTIATION(CMD) (((CMD) == ETH_AUTONEGOTIATION_ENABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
63 ((CMD) == ETH_AUTONEGOTIATION_DISABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
64 #define IS_ETH_SPEED(SPEED) (((SPEED) == ETH_SPEED_10M) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
65 ((SPEED) == ETH_SPEED_100M))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
66 #define IS_ETH_DUPLEX_MODE(MODE) (((MODE) == ETH_MODE_FULLDUPLEX) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
67 ((MODE) == ETH_MODE_HALFDUPLEX))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
68 #define IS_ETH_DUPLEX_MODE(MODE) (((MODE) == ETH_MODE_FULLDUPLEX) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
69 ((MODE) == ETH_MODE_HALFDUPLEX))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
70 #define IS_ETH_RX_MODE(MODE) (((MODE) == ETH_RXPOLLING_MODE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
71 ((MODE) == ETH_RXINTERRUPT_MODE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
72 #define IS_ETH_RX_MODE(MODE) (((MODE) == ETH_RXPOLLING_MODE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
73 ((MODE) == ETH_RXINTERRUPT_MODE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
74 #define IS_ETH_RX_MODE(MODE) (((MODE) == ETH_RXPOLLING_MODE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
75 ((MODE) == ETH_RXINTERRUPT_MODE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
76 #define IS_ETH_CHECKSUM_MODE(MODE) (((MODE) == ETH_CHECKSUM_BY_HARDWARE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
77 ((MODE) == ETH_CHECKSUM_BY_SOFTWARE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
78 #define IS_ETH_MEDIA_INTERFACE(MODE) (((MODE) == ETH_MEDIA_INTERFACE_MII) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
79 ((MODE) == ETH_MEDIA_INTERFACE_RMII))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
80 #define IS_ETH_WATCHDOG(CMD) (((CMD) == ETH_WATCHDOG_ENABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
81 ((CMD) == ETH_WATCHDOG_DISABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
82 #define IS_ETH_JABBER(CMD) (((CMD) == ETH_JABBER_ENABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
83 ((CMD) == ETH_JABBER_DISABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
84 #define IS_ETH_INTER_FRAME_GAP(GAP) (((GAP) == ETH_INTERFRAMEGAP_96BIT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
85 ((GAP) == ETH_INTERFRAMEGAP_88BIT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
86 ((GAP) == ETH_INTERFRAMEGAP_80BIT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
87 ((GAP) == ETH_INTERFRAMEGAP_72BIT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
88 ((GAP) == ETH_INTERFRAMEGAP_64BIT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
89 ((GAP) == ETH_INTERFRAMEGAP_56BIT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
90 ((GAP) == ETH_INTERFRAMEGAP_48BIT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
91 ((GAP) == ETH_INTERFRAMEGAP_40BIT))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
92 #define IS_ETH_CARRIER_SENSE(CMD) (((CMD) == ETH_CARRIERSENCE_ENABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
93 ((CMD) == ETH_CARRIERSENCE_DISABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
94 #define IS_ETH_RECEIVE_OWN(CMD) (((CMD) == ETH_RECEIVEOWN_ENABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
95 ((CMD) == ETH_RECEIVEOWN_DISABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
96 #define IS_ETH_LOOPBACK_MODE(CMD) (((CMD) == ETH_LOOPBACKMODE_ENABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
97 ((CMD) == ETH_LOOPBACKMODE_DISABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
98 #define IS_ETH_CHECKSUM_OFFLOAD(CMD) (((CMD) == ETH_CHECKSUMOFFLAOD_ENABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
99 ((CMD) == ETH_CHECKSUMOFFLAOD_DISABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
100 #define IS_ETH_RETRY_TRANSMISSION(CMD) (((CMD) == ETH_RETRYTRANSMISSION_ENABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
101 ((CMD) == ETH_RETRYTRANSMISSION_DISABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
102 #define IS_ETH_AUTOMATIC_PADCRC_STRIP(CMD) (((CMD) == ETH_AUTOMATICPADCRCSTRIP_ENABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
103 ((CMD) == ETH_AUTOMATICPADCRCSTRIP_DISABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
104 #define IS_ETH_BACKOFF_LIMIT(LIMIT) (((LIMIT) == ETH_BACKOFFLIMIT_10) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
105 ((LIMIT) == ETH_BACKOFFLIMIT_8) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
106 ((LIMIT) == ETH_BACKOFFLIMIT_4) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
107 ((LIMIT) == ETH_BACKOFFLIMIT_1))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
108 #define IS_ETH_DEFERRAL_CHECK(CMD) (((CMD) == ETH_DEFFERRALCHECK_ENABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
109 ((CMD) == ETH_DEFFERRALCHECK_DISABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
110 #define IS_ETH_RECEIVE_ALL(CMD) (((CMD) == ETH_RECEIVEALL_ENABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
111 ((CMD) == ETH_RECEIVEAll_DISABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
112 #define IS_ETH_SOURCE_ADDR_FILTER(CMD) (((CMD) == ETH_SOURCEADDRFILTER_NORMAL_ENABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
113 ((CMD) == ETH_SOURCEADDRFILTER_INVERSE_ENABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
114 ((CMD) == ETH_SOURCEADDRFILTER_DISABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
115 #define IS_ETH_CONTROL_FRAMES(PASS) (((PASS) == ETH_PASSCONTROLFRAMES_BLOCKALL) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
116 ((PASS) == ETH_PASSCONTROLFRAMES_FORWARDALL) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
117 ((PASS) == ETH_PASSCONTROLFRAMES_FORWARDPASSEDADDRFILTER))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
118 #define IS_ETH_BROADCAST_FRAMES_RECEPTION(CMD) (((CMD) == ETH_BROADCASTFRAMESRECEPTION_ENABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
119 ((CMD) == ETH_BROADCASTFRAMESRECEPTION_DISABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
120 #define IS_ETH_DESTINATION_ADDR_FILTER(FILTER) (((FILTER) == ETH_DESTINATIONADDRFILTER_NORMAL) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
121 ((FILTER) == ETH_DESTINATIONADDRFILTER_INVERSE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
122 #define IS_ETH_PROMISCUOUS_MODE(CMD) (((CMD) == ETH_PROMISCUOUS_MODE_ENABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
123 ((CMD) == ETH_PROMISCUOUS_MODE_DISABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
124 #define IS_ETH_MULTICAST_FRAMES_FILTER(FILTER) (((FILTER) == ETH_MULTICASTFRAMESFILTER_PERFECTHASHTABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
125 ((FILTER) == ETH_MULTICASTFRAMESFILTER_HASHTABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
126 ((FILTER) == ETH_MULTICASTFRAMESFILTER_PERFECT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
127 ((FILTER) == ETH_MULTICASTFRAMESFILTER_NONE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
128 #define IS_ETH_UNICAST_FRAMES_FILTER(FILTER) (((FILTER) == ETH_UNICASTFRAMESFILTER_PERFECTHASHTABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
129 ((FILTER) == ETH_UNICASTFRAMESFILTER_HASHTABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
130 ((FILTER) == ETH_UNICASTFRAMESFILTER_PERFECT))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
131 #define IS_ETH_PAUSE_TIME(TIME) ((TIME) <= 0xFFFF)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
132 #define IS_ETH_ZEROQUANTA_PAUSE(CMD) (((CMD) == ETH_ZEROQUANTAPAUSE_ENABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
133 ((CMD) == ETH_ZEROQUANTAPAUSE_DISABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
134 #define IS_ETH_PAUSE_LOW_THRESHOLD(THRESHOLD) (((THRESHOLD) == ETH_PAUSELOWTHRESHOLD_MINUS4) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
135 ((THRESHOLD) == ETH_PAUSELOWTHRESHOLD_MINUS28) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
136 ((THRESHOLD) == ETH_PAUSELOWTHRESHOLD_MINUS144) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
137 ((THRESHOLD) == ETH_PAUSELOWTHRESHOLD_MINUS256))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
138 #define IS_ETH_UNICAST_PAUSE_FRAME_DETECT(CMD) (((CMD) == ETH_UNICASTPAUSEFRAMEDETECT_ENABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
139 ((CMD) == ETH_UNICASTPAUSEFRAMEDETECT_DISABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
140 #define IS_ETH_RECEIVE_FLOWCONTROL(CMD) (((CMD) == ETH_RECEIVEFLOWCONTROL_ENABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
141 ((CMD) == ETH_RECEIVEFLOWCONTROL_DISABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
142 #define IS_ETH_TRANSMIT_FLOWCONTROL(CMD) (((CMD) == ETH_TRANSMITFLOWCONTROL_ENABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
143 ((CMD) == ETH_TRANSMITFLOWCONTROL_DISABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
144 #define IS_ETH_VLAN_TAG_COMPARISON(COMPARISON) (((COMPARISON) == ETH_VLANTAGCOMPARISON_12BIT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
145 ((COMPARISON) == ETH_VLANTAGCOMPARISON_16BIT))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
146 #define IS_ETH_VLAN_TAG_IDENTIFIER(IDENTIFIER) ((IDENTIFIER) <= 0xFFFF)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
147 #define IS_ETH_MAC_ADDRESS0123(ADDRESS) (((ADDRESS) == ETH_MAC_ADDRESS0) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
148 ((ADDRESS) == ETH_MAC_ADDRESS1) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
149 ((ADDRESS) == ETH_MAC_ADDRESS2) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
150 ((ADDRESS) == ETH_MAC_ADDRESS3))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
151 #define IS_ETH_MAC_ADDRESS123(ADDRESS) (((ADDRESS) == ETH_MAC_ADDRESS1) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
152 ((ADDRESS) == ETH_MAC_ADDRESS2) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
153 ((ADDRESS) == ETH_MAC_ADDRESS3))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
154 #define IS_ETH_MAC_ADDRESS_FILTER(FILTER) (((FILTER) == ETH_MAC_ADDRESSFILTER_SA) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
155 ((FILTER) == ETH_MAC_ADDRESSFILTER_DA))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
156 #define IS_ETH_MAC_ADDRESS_MASK(MASK) (((MASK) == ETH_MAC_ADDRESSMASK_BYTE6) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
157 ((MASK) == ETH_MAC_ADDRESSMASK_BYTE5) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
158 ((MASK) == ETH_MAC_ADDRESSMASK_BYTE4) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
159 ((MASK) == ETH_MAC_ADDRESSMASK_BYTE3) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
160 ((MASK) == ETH_MAC_ADDRESSMASK_BYTE2) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
161 ((MASK) == ETH_MAC_ADDRESSMASK_BYTE1))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
162 #define IS_ETH_DROP_TCPIP_CHECKSUM_FRAME(CMD) (((CMD) == ETH_DROPTCPIPCHECKSUMERRORFRAME_ENABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
163 ((CMD) == ETH_DROPTCPIPCHECKSUMERRORFRAME_DISABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
164 #define IS_ETH_RECEIVE_STORE_FORWARD(CMD) (((CMD) == ETH_RECEIVESTOREFORWARD_ENABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
165 ((CMD) == ETH_RECEIVESTOREFORWARD_DISABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
166 #define IS_ETH_FLUSH_RECEIVE_FRAME(CMD) (((CMD) == ETH_FLUSHRECEIVEDFRAME_ENABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
167 ((CMD) == ETH_FLUSHRECEIVEDFRAME_DISABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
168 #define IS_ETH_TRANSMIT_STORE_FORWARD(CMD) (((CMD) == ETH_TRANSMITSTOREFORWARD_ENABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
169 ((CMD) == ETH_TRANSMITSTOREFORWARD_DISABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
170 #define IS_ETH_TRANSMIT_THRESHOLD_CONTROL(THRESHOLD) (((THRESHOLD) == ETH_TRANSMITTHRESHOLDCONTROL_64BYTES) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
171 ((THRESHOLD) == ETH_TRANSMITTHRESHOLDCONTROL_128BYTES) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
172 ((THRESHOLD) == ETH_TRANSMITTHRESHOLDCONTROL_192BYTES) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
173 ((THRESHOLD) == ETH_TRANSMITTHRESHOLDCONTROL_256BYTES) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
174 ((THRESHOLD) == ETH_TRANSMITTHRESHOLDCONTROL_40BYTES) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
175 ((THRESHOLD) == ETH_TRANSMITTHRESHOLDCONTROL_32BYTES) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
176 ((THRESHOLD) == ETH_TRANSMITTHRESHOLDCONTROL_24BYTES) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
177 ((THRESHOLD) == ETH_TRANSMITTHRESHOLDCONTROL_16BYTES))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
178 #define IS_ETH_FORWARD_ERROR_FRAMES(CMD) (((CMD) == ETH_FORWARDERRORFRAMES_ENABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
179 ((CMD) == ETH_FORWARDERRORFRAMES_DISABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
180 #define IS_ETH_FORWARD_UNDERSIZED_GOOD_FRAMES(CMD) (((CMD) == ETH_FORWARDUNDERSIZEDGOODFRAMES_ENABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
181 ((CMD) == ETH_FORWARDUNDERSIZEDGOODFRAMES_DISABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
182 #define IS_ETH_RECEIVE_THRESHOLD_CONTROL(THRESHOLD) (((THRESHOLD) == ETH_RECEIVEDTHRESHOLDCONTROL_64BYTES) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
183 ((THRESHOLD) == ETH_RECEIVEDTHRESHOLDCONTROL_32BYTES) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
184 ((THRESHOLD) == ETH_RECEIVEDTHRESHOLDCONTROL_96BYTES) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
185 ((THRESHOLD) == ETH_RECEIVEDTHRESHOLDCONTROL_128BYTES))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
186 #define IS_ETH_SECOND_FRAME_OPERATE(CMD) (((CMD) == ETH_SECONDFRAMEOPERARTE_ENABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
187 ((CMD) == ETH_SECONDFRAMEOPERARTE_DISABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
188 #define IS_ETH_ADDRESS_ALIGNED_BEATS(CMD) (((CMD) == ETH_ADDRESSALIGNEDBEATS_ENABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
189 ((CMD) == ETH_ADDRESSALIGNEDBEATS_DISABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
190 #define IS_ETH_FIXED_BURST(CMD) (((CMD) == ETH_FIXEDBURST_ENABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
191 ((CMD) == ETH_FIXEDBURST_DISABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
192 #define IS_ETH_RXDMA_BURST_LENGTH(LENGTH) (((LENGTH) == ETH_RXDMABURSTLENGTH_1BEAT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
193 ((LENGTH) == ETH_RXDMABURSTLENGTH_2BEAT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
194 ((LENGTH) == ETH_RXDMABURSTLENGTH_4BEAT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
195 ((LENGTH) == ETH_RXDMABURSTLENGTH_8BEAT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
196 ((LENGTH) == ETH_RXDMABURSTLENGTH_16BEAT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
197 ((LENGTH) == ETH_RXDMABURSTLENGTH_32BEAT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
198 ((LENGTH) == ETH_RXDMABURSTLENGTH_4XPBL_4BEAT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
199 ((LENGTH) == ETH_RXDMABURSTLENGTH_4XPBL_8BEAT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
200 ((LENGTH) == ETH_RXDMABURSTLENGTH_4XPBL_16BEAT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
201 ((LENGTH) == ETH_RXDMABURSTLENGTH_4XPBL_32BEAT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
202 ((LENGTH) == ETH_RXDMABURSTLENGTH_4XPBL_64BEAT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
203 ((LENGTH) == ETH_RXDMABURSTLENGTH_4XPBL_128BEAT))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
204 #define IS_ETH_TXDMA_BURST_LENGTH(LENGTH) (((LENGTH) == ETH_TXDMABURSTLENGTH_1BEAT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
205 ((LENGTH) == ETH_TXDMABURSTLENGTH_2BEAT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
206 ((LENGTH) == ETH_TXDMABURSTLENGTH_4BEAT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
207 ((LENGTH) == ETH_TXDMABURSTLENGTH_8BEAT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
208 ((LENGTH) == ETH_TXDMABURSTLENGTH_16BEAT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
209 ((LENGTH) == ETH_TXDMABURSTLENGTH_32BEAT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
210 ((LENGTH) == ETH_TXDMABURSTLENGTH_4XPBL_4BEAT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
211 ((LENGTH) == ETH_TXDMABURSTLENGTH_4XPBL_8BEAT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
212 ((LENGTH) == ETH_TXDMABURSTLENGTH_4XPBL_16BEAT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
213 ((LENGTH) == ETH_TXDMABURSTLENGTH_4XPBL_32BEAT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
214 ((LENGTH) == ETH_TXDMABURSTLENGTH_4XPBL_64BEAT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
215 ((LENGTH) == ETH_TXDMABURSTLENGTH_4XPBL_128BEAT))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
216 #define IS_ETH_DMA_DESC_SKIP_LENGTH(LENGTH) ((LENGTH) <= 0x1F)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
217 #define IS_ETH_DMA_ARBITRATION_ROUNDROBIN_RXTX(RATIO) (((RATIO) == ETH_DMAARBITRATION_ROUNDROBIN_RXTX_1_1) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
218 ((RATIO) == ETH_DMAARBITRATION_ROUNDROBIN_RXTX_2_1) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
219 ((RATIO) == ETH_DMAARBITRATION_ROUNDROBIN_RXTX_3_1) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
220 ((RATIO) == ETH_DMAARBITRATION_ROUNDROBIN_RXTX_4_1) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
221 ((RATIO) == ETH_DMAARBITRATION_RXPRIORTX))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
222 #define IS_ETH_DMATXDESC_GET_FLAG(FLAG) (((FLAG) == ETH_DMATXDESC_OWN) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
223 ((FLAG) == ETH_DMATXDESC_IC) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
224 ((FLAG) == ETH_DMATXDESC_LS) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
225 ((FLAG) == ETH_DMATXDESC_FS) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
226 ((FLAG) == ETH_DMATXDESC_DC) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
227 ((FLAG) == ETH_DMATXDESC_DP) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
228 ((FLAG) == ETH_DMATXDESC_TTSE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
229 ((FLAG) == ETH_DMATXDESC_TER) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
230 ((FLAG) == ETH_DMATXDESC_TCH) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
231 ((FLAG) == ETH_DMATXDESC_TTSS) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
232 ((FLAG) == ETH_DMATXDESC_IHE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
233 ((FLAG) == ETH_DMATXDESC_ES) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
234 ((FLAG) == ETH_DMATXDESC_JT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
235 ((FLAG) == ETH_DMATXDESC_FF) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
236 ((FLAG) == ETH_DMATXDESC_PCE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
237 ((FLAG) == ETH_DMATXDESC_LCA) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
238 ((FLAG) == ETH_DMATXDESC_NC) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
239 ((FLAG) == ETH_DMATXDESC_LCO) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
240 ((FLAG) == ETH_DMATXDESC_EC) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
241 ((FLAG) == ETH_DMATXDESC_VF) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
242 ((FLAG) == ETH_DMATXDESC_CC) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
243 ((FLAG) == ETH_DMATXDESC_ED) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
244 ((FLAG) == ETH_DMATXDESC_UF) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
245 ((FLAG) == ETH_DMATXDESC_DB))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
246 #define IS_ETH_DMA_TXDESC_SEGMENT(SEGMENT) (((SEGMENT) == ETH_DMATXDESC_LASTSEGMENTS) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
247 ((SEGMENT) == ETH_DMATXDESC_FIRSTSEGMENT))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
248 #define IS_ETH_DMA_TXDESC_CHECKSUM(CHECKSUM) (((CHECKSUM) == ETH_DMATXDESC_CHECKSUMBYPASS) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
249 ((CHECKSUM) == ETH_DMATXDESC_CHECKSUMIPV4HEADER) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
250 ((CHECKSUM) == ETH_DMATXDESC_CHECKSUMTCPUDPICMPSEGMENT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
251 ((CHECKSUM) == ETH_DMATXDESC_CHECKSUMTCPUDPICMPFULL))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
252 #define IS_ETH_DMATXDESC_BUFFER_SIZE(SIZE) ((SIZE) <= 0x1FFF)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
253 #define IS_ETH_DMARXDESC_GET_FLAG(FLAG) (((FLAG) == ETH_DMARXDESC_OWN) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
254 ((FLAG) == ETH_DMARXDESC_AFM) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
255 ((FLAG) == ETH_DMARXDESC_ES) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
256 ((FLAG) == ETH_DMARXDESC_DE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
257 ((FLAG) == ETH_DMARXDESC_SAF) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
258 ((FLAG) == ETH_DMARXDESC_LE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
259 ((FLAG) == ETH_DMARXDESC_OE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
260 ((FLAG) == ETH_DMARXDESC_VLAN) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
261 ((FLAG) == ETH_DMARXDESC_FS) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
262 ((FLAG) == ETH_DMARXDESC_LS) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
263 ((FLAG) == ETH_DMARXDESC_IPV4HCE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
264 ((FLAG) == ETH_DMARXDESC_LC) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
265 ((FLAG) == ETH_DMARXDESC_FT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
266 ((FLAG) == ETH_DMARXDESC_RWT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
267 ((FLAG) == ETH_DMARXDESC_RE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
268 ((FLAG) == ETH_DMARXDESC_DBE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
269 ((FLAG) == ETH_DMARXDESC_CE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
270 ((FLAG) == ETH_DMARXDESC_MAMPCE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
271 #define IS_ETH_DMA_RXDESC_BUFFER(BUFFER) (((BUFFER) == ETH_DMARXDESC_BUFFER1) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
272 ((BUFFER) == ETH_DMARXDESC_BUFFER2))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
273 #define IS_ETH_PMT_GET_FLAG(FLAG) (((FLAG) == ETH_PMT_FLAG_WUFR) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
274 ((FLAG) == ETH_PMT_FLAG_MPR))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
275 #define IS_ETH_DMA_FLAG(FLAG) ((((FLAG) & (uint32_t)0xC7FE1800) == 0x00) && ((FLAG) != 0x00))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
276 #define IS_ETH_DMA_GET_FLAG(FLAG) (((FLAG) == ETH_DMA_FLAG_TST) || ((FLAG) == ETH_DMA_FLAG_PMT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
277 ((FLAG) == ETH_DMA_FLAG_MMC) || ((FLAG) == ETH_DMA_FLAG_DATATRANSFERERROR) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
278 ((FLAG) == ETH_DMA_FLAG_READWRITEERROR) || ((FLAG) == ETH_DMA_FLAG_ACCESSERROR) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
279 ((FLAG) == ETH_DMA_FLAG_NIS) || ((FLAG) == ETH_DMA_FLAG_AIS) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
280 ((FLAG) == ETH_DMA_FLAG_ER) || ((FLAG) == ETH_DMA_FLAG_FBE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
281 ((FLAG) == ETH_DMA_FLAG_ET) || ((FLAG) == ETH_DMA_FLAG_RWT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
282 ((FLAG) == ETH_DMA_FLAG_RPS) || ((FLAG) == ETH_DMA_FLAG_RBU) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
283 ((FLAG) == ETH_DMA_FLAG_R) || ((FLAG) == ETH_DMA_FLAG_TU) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
284 ((FLAG) == ETH_DMA_FLAG_RO) || ((FLAG) == ETH_DMA_FLAG_TJT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
285 ((FLAG) == ETH_DMA_FLAG_TBU) || ((FLAG) == ETH_DMA_FLAG_TPS) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
286 ((FLAG) == ETH_DMA_FLAG_T))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
287 #define IS_ETH_MAC_IT(IT) ((((IT) & (uint32_t)0xFFFFFDF1) == 0x00) && ((IT) != 0x00))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
288 #define IS_ETH_MAC_GET_IT(IT) (((IT) == ETH_MAC_IT_TST) || ((IT) == ETH_MAC_IT_MMCT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
289 ((IT) == ETH_MAC_IT_MMCR) || ((IT) == ETH_MAC_IT_MMC) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
290 ((IT) == ETH_MAC_IT_PMT))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
291 #define IS_ETH_MAC_GET_FLAG(FLAG) (((FLAG) == ETH_MAC_FLAG_TST) || ((FLAG) == ETH_MAC_FLAG_MMCT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
292 ((FLAG) == ETH_MAC_FLAG_MMCR) || ((FLAG) == ETH_MAC_FLAG_MMC) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
293 ((FLAG) == ETH_MAC_FLAG_PMT))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
294 #define IS_ETH_DMA_IT(IT) ((((IT) & (uint32_t)0xC7FE1800) == 0x00) && ((IT) != 0x00))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
295 #define IS_ETH_DMA_GET_IT(IT) (((IT) == ETH_DMA_IT_TST) || ((IT) == ETH_DMA_IT_PMT) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
296 ((IT) == ETH_DMA_IT_MMC) || ((IT) == ETH_DMA_IT_NIS) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
297 ((IT) == ETH_DMA_IT_AIS) || ((IT) == ETH_DMA_IT_ER) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
298 ((IT) == ETH_DMA_IT_FBE) || ((IT) == ETH_DMA_IT_ET) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
299 ((IT) == ETH_DMA_IT_RWT) || ((IT) == ETH_DMA_IT_RPS) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
300 ((IT) == ETH_DMA_IT_RBU) || ((IT) == ETH_DMA_IT_R) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
301 ((IT) == ETH_DMA_IT_TU) || ((IT) == ETH_DMA_IT_RO) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
302 ((IT) == ETH_DMA_IT_TJT) || ((IT) == ETH_DMA_IT_TBU) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
303 ((IT) == ETH_DMA_IT_TPS) || ((IT) == ETH_DMA_IT_T))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
304 #define IS_ETH_DMA_GET_OVERFLOW(OVERFLOW) (((OVERFLOW) == ETH_DMA_OVERFLOW_RXFIFOCOUNTER) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
305 ((OVERFLOW) == ETH_DMA_OVERFLOW_MISSEDFRAMECOUNTER))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
306 #define IS_ETH_MMC_IT(IT) (((((IT) & (uint32_t)0xFFDF3FFF) == 0x00) || (((IT) & (uint32_t)0xEFFDFF9F) == 0x00)) && \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
307 ((IT) != 0x00))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
308 #define IS_ETH_MMC_GET_IT(IT) (((IT) == ETH_MMC_IT_TGF) || ((IT) == ETH_MMC_IT_TGFMSC) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
309 ((IT) == ETH_MMC_IT_TGFSC) || ((IT) == ETH_MMC_IT_RGUF) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
310 ((IT) == ETH_MMC_IT_RFAE) || ((IT) == ETH_MMC_IT_RFCE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
311 #define IS_ETH_ENHANCED_DESCRIPTOR_FORMAT(CMD) (((CMD) == ETH_DMAENHANCEDDESCRIPTOR_ENABLE) || \
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
312 ((CMD) == ETH_DMAENHANCEDDESCRIPTOR_DISABLE))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
313
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
314
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
315 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
316 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
317 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
318
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
319 /** @addtogroup ETH_Private_Defines
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
320 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
321 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
322 /* Delay to wait when writing to some Ethernet registers */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
323 #define ETH_REG_WRITE_DELAY ((uint32_t)0x00000001)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
324
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
325 /* ETHERNET Errors */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
326 #define ETH_SUCCESS ((uint32_t)0)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
327 #define ETH_ERROR ((uint32_t)1)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
328
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
329 /* ETHERNET DMA Tx descriptors Collision Count Shift */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
330 #define ETH_DMATXDESC_COLLISION_COUNTSHIFT ((uint32_t)3)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
331
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
332 /* ETHERNET DMA Tx descriptors Buffer2 Size Shift */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
333 #define ETH_DMATXDESC_BUFFER2_SIZESHIFT ((uint32_t)16)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
334
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
335 /* ETHERNET DMA Rx descriptors Frame Length Shift */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
336 #define ETH_DMARXDESC_FRAME_LENGTHSHIFT ((uint32_t)16)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
337
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
338 /* ETHERNET DMA Rx descriptors Buffer2 Size Shift */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
339 #define ETH_DMARXDESC_BUFFER2_SIZESHIFT ((uint32_t)16)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
340
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
341 /* ETHERNET DMA Rx descriptors Frame length Shift */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
342 #define ETH_DMARXDESC_FRAMELENGTHSHIFT ((uint32_t)16)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
343
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
344 /* ETHERNET MAC address offsets */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
345 #define ETH_MAC_ADDR_HBASE (uint32_t)(ETH_MAC_BASE + (uint32_t)0x40) /* ETHERNET MAC address high offset */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
346 #define ETH_MAC_ADDR_LBASE (uint32_t)(ETH_MAC_BASE + (uint32_t)0x44) /* ETHERNET MAC address low offset */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
347
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
348 /* ETHERNET MACMIIAR register Mask */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
349 #define ETH_MACMIIAR_CR_MASK ((uint32_t)0xFFFFFFE3)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
350
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
351 /* ETHERNET MACCR register Mask */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
352 #define ETH_MACCR_CLEAR_MASK ((uint32_t)0xFF20810F)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
353
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
354 /* ETHERNET MACFCR register Mask */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
355 #define ETH_MACFCR_CLEAR_MASK ((uint32_t)0x0000FF41)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
356
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
357 /* ETHERNET DMAOMR register Mask */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
358 #define ETH_DMAOMR_CLEAR_MASK ((uint32_t)0xF8DE3F23)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
359
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
360 /* ETHERNET Remote Wake-up frame register length */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
361 #define ETH_WAKEUP_REGISTER_LENGTH 8
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
362
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
363 /* ETHERNET Missed frames counter Shift */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
364 #define ETH_DMA_RX_OVERFLOW_MISSEDFRAMES_COUNTERSHIFT 17
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
365 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
366 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
367 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
368
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
369 /* Exported types ------------------------------------------------------------*/
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
370 /** @defgroup ETH_Exported_Types ETH Exported Types
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
371 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
372 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
373
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
374 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
375 * @brief HAL State structures definition
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
376 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
377 typedef enum
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
378 {
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
379 HAL_ETH_STATE_RESET = 0x00, /*!< Peripheral not yet Initialized or disabled */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
380 HAL_ETH_STATE_READY = 0x01, /*!< Peripheral Initialized and ready for use */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
381 HAL_ETH_STATE_BUSY = 0x02, /*!< an internal process is ongoing */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
382 HAL_ETH_STATE_BUSY_TX = 0x12, /*!< Data Transmission process is ongoing */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
383 HAL_ETH_STATE_BUSY_RX = 0x22, /*!< Data Reception process is ongoing */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
384 HAL_ETH_STATE_BUSY_TX_RX = 0x32, /*!< Data Transmission and Reception process is ongoing */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
385 HAL_ETH_STATE_BUSY_WR = 0x42, /*!< Write process is ongoing */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
386 HAL_ETH_STATE_BUSY_RD = 0x82, /*!< Read process is ongoing */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
387 HAL_ETH_STATE_TIMEOUT = 0x03, /*!< Timeout state */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
388 HAL_ETH_STATE_ERROR = 0x04 /*!< Reception process is ongoing */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
389 }HAL_ETH_StateTypeDef;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
390
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
391 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
392 * @brief ETH Init Structure definition
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
393 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
394
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
395 typedef struct
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
396 {
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
397 uint32_t AutoNegotiation; /*!< Selects or not the AutoNegotiation mode for the external PHY
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
398 The AutoNegotiation allows an automatic setting of the Speed (10/100Mbps)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
399 and the mode (half/full-duplex).
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
400 This parameter can be a value of @ref ETH_AutoNegotiation */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
401
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
402 uint32_t Speed; /*!< Sets the Ethernet speed: 10/100 Mbps.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
403 This parameter can be a value of @ref ETH_Speed */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
404
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
405 uint32_t DuplexMode; /*!< Selects the MAC duplex mode: Half-Duplex or Full-Duplex mode
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
406 This parameter can be a value of @ref ETH_Duplex_Mode */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
407
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
408 uint16_t PhyAddress; /*!< Ethernet PHY address.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
409 This parameter must be a number between Min_Data = 0 and Max_Data = 32 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
410
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
411 uint8_t *MACAddr; /*!< MAC Address of used Hardware: must be pointer on an array of 6 bytes */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
412
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
413 uint32_t RxMode; /*!< Selects the Ethernet Rx mode: Polling mode, Interrupt mode.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
414 This parameter can be a value of @ref ETH_Rx_Mode */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
415
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
416 uint32_t ChecksumMode; /*!< Selects if the checksum is check by hardware or by software.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
417 This parameter can be a value of @ref ETH_Checksum_Mode */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
418
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
419 uint32_t MediaInterface ; /*!< Selects the media-independent interface or the reduced media-independent interface.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
420 This parameter can be a value of @ref ETH_Media_Interface */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
421
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
422 } ETH_InitTypeDef;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
423
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
424
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
425 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
426 * @brief ETH MAC Configuration Structure definition
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
427 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
428
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
429 typedef struct
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
430 {
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
431 uint32_t Watchdog; /*!< Selects or not the Watchdog timer
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
432 When enabled, the MAC allows no more then 2048 bytes to be received.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
433 When disabled, the MAC can receive up to 16384 bytes.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
434 This parameter can be a value of @ref ETH_Watchdog */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
435
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
436 uint32_t Jabber; /*!< Selects or not Jabber timer
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
437 When enabled, the MAC allows no more then 2048 bytes to be sent.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
438 When disabled, the MAC can send up to 16384 bytes.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
439 This parameter can be a value of @ref ETH_Jabber */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
440
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
441 uint32_t InterFrameGap; /*!< Selects the minimum IFG between frames during transmission.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
442 This parameter can be a value of @ref ETH_Inter_Frame_Gap */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
443
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
444 uint32_t CarrierSense; /*!< Selects or not the Carrier Sense.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
445 This parameter can be a value of @ref ETH_Carrier_Sense */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
446
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
447 uint32_t ReceiveOwn; /*!< Selects or not the ReceiveOwn,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
448 ReceiveOwn allows the reception of frames when the TX_EN signal is asserted
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
449 in Half-Duplex mode.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
450 This parameter can be a value of @ref ETH_Receive_Own */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
451
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
452 uint32_t LoopbackMode; /*!< Selects or not the internal MAC MII Loopback mode.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
453 This parameter can be a value of @ref ETH_Loop_Back_Mode */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
454
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
455 uint32_t ChecksumOffload; /*!< Selects or not the IPv4 checksum checking for received frame payloads' TCP/UDP/ICMP headers.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
456 This parameter can be a value of @ref ETH_Checksum_Offload */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
457
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
458 uint32_t RetryTransmission; /*!< Selects or not the MAC attempt retries transmission, based on the settings of BL,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
459 when a collision occurs (Half-Duplex mode).
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
460 This parameter can be a value of @ref ETH_Retry_Transmission */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
461
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
462 uint32_t AutomaticPadCRCStrip; /*!< Selects or not the Automatic MAC Pad/CRC Stripping.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
463 This parameter can be a value of @ref ETH_Automatic_Pad_CRC_Strip */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
464
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
465 uint32_t BackOffLimit; /*!< Selects the BackOff limit value.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
466 This parameter can be a value of @ref ETH_Back_Off_Limit */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
467
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
468 uint32_t DeferralCheck; /*!< Selects or not the deferral check function (Half-Duplex mode).
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
469 This parameter can be a value of @ref ETH_Deferral_Check */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
470
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
471 uint32_t ReceiveAll; /*!< Selects or not all frames reception by the MAC (No filtering).
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
472 This parameter can be a value of @ref ETH_Receive_All */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
473
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
474 uint32_t SourceAddrFilter; /*!< Selects the Source Address Filter mode.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
475 This parameter can be a value of @ref ETH_Source_Addr_Filter */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
476
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
477 uint32_t PassControlFrames; /*!< Sets the forwarding mode of the control frames (including unicast and multicast PAUSE frames)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
478 This parameter can be a value of @ref ETH_Pass_Control_Frames */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
479
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
480 uint32_t BroadcastFramesReception; /*!< Selects or not the reception of Broadcast Frames.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
481 This parameter can be a value of @ref ETH_Broadcast_Frames_Reception */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
482
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
483 uint32_t DestinationAddrFilter; /*!< Sets the destination filter mode for both unicast and multicast frames.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
484 This parameter can be a value of @ref ETH_Destination_Addr_Filter */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
485
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
486 uint32_t PromiscuousMode; /*!< Selects or not the Promiscuous Mode
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
487 This parameter can be a value of @ref ETH_Promiscuous_Mode */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
488
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
489 uint32_t MulticastFramesFilter; /*!< Selects the Multicast Frames filter mode: None/HashTableFilter/PerfectFilter/PerfectHashTableFilter.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
490 This parameter can be a value of @ref ETH_Multicast_Frames_Filter */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
491
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
492 uint32_t UnicastFramesFilter; /*!< Selects the Unicast Frames filter mode: HashTableFilter/PerfectFilter/PerfectHashTableFilter.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
493 This parameter can be a value of @ref ETH_Unicast_Frames_Filter */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
494
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
495 uint32_t HashTableHigh; /*!< This field holds the higher 32 bits of Hash table.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
496 This parameter must be a number between Min_Data = 0x0 and Max_Data = 0xFFFFFFFF */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
497
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
498 uint32_t HashTableLow; /*!< This field holds the lower 32 bits of Hash table.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
499 This parameter must be a number between Min_Data = 0x0 and Max_Data = 0xFFFFFFFF */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
500
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
501 uint32_t PauseTime; /*!< This field holds the value to be used in the Pause Time field in the transmit control frame.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
502 This parameter must be a number between Min_Data = 0x0 and Max_Data = 0xFFFF */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
503
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
504 uint32_t ZeroQuantaPause; /*!< Selects or not the automatic generation of Zero-Quanta Pause Control frames.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
505 This parameter can be a value of @ref ETH_Zero_Quanta_Pause */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
506
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
507 uint32_t PauseLowThreshold; /*!< This field configures the threshold of the PAUSE to be checked for
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
508 automatic retransmission of PAUSE Frame.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
509 This parameter can be a value of @ref ETH_Pause_Low_Threshold */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
510
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
511 uint32_t UnicastPauseFrameDetect; /*!< Selects or not the MAC detection of the Pause frames (with MAC Address0
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
512 unicast address and unique multicast address).
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
513 This parameter can be a value of @ref ETH_Unicast_Pause_Frame_Detect */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
514
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
515 uint32_t ReceiveFlowControl; /*!< Enables or disables the MAC to decode the received Pause frame and
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
516 disable its transmitter for a specified time (Pause Time)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
517 This parameter can be a value of @ref ETH_Receive_Flow_Control */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
518
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
519 uint32_t TransmitFlowControl; /*!< Enables or disables the MAC to transmit Pause frames (Full-Duplex mode)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
520 or the MAC back-pressure operation (Half-Duplex mode)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
521 This parameter can be a value of @ref ETH_Transmit_Flow_Control */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
522
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
523 uint32_t VLANTagComparison; /*!< Selects the 12-bit VLAN identifier or the complete 16-bit VLAN tag for
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
524 comparison and filtering.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
525 This parameter can be a value of @ref ETH_VLAN_Tag_Comparison */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
526
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
527 uint32_t VLANTagIdentifier; /*!< Holds the VLAN tag identifier for receive frames */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
528
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
529 } ETH_MACInitTypeDef;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
530
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
531
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
532 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
533 * @brief ETH DMA Configuration Structure definition
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
534 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
535
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
536 typedef struct
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
537 {
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
538 uint32_t DropTCPIPChecksumErrorFrame; /*!< Selects or not the Dropping of TCP/IP Checksum Error Frames.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
539 This parameter can be a value of @ref ETH_Drop_TCP_IP_Checksum_Error_Frame */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
540
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
541 uint32_t ReceiveStoreForward; /*!< Enables or disables the Receive store and forward mode.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
542 This parameter can be a value of @ref ETH_Receive_Store_Forward */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
543
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
544 uint32_t FlushReceivedFrame; /*!< Enables or disables the flushing of received frames.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
545 This parameter can be a value of @ref ETH_Flush_Received_Frame */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
546
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
547 uint32_t TransmitStoreForward; /*!< Enables or disables Transmit store and forward mode.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
548 This parameter can be a value of @ref ETH_Transmit_Store_Forward */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
549
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
550 uint32_t TransmitThresholdControl; /*!< Selects or not the Transmit Threshold Control.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
551 This parameter can be a value of @ref ETH_Transmit_Threshold_Control */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
552
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
553 uint32_t ForwardErrorFrames; /*!< Selects or not the forward to the DMA of erroneous frames.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
554 This parameter can be a value of @ref ETH_Forward_Error_Frames */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
555
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
556 uint32_t ForwardUndersizedGoodFrames; /*!< Enables or disables the Rx FIFO to forward Undersized frames (frames with no Error
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
557 and length less than 64 bytes) including pad-bytes and CRC)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
558 This parameter can be a value of @ref ETH_Forward_Undersized_Good_Frames */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
559
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
560 uint32_t ReceiveThresholdControl; /*!< Selects the threshold level of the Receive FIFO.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
561 This parameter can be a value of @ref ETH_Receive_Threshold_Control */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
562
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
563 uint32_t SecondFrameOperate; /*!< Selects or not the Operate on second frame mode, which allows the DMA to process a second
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
564 frame of Transmit data even before obtaining the status for the first frame.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
565 This parameter can be a value of @ref ETH_Second_Frame_Operate */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
566
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
567 uint32_t AddressAlignedBeats; /*!< Enables or disables the Address Aligned Beats.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
568 This parameter can be a value of @ref ETH_Address_Aligned_Beats */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
569
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
570 uint32_t FixedBurst; /*!< Enables or disables the AHB Master interface fixed burst transfers.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
571 This parameter can be a value of @ref ETH_Fixed_Burst */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
572
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
573 uint32_t RxDMABurstLength; /*!< Indicates the maximum number of beats to be transferred in one Rx DMA transaction.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
574 This parameter can be a value of @ref ETH_Rx_DMA_Burst_Length */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
575
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
576 uint32_t TxDMABurstLength; /*!< Indicates the maximum number of beats to be transferred in one Tx DMA transaction.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
577 This parameter can be a value of @ref ETH_Tx_DMA_Burst_Length */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
578
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
579 uint32_t EnhancedDescriptorFormat; /*!< Enables the enhanced descriptor format.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
580 This parameter can be a value of @ref ETH_DMA_Enhanced_descriptor_format */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
581
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
582 uint32_t DescriptorSkipLength; /*!< Specifies the number of word to skip between two unchained descriptors (Ring mode)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
583 This parameter must be a number between Min_Data = 0 and Max_Data = 32 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
584
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
585 uint32_t DMAArbitration; /*!< Selects the DMA Tx/Rx arbitration.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
586 This parameter can be a value of @ref ETH_DMA_Arbitration */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
587 } ETH_DMAInitTypeDef;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
588
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
589
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
590 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
591 * @brief ETH DMA Descriptors data structure definition
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
592 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
593
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
594 typedef struct
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
595 {
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
596 __IO uint32_t Status; /*!< Status */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
597
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
598 uint32_t ControlBufferSize; /*!< Control and Buffer1, Buffer2 lengths */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
599
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
600 uint32_t Buffer1Addr; /*!< Buffer1 address pointer */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
601
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
602 uint32_t Buffer2NextDescAddr; /*!< Buffer2 or next descriptor address pointer */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
603
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
604 /*!< Enhanced ETHERNET DMA PTP Descriptors */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
605 uint32_t ExtendedStatus; /*!< Extended status for PTP receive descriptor */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
606
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
607 uint32_t Reserved1; /*!< Reserved */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
608
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
609 uint32_t TimeStampLow; /*!< Time Stamp Low value for transmit and receive */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
610
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
611 uint32_t TimeStampHigh; /*!< Time Stamp High value for transmit and receive */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
612
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
613 } ETH_DMADescTypeDef;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
614
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
615
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
616 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
617 * @brief Received Frame Informations structure definition
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
618 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
619 typedef struct
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
620 {
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
621 ETH_DMADescTypeDef *FSRxDesc; /*!< First Segment Rx Desc */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
622
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
623 ETH_DMADescTypeDef *LSRxDesc; /*!< Last Segment Rx Desc */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
624
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
625 uint32_t SegCount; /*!< Segment count */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
626
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
627 uint32_t length; /*!< Frame length */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
628
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
629 uint32_t buffer; /*!< Frame buffer */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
630
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
631 } ETH_DMARxFrameInfos;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
632
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
633
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
634 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
635 * @brief ETH Handle Structure definition
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
636 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
637
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
638 typedef struct
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
639 {
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
640 ETH_TypeDef *Instance; /*!< Register base address */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
641
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
642 ETH_InitTypeDef Init; /*!< Ethernet Init Configuration */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
643
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
644 uint32_t LinkStatus; /*!< Ethernet link status */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
645
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
646 ETH_DMADescTypeDef *RxDesc; /*!< Rx descriptor to Get */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
647
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
648 ETH_DMADescTypeDef *TxDesc; /*!< Tx descriptor to Set */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
649
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
650 ETH_DMARxFrameInfos RxFrameInfos; /*!< last Rx frame infos */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
651
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
652 __IO HAL_ETH_StateTypeDef State; /*!< ETH communication state */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
653
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
654 HAL_LockTypeDef Lock; /*!< ETH Lock */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
655
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
656 } ETH_HandleTypeDef;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
657
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
658 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
659 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
660 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
661
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
662 /* Exported constants --------------------------------------------------------*/
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
663 /** @defgroup ETH_Exported_Constants ETH Exported Constants
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
664 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
665 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
666
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
667 /** @defgroup ETH_Buffers_setting ETH Buffers setting
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
668 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
669 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
670 #define ETH_MAX_PACKET_SIZE ((uint32_t)1524) /*!< ETH_HEADER + ETH_EXTRA + ETH_VLAN_TAG + ETH_MAX_ETH_PAYLOAD + ETH_CRC */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
671 #define ETH_HEADER ((uint32_t)14) /*!< 6 byte Dest addr, 6 byte Src addr, 2 byte length/type */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
672 #define ETH_CRC ((uint32_t)4) /*!< Ethernet CRC */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
673 #define ETH_EXTRA ((uint32_t)2) /*!< Extra bytes in some cases */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
674 #define ETH_VLAN_TAG ((uint32_t)4) /*!< optional 802.1q VLAN Tag */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
675 #define ETH_MIN_ETH_PAYLOAD ((uint32_t)46) /*!< Minimum Ethernet payload size */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
676 #define ETH_MAX_ETH_PAYLOAD ((uint32_t)1500) /*!< Maximum Ethernet payload size */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
677 #define ETH_JUMBO_FRAME_PAYLOAD ((uint32_t)9000) /*!< Jumbo frame payload size */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
678
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
679 /* Ethernet driver receive buffers are organized in a chained linked-list, when
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
680 an ethernet packet is received, the Rx-DMA will transfer the packet from RxFIFO
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
681 to the driver receive buffers memory.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
682
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
683 Depending on the size of the received ethernet packet and the size of
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
684 each ethernet driver receive buffer, the received packet can take one or more
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
685 ethernet driver receive buffer.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
686
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
687 In below are defined the size of one ethernet driver receive buffer ETH_RX_BUF_SIZE
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
688 and the total count of the driver receive buffers ETH_RXBUFNB.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
689
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
690 The configured value for ETH_RX_BUF_SIZE and ETH_RXBUFNB are only provided as
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
691 example, they can be reconfigured in the application layer to fit the application
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
692 needs */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
693
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
694 /* Here we configure each Ethernet driver receive buffer to fit the Max size Ethernet
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
695 packet */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
696 #ifndef ETH_RX_BUF_SIZE
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
697 #define ETH_RX_BUF_SIZE ETH_MAX_PACKET_SIZE
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
698 #endif
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
699
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
700 /* 5 Ethernet driver receive buffers are used (in a chained linked list)*/
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
701 #ifndef ETH_RXBUFNB
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
702 #define ETH_RXBUFNB ((uint32_t)5 /* 5 Rx buffers of size ETH_RX_BUF_SIZE */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
703 #endif
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
704
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
705
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
706 /* Ethernet driver transmit buffers are organized in a chained linked-list, when
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
707 an ethernet packet is transmitted, Tx-DMA will transfer the packet from the
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
708 driver transmit buffers memory to the TxFIFO.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
709
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
710 Depending on the size of the Ethernet packet to be transmitted and the size of
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
711 each ethernet driver transmit buffer, the packet to be transmitted can take
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
712 one or more ethernet driver transmit buffer.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
713
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
714 In below are defined the size of one ethernet driver transmit buffer ETH_TX_BUF_SIZE
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
715 and the total count of the driver transmit buffers ETH_TXBUFNB.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
716
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
717 The configured value for ETH_TX_BUF_SIZE and ETH_TXBUFNB are only provided as
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
718 example, they can be reconfigured in the application layer to fit the application
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
719 needs */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
720
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
721 /* Here we configure each Ethernet driver transmit buffer to fit the Max size Ethernet
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
722 packet */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
723 #ifndef ETH_TX_BUF_SIZE
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
724 #define ETH_TX_BUF_SIZE ETH_MAX_PACKET_SIZE
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
725 #endif
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
726
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
727 /* 5 ethernet driver transmit buffers are used (in a chained linked list)*/
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
728 #ifndef ETH_TXBUFNB
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
729 #define ETH_TXBUFNB ((uint32_t)5 /* 5 Tx buffers of size ETH_TX_BUF_SIZE */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
730 #endif
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
731
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
732 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
733 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
734 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
735
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
736 /** @defgroup ETH_DMA_TX_Descriptor ETH DMA TX Descriptor
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
737 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
738 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
739
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
740 /*
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
741 DMA Tx Descriptor
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
742 -----------------------------------------------------------------------------------------------
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
743 TDES0 | OWN(31) | CTRL[30:26] | Reserved[25:24] | CTRL[23:20] | Reserved[19:17] | Status[16:0] |
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
744 -----------------------------------------------------------------------------------------------
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
745 TDES1 | Reserved[31:29] | Buffer2 ByteCount[28:16] | Reserved[15:13] | Buffer1 ByteCount[12:0] |
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
746 -----------------------------------------------------------------------------------------------
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
747 TDES2 | Buffer1 Address [31:0] |
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
748 -----------------------------------------------------------------------------------------------
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
749 TDES3 | Buffer2 Address [31:0] / Next Descriptor Address [31:0] |
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
750 -----------------------------------------------------------------------------------------------
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
751 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
752
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
753 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
754 * @brief Bit definition of TDES0 register: DMA Tx descriptor status register
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
755 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
756 #define ETH_DMATXDESC_OWN ((uint32_t)0x80000000) /*!< OWN bit: descriptor is owned by DMA engine */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
757 #define ETH_DMATXDESC_IC ((uint32_t)0x40000000) /*!< Interrupt on Completion */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
758 #define ETH_DMATXDESC_LS ((uint32_t)0x20000000) /*!< Last Segment */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
759 #define ETH_DMATXDESC_FS ((uint32_t)0x10000000) /*!< First Segment */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
760 #define ETH_DMATXDESC_DC ((uint32_t)0x08000000) /*!< Disable CRC */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
761 #define ETH_DMATXDESC_DP ((uint32_t)0x04000000) /*!< Disable Padding */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
762 #define ETH_DMATXDESC_TTSE ((uint32_t)0x02000000) /*!< Transmit Time Stamp Enable */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
763 #define ETH_DMATXDESC_CIC ((uint32_t)0x00C00000) /*!< Checksum Insertion Control: 4 cases */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
764 #define ETH_DMATXDESC_CIC_BYPASS ((uint32_t)0x00000000) /*!< Do Nothing: Checksum Engine is bypassed */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
765 #define ETH_DMATXDESC_CIC_IPV4HEADER ((uint32_t)0x00400000) /*!< IPV4 header Checksum Insertion */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
766 #define ETH_DMATXDESC_CIC_TCPUDPICMP_SEGMENT ((uint32_t)0x00800000) /*!< TCP/UDP/ICMP Checksum Insertion calculated over segment only */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
767 #define ETH_DMATXDESC_CIC_TCPUDPICMP_FULL ((uint32_t)0x00C00000) /*!< TCP/UDP/ICMP Checksum Insertion fully calculated */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
768 #define ETH_DMATXDESC_TER ((uint32_t)0x00200000) /*!< Transmit End of Ring */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
769 #define ETH_DMATXDESC_TCH ((uint32_t)0x00100000) /*!< Second Address Chained */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
770 #define ETH_DMATXDESC_TTSS ((uint32_t)0x00020000) /*!< Tx Time Stamp Status */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
771 #define ETH_DMATXDESC_IHE ((uint32_t)0x00010000) /*!< IP Header Error */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
772 #define ETH_DMATXDESC_ES ((uint32_t)0x00008000) /*!< Error summary: OR of the following bits: UE || ED || EC || LCO || NC || LCA || FF || JT */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
773 #define ETH_DMATXDESC_JT ((uint32_t)0x00004000) /*!< Jabber Timeout */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
774 #define ETH_DMATXDESC_FF ((uint32_t)0x00002000) /*!< Frame Flushed: DMA/MTL flushed the frame due to SW flush */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
775 #define ETH_DMATXDESC_PCE ((uint32_t)0x00001000) /*!< Payload Checksum Error */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
776 #define ETH_DMATXDESC_LCA ((uint32_t)0x00000800) /*!< Loss of Carrier: carrier lost during transmission */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
777 #define ETH_DMATXDESC_NC ((uint32_t)0x00000400) /*!< No Carrier: no carrier signal from the transceiver */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
778 #define ETH_DMATXDESC_LCO ((uint32_t)0x00000200) /*!< Late Collision: transmission aborted due to collision */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
779 #define ETH_DMATXDESC_EC ((uint32_t)0x00000100) /*!< Excessive Collision: transmission aborted after 16 collisions */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
780 #define ETH_DMATXDESC_VF ((uint32_t)0x00000080) /*!< VLAN Frame */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
781 #define ETH_DMATXDESC_CC ((uint32_t)0x00000078) /*!< Collision Count */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
782 #define ETH_DMATXDESC_ED ((uint32_t)0x00000004) /*!< Excessive Deferral */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
783 #define ETH_DMATXDESC_UF ((uint32_t)0x00000002) /*!< Underflow Error: late data arrival from the memory */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
784 #define ETH_DMATXDESC_DB ((uint32_t)0x00000001) /*!< Deferred Bit */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
785
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
786 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
787 * @brief Bit definition of TDES1 register
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
788 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
789 #define ETH_DMATXDESC_TBS2 ((uint32_t)0x1FFF0000) /*!< Transmit Buffer2 Size */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
790 #define ETH_DMATXDESC_TBS1 ((uint32_t)0x00001FFF) /*!< Transmit Buffer1 Size */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
791
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
792 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
793 * @brief Bit definition of TDES2 register
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
794 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
795 #define ETH_DMATXDESC_B1AP ((uint32_t)0xFFFFFFFF) /*!< Buffer1 Address Pointer */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
796
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
797 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
798 * @brief Bit definition of TDES3 register
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
799 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
800 #define ETH_DMATXDESC_B2AP ((uint32_t)0xFFFFFFFF) /*!< Buffer2 Address Pointer */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
801
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
802 /*---------------------------------------------------------------------------------------------
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
803 TDES6 | Transmit Time Stamp Low [31:0] |
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
804 -----------------------------------------------------------------------------------------------
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
805 TDES7 | Transmit Time Stamp High [31:0] |
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
806 ----------------------------------------------------------------------------------------------*/
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
807
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
808 /* Bit definition of TDES6 register */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
809 #define ETH_DMAPTPTXDESC_TTSL ((uint32_t)0xFFFFFFFF) /* Transmit Time Stamp Low */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
810
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
811 /* Bit definition of TDES7 register */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
812 #define ETH_DMAPTPTXDESC_TTSH ((uint32_t)0xFFFFFFFF) /* Transmit Time Stamp High */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
813
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
814 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
815 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
816 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
817 /** @defgroup ETH_DMA_RX_Descriptor ETH DMA RX Descriptor
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
818 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
819 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
820
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
821 /*
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
822 DMA Rx Descriptor
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
823 --------------------------------------------------------------------------------------------------------------------
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
824 RDES0 | OWN(31) | Status [30:0] |
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
825 ---------------------------------------------------------------------------------------------------------------------
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
826 RDES1 | CTRL(31) | Reserved[30:29] | Buffer2 ByteCount[28:16] | CTRL[15:14] | Reserved(13) | Buffer1 ByteCount[12:0] |
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
827 ---------------------------------------------------------------------------------------------------------------------
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
828 RDES2 | Buffer1 Address [31:0] |
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
829 ---------------------------------------------------------------------------------------------------------------------
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
830 RDES3 | Buffer2 Address [31:0] / Next Descriptor Address [31:0] |
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
831 ---------------------------------------------------------------------------------------------------------------------
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
832 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
833
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
834 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
835 * @brief Bit definition of RDES0 register: DMA Rx descriptor status register
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
836 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
837 #define ETH_DMARXDESC_OWN ((uint32_t)0x80000000) /*!< OWN bit: descriptor is owned by DMA engine */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
838 #define ETH_DMARXDESC_AFM ((uint32_t)0x40000000) /*!< DA Filter Fail for the rx frame */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
839 #define ETH_DMARXDESC_FL ((uint32_t)0x3FFF0000) /*!< Receive descriptor frame length */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
840 #define ETH_DMARXDESC_ES ((uint32_t)0x00008000) /*!< Error summary: OR of the following bits: DE || OE || IPC || LC || RWT || RE || CE */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
841 #define ETH_DMARXDESC_DE ((uint32_t)0x00004000) /*!< Descriptor error: no more descriptors for receive frame */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
842 #define ETH_DMARXDESC_SAF ((uint32_t)0x00002000) /*!< SA Filter Fail for the received frame */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
843 #define ETH_DMARXDESC_LE ((uint32_t)0x00001000) /*!< Frame size not matching with length field */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
844 #define ETH_DMARXDESC_OE ((uint32_t)0x00000800) /*!< Overflow Error: Frame was damaged due to buffer overflow */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
845 #define ETH_DMARXDESC_VLAN ((uint32_t)0x00000400) /*!< VLAN Tag: received frame is a VLAN frame */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
846 #define ETH_DMARXDESC_FS ((uint32_t)0x00000200) /*!< First descriptor of the frame */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
847 #define ETH_DMARXDESC_LS ((uint32_t)0x00000100) /*!< Last descriptor of the frame */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
848 #define ETH_DMARXDESC_IPV4HCE ((uint32_t)0x00000080) /*!< IPC Checksum Error: Rx Ipv4 header checksum error */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
849 #define ETH_DMARXDESC_LC ((uint32_t)0x00000040) /*!< Late collision occurred during reception */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
850 #define ETH_DMARXDESC_FT ((uint32_t)0x00000020) /*!< Frame type - Ethernet, otherwise 802.3 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
851 #define ETH_DMARXDESC_RWT ((uint32_t)0x00000010) /*!< Receive Watchdog Timeout: watchdog timer expired during reception */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
852 #define ETH_DMARXDESC_RE ((uint32_t)0x00000008) /*!< Receive error: error reported by MII interface */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
853 #define ETH_DMARXDESC_DBE ((uint32_t)0x00000004) /*!< Dribble bit error: frame contains non int multiple of 8 bits */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
854 #define ETH_DMARXDESC_CE ((uint32_t)0x00000002) /*!< CRC error */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
855 #define ETH_DMARXDESC_MAMPCE ((uint32_t)0x00000001) /*!< Rx MAC Address/Payload Checksum Error: Rx MAC address matched/ Rx Payload Checksum Error */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
856
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
857 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
858 * @brief Bit definition of RDES1 register
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
859 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
860 #define ETH_DMARXDESC_DIC ((uint32_t)0x80000000) /*!< Disable Interrupt on Completion */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
861 #define ETH_DMARXDESC_RBS2 ((uint32_t)0x1FFF0000) /*!< Receive Buffer2 Size */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
862 #define ETH_DMARXDESC_RER ((uint32_t)0x00008000) /*!< Receive End of Ring */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
863 #define ETH_DMARXDESC_RCH ((uint32_t)0x00004000) /*!< Second Address Chained */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
864 #define ETH_DMARXDESC_RBS1 ((uint32_t)0x00001FFF) /*!< Receive Buffer1 Size */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
865
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
866 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
867 * @brief Bit definition of RDES2 register
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
868 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
869 #define ETH_DMARXDESC_B1AP ((uint32_t)0xFFFFFFFF) /*!< Buffer1 Address Pointer */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
870
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
871 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
872 * @brief Bit definition of RDES3 register
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
873 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
874 #define ETH_DMARXDESC_B2AP ((uint32_t)0xFFFFFFFF) /*!< Buffer2 Address Pointer */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
875
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
876 /*---------------------------------------------------------------------------------------------------------------------
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
877 RDES4 | Reserved[31:15] | Extended Status [14:0] |
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
878 ---------------------------------------------------------------------------------------------------------------------
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
879 RDES5 | Reserved[31:0] |
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
880 ---------------------------------------------------------------------------------------------------------------------
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
881 RDES6 | Receive Time Stamp Low [31:0] |
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
882 ---------------------------------------------------------------------------------------------------------------------
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
883 RDES7 | Receive Time Stamp High [31:0] |
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
884 --------------------------------------------------------------------------------------------------------------------*/
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
885
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
886 /* Bit definition of RDES4 register */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
887 #define ETH_DMAPTPRXDESC_PTPV ((uint32_t)0x00002000) /* PTP Version */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
888 #define ETH_DMAPTPRXDESC_PTPFT ((uint32_t)0x00001000) /* PTP Frame Type */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
889 #define ETH_DMAPTPRXDESC_PTPMT ((uint32_t)0x00000F00) /* PTP Message Type */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
890 #define ETH_DMAPTPRXDESC_PTPMT_SYNC ((uint32_t)0x00000100) /* SYNC message (all clock types) */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
891 #define ETH_DMAPTPRXDESC_PTPMT_FOLLOWUP ((uint32_t)0x00000200) /* FollowUp message (all clock types) */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
892 #define ETH_DMAPTPRXDESC_PTPMT_DELAYREQ ((uint32_t)0x00000300) /* DelayReq message (all clock types) */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
893 #define ETH_DMAPTPRXDESC_PTPMT_DELAYRESP ((uint32_t)0x00000400) /* DelayResp message (all clock types) */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
894 #define ETH_DMAPTPRXDESC_PTPMT_PDELAYREQ_ANNOUNCE ((uint32_t)0x00000500) /* PdelayReq message (peer-to-peer transparent clock) or Announce message (Ordinary or Boundary clock) */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
895 #define ETH_DMAPTPRXDESC_PTPMT_PDELAYRESP_MANAG ((uint32_t)0x00000600) /* PdelayResp message (peer-to-peer transparent clock) or Management message (Ordinary or Boundary clock) */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
896 #define ETH_DMAPTPRXDESC_PTPMT_PDELAYRESPFOLLOWUP_SIGNAL ((uint32_t)0x00000700) /* PdelayRespFollowUp message (peer-to-peer transparent clock) or Signaling message (Ordinary or Boundary clock) */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
897 #define ETH_DMAPTPRXDESC_IPV6PR ((uint32_t)0x00000080) /* IPv6 Packet Received */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
898 #define ETH_DMAPTPRXDESC_IPV4PR ((uint32_t)0x00000040) /* IPv4 Packet Received */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
899 #define ETH_DMAPTPRXDESC_IPCB ((uint32_t)0x00000020) /* IP Checksum Bypassed */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
900 #define ETH_DMAPTPRXDESC_IPPE ((uint32_t)0x00000010) /* IP Payload Error */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
901 #define ETH_DMAPTPRXDESC_IPHE ((uint32_t)0x00000008) /* IP Header Error */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
902 #define ETH_DMAPTPRXDESC_IPPT ((uint32_t)0x00000007) /* IP Payload Type */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
903 #define ETH_DMAPTPRXDESC_IPPT_UDP ((uint32_t)0x00000001) /* UDP payload encapsulated in the IP datagram */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
904 #define ETH_DMAPTPRXDESC_IPPT_TCP ((uint32_t)0x00000002) /* TCP payload encapsulated in the IP datagram */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
905 #define ETH_DMAPTPRXDESC_IPPT_ICMP ((uint32_t)0x00000003) /* ICMP payload encapsulated in the IP datagram */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
906
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
907 /* Bit definition of RDES6 register */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
908 #define ETH_DMAPTPRXDESC_RTSL ((uint32_t)0xFFFFFFFF) /* Receive Time Stamp Low */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
909
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
910 /* Bit definition of RDES7 register */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
911 #define ETH_DMAPTPRXDESC_RTSH ((uint32_t)0xFFFFFFFF) /* Receive Time Stamp High */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
912 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
913 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
914 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
915 /** @defgroup ETH_AutoNegotiation ETH AutoNegotiation
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
916 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
917 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
918 #define ETH_AUTONEGOTIATION_ENABLE ((uint32_t)0x00000001)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
919 #define ETH_AUTONEGOTIATION_DISABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
920
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
921 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
922 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
923 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
924 /** @defgroup ETH_Speed ETH Speed
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
925 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
926 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
927 #define ETH_SPEED_10M ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
928 #define ETH_SPEED_100M ((uint32_t)0x00004000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
929
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
930 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
931 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
932 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
933 /** @defgroup ETH_Duplex_Mode ETH Duplex Mode
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
934 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
935 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
936 #define ETH_MODE_FULLDUPLEX ((uint32_t)0x00000800)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
937 #define ETH_MODE_HALFDUPLEX ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
938 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
939 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
940 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
941 /** @defgroup ETH_Rx_Mode ETH Rx Mode
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
942 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
943 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
944 #define ETH_RXPOLLING_MODE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
945 #define ETH_RXINTERRUPT_MODE ((uint32_t)0x00000001)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
946 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
947 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
948 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
949
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
950 /** @defgroup ETH_Checksum_Mode ETH Checksum Mode
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
951 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
952 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
953 #define ETH_CHECKSUM_BY_HARDWARE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
954 #define ETH_CHECKSUM_BY_SOFTWARE ((uint32_t)0x00000001)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
955 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
956 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
957 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
958
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
959 /** @defgroup ETH_Media_Interface ETH Media Interface
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
960 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
961 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
962 #define ETH_MEDIA_INTERFACE_MII ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
963 #define ETH_MEDIA_INTERFACE_RMII ((uint32_t)SYSCFG_PMC_MII_RMII_SEL)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
964 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
965 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
966 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
967
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
968 /** @defgroup ETH_Watchdog ETH Watchdog
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
969 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
970 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
971 #define ETH_WATCHDOG_ENABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
972 #define ETH_WATCHDOG_DISABLE ((uint32_t)0x00800000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
973 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
974 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
975 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
976
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
977 /** @defgroup ETH_Jabber ETH Jabber
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
978 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
979 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
980 #define ETH_JABBER_ENABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
981 #define ETH_JABBER_DISABLE ((uint32_t)0x00400000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
982 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
983 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
984 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
985
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
986 /** @defgroup ETH_Inter_Frame_Gap ETH Inter Frame Gap
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
987 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
988 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
989 #define ETH_INTERFRAMEGAP_96BIT ((uint32_t)0x00000000) /*!< minimum IFG between frames during transmission is 96Bit */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
990 #define ETH_INTERFRAMEGAP_88BIT ((uint32_t)0x00020000) /*!< minimum IFG between frames during transmission is 88Bit */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
991 #define ETH_INTERFRAMEGAP_80BIT ((uint32_t)0x00040000) /*!< minimum IFG between frames during transmission is 80Bit */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
992 #define ETH_INTERFRAMEGAP_72BIT ((uint32_t)0x00060000) /*!< minimum IFG between frames during transmission is 72Bit */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
993 #define ETH_INTERFRAMEGAP_64BIT ((uint32_t)0x00080000) /*!< minimum IFG between frames during transmission is 64Bit */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
994 #define ETH_INTERFRAMEGAP_56BIT ((uint32_t)0x000A0000) /*!< minimum IFG between frames during transmission is 56Bit */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
995 #define ETH_INTERFRAMEGAP_48BIT ((uint32_t)0x000C0000) /*!< minimum IFG between frames during transmission is 48Bit */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
996 #define ETH_INTERFRAMEGAP_40BIT ((uint32_t)0x000E0000) /*!< minimum IFG between frames during transmission is 40Bit */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
997 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
998 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
999 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1000
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1001 /** @defgroup ETH_Carrier_Sense ETH Carrier Sense
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1002 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1003 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1004 #define ETH_CARRIERSENCE_ENABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1005 #define ETH_CARRIERSENCE_DISABLE ((uint32_t)0x00010000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1006 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1007 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1008 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1009
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1010 /** @defgroup ETH_Receive_Own ETH Receive Own
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1011 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1012 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1013 #define ETH_RECEIVEOWN_ENABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1014 #define ETH_RECEIVEOWN_DISABLE ((uint32_t)0x00002000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1015 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1016 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1017 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1018
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1019 /** @defgroup ETH_Loop_Back_Mode ETH Loop Back Mode
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1020 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1021 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1022 #define ETH_LOOPBACKMODE_ENABLE ((uint32_t)0x00001000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1023 #define ETH_LOOPBACKMODE_DISABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1024 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1025 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1026 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1027
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1028 /** @defgroup ETH_Checksum_Offload ETH Checksum Offload
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1029 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1030 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1031 #define ETH_CHECKSUMOFFLAOD_ENABLE ((uint32_t)0x00000400)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1032 #define ETH_CHECKSUMOFFLAOD_DISABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1033 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1034 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1035 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1036
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1037 /** @defgroup ETH_Retry_Transmission ETH Retry Transmission
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1038 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1039 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1040 #define ETH_RETRYTRANSMISSION_ENABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1041 #define ETH_RETRYTRANSMISSION_DISABLE ((uint32_t)0x00000200)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1042 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1043 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1044 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1045
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1046 /** @defgroup ETH_Automatic_Pad_CRC_Strip ETH Automatic Pad CRC Strip
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1047 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1048 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1049 #define ETH_AUTOMATICPADCRCSTRIP_ENABLE ((uint32_t)0x00000080)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1050 #define ETH_AUTOMATICPADCRCSTRIP_DISABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1051 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1052 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1053 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1054
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1055 /** @defgroup ETH_Back_Off_Limit ETH Back Off Limit
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1056 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1057 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1058 #define ETH_BACKOFFLIMIT_10 ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1059 #define ETH_BACKOFFLIMIT_8 ((uint32_t)0x00000020)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1060 #define ETH_BACKOFFLIMIT_4 ((uint32_t)0x00000040)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1061 #define ETH_BACKOFFLIMIT_1 ((uint32_t)0x00000060)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1062 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1063 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1064 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1065
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1066 /** @defgroup ETH_Deferral_Check ETH Deferral Check
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1067 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1068 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1069 #define ETH_DEFFERRALCHECK_ENABLE ((uint32_t)0x00000010)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1070 #define ETH_DEFFERRALCHECK_DISABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1071 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1072 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1073 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1074
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1075 /** @defgroup ETH_Receive_All ETH Receive All
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1076 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1077 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1078 #define ETH_RECEIVEALL_ENABLE ((uint32_t)0x80000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1079 #define ETH_RECEIVEAll_DISABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1080 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1081 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1082 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1083
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1084 /** @defgroup ETH_Source_Addr_Filter ETH Source Addr Filter
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1085 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1086 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1087 #define ETH_SOURCEADDRFILTER_NORMAL_ENABLE ((uint32_t)0x00000200)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1088 #define ETH_SOURCEADDRFILTER_INVERSE_ENABLE ((uint32_t)0x00000300)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1089 #define ETH_SOURCEADDRFILTER_DISABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1090 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1091 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1092 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1093
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1094 /** @defgroup ETH_Pass_Control_Frames ETH Pass Control Frames
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1095 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1096 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1097 #define ETH_PASSCONTROLFRAMES_BLOCKALL ((uint32_t)0x00000040) /*!< MAC filters all control frames from reaching the application */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1098 #define ETH_PASSCONTROLFRAMES_FORWARDALL ((uint32_t)0x00000080) /*!< MAC forwards all control frames to application even if they fail the Address Filter */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1099 #define ETH_PASSCONTROLFRAMES_FORWARDPASSEDADDRFILTER ((uint32_t)0x000000C0) /*!< MAC forwards control frames that pass the Address Filter. */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1100 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1101 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1102 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1103
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1104 /** @defgroup ETH_Broadcast_Frames_Reception ETH Broadcast Frames Reception
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1105 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1106 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1107 #define ETH_BROADCASTFRAMESRECEPTION_ENABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1108 #define ETH_BROADCASTFRAMESRECEPTION_DISABLE ((uint32_t)0x00000020)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1109 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1110 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1111 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1112
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1113 /** @defgroup ETH_Destination_Addr_Filter ETH Destination Addr Filter
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1114 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1115 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1116 #define ETH_DESTINATIONADDRFILTER_NORMAL ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1117 #define ETH_DESTINATIONADDRFILTER_INVERSE ((uint32_t)0x00000008)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1118 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1119 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1120 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1121
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1122 /** @defgroup ETH_Promiscuous_Mode ETH Promiscuous Mode
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1123 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1124 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1125 #define ETH_PROMISCUOUS_MODE_ENABLE ((uint32_t)0x00000001)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1126 #define ETH_PROMISCUOUS_MODE_DISABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1127 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1128 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1129 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1130
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1131 /** @defgroup ETH_Multicast_Frames_Filter ETH Multicast Frames Filter
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1132 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1133 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1134 #define ETH_MULTICASTFRAMESFILTER_PERFECTHASHTABLE ((uint32_t)0x00000404)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1135 #define ETH_MULTICASTFRAMESFILTER_HASHTABLE ((uint32_t)0x00000004)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1136 #define ETH_MULTICASTFRAMESFILTER_PERFECT ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1137 #define ETH_MULTICASTFRAMESFILTER_NONE ((uint32_t)0x00000010)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1138 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1139 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1140 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1141
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1142 /** @defgroup ETH_Unicast_Frames_Filter ETH Unicast Frames Filter
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1143 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1144 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1145 #define ETH_UNICASTFRAMESFILTER_PERFECTHASHTABLE ((uint32_t)0x00000402)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1146 #define ETH_UNICASTFRAMESFILTER_HASHTABLE ((uint32_t)0x00000002)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1147 #define ETH_UNICASTFRAMESFILTER_PERFECT ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1148 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1149 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1150 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1151
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1152 /** @defgroup ETH_Zero_Quanta_Pause ETH Zero Quanta Pause
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1153 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1154 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1155 #define ETH_ZEROQUANTAPAUSE_ENABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1156 #define ETH_ZEROQUANTAPAUSE_DISABLE ((uint32_t)0x00000080)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1157 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1158 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1159 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1160
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1161 /** @defgroup ETH_Pause_Low_Threshold ETH Pause Low Threshold
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1162 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1163 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1164 #define ETH_PAUSELOWTHRESHOLD_MINUS4 ((uint32_t)0x00000000) /*!< Pause time minus 4 slot times */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1165 #define ETH_PAUSELOWTHRESHOLD_MINUS28 ((uint32_t)0x00000010) /*!< Pause time minus 28 slot times */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1166 #define ETH_PAUSELOWTHRESHOLD_MINUS144 ((uint32_t)0x00000020) /*!< Pause time minus 144 slot times */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1167 #define ETH_PAUSELOWTHRESHOLD_MINUS256 ((uint32_t)0x00000030) /*!< Pause time minus 256 slot times */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1168 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1169 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1170 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1171
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1172 /** @defgroup ETH_Unicast_Pause_Frame_Detect ETH Unicast Pause Frame Detect
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1173 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1174 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1175 #define ETH_UNICASTPAUSEFRAMEDETECT_ENABLE ((uint32_t)0x00000008)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1176 #define ETH_UNICASTPAUSEFRAMEDETECT_DISABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1177 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1178 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1179 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1180
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1181 /** @defgroup ETH_Receive_Flow_Control ETH Receive Flow Control
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1182 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1183 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1184 #define ETH_RECEIVEFLOWCONTROL_ENABLE ((uint32_t)0x00000004)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1185 #define ETH_RECEIVEFLOWCONTROL_DISABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1186 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1187 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1188 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1189
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1190 /** @defgroup ETH_Transmit_Flow_Control ETH Transmit Flow Control
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1191 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1192 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1193 #define ETH_TRANSMITFLOWCONTROL_ENABLE ((uint32_t)0x00000002)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1194 #define ETH_TRANSMITFLOWCONTROL_DISABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1195 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1196 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1197 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1198
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1199 /** @defgroup ETH_VLAN_Tag_Comparison ETH VLAN Tag Comparison
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1200 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1201 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1202 #define ETH_VLANTAGCOMPARISON_12BIT ((uint32_t)0x00010000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1203 #define ETH_VLANTAGCOMPARISON_16BIT ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1204 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1205 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1206 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1207
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1208 /** @defgroup ETH_MAC_addresses ETH MAC addresses
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1209 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1210 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1211 #define ETH_MAC_ADDRESS0 ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1212 #define ETH_MAC_ADDRESS1 ((uint32_t)0x00000008)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1213 #define ETH_MAC_ADDRESS2 ((uint32_t)0x00000010)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1214 #define ETH_MAC_ADDRESS3 ((uint32_t)0x00000018)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1215 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1216 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1217 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1218
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1219 /** @defgroup ETH_MAC_addresses_filter_SA_DA ETH MAC addresses filter SA DA
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1220 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1221 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1222 #define ETH_MAC_ADDRESSFILTER_SA ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1223 #define ETH_MAC_ADDRESSFILTER_DA ((uint32_t)0x00000008)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1224 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1225 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1226 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1227
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1228 /** @defgroup ETH_MAC_addresses_filter_Mask_bytes ETH MAC addresses filter Mask bytes
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1229 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1230 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1231 #define ETH_MAC_ADDRESSMASK_BYTE6 ((uint32_t)0x20000000) /*!< Mask MAC Address high reg bits [15:8] */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1232 #define ETH_MAC_ADDRESSMASK_BYTE5 ((uint32_t)0x10000000) /*!< Mask MAC Address high reg bits [7:0] */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1233 #define ETH_MAC_ADDRESSMASK_BYTE4 ((uint32_t)0x08000000) /*!< Mask MAC Address low reg bits [31:24] */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1234 #define ETH_MAC_ADDRESSMASK_BYTE3 ((uint32_t)0x04000000) /*!< Mask MAC Address low reg bits [23:16] */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1235 #define ETH_MAC_ADDRESSMASK_BYTE2 ((uint32_t)0x02000000) /*!< Mask MAC Address low reg bits [15:8] */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1236 #define ETH_MAC_ADDRESSMASK_BYTE1 ((uint32_t)0x01000000) /*!< Mask MAC Address low reg bits [70] */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1237 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1238 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1239 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1240
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1241 /** @defgroup ETH_MAC_Debug_flags ETH MAC Debug flags
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1242 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1243 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1244 #define ETH_MAC_TXFIFO_FULL ((uint32_t)0x02000000) /* Tx FIFO full */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1245 #define ETH_MAC_TXFIFONOT_EMPTY ((uint32_t)0x01000000) /* Tx FIFO not empty */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1246 #define ETH_MAC_TXFIFO_WRITE_ACTIVE ((uint32_t)0x00400000) /* Tx FIFO write active */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1247 #define ETH_MAC_TXFIFO_IDLE ((uint32_t)0x00000000) /* Tx FIFO read status: Idle */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1248 #define ETH_MAC_TXFIFO_READ ((uint32_t)0x00100000) /* Tx FIFO read status: Read (transferring data to the MAC transmitter) */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1249 #define ETH_MAC_TXFIFO_WAITING ((uint32_t)0x00200000) /* Tx FIFO read status: Waiting for TxStatus from MAC transmitter */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1250 #define ETH_MAC_TXFIFO_WRITING ((uint32_t)0x00300000) /* Tx FIFO read status: Writing the received TxStatus or flushing the TxFIFO */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1251 #define ETH_MAC_TRANSMISSION_PAUSE ((uint32_t)0x00080000) /* MAC transmitter in pause */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1252 #define ETH_MAC_TRANSMITFRAMECONTROLLER_IDLE ((uint32_t)0x00000000) /* MAC transmit frame controller: Idle */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1253 #define ETH_MAC_TRANSMITFRAMECONTROLLER_WAITING ((uint32_t)0x00020000) /* MAC transmit frame controller: Waiting for Status of previous frame or IFG/backoff period to be over */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1254 #define ETH_MAC_TRANSMITFRAMECONTROLLER_GENRATING_PCF ((uint32_t)0x00040000) /* MAC transmit frame controller: Generating and transmitting a Pause control frame (in full duplex mode) */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1255 #define ETH_MAC_TRANSMITFRAMECONTROLLER_TRANSFERRING ((uint32_t)0x00060000) /* MAC transmit frame controller: Transferring input frame for transmission */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1256 #define ETH_MAC_MII_TRANSMIT_ACTIVE ((uint32_t)0x00010000) /* MAC MII transmit engine active */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1257 #define ETH_MAC_RXFIFO_EMPTY ((uint32_t)0x00000000) /* Rx FIFO fill level: empty */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1258 #define ETH_MAC_RXFIFO_BELOW_THRESHOLD ((uint32_t)0x00000100) /* Rx FIFO fill level: fill-level below flow-control de-activate threshold */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1259 #define ETH_MAC_RXFIFO_ABOVE_THRESHOLD ((uint32_t)0x00000200) /* Rx FIFO fill level: fill-level above flow-control activate threshold */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1260 #define ETH_MAC_RXFIFO_FULL ((uint32_t)0x00000300) /* Rx FIFO fill level: full */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1261 #define ETH_MAC_READCONTROLLER_IDLE ((uint32_t)0x00000060) /* Rx FIFO read controller IDLE state */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1262 #define ETH_MAC_READCONTROLLER_READING_DATA ((uint32_t)0x00000060) /* Rx FIFO read controller Reading frame data */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1263 #define ETH_MAC_READCONTROLLER_READING_STATUS ((uint32_t)0x00000060) /* Rx FIFO read controller Reading frame status (or time-stamp) */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1264 #define ETH_MAC_READCONTROLLER_ FLUSHING ((uint32_t)0x00000060) /* Rx FIFO read controller Flushing the frame data and status */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1265 #define ETH_MAC_RXFIFO_WRITE_ACTIVE ((uint32_t)0x00000010) /* Rx FIFO write controller active */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1266 #define ETH_MAC_SMALL_FIFO_NOTACTIVE ((uint32_t)0x00000000) /* MAC small FIFO read / write controllers not active */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1267 #define ETH_MAC_SMALL_FIFO_READ_ACTIVE ((uint32_t)0x00000002) /* MAC small FIFO read controller active */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1268 #define ETH_MAC_SMALL_FIFO_WRITE_ACTIVE ((uint32_t)0x00000004) /* MAC small FIFO write controller active */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1269 #define ETH_MAC_SMALL_FIFO_RW_ACTIVE ((uint32_t)0x00000006) /* MAC small FIFO read / write controllers active */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1270 #define ETH_MAC_MII_RECEIVE_PROTOCOL_ACTIVE ((uint32_t)0x00000001) /* MAC MII receive protocol engine active */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1271 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1272 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1273 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1274
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1275 /** @defgroup ETH_Drop_TCP_IP_Checksum_Error_Frame ETH Drop TCP IP Checksum Error Frame
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1276 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1277 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1278 #define ETH_DROPTCPIPCHECKSUMERRORFRAME_ENABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1279 #define ETH_DROPTCPIPCHECKSUMERRORFRAME_DISABLE ((uint32_t)0x04000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1280 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1281 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1282 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1283
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1284 /** @defgroup ETH_Receive_Store_Forward ETH Receive Store Forward
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1285 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1286 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1287 #define ETH_RECEIVESTOREFORWARD_ENABLE ((uint32_t)0x02000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1288 #define ETH_RECEIVESTOREFORWARD_DISABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1289 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1290 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1291 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1292
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1293 /** @defgroup ETH_Flush_Received_Frame ETH Flush Received Frame
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1294 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1295 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1296 #define ETH_FLUSHRECEIVEDFRAME_ENABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1297 #define ETH_FLUSHRECEIVEDFRAME_DISABLE ((uint32_t)0x01000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1298 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1299 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1300 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1301
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1302 /** @defgroup ETH_Transmit_Store_Forward ETH Transmit Store Forward
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1303 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1304 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1305 #define ETH_TRANSMITSTOREFORWARD_ENABLE ((uint32_t)0x00200000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1306 #define ETH_TRANSMITSTOREFORWARD_DISABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1307 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1308 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1309 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1310
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1311 /** @defgroup ETH_Transmit_Threshold_Control ETH Transmit Threshold Control
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1312 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1313 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1314 #define ETH_TRANSMITTHRESHOLDCONTROL_64BYTES ((uint32_t)0x00000000) /*!< threshold level of the MTL Transmit FIFO is 64 Bytes */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1315 #define ETH_TRANSMITTHRESHOLDCONTROL_128BYTES ((uint32_t)0x00004000) /*!< threshold level of the MTL Transmit FIFO is 128 Bytes */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1316 #define ETH_TRANSMITTHRESHOLDCONTROL_192BYTES ((uint32_t)0x00008000) /*!< threshold level of the MTL Transmit FIFO is 192 Bytes */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1317 #define ETH_TRANSMITTHRESHOLDCONTROL_256BYTES ((uint32_t)0x0000C000) /*!< threshold level of the MTL Transmit FIFO is 256 Bytes */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1318 #define ETH_TRANSMITTHRESHOLDCONTROL_40BYTES ((uint32_t)0x00010000) /*!< threshold level of the MTL Transmit FIFO is 40 Bytes */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1319 #define ETH_TRANSMITTHRESHOLDCONTROL_32BYTES ((uint32_t)0x00014000) /*!< threshold level of the MTL Transmit FIFO is 32 Bytes */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1320 #define ETH_TRANSMITTHRESHOLDCONTROL_24BYTES ((uint32_t)0x00018000) /*!< threshold level of the MTL Transmit FIFO is 24 Bytes */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1321 #define ETH_TRANSMITTHRESHOLDCONTROL_16BYTES ((uint32_t)0x0001C000) /*!< threshold level of the MTL Transmit FIFO is 16 Bytes */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1322 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1323 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1324 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1325
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1326 /** @defgroup ETH_Forward_Error_Frames ETH Forward Error Frames
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1327 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1328 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1329 #define ETH_FORWARDERRORFRAMES_ENABLE ((uint32_t)0x00000080)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1330 #define ETH_FORWARDERRORFRAMES_DISABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1331 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1332 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1333 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1334
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1335 /** @defgroup ETH_Forward_Undersized_Good_Frames ETH Forward Undersized Good Frames
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1336 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1337 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1338 #define ETH_FORWARDUNDERSIZEDGOODFRAMES_ENABLE ((uint32_t)0x00000040)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1339 #define ETH_FORWARDUNDERSIZEDGOODFRAMES_DISABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1340 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1341 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1342 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1343
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1344 /** @defgroup ETH_Receive_Threshold_Control ETH Receive Threshold Control
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1345 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1346 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1347 #define ETH_RECEIVEDTHRESHOLDCONTROL_64BYTES ((uint32_t)0x00000000) /*!< threshold level of the MTL Receive FIFO is 64 Bytes */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1348 #define ETH_RECEIVEDTHRESHOLDCONTROL_32BYTES ((uint32_t)0x00000008) /*!< threshold level of the MTL Receive FIFO is 32 Bytes */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1349 #define ETH_RECEIVEDTHRESHOLDCONTROL_96BYTES ((uint32_t)0x00000010) /*!< threshold level of the MTL Receive FIFO is 96 Bytes */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1350 #define ETH_RECEIVEDTHRESHOLDCONTROL_128BYTES ((uint32_t)0x00000018) /*!< threshold level of the MTL Receive FIFO is 128 Bytes */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1351 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1352 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1353 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1354
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1355 /** @defgroup ETH_Second_Frame_Operate ETH Second Frame Operate
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1356 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1357 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1358 #define ETH_SECONDFRAMEOPERARTE_ENABLE ((uint32_t)0x00000004)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1359 #define ETH_SECONDFRAMEOPERARTE_DISABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1360 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1361 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1362 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1363
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1364 /** @defgroup ETH_Address_Aligned_Beats ETH Address Aligned Beats
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1365 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1366 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1367 #define ETH_ADDRESSALIGNEDBEATS_ENABLE ((uint32_t)0x02000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1368 #define ETH_ADDRESSALIGNEDBEATS_DISABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1369 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1370 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1371 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1372
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1373 /** @defgroup ETH_Fixed_Burst ETH Fixed Burst
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1374 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1375 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1376 #define ETH_FIXEDBURST_ENABLE ((uint32_t)0x00010000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1377 #define ETH_FIXEDBURST_DISABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1378 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1379 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1380 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1381
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1382 /** @defgroup ETH_Rx_DMA_Burst_Length ETH Rx DMA Burst Length
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1383 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1384 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1385 #define ETH_RXDMABURSTLENGTH_1BEAT ((uint32_t)0x00020000) /*!< maximum number of beats to be transferred in one RxDMA transaction is 1 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1386 #define ETH_RXDMABURSTLENGTH_2BEAT ((uint32_t)0x00040000) /*!< maximum number of beats to be transferred in one RxDMA transaction is 2 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1387 #define ETH_RXDMABURSTLENGTH_4BEAT ((uint32_t)0x00080000) /*!< maximum number of beats to be transferred in one RxDMA transaction is 4 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1388 #define ETH_RXDMABURSTLENGTH_8BEAT ((uint32_t)0x00100000) /*!< maximum number of beats to be transferred in one RxDMA transaction is 8 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1389 #define ETH_RXDMABURSTLENGTH_16BEAT ((uint32_t)0x00200000) /*!< maximum number of beats to be transferred in one RxDMA transaction is 16 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1390 #define ETH_RXDMABURSTLENGTH_32BEAT ((uint32_t)0x00400000) /*!< maximum number of beats to be transferred in one RxDMA transaction is 32 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1391 #define ETH_RXDMABURSTLENGTH_4XPBL_4BEAT ((uint32_t)0x01020000) /*!< maximum number of beats to be transferred in one RxDMA transaction is 4 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1392 #define ETH_RXDMABURSTLENGTH_4XPBL_8BEAT ((uint32_t)0x01040000) /*!< maximum number of beats to be transferred in one RxDMA transaction is 8 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1393 #define ETH_RXDMABURSTLENGTH_4XPBL_16BEAT ((uint32_t)0x01080000) /*!< maximum number of beats to be transferred in one RxDMA transaction is 16 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1394 #define ETH_RXDMABURSTLENGTH_4XPBL_32BEAT ((uint32_t)0x01100000) /*!< maximum number of beats to be transferred in one RxDMA transaction is 32 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1395 #define ETH_RXDMABURSTLENGTH_4XPBL_64BEAT ((uint32_t)0x01200000) /*!< maximum number of beats to be transferred in one RxDMA transaction is 64 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1396 #define ETH_RXDMABURSTLENGTH_4XPBL_128BEAT ((uint32_t)0x01400000) /*!< maximum number of beats to be transferred in one RxDMA transaction is 128 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1397 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1398 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1399 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1400
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1401 /** @defgroup ETH_Tx_DMA_Burst_Length ETH Tx DMA Burst Length
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1402 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1403 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1404 #define ETH_TXDMABURSTLENGTH_1BEAT ((uint32_t)0x00000100) /*!< maximum number of beats to be transferred in one TxDMA (or both) transaction is 1 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1405 #define ETH_TXDMABURSTLENGTH_2BEAT ((uint32_t)0x00000200) /*!< maximum number of beats to be transferred in one TxDMA (or both) transaction is 2 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1406 #define ETH_TXDMABURSTLENGTH_4BEAT ((uint32_t)0x00000400) /*!< maximum number of beats to be transferred in one TxDMA (or both) transaction is 4 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1407 #define ETH_TXDMABURSTLENGTH_8BEAT ((uint32_t)0x00000800) /*!< maximum number of beats to be transferred in one TxDMA (or both) transaction is 8 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1408 #define ETH_TXDMABURSTLENGTH_16BEAT ((uint32_t)0x00001000) /*!< maximum number of beats to be transferred in one TxDMA (or both) transaction is 16 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1409 #define ETH_TXDMABURSTLENGTH_32BEAT ((uint32_t)0x00002000) /*!< maximum number of beats to be transferred in one TxDMA (or both) transaction is 32 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1410 #define ETH_TXDMABURSTLENGTH_4XPBL_4BEAT ((uint32_t)0x01000100) /*!< maximum number of beats to be transferred in one TxDMA (or both) transaction is 4 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1411 #define ETH_TXDMABURSTLENGTH_4XPBL_8BEAT ((uint32_t)0x01000200) /*!< maximum number of beats to be transferred in one TxDMA (or both) transaction is 8 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1412 #define ETH_TXDMABURSTLENGTH_4XPBL_16BEAT ((uint32_t)0x01000400) /*!< maximum number of beats to be transferred in one TxDMA (or both) transaction is 16 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1413 #define ETH_TXDMABURSTLENGTH_4XPBL_32BEAT ((uint32_t)0x01000800) /*!< maximum number of beats to be transferred in one TxDMA (or both) transaction is 32 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1414 #define ETH_TXDMABURSTLENGTH_4XPBL_64BEAT ((uint32_t)0x01001000) /*!< maximum number of beats to be transferred in one TxDMA (or both) transaction is 64 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1415 #define ETH_TXDMABURSTLENGTH_4XPBL_128BEAT ((uint32_t)0x01002000) /*!< maximum number of beats to be transferred in one TxDMA (or both) transaction is 128 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1416 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1417 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1418 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1419
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1420 /** @defgroup ETH_DMA_Enhanced_descriptor_format ETH DMA Enhanced descriptor format
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1421 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1422 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1423 #define ETH_DMAENHANCEDDESCRIPTOR_ENABLE ((uint32_t)0x00000080)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1424 #define ETH_DMAENHANCEDDESCRIPTOR_DISABLE ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1425 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1426 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1427 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1428
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1429 /** @defgroup ETH_DMA_Arbitration ETH DMA Arbitration
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1430 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1431 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1432 #define ETH_DMAARBITRATION_ROUNDROBIN_RXTX_1_1 ((uint32_t)0x00000000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1433 #define ETH_DMAARBITRATION_ROUNDROBIN_RXTX_2_1 ((uint32_t)0x00004000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1434 #define ETH_DMAARBITRATION_ROUNDROBIN_RXTX_3_1 ((uint32_t)0x00008000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1435 #define ETH_DMAARBITRATION_ROUNDROBIN_RXTX_4_1 ((uint32_t)0x0000C000)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1436 #define ETH_DMAARBITRATION_RXPRIORTX ((uint32_t)0x00000002)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1437 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1438 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1439 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1440
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1441 /** @defgroup ETH_DMA_Tx_descriptor_segment ETH DMA Tx descriptor segment
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1442 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1443 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1444 #define ETH_DMATXDESC_LASTSEGMENTS ((uint32_t)0x40000000) /*!< Last Segment */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1445 #define ETH_DMATXDESC_FIRSTSEGMENT ((uint32_t)0x20000000) /*!< First Segment */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1446 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1447 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1448 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1449
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1450 /** @defgroup ETH_DMA_Tx_descriptor_Checksum_Insertion_Control ETH DMA Tx descriptor Checksum Insertion Control
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1451 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1452 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1453 #define ETH_DMATXDESC_CHECKSUMBYPASS ((uint32_t)0x00000000) /*!< Checksum engine bypass */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1454 #define ETH_DMATXDESC_CHECKSUMIPV4HEADER ((uint32_t)0x00400000) /*!< IPv4 header checksum insertion */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1455 #define ETH_DMATXDESC_CHECKSUMTCPUDPICMPSEGMENT ((uint32_t)0x00800000) /*!< TCP/UDP/ICMP checksum insertion. Pseudo header checksum is assumed to be present */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1456 #define ETH_DMATXDESC_CHECKSUMTCPUDPICMPFULL ((uint32_t)0x00C00000) /*!< TCP/UDP/ICMP checksum fully in hardware including pseudo header */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1457 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1458 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1459 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1460
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1461 /** @defgroup ETH_DMA_Rx_descriptor_buffers ETH DMA Rx descriptor buffers
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1462 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1463 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1464 #define ETH_DMARXDESC_BUFFER1 ((uint32_t)0x00000000) /*!< DMA Rx Desc Buffer1 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1465 #define ETH_DMARXDESC_BUFFER2 ((uint32_t)0x00000001) /*!< DMA Rx Desc Buffer2 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1466 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1467 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1468 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1469
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1470 /** @defgroup ETH_PMT_Flags ETH PMT Flags
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1471 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1472 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1473 #define ETH_PMT_FLAG_WUFFRPR ((uint32_t)0x80000000) /*!< Wake-Up Frame Filter Register Pointer Reset */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1474 #define ETH_PMT_FLAG_WUFR ((uint32_t)0x00000040) /*!< Wake-Up Frame Received */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1475 #define ETH_PMT_FLAG_MPR ((uint32_t)0x00000020) /*!< Magic Packet Received */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1476 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1477 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1478 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1479
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1480 /** @defgroup ETH_MMC_Tx_Interrupts ETH MMC Tx Interrupts
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1481 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1482 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1483 #define ETH_MMC_IT_TGF ((uint32_t)0x00200000) /*!< When Tx good frame counter reaches half the maximum value */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1484 #define ETH_MMC_IT_TGFMSC ((uint32_t)0x00008000) /*!< When Tx good multi col counter reaches half the maximum value */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1485 #define ETH_MMC_IT_TGFSC ((uint32_t)0x00004000) /*!< When Tx good single col counter reaches half the maximum value */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1486 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1487 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1488 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1489
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1490 /** @defgroup ETH_MMC_Rx_Interrupts ETH MMC Rx Interrupts
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1491 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1492 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1493 #define ETH_MMC_IT_RGUF ((uint32_t)0x10020000) /*!< When Rx good unicast frames counter reaches half the maximum value */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1494 #define ETH_MMC_IT_RFAE ((uint32_t)0x10000040) /*!< When Rx alignment error counter reaches half the maximum value */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1495 #define ETH_MMC_IT_RFCE ((uint32_t)0x10000020) /*!< When Rx crc error counter reaches half the maximum value */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1496 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1497 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1498 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1499
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1500 /** @defgroup ETH_MAC_Flags ETH MAC Flags
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1501 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1502 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1503 #define ETH_MAC_FLAG_TST ((uint32_t)0x00000200) /*!< Time stamp trigger flag (on MAC) */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1504 #define ETH_MAC_FLAG_MMCT ((uint32_t)0x00000040) /*!< MMC transmit flag */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1505 #define ETH_MAC_FLAG_MMCR ((uint32_t)0x00000020) /*!< MMC receive flag */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1506 #define ETH_MAC_FLAG_MMC ((uint32_t)0x00000010) /*!< MMC flag (on MAC) */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1507 #define ETH_MAC_FLAG_PMT ((uint32_t)0x00000008) /*!< PMT flag (on MAC) */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1508 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1509 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1510 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1511
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1512 /** @defgroup ETH_DMA_Flags ETH DMA Flags
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1513 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1514 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1515 #define ETH_DMA_FLAG_TST ((uint32_t)0x20000000) /*!< Time-stamp trigger interrupt (on DMA) */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1516 #define ETH_DMA_FLAG_PMT ((uint32_t)0x10000000) /*!< PMT interrupt (on DMA) */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1517 #define ETH_DMA_FLAG_MMC ((uint32_t)0x08000000) /*!< MMC interrupt (on DMA) */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1518 #define ETH_DMA_FLAG_DATATRANSFERERROR ((uint32_t)0x00800000) /*!< Error bits 0-Rx DMA, 1-Tx DMA */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1519 #define ETH_DMA_FLAG_READWRITEERROR ((uint32_t)0x01000000) /*!< Error bits 0-write transfer, 1-read transfer */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1520 #define ETH_DMA_FLAG_ACCESSERROR ((uint32_t)0x02000000) /*!< Error bits 0-data buffer, 1-desc. access */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1521 #define ETH_DMA_FLAG_NIS ((uint32_t)0x00010000) /*!< Normal interrupt summary flag */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1522 #define ETH_DMA_FLAG_AIS ((uint32_t)0x00008000) /*!< Abnormal interrupt summary flag */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1523 #define ETH_DMA_FLAG_ER ((uint32_t)0x00004000) /*!< Early receive flag */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1524 #define ETH_DMA_FLAG_FBE ((uint32_t)0x00002000) /*!< Fatal bus error flag */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1525 #define ETH_DMA_FLAG_ET ((uint32_t)0x00000400) /*!< Early transmit flag */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1526 #define ETH_DMA_FLAG_RWT ((uint32_t)0x00000200) /*!< Receive watchdog timeout flag */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1527 #define ETH_DMA_FLAG_RPS ((uint32_t)0x00000100) /*!< Receive process stopped flag */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1528 #define ETH_DMA_FLAG_RBU ((uint32_t)0x00000080) /*!< Receive buffer unavailable flag */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1529 #define ETH_DMA_FLAG_R ((uint32_t)0x00000040) /*!< Receive flag */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1530 #define ETH_DMA_FLAG_TU ((uint32_t)0x00000020) /*!< Underflow flag */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1531 #define ETH_DMA_FLAG_RO ((uint32_t)0x00000010) /*!< Overflow flag */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1532 #define ETH_DMA_FLAG_TJT ((uint32_t)0x00000008) /*!< Transmit jabber timeout flag */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1533 #define ETH_DMA_FLAG_TBU ((uint32_t)0x00000004) /*!< Transmit buffer unavailable flag */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1534 #define ETH_DMA_FLAG_TPS ((uint32_t)0x00000002) /*!< Transmit process stopped flag */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1535 #define ETH_DMA_FLAG_T ((uint32_t)0x00000001) /*!< Transmit flag */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1536 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1537 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1538 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1539
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1540 /** @defgroup ETH_MAC_Interrupts ETH MAC Interrupts
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1541 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1542 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1543 #define ETH_MAC_IT_TST ((uint32_t)0x00000200) /*!< Time stamp trigger interrupt (on MAC) */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1544 #define ETH_MAC_IT_MMCT ((uint32_t)0x00000040) /*!< MMC transmit interrupt */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1545 #define ETH_MAC_IT_MMCR ((uint32_t)0x00000020) /*!< MMC receive interrupt */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1546 #define ETH_MAC_IT_MMC ((uint32_t)0x00000010) /*!< MMC interrupt (on MAC) */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1547 #define ETH_MAC_IT_PMT ((uint32_t)0x00000008) /*!< PMT interrupt (on MAC) */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1548 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1549 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1550 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1551
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1552 /** @defgroup ETH_DMA_Interrupts ETH DMA Interrupts
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1553 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1554 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1555 #define ETH_DMA_IT_TST ((uint32_t)0x20000000) /*!< Time-stamp trigger interrupt (on DMA) */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1556 #define ETH_DMA_IT_PMT ((uint32_t)0x10000000) /*!< PMT interrupt (on DMA) */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1557 #define ETH_DMA_IT_MMC ((uint32_t)0x08000000) /*!< MMC interrupt (on DMA) */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1558 #define ETH_DMA_IT_NIS ((uint32_t)0x00010000) /*!< Normal interrupt summary */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1559 #define ETH_DMA_IT_AIS ((uint32_t)0x00008000) /*!< Abnormal interrupt summary */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1560 #define ETH_DMA_IT_ER ((uint32_t)0x00004000) /*!< Early receive interrupt */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1561 #define ETH_DMA_IT_FBE ((uint32_t)0x00002000) /*!< Fatal bus error interrupt */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1562 #define ETH_DMA_IT_ET ((uint32_t)0x00000400) /*!< Early transmit interrupt */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1563 #define ETH_DMA_IT_RWT ((uint32_t)0x00000200) /*!< Receive watchdog timeout interrupt */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1564 #define ETH_DMA_IT_RPS ((uint32_t)0x00000100) /*!< Receive process stopped interrupt */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1565 #define ETH_DMA_IT_RBU ((uint32_t)0x00000080) /*!< Receive buffer unavailable interrupt */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1566 #define ETH_DMA_IT_R ((uint32_t)0x00000040) /*!< Receive interrupt */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1567 #define ETH_DMA_IT_TU ((uint32_t)0x00000020) /*!< Underflow interrupt */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1568 #define ETH_DMA_IT_RO ((uint32_t)0x00000010) /*!< Overflow interrupt */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1569 #define ETH_DMA_IT_TJT ((uint32_t)0x00000008) /*!< Transmit jabber timeout interrupt */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1570 #define ETH_DMA_IT_TBU ((uint32_t)0x00000004) /*!< Transmit buffer unavailable interrupt */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1571 #define ETH_DMA_IT_TPS ((uint32_t)0x00000002) /*!< Transmit process stopped interrupt */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1572 #define ETH_DMA_IT_T ((uint32_t)0x00000001) /*!< Transmit interrupt */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1573 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1574 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1575 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1576
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1577 /** @defgroup ETH_DMA_transmit_process_state ETH DMA transmit process state
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1578 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1579 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1580 #define ETH_DMA_TRANSMITPROCESS_STOPPED ((uint32_t)0x00000000) /*!< Stopped - Reset or Stop Tx Command issued */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1581 #define ETH_DMA_TRANSMITPROCESS_FETCHING ((uint32_t)0x00100000) /*!< Running - fetching the Tx descriptor */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1582 #define ETH_DMA_TRANSMITPROCESS_WAITING ((uint32_t)0x00200000) /*!< Running - waiting for status */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1583 #define ETH_DMA_TRANSMITPROCESS_READING ((uint32_t)0x00300000) /*!< Running - reading the data from host memory */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1584 #define ETH_DMA_TRANSMITPROCESS_SUSPENDED ((uint32_t)0x00600000) /*!< Suspended - Tx Descriptor unavailable */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1585 #define ETH_DMA_TRANSMITPROCESS_CLOSING ((uint32_t)0x00700000) /*!< Running - closing Rx descriptor */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1586
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1587 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1588 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1589 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1590
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1591
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1592 /** @defgroup ETH_DMA_receive_process_state ETH DMA receive process state
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1593 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1594 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1595 #define ETH_DMA_RECEIVEPROCESS_STOPPED ((uint32_t)0x00000000) /*!< Stopped - Reset or Stop Rx Command issued */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1596 #define ETH_DMA_RECEIVEPROCESS_FETCHING ((uint32_t)0x00020000) /*!< Running - fetching the Rx descriptor */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1597 #define ETH_DMA_RECEIVEPROCESS_WAITING ((uint32_t)0x00060000) /*!< Running - waiting for packet */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1598 #define ETH_DMA_RECEIVEPROCESS_SUSPENDED ((uint32_t)0x00080000) /*!< Suspended - Rx Descriptor unavailable */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1599 #define ETH_DMA_RECEIVEPROCESS_CLOSING ((uint32_t)0x000A0000) /*!< Running - closing descriptor */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1600 #define ETH_DMA_RECEIVEPROCESS_QUEUING ((uint32_t)0x000E0000) /*!< Running - queuing the receive frame into host memory */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1601
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1602 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1603 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1604 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1605
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1606 /** @defgroup ETH_DMA_overflow ETH DMA overflow
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1607 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1608 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1609 #define ETH_DMA_OVERFLOW_RXFIFOCOUNTER ((uint32_t)0x10000000) /*!< Overflow bit for FIFO overflow counter */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1610 #define ETH_DMA_OVERFLOW_MISSEDFRAMECOUNTER ((uint32_t)0x00010000) /*!< Overflow bit for missed frame counter */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1611 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1612 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1613 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1614
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1615 /** @defgroup ETH_EXTI_LINE_WAKEUP ETH EXTI LINE WAKEUP
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1616 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1617 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1618 #define ETH_EXTI_LINE_WAKEUP ((uint32_t)0x00080000) /*!< External interrupt line 19 Connected to the ETH EXTI Line */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1619
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1620 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1621 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1622 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1623
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1624 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1625 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1626 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1627
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1628 /* Exported macro ------------------------------------------------------------*/
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1629 /** @defgroup ETH_Exported_Macros ETH Exported Macros
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1630 * @brief macros to handle interrupts and specific clock configurations
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1631 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1632 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1633
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1634 /** @brief Reset ETH handle state
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1635 * @param __HANDLE__: specifies the ETH handle.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1636 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1637 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1638 #define __HAL_ETH_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_ETH_STATE_RESET)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1639
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1640 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1641 * @brief Checks whether the specified ETHERNET DMA Tx Desc flag is set or not.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1642 * @param __HANDLE__: ETH Handle
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1643 * @param __FLAG__: specifies the flag of TDES0 to check.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1644 * @retval the ETH_DMATxDescFlag (SET or RESET).
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1645 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1646 #define __HAL_ETH_DMATXDESC_GET_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->TxDesc->Status & (__FLAG__) == (__FLAG__))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1647
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1648 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1649 * @brief Checks whether the specified ETHERNET DMA Rx Desc flag is set or not.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1650 * @param __HANDLE__: ETH Handle
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1651 * @param __FLAG__: specifies the flag of RDES0 to check.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1652 * @retval the ETH_DMATxDescFlag (SET or RESET).
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1653 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1654 #define __HAL_ETH_DMARXDESC_GET_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->RxDesc->Status & (__FLAG__) == (__FLAG__))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1655
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1656 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1657 * @brief Enables the specified DMA Rx Desc receive interrupt.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1658 * @param __HANDLE__: ETH Handle
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1659 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1660 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1661 #define __HAL_ETH_DMARXDESC_ENABLE_IT(__HANDLE__) ((__HANDLE__)->RxDesc->ControlBufferSize &=(~(uint32_t)ETH_DMARXDESC_DIC))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1662
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1663 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1664 * @brief Disables the specified DMA Rx Desc receive interrupt.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1665 * @param __HANDLE__: ETH Handle
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1666 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1667 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1668 #define __HAL_ETH_DMARXDESC_DISABLE_IT(__HANDLE__) ((__HANDLE__)->RxDesc->ControlBufferSize |= ETH_DMARXDESC_DIC)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1669
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1670 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1671 * @brief Set the specified DMA Rx Desc Own bit.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1672 * @param __HANDLE__: ETH Handle
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1673 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1674 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1675 #define __HAL_ETH_DMARXDESC_SET_OWN_BIT(__HANDLE__) ((__HANDLE__)->RxDesc->Status |= ETH_DMARXDESC_OWN)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1676
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1677 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1678 * @brief Returns the specified ETHERNET DMA Tx Desc collision count.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1679 * @param __HANDLE__: ETH Handle
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1680 * @retval The Transmit descriptor collision counter value.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1681 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1682 #define __HAL_ETH_DMATXDESC_GET_COLLISION_COUNT(__HANDLE__) (((__HANDLE__)->TxDesc->Status & ETH_DMATXDESC_CC) >> ETH_DMATXDESC_COLLISION_COUNTSHIFT)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1683
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1684 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1685 * @brief Set the specified DMA Tx Desc Own bit.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1686 * @param __HANDLE__: ETH Handle
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1687 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1688 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1689 #define __HAL_ETH_DMATXDESC_SET_OWN_BIT(__HANDLE__) ((__HANDLE__)->TxDesc->Status |= ETH_DMATXDESC_OWN)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1690
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1691 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1692 * @brief Enables the specified DMA Tx Desc Transmit interrupt.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1693 * @param __HANDLE__: ETH Handle
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1694 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1695 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1696 #define __HAL_ETH_DMATXDESC_ENABLE_IT(__HANDLE__) ((__HANDLE__)->TxDesc->Status |= ETH_DMATXDESC_IC)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1697
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1698 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1699 * @brief Disables the specified DMA Tx Desc Transmit interrupt.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1700 * @param __HANDLE__: ETH Handle
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1701 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1702 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1703 #define __HAL_ETH_DMATXDESC_DISABLE_IT(__HANDLE__) ((__HANDLE__)->TxDesc->Status &= ~ETH_DMATXDESC_IC)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1704
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1705 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1706 * @brief Selects the specified ETHERNET DMA Tx Desc Checksum Insertion.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1707 * @param __HANDLE__: ETH Handle
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1708 * @param __CHECKSUM__: specifies is the DMA Tx desc checksum insertion.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1709 * This parameter can be one of the following values:
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1710 * @arg ETH_DMATXDESC_CHECKSUMBYPASS : Checksum bypass
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1711 * @arg ETH_DMATXDESC_CHECKSUMIPV4HEADER : IPv4 header checksum
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1712 * @arg ETH_DMATXDESC_CHECKSUMTCPUDPICMPSEGMENT : TCP/UDP/ICMP checksum. Pseudo header checksum is assumed to be present
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1713 * @arg ETH_DMATXDESC_CHECKSUMTCPUDPICMPFULL : TCP/UDP/ICMP checksum fully in hardware including pseudo header
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1714 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1715 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1716 #define __HAL_ETH_DMATXDESC_CHECKSUM_INSERTION(__HANDLE__, __CHECKSUM__) ((__HANDLE__)->TxDesc->Status |= (__CHECKSUM__))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1717
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1718 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1719 * @brief Enables the DMA Tx Desc CRC.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1720 * @param __HANDLE__: ETH Handle
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1721 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1722 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1723 #define __HAL_ETH_DMATXDESC_CRC_ENABLE(__HANDLE__) ((__HANDLE__)->TxDesc->Status &= ~ETH_DMATXDESC_DC)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1724
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1725 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1726 * @brief Disables the DMA Tx Desc CRC.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1727 * @param __HANDLE__: ETH Handle
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1728 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1729 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1730 #define __HAL_ETH_DMATXDESC_CRC_DISABLE(__HANDLE__) ((__HANDLE__)->TxDesc->Status |= ETH_DMATXDESC_DC)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1731
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1732 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1733 * @brief Enables the DMA Tx Desc padding for frame shorter than 64 bytes.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1734 * @param __HANDLE__: ETH Handle
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1735 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1736 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1737 #define __HAL_ETH_DMATXDESC_SHORT_FRAME_PADDING_ENABLE(__HANDLE__) ((__HANDLE__)->TxDesc->Status &= ~ETH_DMATXDESC_DP)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1738
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1739 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1740 * @brief Disables the DMA Tx Desc padding for frame shorter than 64 bytes.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1741 * @param __HANDLE__: ETH Handle
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1742 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1743 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1744 #define __HAL_ETH_DMATXDESC_SHORT_FRAME_PADDING_DISABLE(__HANDLE__) ((__HANDLE__)->TxDesc->Status |= ETH_DMATXDESC_DP)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1745
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1746 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1747 * @brief Enables the specified ETHERNET MAC interrupts.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1748 * @param __HANDLE__ : ETH Handle
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1749 * @param __INTERRUPT__: specifies the ETHERNET MAC interrupt sources to be
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1750 * enabled or disabled.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1751 * This parameter can be any combination of the following values:
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1752 * @arg ETH_MAC_IT_TST : Time stamp trigger interrupt
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1753 * @arg ETH_MAC_IT_PMT : PMT interrupt
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1754 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1755 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1756 #define __HAL_ETH_MAC_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->MACIMR |= (__INTERRUPT__))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1757
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1758 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1759 * @brief Disables the specified ETHERNET MAC interrupts.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1760 * @param __HANDLE__ : ETH Handle
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1761 * @param __INTERRUPT__: specifies the ETHERNET MAC interrupt sources to be
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1762 * enabled or disabled.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1763 * This parameter can be any combination of the following values:
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1764 * @arg ETH_MAC_IT_TST : Time stamp trigger interrupt
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1765 * @arg ETH_MAC_IT_PMT : PMT interrupt
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1766 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1767 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1768 #define __HAL_ETH_MAC_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->MACIMR &= ~(__INTERRUPT__))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1769
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1770 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1771 * @brief Initiate a Pause Control Frame (Full-duplex only).
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1772 * @param __HANDLE__: ETH Handle
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1773 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1774 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1775 #define __HAL_ETH_INITIATE_PAUSE_CONTROL_FRAME(__HANDLE__) ((__HANDLE__)->Instance->MACFCR |= ETH_MACFCR_FCBBPA)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1776
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1777 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1778 * @brief Checks whether the ETHERNET flow control busy bit is set or not.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1779 * @param __HANDLE__: ETH Handle
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1780 * @retval The new state of flow control busy status bit (SET or RESET).
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1781 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1782 #define __HAL_ETH_GET_FLOW_CONTROL_BUSY_STATUS(__HANDLE__) (((__HANDLE__)->Instance->MACFCR & ETH_MACFCR_FCBBPA) == ETH_MACFCR_FCBBPA)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1783
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1784 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1785 * @brief Enables the MAC Back Pressure operation activation (Half-duplex only).
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1786 * @param __HANDLE__: ETH Handle
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1787 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1788 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1789 #define __HAL_ETH_BACK_PRESSURE_ACTIVATION_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->MACFCR |= ETH_MACFCR_FCBBPA)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1790
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1791 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1792 * @brief Disables the MAC BackPressure operation activation (Half-duplex only).
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1793 * @param __HANDLE__: ETH Handle
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1794 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1795 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1796 #define __HAL_ETH_BACK_PRESSURE_ACTIVATION_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->MACFCR &= ~ETH_MACFCR_FCBBPA)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1797
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1798 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1799 * @brief Checks whether the specified ETHERNET MAC flag is set or not.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1800 * @param __HANDLE__: ETH Handle
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1801 * @param __FLAG__: specifies the flag to check.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1802 * This parameter can be one of the following values:
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1803 * @arg ETH_MAC_FLAG_TST : Time stamp trigger flag
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1804 * @arg ETH_MAC_FLAG_MMCT : MMC transmit flag
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1805 * @arg ETH_MAC_FLAG_MMCR : MMC receive flag
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1806 * @arg ETH_MAC_FLAG_MMC : MMC flag
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1807 * @arg ETH_MAC_FLAG_PMT : PMT flag
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1808 * @retval The state of ETHERNET MAC flag.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1809 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1810 #define __HAL_ETH_MAC_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->MACSR &( __FLAG__)) == ( __FLAG__))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1811
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1812 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1813 * @brief Enables the specified ETHERNET DMA interrupts.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1814 * @param __HANDLE__ : ETH Handle
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1815 * @param __INTERRUPT__: specifies the ETHERNET DMA interrupt sources to be
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1816 * enabled @ref ETH_DMA_Interrupts
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1817 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1818 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1819 #define __HAL_ETH_DMA_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->DMAIER |= (__INTERRUPT__))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1820
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1821 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1822 * @brief Disables the specified ETHERNET DMA interrupts.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1823 * @param __HANDLE__ : ETH Handle
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1824 * @param __INTERRUPT__: specifies the ETHERNET DMA interrupt sources to be
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1825 * disabled. @ref ETH_DMA_Interrupts
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1826 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1827 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1828 #define __HAL_ETH_DMA_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->DMAIER &= ~(__INTERRUPT__))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1829
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1830 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1831 * @brief Clears the ETHERNET DMA IT pending bit.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1832 * @param __HANDLE__ : ETH Handle
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1833 * @param __INTERRUPT__: specifies the interrupt pending bit to clear. @ref ETH_DMA_Interrupts
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1834 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1835 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1836 #define __HAL_ETH_DMA_CLEAR_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->DMASR =(__INTERRUPT__))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1837
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1838 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1839 * @brief Checks whether the specified ETHERNET DMA flag is set or not.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1840 * @param __HANDLE__: ETH Handle
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1841 * @param __FLAG__: specifies the flag to check. @ref ETH_DMA_Flags
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1842 * @retval The new state of ETH_DMA_FLAG (SET or RESET).
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1843 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1844 #define __HAL_ETH_DMA_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->DMASR &( __FLAG__)) == ( __FLAG__))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1845
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1846 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1847 * @brief Checks whether the specified ETHERNET DMA flag is set or not.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1848 * @param __HANDLE__: ETH Handle
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1849 * @param __FLAG__: specifies the flag to clear. @ref ETH_DMA_Flags
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1850 * @retval The new state of ETH_DMA_FLAG (SET or RESET).
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1851 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1852 #define __HAL_ETH_DMA_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->DMASR = (__FLAG__))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1853
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1854 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1855 * @brief Checks whether the specified ETHERNET DMA overflow flag is set or not.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1856 * @param __HANDLE__: ETH Handle
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1857 * @param __OVERFLOW__: specifies the DMA overflow flag to check.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1858 * This parameter can be one of the following values:
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1859 * @arg ETH_DMA_OVERFLOW_RXFIFOCOUNTER : Overflow for FIFO Overflows Counter
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1860 * @arg ETH_DMA_OVERFLOW_MISSEDFRAMECOUNTER : Overflow for Buffer Unavailable Missed Frame Counter
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1861 * @retval The state of ETHERNET DMA overflow Flag (SET or RESET).
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1862 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1863 #define __HAL_ETH_GET_DMA_OVERFLOW_STATUS(__HANDLE__, __OVERFLOW__) (((__HANDLE__)->Instance->DMAMFBOCR & (__OVERFLOW__)) == (__OVERFLOW__))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1864
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1865 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1866 * @brief Set the DMA Receive status watchdog timer register value
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1867 * @param __HANDLE__: ETH Handle
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1868 * @param __VALUE__: DMA Receive status watchdog timer register value
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1869 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1870 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1871 #define __HAL_ETH_SET_RECEIVE_WATCHDOG_TIMER(__HANDLE__, __VALUE__) ((__HANDLE__)->Instance->DMARSWTR = (__VALUE__))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1872
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1873 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1874 * @brief Enables any unicast packet filtered by the MAC address
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1875 * recognition to be a wake-up frame.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1876 * @param __HANDLE__: ETH Handle.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1877 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1878 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1879 #define __HAL_ETH_GLOBAL_UNICAST_WAKEUP_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->MACPMTCSR |= ETH_MACPMTCSR_GU)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1880
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1881 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1882 * @brief Disables any unicast packet filtered by the MAC address
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1883 * recognition to be a wake-up frame.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1884 * @param __HANDLE__: ETH Handle.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1885 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1886 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1887 #define __HAL_ETH_GLOBAL_UNICAST_WAKEUP_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->MACPMTCSR &= ~ETH_MACPMTCSR_GU)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1888
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1889 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1890 * @brief Enables the MAC Wake-Up Frame Detection.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1891 * @param __HANDLE__: ETH Handle.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1892 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1893 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1894 #define __HAL_ETH_WAKEUP_FRAME_DETECTION_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->MACPMTCSR |= ETH_MACPMTCSR_WFE)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1895
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1896 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1897 * @brief Disables the MAC Wake-Up Frame Detection.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1898 * @param __HANDLE__: ETH Handle.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1899 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1900 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1901 #define __HAL_ETH_WAKEUP_FRAME_DETECTION_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->MACPMTCSR &= ~ETH_MACPMTCSR_WFE)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1902
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1903 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1904 * @brief Enables the MAC Magic Packet Detection.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1905 * @param __HANDLE__: ETH Handle.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1906 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1907 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1908 #define __HAL_ETH_MAGIC_PACKET_DETECTION_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->MACPMTCSR |= ETH_MACPMTCSR_MPE)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1909
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1910 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1911 * @brief Disables the MAC Magic Packet Detection.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1912 * @param __HANDLE__: ETH Handle.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1913 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1914 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1915 #define __HAL_ETH_MAGIC_PACKET_DETECTION_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->MACPMTCSR &= ~ETH_MACPMTCSR_WFE)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1916
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1917 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1918 * @brief Enables the MAC Power Down.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1919 * @param __HANDLE__: ETH Handle
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1920 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1921 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1922 #define __HAL_ETH_POWER_DOWN_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->MACPMTCSR |= ETH_MACPMTCSR_PD)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1923
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1924 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1925 * @brief Disables the MAC Power Down.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1926 * @param __HANDLE__: ETH Handle
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1927 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1928 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1929 #define __HAL_ETH_POWER_DOWN_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->MACPMTCSR &= ~ETH_MACPMTCSR_PD)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1930
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1931 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1932 * @brief Checks whether the specified ETHERNET PMT flag is set or not.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1933 * @param __HANDLE__: ETH Handle.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1934 * @param __FLAG__: specifies the flag to check.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1935 * This parameter can be one of the following values:
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1936 * @arg ETH_PMT_FLAG_WUFFRPR : Wake-Up Frame Filter Register Pointer Reset
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1937 * @arg ETH_PMT_FLAG_WUFR : Wake-Up Frame Received
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1938 * @arg ETH_PMT_FLAG_MPR : Magic Packet Received
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1939 * @retval The new state of ETHERNET PMT Flag (SET or RESET).
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1940 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1941 #define __HAL_ETH_GET_PMT_FLAG_STATUS(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->MACPMTCSR &( __FLAG__)) == ( __FLAG__))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1942
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1943 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1944 * @brief Preset and Initialize the MMC counters to almost-full value: 0xFFFF_FFF0 (full - 16)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1945 * @param __HANDLE__: ETH Handle.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1946 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1947 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1948 #define __HAL_ETH_MMC_COUNTER_FULL_PRESET(__HANDLE__) ((__HANDLE__)->Instance->MMCCR |= (ETH_MMCCR_MCFHP | ETH_MMCCR_MCP))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1949
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1950 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1951 * @brief Preset and Initialize the MMC counters to almost-half value: 0x7FFF_FFF0 (half - 16)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1952 * @param __HANDLE__: ETH Handle.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1953 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1954 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1955 #define __HAL_ETH_MMC_COUNTER_HALF_PRESET(__HANDLE__) do{(__HANDLE__)->Instance->MMCCR &= ~ETH_MMCCR_MCFHP;\
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1956 (__HANDLE__)->Instance->MMCCR |= ETH_MMCCR_MCP;} while (0)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1957
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1958 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1959 * @brief Enables the MMC Counter Freeze.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1960 * @param __HANDLE__: ETH Handle.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1961 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1962 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1963 #define __HAL_ETH_MMC_COUNTER_FREEZE_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->MMCCR |= ETH_MMCCR_MCF)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1964
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1965 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1966 * @brief Disables the MMC Counter Freeze.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1967 * @param __HANDLE__: ETH Handle.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1968 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1969 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1970 #define __HAL_ETH_MMC_COUNTER_FREEZE_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->MMCCR &= ~ETH_MMCCR_MCF)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1971
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1972 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1973 * @brief Enables the MMC Reset On Read.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1974 * @param __HANDLE__: ETH Handle.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1975 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1976 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1977 #define __HAL_ETH_ETH_MMC_RESET_ONREAD_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->MMCCR |= ETH_MMCCR_ROR)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1978
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1979 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1980 * @brief Disables the MMC Reset On Read.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1981 * @param __HANDLE__: ETH Handle.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1982 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1983 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1984 #define __HAL_ETH_ETH_MMC_RESET_ONREAD_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->MMCCR &= ~ETH_MMCCR_ROR)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1985
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1986 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1987 * @brief Enables the MMC Counter Stop Rollover.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1988 * @param __HANDLE__: ETH Handle.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1989 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1990 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1991 #define __HAL_ETH_ETH_MMC_COUNTER_ROLLOVER_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->MMCCR &= ~ETH_MMCCR_CSR)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1992
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1993 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1994 * @brief Disables the MMC Counter Stop Rollover.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1995 * @param __HANDLE__: ETH Handle.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1996 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1997 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1998 #define __HAL_ETH_ETH_MMC_COUNTER_ROLLOVER_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->MMCCR |= ETH_MMCCR_CSR)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1999
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2000 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2001 * @brief Resets the MMC Counters.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2002 * @param __HANDLE__: ETH Handle.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2003 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2004 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2005 #define __HAL_ETH_MMC_COUNTERS_RESET(__HANDLE__) ((__HANDLE__)->Instance->MMCCR |= ETH_MMCCR_CR)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2006
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2007 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2008 * @brief Enables the specified ETHERNET MMC Rx interrupts.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2009 * @param __HANDLE__: ETH Handle.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2010 * @param __INTERRUPT__: specifies the ETHERNET MMC interrupt sources to be enabled or disabled.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2011 * This parameter can be one of the following values:
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2012 * @arg ETH_MMC_IT_RGUF : When Rx good unicast frames counter reaches half the maximum value
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2013 * @arg ETH_MMC_IT_RFAE : When Rx alignment error counter reaches half the maximum value
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2014 * @arg ETH_MMC_IT_RFCE : When Rx crc error counter reaches half the maximum value
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2015 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2016 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2017 #define __HAL_ETH_MMC_RX_IT_ENABLE(__HANDLE__, __INTERRUPT__) (__HANDLE__)->Instance->MMCRIMR &= ~((__INTERRUPT__) & 0xEFFFFFFF)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2018 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2019 * @brief Disables the specified ETHERNET MMC Rx interrupts.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2020 * @param __HANDLE__: ETH Handle.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2021 * @param __INTERRUPT__: specifies the ETHERNET MMC interrupt sources to be enabled or disabled.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2022 * This parameter can be one of the following values:
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2023 * @arg ETH_MMC_IT_RGUF : When Rx good unicast frames counter reaches half the maximum value
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2024 * @arg ETH_MMC_IT_RFAE : When Rx alignment error counter reaches half the maximum value
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2025 * @arg ETH_MMC_IT_RFCE : When Rx crc error counter reaches half the maximum value
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2026 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2027 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2028 #define __HAL_ETH_MMC_RX_IT_DISABLE(__HANDLE__, __INTERRUPT__) (__HANDLE__)->Instance->MMCRIMR |= ((__INTERRUPT__) & 0xEFFFFFFF)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2029 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2030 * @brief Enables the specified ETHERNET MMC Tx interrupts.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2031 * @param __HANDLE__: ETH Handle.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2032 * @param __INTERRUPT__: specifies the ETHERNET MMC interrupt sources to be enabled or disabled.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2033 * This parameter can be one of the following values:
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2034 * @arg ETH_MMC_IT_TGF : When Tx good frame counter reaches half the maximum value
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2035 * @arg ETH_MMC_IT_TGFMSC: When Tx good multi col counter reaches half the maximum value
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2036 * @arg ETH_MMC_IT_TGFSC : When Tx good single col counter reaches half the maximum value
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2037 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2038 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2039 #define __HAL_ETH_MMC_TX_IT_ENABLE(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->MMCRIMR &= ~ (__INTERRUPT__))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2040
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2041 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2042 * @brief Disables the specified ETHERNET MMC Tx interrupts.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2043 * @param __HANDLE__: ETH Handle.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2044 * @param __INTERRUPT__: specifies the ETHERNET MMC interrupt sources to be enabled or disabled.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2045 * This parameter can be one of the following values:
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2046 * @arg ETH_MMC_IT_TGF : When Tx good frame counter reaches half the maximum value
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2047 * @arg ETH_MMC_IT_TGFMSC: When Tx good multi col counter reaches half the maximum value
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2048 * @arg ETH_MMC_IT_TGFSC : When Tx good single col counter reaches half the maximum value
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2049 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2050 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2051 #define __HAL_ETH_MMC_TX_IT_DISABLE(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->MMCRIMR |= (__INTERRUPT__))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2052
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2053 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2054 * @brief Enables the ETH External interrupt line.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2055 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2056 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2057 #define __HAL_ETH_WAKEUP_EXTI_ENABLE_IT() EXTI->IMR |= (ETH_EXTI_LINE_WAKEUP)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2058
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2059 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2060 * @brief Disables the ETH External interrupt line.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2061 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2062 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2063 #define __HAL_ETH_WAKEUP_EXTI_DISABLE_IT() EXTI->IMR &= ~(ETH_EXTI_LINE_WAKEUP)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2064
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2065 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2066 * @brief Enable event on ETH External event line.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2067 * @retval None.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2068 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2069 #define __HAL_ETH_WAKEUP_EXTI_ENABLE_EVENT() EXTI->EMR |= (ETH_EXTI_LINE_WAKEUP)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2070
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2071 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2072 * @brief Disable event on ETH External event line
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2073 * @retval None.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2074 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2075 #define __HAL_ETH_WAKEUP_EXTI_DISABLE_EVENT() EXTI->EMR &= ~(ETH_EXTI_LINE_WAKEUP)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2076
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2077 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2078 * @brief Get flag of the ETH External interrupt line.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2079 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2080 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2081 #define __HAL_ETH_WAKEUP_EXTI_GET_FLAG() EXTI->PR & (ETH_EXTI_LINE_WAKEUP)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2082
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2083 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2084 * @brief Clear flag of the ETH External interrupt line.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2085 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2086 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2087 #define __HAL_ETH_WAKEUP_EXTI_CLEAR_FLAG() EXTI->PR = (ETH_EXTI_LINE_WAKEUP)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2088
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2089 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2090 * @brief Enables rising edge trigger to the ETH External interrupt line.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2091 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2092 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2093 #define __HAL_ETH_WAKEUP_EXTI_ENABLE_RISING_EDGE_TRIGGER() EXTI->RTSR |= ETH_EXTI_LINE_WAKEUP
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2094
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2095 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2096 * @brief Disables the rising edge trigger to the ETH External interrupt line.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2097 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2098 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2099 #define __HAL_ETH_WAKEUP_EXTI_DISABLE_RISING_EDGE_TRIGGER() EXTI->RTSR &= ~(ETH_EXTI_LINE_WAKEUP)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2100
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2101 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2102 * @brief Enables falling edge trigger to the ETH External interrupt line.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2103 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2104 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2105 #define __HAL_ETH_WAKEUP_EXTI_ENABLE_FALLING_EDGE_TRIGGER() EXTI->FTSR |= (ETH_EXTI_LINE_WAKEUP)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2106
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2107 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2108 * @brief Disables falling edge trigger to the ETH External interrupt line.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2109 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2110 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2111 #define __HAL_ETH_WAKEUP_EXTI_DISABLE_FALLING_EDGE_TRIGGER() EXTI->FTSR &= ~(ETH_EXTI_LINE_WAKEUP)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2112
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2113 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2114 * @brief Enables rising/falling edge trigger to the ETH External interrupt line.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2115 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2116 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2117 #define __HAL_ETH_WAKEUP_EXTI_ENABLE_FALLINGRISING_TRIGGER() EXTI->RTSR |= ETH_EXTI_LINE_WAKEUP;\
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2118 EXTI->FTSR |= ETH_EXTI_LINE_WAKEUP
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2119
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2120 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2121 * @brief Disables rising/falling edge trigger to the ETH External interrupt line.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2122 * @retval None
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2123 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2124 #define __HAL_ETH_WAKEUP_EXTI_DISABLE_FALLINGRISING_TRIGGER() EXTI->RTSR &= ~(ETH_EXTI_LINE_WAKEUP);\
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2125 EXTI->FTSR &= ~(ETH_EXTI_LINE_WAKEUP)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2126
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2127 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2128 * @brief Generate a Software interrupt on selected EXTI line.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2129 * @retval None.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2130 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2131 #define __HAL_ETH_WAKEUP_EXTI_GENERATE_SWIT() EXTI->SWIER|= ETH_EXTI_LINE_WAKEUP
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2132
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2133 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2134 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2135 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2136 /* Exported functions --------------------------------------------------------*/
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2137
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2138 /** @addtogroup ETH_Exported_Functions
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2139 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2140 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2141
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2142 /* Initialization and de-initialization functions ****************************/
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2143
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2144 /** @addtogroup ETH_Exported_Functions_Group1
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2145 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2146 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2147 HAL_StatusTypeDef HAL_ETH_Init(ETH_HandleTypeDef *heth);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2148 HAL_StatusTypeDef HAL_ETH_DeInit(ETH_HandleTypeDef *heth);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2149 void HAL_ETH_MspInit(ETH_HandleTypeDef *heth);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2150 void HAL_ETH_MspDeInit(ETH_HandleTypeDef *heth);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2151 HAL_StatusTypeDef HAL_ETH_DMATxDescListInit(ETH_HandleTypeDef *heth, ETH_DMADescTypeDef *DMATxDescTab, uint8_t* TxBuff, uint32_t TxBuffCount);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2152 HAL_StatusTypeDef HAL_ETH_DMARxDescListInit(ETH_HandleTypeDef *heth, ETH_DMADescTypeDef *DMARxDescTab, uint8_t *RxBuff, uint32_t RxBuffCount);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2153
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2154 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2155 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2156 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2157 /* IO operation functions ****************************************************/
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2158
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2159 /** @addtogroup ETH_Exported_Functions_Group2
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2160 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2161 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2162 HAL_StatusTypeDef HAL_ETH_TransmitFrame(ETH_HandleTypeDef *heth, uint32_t FrameLength);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2163 HAL_StatusTypeDef HAL_ETH_GetReceivedFrame(ETH_HandleTypeDef *heth);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2164 /* Communication with PHY functions*/
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2165 HAL_StatusTypeDef HAL_ETH_ReadPHYRegister(ETH_HandleTypeDef *heth, uint16_t PHYReg, uint32_t *RegValue);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2166 HAL_StatusTypeDef HAL_ETH_WritePHYRegister(ETH_HandleTypeDef *heth, uint16_t PHYReg, uint32_t RegValue);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2167 /* Non-Blocking mode: Interrupt */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2168 HAL_StatusTypeDef HAL_ETH_GetReceivedFrame_IT(ETH_HandleTypeDef *heth);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2169 void HAL_ETH_IRQHandler(ETH_HandleTypeDef *heth);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2170 /* Callback in non blocking modes (Interrupt) */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2171 void HAL_ETH_TxCpltCallback(ETH_HandleTypeDef *heth);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2172 void HAL_ETH_RxCpltCallback(ETH_HandleTypeDef *heth);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2173 void HAL_ETH_ErrorCallback(ETH_HandleTypeDef *heth);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2174 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2175 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2176 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2177
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2178 /* Peripheral Control functions **********************************************/
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2179
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2180 /** @addtogroup ETH_Exported_Functions_Group3
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2181 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2182 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2183
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2184 HAL_StatusTypeDef HAL_ETH_Start(ETH_HandleTypeDef *heth);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2185 HAL_StatusTypeDef HAL_ETH_Stop(ETH_HandleTypeDef *heth);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2186 HAL_StatusTypeDef HAL_ETH_ConfigMAC(ETH_HandleTypeDef *heth, ETH_MACInitTypeDef *macconf);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2187 HAL_StatusTypeDef HAL_ETH_ConfigDMA(ETH_HandleTypeDef *heth, ETH_DMAInitTypeDef *dmaconf);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2188 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2189 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2190 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2191
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2192 /* Peripheral State functions ************************************************/
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2193
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2194 /** @addtogroup ETH_Exported_Functions_Group4
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2195 * @{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2196 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2197 HAL_ETH_StateTypeDef HAL_ETH_GetState(ETH_HandleTypeDef *heth);
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2198 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2199 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2200 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2201
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2202 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2203 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2204 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2205
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2206 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2207 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2208 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2209
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2210 /**
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2211 * @}
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2212 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2213
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2214 #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx || STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2215
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2216 #ifdef __cplusplus
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2217 }
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2218 #endif
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2219
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2220 #endif /* __STM32F4xx_HAL_ETH_H */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2221
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2222
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2223 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/