1 /***************************************************************************//**
2 * \file cyip_lin.h
3 *
4 * \brief
5 * LIN IP definitions
6 *
7 ********************************************************************************
8 * \copyright
9 * (c) (2016-2023), Cypress Semiconductor Corporation (an Infineon company) or
10 * an affiliate of Cypress Semiconductor Corporation.
11 *
12 * SPDX-License-Identifier: Apache-2.0
13 *
14 * Licensed under the Apache License, Version 2.0 (the "License");
15 * you may not use this file except in compliance with the License.
16 * You may obtain a copy of the License at
17 *
18 *     http://www.apache.org/licenses/LICENSE-2.0
19 *
20 * Unless required by applicable law or agreed to in writing, software
21 * distributed under the License is distributed on an "AS IS" BASIS,
22 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23 * See the License for the specific language governing permissions and
24 * limitations under the License.
25 *******************************************************************************/
26 
27 #ifndef _CYIP_LIN_H_
28 #define _CYIP_LIN_H_
29 
30 #include "cyip_headers.h"
31 
32 /*******************************************************************************
33 *                                     LIN
34 *******************************************************************************/
35 
36 #define LIN_CH_SECTION_SIZE                     0x00000100UL
37 #define LIN_SECTION_SIZE                        0x00010000UL
38 
39 /**
40   * \brief LIN channel structure (LIN_CH)
41   */
42 typedef struct {
43   __IOM uint32_t CTL0;                          /*!< 0x00000000 Control 0 */
44   __IOM uint32_t CTL1;                          /*!< 0x00000004 Control 1 */
45    __IM uint32_t STATUS;                        /*!< 0x00000008 Status */
46    __IM uint32_t RESERVED;
47   __IOM uint32_t CMD;                           /*!< 0x00000010 Command */
48    __IM uint32_t RESERVED1[19];
49   __IOM uint32_t TX_RX_STATUS;                  /*!< 0x00000060 TX/RX status */
50    __IM uint32_t RESERVED2[7];
51   __IOM uint32_t PID_CHECKSUM;                  /*!< 0x00000080 PID and checksum */
52   __IOM uint32_t DATA0;                         /*!< 0x00000084 Response data 0 */
53   __IOM uint32_t DATA1;                         /*!< 0x00000088 Response data 1 */
54    __IM uint32_t RESERVED3[13];
55   __IOM uint32_t INTR;                          /*!< 0x000000C0 Interrupt */
56   __IOM uint32_t INTR_SET;                      /*!< 0x000000C4 Interrupt set */
57   __IOM uint32_t INTR_MASK;                     /*!< 0x000000C8 Interrupt mask */
58    __IM uint32_t INTR_MASKED;                   /*!< 0x000000CC Interrupt masked */
59    __IM uint32_t RESERVED4[12];
60 } LIN_CH_Type;                                  /*!< Size = 256 (0x100) */
61 
62 /**
63   * \brief LIN (LIN)
64   */
65 typedef struct {
66   __IOM uint32_t ERROR_CTL;                     /*!< 0x00000000 Error control */
67   __IOM uint32_t TEST_CTL;                      /*!< 0x00000004 Test control */
68    __IM uint32_t RESERVED[8190];
69         LIN_CH_Type CH[32];                     /*!< 0x00008000 LIN channel structure */
70 } LIN_Type;                                     /*!< Size = 40960 (0xA000) */
71 
72 
73 /* LIN_CH.CTL0 */
74 #define LIN_CH_CTL0_STOP_BITS_Pos               0UL
75 #define LIN_CH_CTL0_STOP_BITS_Msk               0x3UL
76 #define LIN_CH_CTL0_AUTO_EN_Pos                 4UL
77 #define LIN_CH_CTL0_AUTO_EN_Msk                 0x10UL
78 #define LIN_CH_CTL0_BREAK_DELIMITER_LENGTH_Pos  8UL
79 #define LIN_CH_CTL0_BREAK_DELIMITER_LENGTH_Msk  0x300UL
80 #define LIN_CH_CTL0_BREAK_WAKEUP_LENGTH_Pos     16UL
81 #define LIN_CH_CTL0_BREAK_WAKEUP_LENGTH_Msk     0x1F0000UL
82 #define LIN_CH_CTL0_MODE_Pos                    24UL
83 #define LIN_CH_CTL0_MODE_Msk                    0x1000000UL
84 #define LIN_CH_CTL0_BIT_ERROR_IGNORE_Pos        27UL
85 #define LIN_CH_CTL0_BIT_ERROR_IGNORE_Msk        0x8000000UL
86 #define LIN_CH_CTL0_PARITY_Pos                  28UL
87 #define LIN_CH_CTL0_PARITY_Msk                  0x10000000UL
88 #define LIN_CH_CTL0_PARITY_EN_Pos               29UL
89 #define LIN_CH_CTL0_PARITY_EN_Msk               0x20000000UL
90 #define LIN_CH_CTL0_FILTER_EN_Pos               30UL
91 #define LIN_CH_CTL0_FILTER_EN_Msk               0x40000000UL
92 #define LIN_CH_CTL0_ENABLED_Pos                 31UL
93 #define LIN_CH_CTL0_ENABLED_Msk                 0x80000000UL
94 /* LIN_CH.CTL1 */
95 #define LIN_CH_CTL1_DATA_NR_Pos                 0UL
96 #define LIN_CH_CTL1_DATA_NR_Msk                 0x7UL
97 #define LIN_CH_CTL1_CHECKSUM_ENHANCED_Pos       8UL
98 #define LIN_CH_CTL1_CHECKSUM_ENHANCED_Msk       0x100UL
99 #define LIN_CH_CTL1_FRAME_TIMEOUT_Pos           16UL
100 #define LIN_CH_CTL1_FRAME_TIMEOUT_Msk           0xFF0000UL
101 #define LIN_CH_CTL1_FRAME_TIMEOUT_SEL_Pos       24UL
102 #define LIN_CH_CTL1_FRAME_TIMEOUT_SEL_Msk       0x3000000UL
103 /* LIN_CH.STATUS */
104 #define LIN_CH_STATUS_DATA_IDX_Pos              0UL
105 #define LIN_CH_STATUS_DATA_IDX_Msk              0xFUL
106 #define LIN_CH_STATUS_HEADER_RESPONSE_Pos       4UL
107 #define LIN_CH_STATUS_HEADER_RESPONSE_Msk       0x10UL
108 #define LIN_CH_STATUS_RX_DATA0_FRAME_ERROR_Pos  5UL
109 #define LIN_CH_STATUS_RX_DATA0_FRAME_ERROR_Msk  0x20UL
110 #define LIN_CH_STATUS_TX_BUSY_Pos               8UL
111 #define LIN_CH_STATUS_TX_BUSY_Msk               0x100UL
112 #define LIN_CH_STATUS_RX_BUSY_Pos               9UL
113 #define LIN_CH_STATUS_RX_BUSY_Msk               0x200UL
114 #define LIN_CH_STATUS_TX_DONE_Pos               12UL
115 #define LIN_CH_STATUS_TX_DONE_Msk               0x1000UL
116 #define LIN_CH_STATUS_RX_DONE_Pos               13UL
117 #define LIN_CH_STATUS_RX_DONE_Msk               0x2000UL
118 #define LIN_CH_STATUS_TX_HEADER_BIT_ERROR_Pos   16UL
119 #define LIN_CH_STATUS_TX_HEADER_BIT_ERROR_Msk   0x10000UL
120 #define LIN_CH_STATUS_TX_RESPONSE_BIT_ERROR_Pos 17UL
121 #define LIN_CH_STATUS_TX_RESPONSE_BIT_ERROR_Msk 0x20000UL
122 #define LIN_CH_STATUS_RX_HEADER_FRAME_ERROR_Pos 24UL
123 #define LIN_CH_STATUS_RX_HEADER_FRAME_ERROR_Msk 0x1000000UL
124 #define LIN_CH_STATUS_RX_HEADER_SYNC_ERROR_Pos  25UL
125 #define LIN_CH_STATUS_RX_HEADER_SYNC_ERROR_Msk  0x2000000UL
126 #define LIN_CH_STATUS_RX_HEADER_PARITY_ERROR_Pos 26UL
127 #define LIN_CH_STATUS_RX_HEADER_PARITY_ERROR_Msk 0x4000000UL
128 #define LIN_CH_STATUS_RX_RESPONSE_FRAME_ERROR_Pos 27UL
129 #define LIN_CH_STATUS_RX_RESPONSE_FRAME_ERROR_Msk 0x8000000UL
130 #define LIN_CH_STATUS_RX_RESPONSE_CHECKSUM_ERROR_Pos 28UL
131 #define LIN_CH_STATUS_RX_RESPONSE_CHECKSUM_ERROR_Msk 0x10000000UL
132 /* LIN_CH.CMD */
133 #define LIN_CH_CMD_TX_HEADER_Pos                0UL
134 #define LIN_CH_CMD_TX_HEADER_Msk                0x1UL
135 #define LIN_CH_CMD_TX_RESPONSE_Pos              1UL
136 #define LIN_CH_CMD_TX_RESPONSE_Msk              0x2UL
137 #define LIN_CH_CMD_TX_WAKEUP_Pos                2UL
138 #define LIN_CH_CMD_TX_WAKEUP_Msk                0x4UL
139 #define LIN_CH_CMD_RX_HEADER_Pos                8UL
140 #define LIN_CH_CMD_RX_HEADER_Msk                0x100UL
141 #define LIN_CH_CMD_RX_RESPONSE_Pos              9UL
142 #define LIN_CH_CMD_RX_RESPONSE_Msk              0x200UL
143 /* LIN_CH.TX_RX_STATUS */
144 #define LIN_CH_TX_RX_STATUS_SYNC_COUNTER_Pos    0UL
145 #define LIN_CH_TX_RX_STATUS_SYNC_COUNTER_Msk    0xFFUL
146 #define LIN_CH_TX_RX_STATUS_TX_IN_Pos           16UL
147 #define LIN_CH_TX_RX_STATUS_TX_IN_Msk           0x10000UL
148 #define LIN_CH_TX_RX_STATUS_RX_IN_Pos           17UL
149 #define LIN_CH_TX_RX_STATUS_RX_IN_Msk           0x20000UL
150 #define LIN_CH_TX_RX_STATUS_TX_OUT_Pos          24UL
151 #define LIN_CH_TX_RX_STATUS_TX_OUT_Msk          0x1000000UL
152 #define LIN_CH_TX_RX_STATUS_EN_OUT_Pos          26UL
153 #define LIN_CH_TX_RX_STATUS_EN_OUT_Msk          0x4000000UL
154 /* LIN_CH.PID_CHECKSUM */
155 #define LIN_CH_PID_CHECKSUM_PID_Pos             0UL
156 #define LIN_CH_PID_CHECKSUM_PID_Msk             0xFFUL
157 #define LIN_CH_PID_CHECKSUM_CHECKSUM_Pos        8UL
158 #define LIN_CH_PID_CHECKSUM_CHECKSUM_Msk        0xFF00UL
159 /* LIN_CH.DATA0 */
160 #define LIN_CH_DATA0_DATA1_Pos                  0UL
161 #define LIN_CH_DATA0_DATA1_Msk                  0xFFUL
162 #define LIN_CH_DATA0_DATA2_Pos                  8UL
163 #define LIN_CH_DATA0_DATA2_Msk                  0xFF00UL
164 #define LIN_CH_DATA0_DATA3_Pos                  16UL
165 #define LIN_CH_DATA0_DATA3_Msk                  0xFF0000UL
166 #define LIN_CH_DATA0_DATA4_Pos                  24UL
167 #define LIN_CH_DATA0_DATA4_Msk                  0xFF000000UL
168 /* LIN_CH.DATA1 */
169 #define LIN_CH_DATA1_DATA5_Pos                  0UL
170 #define LIN_CH_DATA1_DATA5_Msk                  0xFFUL
171 #define LIN_CH_DATA1_DATA6_Pos                  8UL
172 #define LIN_CH_DATA1_DATA6_Msk                  0xFF00UL
173 #define LIN_CH_DATA1_DATA7_Pos                  16UL
174 #define LIN_CH_DATA1_DATA7_Msk                  0xFF0000UL
175 #define LIN_CH_DATA1_DATA8_Pos                  24UL
176 #define LIN_CH_DATA1_DATA8_Msk                  0xFF000000UL
177 /* LIN_CH.INTR */
178 #define LIN_CH_INTR_TX_HEADER_DONE_Pos          0UL
179 #define LIN_CH_INTR_TX_HEADER_DONE_Msk          0x1UL
180 #define LIN_CH_INTR_TX_RESPONSE_DONE_Pos        1UL
181 #define LIN_CH_INTR_TX_RESPONSE_DONE_Msk        0x2UL
182 #define LIN_CH_INTR_TX_WAKEUP_DONE_Pos          2UL
183 #define LIN_CH_INTR_TX_WAKEUP_DONE_Msk          0x4UL
184 #define LIN_CH_INTR_RX_HEADER_DONE_Pos          8UL
185 #define LIN_CH_INTR_RX_HEADER_DONE_Msk          0x100UL
186 #define LIN_CH_INTR_RX_RESPONSE_DONE_Pos        9UL
187 #define LIN_CH_INTR_RX_RESPONSE_DONE_Msk        0x200UL
188 #define LIN_CH_INTR_RX_BREAK_WAKEUP_DONE_Pos    10UL
189 #define LIN_CH_INTR_RX_BREAK_WAKEUP_DONE_Msk    0x400UL
190 #define LIN_CH_INTR_RX_HEADER_SYNC_DONE_Pos     11UL
191 #define LIN_CH_INTR_RX_HEADER_SYNC_DONE_Msk     0x800UL
192 #define LIN_CH_INTR_RX_NOISE_DETECT_Pos         13UL
193 #define LIN_CH_INTR_RX_NOISE_DETECT_Msk         0x2000UL
194 #define LIN_CH_INTR_TIMEOUT_Pos                 14UL
195 #define LIN_CH_INTR_TIMEOUT_Msk                 0x4000UL
196 #define LIN_CH_INTR_TX_HEADER_BIT_ERROR_Pos     16UL
197 #define LIN_CH_INTR_TX_HEADER_BIT_ERROR_Msk     0x10000UL
198 #define LIN_CH_INTR_TX_RESPONSE_BIT_ERROR_Pos   17UL
199 #define LIN_CH_INTR_TX_RESPONSE_BIT_ERROR_Msk   0x20000UL
200 #define LIN_CH_INTR_RX_HEADER_FRAME_ERROR_Pos   24UL
201 #define LIN_CH_INTR_RX_HEADER_FRAME_ERROR_Msk   0x1000000UL
202 #define LIN_CH_INTR_RX_HEADER_SYNC_ERROR_Pos    25UL
203 #define LIN_CH_INTR_RX_HEADER_SYNC_ERROR_Msk    0x2000000UL
204 #define LIN_CH_INTR_RX_HEADER_PARITY_ERROR_Pos  26UL
205 #define LIN_CH_INTR_RX_HEADER_PARITY_ERROR_Msk  0x4000000UL
206 #define LIN_CH_INTR_RX_RESPONSE_FRAME_ERROR_Pos 27UL
207 #define LIN_CH_INTR_RX_RESPONSE_FRAME_ERROR_Msk 0x8000000UL
208 #define LIN_CH_INTR_RX_RESPONSE_CHECKSUM_ERROR_Pos 28UL
209 #define LIN_CH_INTR_RX_RESPONSE_CHECKSUM_ERROR_Msk 0x10000000UL
210 /* LIN_CH.INTR_SET */
211 #define LIN_CH_INTR_SET_TX_HEADER_DONE_Pos      0UL
212 #define LIN_CH_INTR_SET_TX_HEADER_DONE_Msk      0x1UL
213 #define LIN_CH_INTR_SET_TX_RESPONSE_DONE_Pos    1UL
214 #define LIN_CH_INTR_SET_TX_RESPONSE_DONE_Msk    0x2UL
215 #define LIN_CH_INTR_SET_TX_WAKEUP_DONE_Pos      2UL
216 #define LIN_CH_INTR_SET_TX_WAKEUP_DONE_Msk      0x4UL
217 #define LIN_CH_INTR_SET_RX_HEADER_DONE_Pos      8UL
218 #define LIN_CH_INTR_SET_RX_HEADER_DONE_Msk      0x100UL
219 #define LIN_CH_INTR_SET_RX_RESPONSE_DONE_Pos    9UL
220 #define LIN_CH_INTR_SET_RX_RESPONSE_DONE_Msk    0x200UL
221 #define LIN_CH_INTR_SET_RX_BREAK_WAKEUP_DONE_Pos 10UL
222 #define LIN_CH_INTR_SET_RX_BREAK_WAKEUP_DONE_Msk 0x400UL
223 #define LIN_CH_INTR_SET_RX_HEADER_SYNC_DONE_Pos 11UL
224 #define LIN_CH_INTR_SET_RX_HEADER_SYNC_DONE_Msk 0x800UL
225 #define LIN_CH_INTR_SET_RX_NOISE_DETECT_Pos     13UL
226 #define LIN_CH_INTR_SET_RX_NOISE_DETECT_Msk     0x2000UL
227 #define LIN_CH_INTR_SET_TIMEOUT_Pos             14UL
228 #define LIN_CH_INTR_SET_TIMEOUT_Msk             0x4000UL
229 #define LIN_CH_INTR_SET_TX_HEADER_BIT_ERROR_Pos 16UL
230 #define LIN_CH_INTR_SET_TX_HEADER_BIT_ERROR_Msk 0x10000UL
231 #define LIN_CH_INTR_SET_TX_RESPONSE_BIT_ERROR_Pos 17UL
232 #define LIN_CH_INTR_SET_TX_RESPONSE_BIT_ERROR_Msk 0x20000UL
233 #define LIN_CH_INTR_SET_RX_HEADER_FRAME_ERROR_Pos 24UL
234 #define LIN_CH_INTR_SET_RX_HEADER_FRAME_ERROR_Msk 0x1000000UL
235 #define LIN_CH_INTR_SET_RX_HEADER_SYNC_ERROR_Pos 25UL
236 #define LIN_CH_INTR_SET_RX_HEADER_SYNC_ERROR_Msk 0x2000000UL
237 #define LIN_CH_INTR_SET_RX_HEADER_PARITY_ERROR_Pos 26UL
238 #define LIN_CH_INTR_SET_RX_HEADER_PARITY_ERROR_Msk 0x4000000UL
239 #define LIN_CH_INTR_SET_RX_RESPONSE_FRAME_ERROR_Pos 27UL
240 #define LIN_CH_INTR_SET_RX_RESPONSE_FRAME_ERROR_Msk 0x8000000UL
241 #define LIN_CH_INTR_SET_RX_RESPONSE_CHECKSUM_ERROR_Pos 28UL
242 #define LIN_CH_INTR_SET_RX_RESPONSE_CHECKSUM_ERROR_Msk 0x10000000UL
243 /* LIN_CH.INTR_MASK */
244 #define LIN_CH_INTR_MASK_TX_HEADER_DONE_Pos     0UL
245 #define LIN_CH_INTR_MASK_TX_HEADER_DONE_Msk     0x1UL
246 #define LIN_CH_INTR_MASK_TX_RESPONSE_DONE_Pos   1UL
247 #define LIN_CH_INTR_MASK_TX_RESPONSE_DONE_Msk   0x2UL
248 #define LIN_CH_INTR_MASK_TX_WAKEUP_DONE_Pos     2UL
249 #define LIN_CH_INTR_MASK_TX_WAKEUP_DONE_Msk     0x4UL
250 #define LIN_CH_INTR_MASK_RX_HEADER_DONE_Pos     8UL
251 #define LIN_CH_INTR_MASK_RX_HEADER_DONE_Msk     0x100UL
252 #define LIN_CH_INTR_MASK_RX_RESPONSE_DONE_Pos   9UL
253 #define LIN_CH_INTR_MASK_RX_RESPONSE_DONE_Msk   0x200UL
254 #define LIN_CH_INTR_MASK_RX_BREAK_WAKEUP_DONE_Pos 10UL
255 #define LIN_CH_INTR_MASK_RX_BREAK_WAKEUP_DONE_Msk 0x400UL
256 #define LIN_CH_INTR_MASK_RX_HEADER_SYNC_DONE_Pos 11UL
257 #define LIN_CH_INTR_MASK_RX_HEADER_SYNC_DONE_Msk 0x800UL
258 #define LIN_CH_INTR_MASK_RX_NOISE_DETECT_Pos    13UL
259 #define LIN_CH_INTR_MASK_RX_NOISE_DETECT_Msk    0x2000UL
260 #define LIN_CH_INTR_MASK_TIMEOUT_Pos            14UL
261 #define LIN_CH_INTR_MASK_TIMEOUT_Msk            0x4000UL
262 #define LIN_CH_INTR_MASK_TX_HEADER_BIT_ERROR_Pos 16UL
263 #define LIN_CH_INTR_MASK_TX_HEADER_BIT_ERROR_Msk 0x10000UL
264 #define LIN_CH_INTR_MASK_TX_RESPONSE_BIT_ERROR_Pos 17UL
265 #define LIN_CH_INTR_MASK_TX_RESPONSE_BIT_ERROR_Msk 0x20000UL
266 #define LIN_CH_INTR_MASK_RX_HEADER_FRAME_ERROR_Pos 24UL
267 #define LIN_CH_INTR_MASK_RX_HEADER_FRAME_ERROR_Msk 0x1000000UL
268 #define LIN_CH_INTR_MASK_RX_HEADER_SYNC_ERROR_Pos 25UL
269 #define LIN_CH_INTR_MASK_RX_HEADER_SYNC_ERROR_Msk 0x2000000UL
270 #define LIN_CH_INTR_MASK_RX_HEADER_PARITY_ERROR_Pos 26UL
271 #define LIN_CH_INTR_MASK_RX_HEADER_PARITY_ERROR_Msk 0x4000000UL
272 #define LIN_CH_INTR_MASK_RX_RESPONSE_FRAME_ERROR_Pos 27UL
273 #define LIN_CH_INTR_MASK_RX_RESPONSE_FRAME_ERROR_Msk 0x8000000UL
274 #define LIN_CH_INTR_MASK_RX_RESPONSE_CHECKSUM_ERROR_Pos 28UL
275 #define LIN_CH_INTR_MASK_RX_RESPONSE_CHECKSUM_ERROR_Msk 0x10000000UL
276 /* LIN_CH.INTR_MASKED */
277 #define LIN_CH_INTR_MASKED_TX_HEADER_DONE_Pos   0UL
278 #define LIN_CH_INTR_MASKED_TX_HEADER_DONE_Msk   0x1UL
279 #define LIN_CH_INTR_MASKED_TX_RESPONSE_DONE_Pos 1UL
280 #define LIN_CH_INTR_MASKED_TX_RESPONSE_DONE_Msk 0x2UL
281 #define LIN_CH_INTR_MASKED_TX_WAKEUP_DONE_Pos   2UL
282 #define LIN_CH_INTR_MASKED_TX_WAKEUP_DONE_Msk   0x4UL
283 #define LIN_CH_INTR_MASKED_RX_HEADER_DONE_Pos   8UL
284 #define LIN_CH_INTR_MASKED_RX_HEADER_DONE_Msk   0x100UL
285 #define LIN_CH_INTR_MASKED_RX_RESPONSE_DONE_Pos 9UL
286 #define LIN_CH_INTR_MASKED_RX_RESPONSE_DONE_Msk 0x200UL
287 #define LIN_CH_INTR_MASKED_RX_BREAK_WAKEUP_DONE_Pos 10UL
288 #define LIN_CH_INTR_MASKED_RX_BREAK_WAKEUP_DONE_Msk 0x400UL
289 #define LIN_CH_INTR_MASKED_RX_HEADER_SYNC_DONE_Pos 11UL
290 #define LIN_CH_INTR_MASKED_RX_HEADER_SYNC_DONE_Msk 0x800UL
291 #define LIN_CH_INTR_MASKED_RX_NOISE_DETECT_Pos  13UL
292 #define LIN_CH_INTR_MASKED_RX_NOISE_DETECT_Msk  0x2000UL
293 #define LIN_CH_INTR_MASKED_TIMEOUT_Pos          14UL
294 #define LIN_CH_INTR_MASKED_TIMEOUT_Msk          0x4000UL
295 #define LIN_CH_INTR_MASKED_TX_HEADER_BIT_ERROR_Pos 16UL
296 #define LIN_CH_INTR_MASKED_TX_HEADER_BIT_ERROR_Msk 0x10000UL
297 #define LIN_CH_INTR_MASKED_TX_RESPONSE_BIT_ERROR_Pos 17UL
298 #define LIN_CH_INTR_MASKED_TX_RESPONSE_BIT_ERROR_Msk 0x20000UL
299 #define LIN_CH_INTR_MASKED_RX_HEADER_FRAME_ERROR_Pos 24UL
300 #define LIN_CH_INTR_MASKED_RX_HEADER_FRAME_ERROR_Msk 0x1000000UL
301 #define LIN_CH_INTR_MASKED_RX_HEADER_SYNC_ERROR_Pos 25UL
302 #define LIN_CH_INTR_MASKED_RX_HEADER_SYNC_ERROR_Msk 0x2000000UL
303 #define LIN_CH_INTR_MASKED_RX_HEADER_PARITY_ERROR_Pos 26UL
304 #define LIN_CH_INTR_MASKED_RX_HEADER_PARITY_ERROR_Msk 0x4000000UL
305 #define LIN_CH_INTR_MASKED_RX_RESPONSE_FRAME_ERROR_Pos 27UL
306 #define LIN_CH_INTR_MASKED_RX_RESPONSE_FRAME_ERROR_Msk 0x8000000UL
307 #define LIN_CH_INTR_MASKED_RX_RESPONSE_CHECKSUM_ERROR_Pos 28UL
308 #define LIN_CH_INTR_MASKED_RX_RESPONSE_CHECKSUM_ERROR_Msk 0x10000000UL
309 
310 
311 /* LIN.ERROR_CTL */
312 #define LIN_ERROR_CTL_CH_IDX_Pos                0UL
313 #define LIN_ERROR_CTL_CH_IDX_Msk                0x1FUL
314 #define LIN_ERROR_CTL_TX_SYNC_ERROR_Pos         16UL
315 #define LIN_ERROR_CTL_TX_SYNC_ERROR_Msk         0x10000UL
316 #define LIN_ERROR_CTL_TX_SYNC_STOP_ERROR_Pos    17UL
317 #define LIN_ERROR_CTL_TX_SYNC_STOP_ERROR_Msk    0x20000UL
318 #define LIN_ERROR_CTL_TX_PARITY_ERROR_Pos       18UL
319 #define LIN_ERROR_CTL_TX_PARITY_ERROR_Msk       0x40000UL
320 #define LIN_ERROR_CTL_TX_PID_STOP_ERROR_Pos     19UL
321 #define LIN_ERROR_CTL_TX_PID_STOP_ERROR_Msk     0x80000UL
322 #define LIN_ERROR_CTL_TX_DATA_STOP_ERROR_Pos    21UL
323 #define LIN_ERROR_CTL_TX_DATA_STOP_ERROR_Msk    0x200000UL
324 #define LIN_ERROR_CTL_TX_CHECKSUM_ERROR_Pos     22UL
325 #define LIN_ERROR_CTL_TX_CHECKSUM_ERROR_Msk     0x400000UL
326 #define LIN_ERROR_CTL_TX_CHECKSUM_STOP_ERROR_Pos 23UL
327 #define LIN_ERROR_CTL_TX_CHECKSUM_STOP_ERROR_Msk 0x800000UL
328 #define LIN_ERROR_CTL_ENABLED_Pos               31UL
329 #define LIN_ERROR_CTL_ENABLED_Msk               0x80000000UL
330 /* LIN.TEST_CTL */
331 #define LIN_TEST_CTL_CH_IDX_Pos                 0UL
332 #define LIN_TEST_CTL_CH_IDX_Msk                 0x1FUL
333 #define LIN_TEST_CTL_MODE_Pos                   16UL
334 #define LIN_TEST_CTL_MODE_Msk                   0x10000UL
335 #define LIN_TEST_CTL_ENABLED_Pos                31UL
336 #define LIN_TEST_CTL_ENABLED_Msk                0x80000000UL
337 
338 
339 #endif /* _CYIP_LIN_H_ */
340 
341 
342 /* [] END OF FILE */
343