From 796eac4feb5000eef2c809950a813935332f3404 Mon Sep 17 00:00:00 2001 From: Youssef Kandil Date: Wed, 29 Jan 2025 14:33:07 +0200 Subject: [PATCH] minor fix --- docs/doxygen/html/_e_f___u_a_r_t_8c.html | 34 +- docs/doxygen/html/_e_f___u_a_r_t_8h.html | 162 +----- .../html/_e_f___u_a_r_t_8h_source.html | 340 ++++++------ .../html/_e_f___u_a_r_t__example_8c.html | 2 +- .../html/_e_f___u_a_r_t__example_8h.html | 2 +- .../doxygen/html/_e_f___u_a_r_t__regs_8h.html | 324 ++++++++++- .../html/_e_f___u_a_r_t__regs_8h_source.html | 259 +++++---- docs/doxygen/html/globals.html | 30 +- docs/doxygen/html/globals_defs.html | 28 +- docs/doxygen/html/globals_func.html | 2 +- docs/doxygen/html/md__r_e_a_d_m_e.html | 20 +- docs/doxygen/html/search/all_3.js | 126 +++-- docs/doxygen/html/search/defines_1.js | 68 ++- docs/doxygen/html/search/functions_0.js | 4 +- docs/doxygen/latex/_e_f___u_a_r_t_8c.tex | 30 +- docs/doxygen/latex/_e_f___u_a_r_t_8h.tex | 94 +--- .../latex/_e_f___u_a_r_t_8h_source.tex | 324 ++++++----- .../doxygen/latex/_e_f___u_a_r_t__regs_8h.tex | 164 +++++- .../latex/_e_f___u_a_r_t__regs_8h_source.tex | 213 ++++--- docs/doxygen/latex/md__r_e_a_d_m_e.tex | 4 +- docs/doxygen/xml/_e_f___u_a_r_t_8c.xml | 46 +- docs/doxygen/xml/_e_f___u_a_r_t_8h.xml | 516 +++++++---------- docs/doxygen/xml/_e_f___u_a_r_t__regs_8h.xml | 519 +++++++++++++----- docs/doxygen/xml/_r_e_a_d_m_e_8md.xml | 2 +- docs/doxygen/xml/index.xml | 32 +- docs/doxygen/xml/md__r_e_a_d_m_e.xml | 3 +- .../struct___e_f___u_a_r_t___t_y_p_e__.xml | 44 +- fw/EF_UART.c | 22 +- fw/EF_UART.h | 10 +- fw/EF_UART_regs.h | 63 ++- fw/README.md | 222 +++++--- 31 files changed, 2187 insertions(+), 1522 deletions(-) diff --git a/docs/doxygen/html/_e_f___u_a_r_t_8c.html b/docs/doxygen/html/_e_f___u_a_r_t_8c.html index 37a1dcc..b816b7b 100644 --- a/docs/doxygen/html/_e_f___u_a_r_t_8c.html +++ b/docs/doxygen/html/_e_f___u_a_r_t_8c.html @@ -134,9 +134,9 @@ EF_DRIVER_STATUS EF_UART_setDataSize (EF_UART_TYPE_PTR uart, uint32_t value)  sets the Data Size (Data word length: 5-9 bits ) by setting the "wlen" field in configuration register
  -EF_DRIVER_STATUS EF_UART_setTwoStopBitsSelect (EF_UART_TYPE_PTR uart, bool is_two_bits) - sets the "stp2" bit in configuration register (whether the stop boits are two or one)
-  +EF_DRIVER_STATUS EF_UART_setStopBits (EF_UART_TYPE_PTR uart, bool is_two_bits) + sets the "stp2" bit in configuration register (whether the stop boits are two or one)
EF_DRIVER_STATUS EF_UART_setParityType (EF_UART_TYPE_PTR uart, enum parity_type parity)  sets the "parity" field in configuration register (could be none, odd, even, sticky 0 or sticky 1)
  @@ -1608,14 +1608,14 @@

-

◆ EF_UART_setTimeoutBits()

+ +

◆ EF_UART_setStopBits()

- + @@ -1623,8 +1623,8 @@

- - + + @@ -1634,11 +1634,11 @@

-

sets the "timeout" field in configuration register which is receiver timeout measured in number of bits at which the timeout flag will be raised

+

sets the "stp2" bit in configuration register (whether the stop boits are two or one)

Parameters

EF_DRIVER_STATUS EF_UART_setTimeoutBits EF_DRIVER_STATUS EF_UART_setStopBits ( EF_UART_TYPE_PTR  uart, uint32_t value bool is_two_bits 
- +
[in]uartAn EF_UART_TYPE_PTR , which points to the base memory address of UART registers. EF_UART_TYPE is a structure that contains the UART registers.
[in]valuetimeout bits value
[in]is_two_bitsbool value, if "true", the stop bits are two and if "false", the stop bit is one
@@ -1646,14 +1646,14 @@

-

◆ EF_UART_setTwoStopBitsSelect()

+ +

◆ EF_UART_setTimeoutBits()

- + @@ -1661,8 +1661,8 @@

- - + + @@ -1672,11 +1672,11 @@

-

sets the "stp2" bit in configuration register (whether the stop boits are two or one)

+

sets the "timeout" field in configuration register which is receiver timeout measured in number of bits at which the timeout flag will be raised

Parameters

EF_DRIVER_STATUS EF_UART_setTwoStopBitsSelect EF_DRIVER_STATUS EF_UART_setTimeoutBits ( EF_UART_TYPE_PTR  uart, bool is_two_bits uint32_t value 
- +
[in]uartAn EF_UART_TYPE_PTR , which points to the base memory address of UART registers. EF_UART_TYPE is a structure that contains the UART registers.
[in]is_two_bitsbool value, if "true", the stop bits are two and if "false", the stop bit is one
[in]valuetimeout bits value
diff --git a/docs/doxygen/html/_e_f___u_a_r_t_8h.html b/docs/doxygen/html/_e_f___u_a_r_t_8h.html index 7b16126..78af824 100644 --- a/docs/doxygen/html/_e_f___u_a_r_t_8h.html +++ b/docs/doxygen/html/_e_f___u_a_r_t_8h.html @@ -86,28 +86,12 @@ - - - - - - - - - - - - - - - -

Macros

#define EF_UART_CTRL_REG_MAX_VALUE   ((uint32_t)0x0000001F)
 
#define EF_UART_PR_REG_MAX_VALUE   ((uint32_t)0x0000FFFF)
 
#define EF_UART_DataLength_MIN_VALUE   ((uint32_t)0x00000005)
 
#define EF_UART_DataLength_MAX_VALUE   ((uint32_t)0x00000009)
 
#define EF_UART_CFG_REG_TIMEOUT_MAX_VALUE   ((uint32_t)0x0000003F)
 
#define EF_UART_CFG_REG_MAX_VALUE   ((uint32_t)0x00001FFF)
 
#define EF_UART_RX_FIFO_THRESHOLD_REG_MAX_VALUE   ((uint32_t)0x0000000F)
 
#define EF_UART_TX_FIFO_THRESHOLD_REG_MAX_VALUE   ((uint32_t)0x0000000F)
 
#define EF_UART_MATCH_REG_MAX_VALUE   ((uint32_t)0x00001FFF)
 
#define EF_UART_IM_REG_MAX_VALUE   ((uint32_t)0x000003FF)
 
#define EF_UART_IC_REG_MAX_VALUE   ((uint32_t)0x000003FF)
 
@@ -165,9 +149,9 @@ - - - + + + @@ -255,20 +239,6 @@

Detailed Description

C header file for UART APIs which contains the function prototypes.

Macro Definition Documentation

- -

◆ EF_UART_CFG_REG_MAX_VALUE

- -
-
-

Enumerations

EF_DRIVER_STATUS EF_UART_setDataSize (EF_UART_TYPE_PTR uart, uint32_t value)
 sets the Data Size (Data word length: 5-9 bits ) by setting the "wlen" field in configuration register
 
EF_DRIVER_STATUS EF_UART_setTwoStopBitsSelect (EF_UART_TYPE_PTR uart, bool is_two_bits)
 sets the "stp2" bit in configuration register (whether the stop boits are two or one)
 
EF_DRIVER_STATUS EF_UART_setStopBits (EF_UART_TYPE_PTR uart, bool is_two_bits)
 sets the "stp2" bit in configuration register (whether the stop boits are two or one)
 
EF_DRIVER_STATUS EF_UART_setParityType (EF_UART_TYPE_PTR uart, enum parity_type parity)
 sets the "parity" field in configuration register (could be none, odd, even, sticky 0 or sticky 1)
 
- - - -
#define EF_UART_CFG_REG_MAX_VALUE   ((uint32_t)0x00001FFF)
-
- -
-

◆ EF_UART_CFG_REG_TIMEOUT_MAX_VALUE

@@ -281,20 +251,6 @@

-

-
- -

◆ EF_UART_CTRL_REG_MAX_VALUE

- -
-
- - - - -
#define EF_UART_CTRL_REG_MAX_VALUE   ((uint32_t)0x0000001F)
-
-
@@ -323,90 +279,6 @@

- - - -

◆ EF_UART_IC_REG_MAX_VALUE

- -
-
- - - - -
#define EF_UART_IC_REG_MAX_VALUE   ((uint32_t)0x000003FF)
-
- -
-
- -

◆ EF_UART_IM_REG_MAX_VALUE

- -
-
- - - - -
#define EF_UART_IM_REG_MAX_VALUE   ((uint32_t)0x000003FF)
-
- -
-
- -

◆ EF_UART_MATCH_REG_MAX_VALUE

- -
-
- - - - -
#define EF_UART_MATCH_REG_MAX_VALUE   ((uint32_t)0x00001FFF)
-
- -
-
- -

◆ EF_UART_PR_REG_MAX_VALUE

- -
-
- - - - -
#define EF_UART_PR_REG_MAX_VALUE   ((uint32_t)0x0000FFFF)
-
- -
-
- -

◆ EF_UART_RX_FIFO_THRESHOLD_REG_MAX_VALUE

- -
-
- - - - -
#define EF_UART_RX_FIFO_THRESHOLD_REG_MAX_VALUE   ((uint32_t)0x0000000F)
-
- -
-
- -

◆ EF_UART_TX_FIFO_THRESHOLD_REG_MAX_VALUE

- -
-
- - - - -
#define EF_UART_TX_FIFO_THRESHOLD_REG_MAX_VALUE   ((uint32_t)0x0000000F)
-
-

Enumeration Type Documentation

@@ -1807,14 +1679,14 @@

-

◆ EF_UART_setTimeoutBits()

+ +

◆ EF_UART_setStopBits()

- + @@ -1822,8 +1694,8 @@

- - + + @@ -1833,11 +1705,11 @@

-

sets the "timeout" field in configuration register which is receiver timeout measured in number of bits at which the timeout flag will be raised

+

sets the "stp2" bit in configuration register (whether the stop boits are two or one)

Parameters

EF_DRIVER_STATUS EF_UART_setTimeoutBits EF_DRIVER_STATUS EF_UART_setStopBits ( EF_UART_TYPE_PTR  uart, uint32_t value bool is_two_bits 
- +
[in]uartAn EF_UART_TYPE_PTR , which points to the base memory address of UART registers. EF_UART_TYPE is a structure that contains the UART registers.
[in]valuetimeout bits value
[in]is_two_bitsbool value, if "true", the stop bits are two and if "false", the stop bit is one
@@ -1845,14 +1717,14 @@

-

◆ EF_UART_setTwoStopBitsSelect()

+ +

◆ EF_UART_setTimeoutBits()

- + @@ -1860,8 +1732,8 @@

- - + + @@ -1871,11 +1743,11 @@

-

sets the "stp2" bit in configuration register (whether the stop boits are two or one)

+

sets the "timeout" field in configuration register which is receiver timeout measured in number of bits at which the timeout flag will be raised

Parameters

EF_DRIVER_STATUS EF_UART_setTwoStopBitsSelect EF_DRIVER_STATUS EF_UART_setTimeoutBits ( EF_UART_TYPE_PTR  uart, bool is_two_bits uint32_t value 
- +
[in]uartAn EF_UART_TYPE_PTR , which points to the base memory address of UART registers. EF_UART_TYPE is a structure that contains the UART registers.
[in]is_two_bitsbool value, if "true", the stop bits are two and if "false", the stop bit is one
[in]valuetimeout bits value
diff --git a/docs/doxygen/html/_e_f___u_a_r_t_8h_source.html b/docs/doxygen/html/_e_f___u_a_r_t_8h_source.html index f2778b5..4c5a6bb 100644 --- a/docs/doxygen/html/_e_f___u_a_r_t_8h_source.html +++ b/docs/doxygen/html/_e_f___u_a_r_t_8h_source.html @@ -105,223 +105,215 @@
37/******************************************************************************
38* Macros and Constants
39******************************************************************************/
-
40#define EF_UART_CTRL_REG_MAX_VALUE ((uint32_t)0x0000001F) // CTRL register only has 5 bits, and the rest are reserved
-
41#define EF_UART_PR_REG_MAX_VALUE ((uint32_t)0x0000FFFF) // PR register only has 16 bits
-
42#define EF_UART_DataLength_MIN_VALUE ((uint32_t)0x00000005) // This UART IP only supports data length from 5 to 9 bits
-
43#define EF_UART_DataLength_MAX_VALUE ((uint32_t)0x00000009) // This UART IP only supports data length from 5 to 9 bits
-
44#define EF_UART_CFG_REG_TIMEOUT_MAX_VALUE ((uint32_t)0x0000003F) // The CFG register timeout field is 6 bits
-
45#define EF_UART_CFG_REG_MAX_VALUE ((uint32_t)0x00001FFF) // The CFG register is 13 bits
-
46#define EF_UART_RX_FIFO_THRESHOLD_REG_MAX_VALUE ((uint32_t)0x0000000F) // The RX FIFO level register is 4 bits
-
47#define EF_UART_TX_FIFO_THRESHOLD_REG_MAX_VALUE ((uint32_t)0x0000000F) // The TX FIFO level register is 4 bits
-
48#define EF_UART_MATCH_REG_MAX_VALUE ((uint32_t)0x00001FFF) // The match register is 9 bits
-
49#define EF_UART_IM_REG_MAX_VALUE ((uint32_t)0x000003FF) // The IM register is 10 bits
-
50#define EF_UART_IC_REG_MAX_VALUE ((uint32_t)0x000003FF) // The IC register is 10 bits
+
40#define EF_UART_DataLength_MIN_VALUE ((uint32_t)0x00000005) // This UART IP only supports data length from 5 to 9 bits
+
41#define EF_UART_DataLength_MAX_VALUE ((uint32_t)0x00000009) // This UART IP only supports data length from 5 to 9 bits
+
42#define EF_UART_CFG_REG_TIMEOUT_MAX_VALUE ((uint32_t)0x0000003F) // The CFG register timeout field is 6 bits
+
43
+
44
+
45/******************************************************************************
+
46* Typedefs and Enums
+
47******************************************************************************/
+
48
+
49enum parity_type {NONE = 0, ODD = 1, EVEN = 2, STICKY_0 = 4, STICKY_1 = 5};
+
50
51
52
53/******************************************************************************
-
54* Typedefs and Enums
+
54* Function Prototypes
55******************************************************************************/
56
-
57enum parity_type {NONE = 0, ODD = 1, EVEN = 2, STICKY_0 = 4, STICKY_1 = 5};
58
-
59
-
60
-
61/******************************************************************************
-
62* Function Prototypes
-
63******************************************************************************/
-
64
+
66
- +
68
+
74
-
76
- -
82
+
75
+
77
+
83
-
85
- -
91
+
84
+
86
+
92
-
94
- -
100
+
93
+
95
+
101
-
103
- -
109
+
102
+
104
+
110
-
112
- -
118
+
111
+
113
+
119
-
121
- -
127
+
120
+
122
+
128
-
130
- -
136
+
129
+
131
+
137
-
139
- -
145
+
138
+
140
+
146
-
148
- -
154
+
147
+
149
+
155
-
157
- +
156
163
-
164
+ +
170
171
- -
178
-
179
+
173
+
179EF_DRIVER_STATUS EF_UART_getCTRL(EF_UART_TYPE_PTR uart, uint32_t* CTRL_value);
+
180
181
-
187EF_DRIVER_STATUS EF_UART_getCTRL(EF_UART_TYPE_PTR uart, uint32_t* CTRL_value);
-
188
-
189
+
183
+ +
190
191
- -
198
-
199
+
193
+ +
200
201
- -
208
-
209
+
203
+ +
210
211
- -
218
-
219
+
213
+ +
220
221
- -
228
-
229
+
227
+ +
234
235
- -
242
-
243
+
237
+
243EF_DRIVER_STATUS EF_UART_getConfig(EF_UART_TYPE_PTR uart, uint32_t* CFG_value);
+
244
245
-
251EF_DRIVER_STATUS EF_UART_getConfig(EF_UART_TYPE_PTR uart, uint32_t* CFG_value);
-
252
-
253
+
247
+ +
254
255
- -
262
-
263
+
257
+
263EF_DRIVER_STATUS EF_UART_getRxFIFOThreshold(EF_UART_TYPE_PTR uart, uint32_t* RX_FIFO_THRESHOLD_value);
+
264
265
-
271EF_DRIVER_STATUS EF_UART_getRxFIFOThreshold(EF_UART_TYPE_PTR uart, uint32_t* RX_FIFO_THRESHOLD_value);
-
272
-
273
+
267
+ +
274
275
- -
282
-
283
+
277
+
283EF_DRIVER_STATUS EF_UART_getTxFIFOThreshold(EF_UART_TYPE_PTR uart, uint32_t* TX_FIFO_THRESHOLD_value);
+
284
285
-
291EF_DRIVER_STATUS EF_UART_getTxFIFOThreshold(EF_UART_TYPE_PTR uart, uint32_t* TX_FIFO_THRESHOLD_value);
-
292
-
293
-
294
+
286
+
288
+ +
295
296
- -
303
-
304
+
298
+
304EF_DRIVER_STATUS EF_UART_getMatchData(EF_UART_TYPE_PTR uart, uint32_t* MATCH_value);
+
305
306
-
312EF_DRIVER_STATUS EF_UART_getMatchData(EF_UART_TYPE_PTR uart, uint32_t* MATCH_value);
-
313
-
314
+
308
+
314EF_DRIVER_STATUS EF_UART_getTxCount(EF_UART_TYPE_PTR uart, uint32_t* TX_FIFO_LEVEL_value);
+
315
316
-
322EF_DRIVER_STATUS EF_UART_getTxCount(EF_UART_TYPE_PTR uart, uint32_t* TX_FIFO_LEVEL_value);
-
323
-
324
+
318
+
324EF_DRIVER_STATUS EF_UART_getRxCount(EF_UART_TYPE_PTR uart, uint32_t* RX_FIFO_LEVEL_value);
+
325
326
-
332EF_DRIVER_STATUS EF_UART_getRxCount(EF_UART_TYPE_PTR uart, uint32_t* RX_FIFO_LEVEL_value);
-
333
-
334
+
328
+ +
335
336
- -
343
-
344
+
338
+
344EF_DRIVER_STATUS EF_UART_getPrescaler(EF_UART_TYPE_PTR uart, uint32_t* Prescaler_value);
+
345
346
-
352EF_DRIVER_STATUS EF_UART_getPrescaler(EF_UART_TYPE_PTR uart, uint32_t* Prescaler_value);
-
353
-
354
+
358
+
364EF_DRIVER_STATUS EF_UART_getRIS(EF_UART_TYPE_PTR uart, uint32_t* RIS_value);
+
365
366
-
372EF_DRIVER_STATUS EF_UART_getRIS(EF_UART_TYPE_PTR uart, uint32_t* RIS_value);
-
373
-
374
+
378
+
384EF_DRIVER_STATUS EF_UART_getMIS(EF_UART_TYPE_PTR uart, uint32_t* MIS_value);
+
385
386
-
392EF_DRIVER_STATUS EF_UART_getMIS(EF_UART_TYPE_PTR uart, uint32_t* MIS_value);
-
393
-
394
+
398
+ +
405
406
- -
413
-
414
+
418
+
424EF_DRIVER_STATUS EF_UART_getIM(EF_UART_TYPE_PTR uart, uint32_t* IM_value);
+
425
426
-
432EF_DRIVER_STATUS EF_UART_getIM(EF_UART_TYPE_PTR uart, uint32_t* IM_value);
-
433
-
434
+
438
+ +
445
446
- -
453
-
454
+
448
+
455EF_DRIVER_STATUS EF_UART_writeCharArr(EF_UART_TYPE_PTR uart, const char *char_arr);
456
-
463EF_DRIVER_STATUS EF_UART_writeCharArr(EF_UART_TYPE_PTR uart, const char *char_arr);
-
464
-
465
+
457
+
459
+ +
466
467
- -
474
-
475
+
469
+
475EF_DRIVER_STATUS EF_UART_readChar(EF_UART_TYPE_PTR uar, char* RXDATA_value);
+
476
477
-
483EF_DRIVER_STATUS EF_UART_readChar(EF_UART_TYPE_PTR uar, char* RXDATA_value);
-
484
+
478
+
479// The following functions are not verified yet
+
480/******************************************************************************************************************************************/
+
481/******************************************************************************************************************************************/
+
482
+
483
485
-
486
-
487// The following functions are not verified yet
-
488/******************************************************************************************************************************************/
-
489/******************************************************************************************************************************************/
-
490
-
491
+
492EF_DRIVER_STATUS EF_UART_readCharNonBlocking(EF_UART_TYPE_PTR uart, char* RXDATA_value, bool* data_available);
493
-
500EF_DRIVER_STATUS EF_UART_readCharNonBlocking(EF_UART_TYPE_PTR uart, char* RXDATA_value, bool* data_available);
-
501
+
495
+
502EF_DRIVER_STATUS EF_UART_writeCharNonBlocking(EF_UART_TYPE_PTR uart, char data, bool* data_sent);
503
-
510EF_DRIVER_STATUS EF_UART_writeCharNonBlocking(EF_UART_TYPE_PTR uart, char data, bool* data_sent);
-
511
+
505
+ +
512
513
- -
520
-
521
-
523
- -
530
-
532
-
538EF_DRIVER_STATUS EF_UART_getParityMode(EF_UART_TYPE_PTR uart, uint32_t* parity_mode);
-
539
+
515
+ +
522
+
524
+
530EF_DRIVER_STATUS EF_UART_getParityMode(EF_UART_TYPE_PTR uart, uint32_t* parity_mode);
+
531
+
533
+ +
540
541
- -
548
-
549
-
551
-
564EF_DRIVER_STATUS UART_Init(EF_UART_TYPE_PTR uart, uint32_t baud_rate, uint32_t bus_clock, uint32_t data_bits, bool two_stop_bits, enum parity_type parity, uint32_t timeout, uint32_t rx_threshold, uint32_t tx_threshold);
-
565
-
566
+
543
+
556EF_DRIVER_STATUS UART_Init(EF_UART_TYPE_PTR uart, uint32_t baud_rate, uint32_t bus_clock, uint32_t data_bits, bool two_stop_bits, enum parity_type parity, uint32_t timeout, uint32_t rx_threshold, uint32_t tx_threshold);
+
557
+
558
+
564
+
571EF_DRIVER_STATUS EF_UART_readCharArr(EF_UART_TYPE_PTR uart, char *buffer, uint32_t buffer_size);
572
-
579EF_DRIVER_STATUS EF_UART_readCharArr(EF_UART_TYPE_PTR uart, char *buffer, uint32_t buffer_size);
+
573
+
574/******************************************************************************
+
575* External Variables
+
576******************************************************************************/
+
577
+
578
+
579#endif // EF_UART_H
580
-
581
-
582/******************************************************************************
-
583* External Variables
-
584******************************************************************************/
-
585
-
586
-
587#endif // EF_UART_H
-
588
-
589/******************************************************************************
-
590* End of File
-
591******************************************************************************/
+
581/******************************************************************************
+
582* End of File
+
583******************************************************************************/
C header file for common driver definitions and types.
uint32_t EF_DRIVER_STATUS
A type that is used to return the status of the driver functions.
Definition: EF_Driver_Common.h:53
EF_DRIVER_STATUS EF_UART_setDataSize(EF_UART_TYPE_PTR uart, uint32_t value)
sets the Data Size (Data word length: 5-9 bits ) by setting the "wlen" field in configuration registe...
Definition: EF_UART.c:268
@@ -338,6 +330,7 @@
EF_DRIVER_STATUS EF_UART_disableRx(EF_UART_TYPE_PTR uart)
disables using uart RX by clearing uart "rxen" bit in the control register
Definition: EF_UART.c:110
EF_DRIVER_STATUS EF_UART_getMatchData(EF_UART_TYPE_PTR uart, uint32_t *MATCH_value)
returns the value of the match data register
Definition: EF_UART.c:479
EF_DRIVER_STATUS EF_UART_setGclkEnable(EF_UART_TYPE_PTR uart, uint32_t value)
sets the GCLK enable bit in the UART register to a certain value
Definition: EF_UART.c:55
+
EF_DRIVER_STATUS EF_UART_setStopBits(EF_UART_TYPE_PTR uart, bool is_two_bits)
sets the "stp2" bit in configuration register (whether the stop boits are two or one)
Definition: EF_UART.c:288
EF_DRIVER_STATUS EF_UART_setConfig(EF_UART_TYPE_PTR uart, uint32_t config)
Definition: EF_UART.c:338
EF_DRIVER_STATUS EF_UART_getRxFIFOThreshold(EF_UART_TYPE_PTR uart, uint32_t *RX_FIFO_THRESHOLD_value)
returns the current value of the RX FIFO threshold
Definition: EF_UART.c:384
EF_DRIVER_STATUS EF_UART_setICR(EF_UART_TYPE_PTR uart, uint32_t mask)
Definition: EF_UART.c:572
@@ -354,12 +347,12 @@
EF_DRIVER_STATUS EF_UART_getPrescaler(EF_UART_TYPE_PTR uart, uint32_t *Prescaler_value)
returns the value of the prescaler
Definition: EF_UART.c:251
EF_DRIVER_STATUS EF_UART_readCharNonBlocking(EF_UART_TYPE_PTR uart, char *RXDATA_value, bool *data_available)
This is a non-blocking function that reads a character from the UART receive FIFO if data is availabl...
Definition: EF_UART.c:657
EF_DRIVER_STATUS EF_UART_getRxCount(EF_UART_TYPE_PTR uart, uint32_t *RX_FIFO_LEVEL_value)
returns the current level of the RX FIFO (the number of bytes in the FIFO)
Definition: EF_UART.c:448
-
parity_type
Definition: EF_UART.h:57
-
@ STICKY_1
Definition: EF_UART.h:57
-
@ EVEN
Definition: EF_UART.h:57
-
@ ODD
Definition: EF_UART.h:57
-
@ NONE
Definition: EF_UART.h:57
-
@ STICKY_0
Definition: EF_UART.h:57
+
parity_type
Definition: EF_UART.h:49
+
@ STICKY_1
Definition: EF_UART.h:49
+
@ EVEN
Definition: EF_UART.h:49
+
@ ODD
Definition: EF_UART.h:49
+
@ NONE
Definition: EF_UART.h:49
+
@ STICKY_0
Definition: EF_UART.h:49
EF_DRIVER_STATUS EF_UART_getIM(EF_UART_TYPE_PTR uart, uint32_t *IM_value)
Definition: EF_UART.c:555
EF_DRIVER_STATUS EF_UART_readChar(EF_UART_TYPE_PTR uar, char *RXDATA_value)
recieve a single character through uart
Definition: EF_UART.c:632
EF_DRIVER_STATUS EF_UART_readCharArr(EF_UART_TYPE_PTR uart, char *buffer, uint32_t buffer_size)
Definition: EF_UART.c:830
@@ -369,14 +362,13 @@
EF_DRIVER_STATUS EF_UART_setTimeoutBits(EF_UART_TYPE_PTR uart, uint32_t value)
sets the "timeout" field in configuration register which is receiver timeout measured in number of bi...
Definition: EF_UART.c:322
EF_DRIVER_STATUS EF_UART_setCTRL(EF_UART_TYPE_PTR uart, uint32_t value)
Definition: EF_UART.c:203
EF_DRIVER_STATUS EF_UART_setIM(EF_UART_TYPE_PTR uart, uint32_t mask)
Definition: EF_UART.c:539
-
EF_DRIVER_STATUS EF_UART_setTwoStopBitsSelect(EF_UART_TYPE_PTR uart, bool is_two_bits)
sets the "stp2" bit in configuration register (whether the stop boits are two or one)
Definition: EF_UART.c:288
EF_DRIVER_STATUS EF_UART_setRxFIFOThreshold(EF_UART_TYPE_PTR uart, uint32_t threshold)
sets the RX FIFO threshold to a certain value at which "RXA" interrupt will be raised
Definition: EF_UART.c:369
EF_DRIVER_STATUS EF_UART_setTxFIFOThreshold(EF_UART_TYPE_PTR uart, uint32_t threshold)
sets the TX FIFO threshold to a certain value at which "TXB" interrupt will be raised
Definition: EF_UART.c:401
EF_DRIVER_STATUS EF_UART_disableLoopBack(EF_UART_TYPE_PTR uart)
disables loopback (connecting TX to RX signal) by clearing "lpen" bit in the control register
Definition: EF_UART.c:162
EF_DRIVER_STATUS EF_UART_setMatchData(EF_UART_TYPE_PTR uart, uint32_t matchData)
sets the matchData to a certain value at which "MATCH" interrupt will be raised
Definition: EF_UART.c:464
EF_DRIVER_STATUS EF_UART_getConfig(EF_UART_TYPE_PTR uart, uint32_t *CFG_value)
returns the value of the configuration register
Definition: EF_UART.c:353
-
Definition: EF_UART_regs.h:86
+
Definition: EF_UART_regs.h:119
EF_DRIVER_STATUS EF_UART_readCharArr(EF_UART_TYPE_PTR uart, char *buffer, uint32_t buffer_size)
Definition: EF_UART.c:830
C header file for UART APIs which contains the function prototypes.
-
@ EVEN
Definition: EF_UART.h:57
+
@ EVEN
Definition: EF_UART.h:49
#define UART0
Definition: EF_UART_example.c:38
EF_DRIVER_STATUS EF_UART_example(void)
Example Usage Example usage:
Definition: EF_UART_example.c:57
diff --git a/docs/doxygen/html/_e_f___u_a_r_t__example_8h.html b/docs/doxygen/html/_e_f___u_a_r_t__example_8h.html index afca091..ac7f5c1 100644 --- a/docs/doxygen/html/_e_f___u_a_r_t__example_8h.html +++ b/docs/doxygen/html/_e_f___u_a_r_t__example_8h.html @@ -144,7 +144,7 @@

EF_DRIVER_STATUS UART_Init(EF_UART_TYPE_PTR uart, uint32_t baud_rate, uint32_t bus_clock, uint32_t data_bits, bool two_stop_bits, enum parity_type parity, uint32_t timeout, uint32_t rx_threshold, uint32_t tx_threshold)
This function initializes the UART with the specified parameters.
Definition: EF_UART.c:786
EF_DRIVER_STATUS EF_UART_readCharArr(EF_UART_TYPE_PTR uart, char *buffer, uint32_t buffer_size)
Definition: EF_UART.c:830
C header file for UART APIs which contains the function prototypes.
-
@ EVEN
Definition: EF_UART.h:57
+
@ EVEN
Definition: EF_UART.h:49
#define UART0
Definition: EF_UART_example.c:38
EF_DRIVER_STATUS EF_UART_example(void)
Example Usage Example usage:
Definition: EF_UART_example.c:57
diff --git a/docs/doxygen/html/_e_f___u_a_r_t__regs_8h.html b/docs/doxygen/html/_e_f___u_a_r_t__regs_8h.html index 160a3d5..80b5d28 100644 --- a/docs/doxygen/html/_e_f___u_a_r_t__regs_8h.html +++ b/docs/doxygen/html/_e_f___u_a_r_t__regs_8h.html @@ -95,6 +95,24 @@   #define __RW   volatile uint32_t   +#define EF_UART_RXDATA_REG_RXDATA_BIT   ((uint32_t)0) +  +#define EF_UART_RXDATA_REG_RXDATA_MASK   ((uint32_t)0x1ff) +  +#define EF_UART_RXDATA_REG_MAX_VALUE   ((uint32_t)0x1FF) +  +#define EF_UART_TXDATA_REG_TXDATA_BIT   ((uint32_t)0) +  +#define EF_UART_TXDATA_REG_TXDATA_MASK   ((uint32_t)0x1ff) +  +#define EF_UART_TXDATA_REG_MAX_VALUE   ((uint32_t)0x1FF) +  +#define EF_UART_PR_REG_PR_BIT   ((uint32_t)0) +  +#define EF_UART_PR_REG_PR_MASK   ((uint32_t)0xffff) +  +#define EF_UART_PR_REG_MAX_VALUE   ((uint32_t)0xFFFF) +  #define EF_UART_CTRL_REG_EN_BIT   ((uint32_t)0)   #define EF_UART_CTRL_REG_EN_MASK   ((uint32_t)0x1) @@ -115,6 +133,8 @@   #define EF_UART_CTRL_REG_GFEN_MASK   ((uint32_t)0x10)   +#define EF_UART_CTRL_REG_MAX_VALUE   ((uint32_t)0x1F) +  #define EF_UART_CFG_REG_WLEN_BIT   ((uint32_t)0)   #define EF_UART_CFG_REG_WLEN_MASK   ((uint32_t)0xf) @@ -129,32 +149,52 @@   #define EF_UART_CFG_REG_TIMEOUT_BIT   ((uint32_t)8)   -#define EF_UART_CFG_REG_TIMEOUT_MASK   ((uint32_t)0x3f) +#define EF_UART_CFG_REG_TIMEOUT_MASK   ((uint32_t)0x3f00)   +#define EF_UART_CFG_REG_MAX_VALUE   ((uint32_t)0x3FFF) +  +#define EF_UART_MATCH_REG_MATCH_BIT   ((uint32_t)0) +  +#define EF_UART_MATCH_REG_MATCH_MASK   ((uint32_t)0x1ff) +  +#define EF_UART_MATCH_REG_MAX_VALUE   ((uint32_t)0x1FF) +  #define EF_UART_RX_FIFO_LEVEL_REG_LEVEL_BIT   ((uint32_t)0)   #define EF_UART_RX_FIFO_LEVEL_REG_LEVEL_MASK   ((uint32_t)0xf)   +#define EF_UART_RX_FIFO_LEVEL_REG_MAX_VALUE   ((uint32_t)0xF) +  #define EF_UART_RX_FIFO_THRESHOLD_REG_THRESHOLD_BIT   ((uint32_t)0)   #define EF_UART_RX_FIFO_THRESHOLD_REG_THRESHOLD_MASK   ((uint32_t)0xf)   +#define EF_UART_RX_FIFO_THRESHOLD_REG_MAX_VALUE   ((uint32_t)0xF) +  #define EF_UART_RX_FIFO_FLUSH_REG_FLUSH_BIT   ((uint32_t)0)   #define EF_UART_RX_FIFO_FLUSH_REG_FLUSH_MASK   ((uint32_t)0x1)   +#define EF_UART_RX_FIFO_FLUSH_REG_MAX_VALUE   ((uint32_t)0x1) +  #define EF_UART_TX_FIFO_LEVEL_REG_LEVEL_BIT   ((uint32_t)0)   #define EF_UART_TX_FIFO_LEVEL_REG_LEVEL_MASK   ((uint32_t)0xf)   +#define EF_UART_TX_FIFO_LEVEL_REG_MAX_VALUE   ((uint32_t)0xF) +  #define EF_UART_TX_FIFO_THRESHOLD_REG_THRESHOLD_BIT   ((uint32_t)0)   #define EF_UART_TX_FIFO_THRESHOLD_REG_THRESHOLD_MASK   ((uint32_t)0xf)   +#define EF_UART_TX_FIFO_THRESHOLD_REG_MAX_VALUE   ((uint32_t)0xF) +  #define EF_UART_TX_FIFO_FLUSH_REG_FLUSH_BIT   ((uint32_t)0)   #define EF_UART_TX_FIFO_FLUSH_REG_FLUSH_MASK   ((uint32_t)0x1)   +#define EF_UART_TX_FIFO_FLUSH_REG_MAX_VALUE   ((uint32_t)0x1) +  #define EF_UART_TXE_FLAG   ((uint32_t)0x1)   #define EF_UART_RXF_FLAG   ((uint32_t)0x2) @@ -238,6 +278,20 @@

+ + + +

◆ EF_UART_CFG_REG_MAX_VALUE

+ +
+
+ + + + +
#define EF_UART_CFG_REG_MAX_VALUE   ((uint32_t)0x3FFF)
+
+
@@ -317,7 +371,7 @@

- +
#define EF_UART_CFG_REG_TIMEOUT_MASK   ((uint32_t)0x3f)#define EF_UART_CFG_REG_TIMEOUT_MASK   ((uint32_t)0x3f00)
+ + +

◆ EF_UART_CTRL_REG_MAX_VALUE

+ +
+
+ + + + +
#define EF_UART_CTRL_REG_MAX_VALUE   ((uint32_t)0x1F)
+
+
@@ -518,6 +586,48 @@

+ + + +

◆ EF_UART_MATCH_REG_MATCH_BIT

+ +
+
+ + + + +
#define EF_UART_MATCH_REG_MATCH_BIT   ((uint32_t)0)
+
+ +
+
+ +

◆ EF_UART_MATCH_REG_MATCH_MASK

+ +
+
+ + + + +
#define EF_UART_MATCH_REG_MATCH_MASK   ((uint32_t)0x1ff)
+
+ +
+
+ +

◆ EF_UART_MATCH_REG_MAX_VALUE

+ +
+
+ + + + +
#define EF_UART_MATCH_REG_MAX_VALUE   ((uint32_t)0x1FF)
+
+
@@ -532,6 +642,48 @@

+ + + +

◆ EF_UART_PR_REG_MAX_VALUE

+ +
+
+ + + + +
#define EF_UART_PR_REG_MAX_VALUE   ((uint32_t)0xFFFF)
+
+ +
+
+ +

◆ EF_UART_PR_REG_PR_BIT

+ +
+
+ + + + +
#define EF_UART_PR_REG_PR_BIT   ((uint32_t)0)
+
+ +
+
+ +

◆ EF_UART_PR_REG_PR_MASK

+ +
+
+ + + + +
#define EF_UART_PR_REG_PR_MASK   ((uint32_t)0xffff)
+
+
@@ -588,6 +740,20 @@

+ + + +

◆ EF_UART_RX_FIFO_FLUSH_REG_MAX_VALUE

+ +
+
+ + + + +
#define EF_UART_RX_FIFO_FLUSH_REG_MAX_VALUE   ((uint32_t)0x1)
+
+
@@ -616,6 +782,34 @@

+ + + +

◆ EF_UART_RX_FIFO_LEVEL_REG_MAX_VALUE

+ +
+
+ + + + +
#define EF_UART_RX_FIFO_LEVEL_REG_MAX_VALUE   ((uint32_t)0xF)
+
+ +
+
+ +

◆ EF_UART_RX_FIFO_THRESHOLD_REG_MAX_VALUE

+ +
+
+ + + + +
#define EF_UART_RX_FIFO_THRESHOLD_REG_MAX_VALUE   ((uint32_t)0xF)
+
+
@@ -658,6 +852,48 @@

+ + + +

◆ EF_UART_RXDATA_REG_MAX_VALUE

+ +
+
+ + + + +
#define EF_UART_RXDATA_REG_MAX_VALUE   ((uint32_t)0x1FF)
+
+ +
+
+ +

◆ EF_UART_RXDATA_REG_RXDATA_BIT

+ +
+
+ + + + +
#define EF_UART_RXDATA_REG_RXDATA_BIT   ((uint32_t)0)
+
+ +
+
+ +

◆ EF_UART_RXDATA_REG_RXDATA_MASK

+ +
+
+ + + + +
#define EF_UART_RXDATA_REG_RXDATA_MASK   ((uint32_t)0x1ff)
+
+
@@ -700,6 +936,20 @@

+ + + +

◆ EF_UART_TX_FIFO_FLUSH_REG_MAX_VALUE

+ +
+
+ + + + +
#define EF_UART_TX_FIFO_FLUSH_REG_MAX_VALUE   ((uint32_t)0x1)
+
+
@@ -728,6 +978,34 @@

+ + + +

◆ EF_UART_TX_FIFO_LEVEL_REG_MAX_VALUE

+ +
+
+ + + + +
#define EF_UART_TX_FIFO_LEVEL_REG_MAX_VALUE   ((uint32_t)0xF)
+
+ +
+
+ +

◆ EF_UART_TX_FIFO_THRESHOLD_REG_MAX_VALUE

+ +
+
+ + + + +
#define EF_UART_TX_FIFO_THRESHOLD_REG_MAX_VALUE   ((uint32_t)0xF)
+
+
@@ -770,6 +1048,48 @@

+ + + +

◆ EF_UART_TXDATA_REG_MAX_VALUE

+ +
+
+ + + + +
#define EF_UART_TXDATA_REG_MAX_VALUE   ((uint32_t)0x1FF)
+
+ +
+
+ +

◆ EF_UART_TXDATA_REG_TXDATA_BIT

+ +
+
+ + + + +
#define EF_UART_TXDATA_REG_TXDATA_BIT   ((uint32_t)0)
+
+ +
+
+ +

◆ EF_UART_TXDATA_REG_TXDATA_MASK

+ +
+
+ + + + +
#define EF_UART_TXDATA_REG_TXDATA_MASK   ((uint32_t)0x1ff)
+
+
diff --git a/docs/doxygen/html/_e_f___u_a_r_t__regs_8h_source.html b/docs/doxygen/html/_e_f___u_a_r_t__regs_8h_source.html index e37d4b4..64bbb5a 100644 --- a/docs/doxygen/html/_e_f___u_a_r_t__regs_8h_source.html +++ b/docs/doxygen/html/_e_f___u_a_r_t__regs_8h_source.html @@ -111,127 +111,160 @@
37#define __RW volatile uint32_t
38#endif
39
-
40#define EF_UART_CTRL_REG_EN_BIT ((uint32_t)0)
-
41#define EF_UART_CTRL_REG_EN_MASK ((uint32_t)0x1)
-
42#define EF_UART_CTRL_REG_TXEN_BIT ((uint32_t)1)
-
43#define EF_UART_CTRL_REG_TXEN_MASK ((uint32_t)0x2)
-
44#define EF_UART_CTRL_REG_RXEN_BIT ((uint32_t)2)
-
45#define EF_UART_CTRL_REG_RXEN_MASK ((uint32_t)0x4)
-
46#define EF_UART_CTRL_REG_LPEN_BIT ((uint32_t)3)
-
47#define EF_UART_CTRL_REG_LPEN_MASK ((uint32_t)0x8)
-
48#define EF_UART_CTRL_REG_GFEN_BIT ((uint32_t)4)
-
49#define EF_UART_CTRL_REG_GFEN_MASK ((uint32_t)0x10)
-
50#define EF_UART_CFG_REG_WLEN_BIT ((uint32_t)0)
-
51#define EF_UART_CFG_REG_WLEN_MASK ((uint32_t)0xf)
-
52#define EF_UART_CFG_REG_STP2_BIT ((uint32_t)4)
-
53#define EF_UART_CFG_REG_STP2_MASK ((uint32_t)0x10)
-
54#define EF_UART_CFG_REG_PARITY_BIT ((uint32_t)5)
-
55#define EF_UART_CFG_REG_PARITY_MASK ((uint32_t)0xe0)
-
56#define EF_UART_CFG_REG_TIMEOUT_BIT ((uint32_t)8)
-
57#define EF_UART_CFG_REG_TIMEOUT_MASK ((uint32_t)0x3f)
-
58#define EF_UART_RX_FIFO_LEVEL_REG_LEVEL_BIT ((uint32_t)0)
-
59#define EF_UART_RX_FIFO_LEVEL_REG_LEVEL_MASK ((uint32_t)0xf)
-
60#define EF_UART_RX_FIFO_THRESHOLD_REG_THRESHOLD_BIT ((uint32_t)0)
-
61#define EF_UART_RX_FIFO_THRESHOLD_REG_THRESHOLD_MASK ((uint32_t)0xf)
-
62#define EF_UART_RX_FIFO_FLUSH_REG_FLUSH_BIT ((uint32_t)0)
-
63#define EF_UART_RX_FIFO_FLUSH_REG_FLUSH_MASK ((uint32_t)0x1)
-
64#define EF_UART_TX_FIFO_LEVEL_REG_LEVEL_BIT ((uint32_t)0)
-
65#define EF_UART_TX_FIFO_LEVEL_REG_LEVEL_MASK ((uint32_t)0xf)
-
66#define EF_UART_TX_FIFO_THRESHOLD_REG_THRESHOLD_BIT ((uint32_t)0)
-
67#define EF_UART_TX_FIFO_THRESHOLD_REG_THRESHOLD_MASK ((uint32_t)0xf)
-
68#define EF_UART_TX_FIFO_FLUSH_REG_FLUSH_BIT ((uint32_t)0)
-
69#define EF_UART_TX_FIFO_FLUSH_REG_FLUSH_MASK ((uint32_t)0x1)
-
70
-
71#define EF_UART_TXE_FLAG ((uint32_t)0x1)
-
72#define EF_UART_RXF_FLAG ((uint32_t)0x2)
-
73#define EF_UART_TXB_FLAG ((uint32_t)0x4)
-
74#define EF_UART_RXA_FLAG ((uint32_t)0x8)
-
75#define EF_UART_BRK_FLAG ((uint32_t)0x10)
-
76#define EF_UART_MATCH_FLAG ((uint32_t)0x20)
-
77#define EF_UART_FE_FLAG ((uint32_t)0x40)
-
78#define EF_UART_PRE_FLAG ((uint32_t)0x80)
-
79#define EF_UART_OR_FLAG ((uint32_t)0x100)
-
80#define EF_UART_RTO_FLAG ((uint32_t)0x200)
+
40#define EF_UART_RXDATA_REG_RXDATA_BIT ((uint32_t)0)
+
41#define EF_UART_RXDATA_REG_RXDATA_MASK ((uint32_t)0x1ff)
+
42#define EF_UART_RXDATA_REG_MAX_VALUE ((uint32_t)0x1FF)
+
43
+
44#define EF_UART_TXDATA_REG_TXDATA_BIT ((uint32_t)0)
+
45#define EF_UART_TXDATA_REG_TXDATA_MASK ((uint32_t)0x1ff)
+
46#define EF_UART_TXDATA_REG_MAX_VALUE ((uint32_t)0x1FF)
+
47
+
48#define EF_UART_PR_REG_PR_BIT ((uint32_t)0)
+
49#define EF_UART_PR_REG_PR_MASK ((uint32_t)0xffff)
+
50#define EF_UART_PR_REG_MAX_VALUE ((uint32_t)0xFFFF)
+
51
+
52#define EF_UART_CTRL_REG_EN_BIT ((uint32_t)0)
+
53#define EF_UART_CTRL_REG_EN_MASK ((uint32_t)0x1)
+
54#define EF_UART_CTRL_REG_TXEN_BIT ((uint32_t)1)
+
55#define EF_UART_CTRL_REG_TXEN_MASK ((uint32_t)0x2)
+
56#define EF_UART_CTRL_REG_RXEN_BIT ((uint32_t)2)
+
57#define EF_UART_CTRL_REG_RXEN_MASK ((uint32_t)0x4)
+
58#define EF_UART_CTRL_REG_LPEN_BIT ((uint32_t)3)
+
59#define EF_UART_CTRL_REG_LPEN_MASK ((uint32_t)0x8)
+
60#define EF_UART_CTRL_REG_GFEN_BIT ((uint32_t)4)
+
61#define EF_UART_CTRL_REG_GFEN_MASK ((uint32_t)0x10)
+
62#define EF_UART_CTRL_REG_MAX_VALUE ((uint32_t)0x1F)
+
63
+
64#define EF_UART_CFG_REG_WLEN_BIT ((uint32_t)0)
+
65#define EF_UART_CFG_REG_WLEN_MASK ((uint32_t)0xf)
+
66#define EF_UART_CFG_REG_STP2_BIT ((uint32_t)4)
+
67#define EF_UART_CFG_REG_STP2_MASK ((uint32_t)0x10)
+
68#define EF_UART_CFG_REG_PARITY_BIT ((uint32_t)5)
+
69#define EF_UART_CFG_REG_PARITY_MASK ((uint32_t)0xe0)
+
70#define EF_UART_CFG_REG_TIMEOUT_BIT ((uint32_t)8)
+
71#define EF_UART_CFG_REG_TIMEOUT_MASK ((uint32_t)0x3f00)
+
72#define EF_UART_CFG_REG_MAX_VALUE ((uint32_t)0x3FFF)
+
73
+
74#define EF_UART_MATCH_REG_MATCH_BIT ((uint32_t)0)
+
75#define EF_UART_MATCH_REG_MATCH_MASK ((uint32_t)0x1ff)
+
76#define EF_UART_MATCH_REG_MAX_VALUE ((uint32_t)0x1FF)
+
77
+
78#define EF_UART_RX_FIFO_LEVEL_REG_LEVEL_BIT ((uint32_t)0)
+
79#define EF_UART_RX_FIFO_LEVEL_REG_LEVEL_MASK ((uint32_t)0xf)
+
80#define EF_UART_RX_FIFO_LEVEL_REG_MAX_VALUE ((uint32_t)0xF)
81
-
82
-
83/******************************************************************************
-
84* Typedefs and Enums
-
85******************************************************************************/
-
86typedef struct _EF_UART_TYPE_ {
- - - - - - - - - - - - - - - - - - - - - - -
109
-
110
- -
112
+
82#define EF_UART_RX_FIFO_THRESHOLD_REG_THRESHOLD_BIT ((uint32_t)0)
+
83#define EF_UART_RX_FIFO_THRESHOLD_REG_THRESHOLD_MASK ((uint32_t)0xf)
+
84#define EF_UART_RX_FIFO_THRESHOLD_REG_MAX_VALUE ((uint32_t)0xF)
+
85
+
86#define EF_UART_RX_FIFO_FLUSH_REG_FLUSH_BIT ((uint32_t)0)
+
87#define EF_UART_RX_FIFO_FLUSH_REG_FLUSH_MASK ((uint32_t)0x1)
+
88#define EF_UART_RX_FIFO_FLUSH_REG_MAX_VALUE ((uint32_t)0x1)
+
89
+
90#define EF_UART_TX_FIFO_LEVEL_REG_LEVEL_BIT ((uint32_t)0)
+
91#define EF_UART_TX_FIFO_LEVEL_REG_LEVEL_MASK ((uint32_t)0xf)
+
92#define EF_UART_TX_FIFO_LEVEL_REG_MAX_VALUE ((uint32_t)0xF)
+
93
+
94#define EF_UART_TX_FIFO_THRESHOLD_REG_THRESHOLD_BIT ((uint32_t)0)
+
95#define EF_UART_TX_FIFO_THRESHOLD_REG_THRESHOLD_MASK ((uint32_t)0xf)
+
96#define EF_UART_TX_FIFO_THRESHOLD_REG_MAX_VALUE ((uint32_t)0xF)
+
97
+
98#define EF_UART_TX_FIFO_FLUSH_REG_FLUSH_BIT ((uint32_t)0)
+
99#define EF_UART_TX_FIFO_FLUSH_REG_FLUSH_MASK ((uint32_t)0x1)
+
100#define EF_UART_TX_FIFO_FLUSH_REG_MAX_VALUE ((uint32_t)0x1)
+
101
+
102
+
103#define EF_UART_TXE_FLAG ((uint32_t)0x1)
+
104#define EF_UART_RXF_FLAG ((uint32_t)0x2)
+
105#define EF_UART_TXB_FLAG ((uint32_t)0x4)
+
106#define EF_UART_RXA_FLAG ((uint32_t)0x8)
+
107#define EF_UART_BRK_FLAG ((uint32_t)0x10)
+
108#define EF_UART_MATCH_FLAG ((uint32_t)0x20)
+
109#define EF_UART_FE_FLAG ((uint32_t)0x40)
+
110#define EF_UART_PRE_FLAG ((uint32_t)0x80)
+
111#define EF_UART_OR_FLAG ((uint32_t)0x100)
+
112#define EF_UART_RTO_FLAG ((uint32_t)0x200)
113
114
-
115/******************************************************************************
-
116* Function Prototypes
-
117******************************************************************************/
-
118
-
119
-
120
-
121/******************************************************************************
-
122* External Variables
-
123******************************************************************************/
-
124
-
125
-
126
-
127
-
128#endif // EF_UARTREGS_H
-
129
-
130/******************************************************************************
-
131* End of File
-
132******************************************************************************/
+
115
+
116/******************************************************************************
+
117* Typedefs and Enums
+
118******************************************************************************/
+
119typedef struct _EF_UART_TYPE_ {
+ + + + + + + + + + + + + + + + + + + + + + +
142
+
143
+ +
145
+
146
+
147
+
148/******************************************************************************
+
149* Function Prototypes
+
150******************************************************************************/
+
151
+
152
+
153
+
154/******************************************************************************
+
155* External Variables
+
156******************************************************************************/
+
157
+
158
+
159
+
160
+
161#endif // EF_UARTREGS_H
+
162
+
163/******************************************************************************
+
164* End of File
+
165******************************************************************************/
C header file for common driver definitions and types.
#define __RW
Definition: EF_UART_regs.h:37
-
EF_UART_TYPE * EF_UART_TYPE_PTR
Definition: EF_UART_regs.h:111
+
EF_UART_TYPE * EF_UART_TYPE_PTR
Definition: EF_UART_regs.h:144
#define __W
Definition: EF_UART_regs.h:36
struct _EF_UART_TYPE_ EF_UART_TYPE
#define __R
Definition: EF_UART_regs.h:35
-
Definition: EF_UART_regs.h:86
-
__W TX_FIFO_THRESHOLD
Definition: EF_UART_regs.h:100
-
__R reserved_0[2]
Definition: EF_UART_regs.h:92
-
__W IC
Definition: EF_UART_regs.h:106
-
__W CFG
Definition: EF_UART_regs.h:91
-
__W RX_FIFO_THRESHOLD
Definition: EF_UART_regs.h:96
-
__R reserved_1[16248]
Definition: EF_UART_regs.h:94
-
__R TX_FIFO_LEVEL
Definition: EF_UART_regs.h:99
-
__R RIS
Definition: EF_UART_regs.h:105
-
__RW IM
Definition: EF_UART_regs.h:103
-
__R MIS
Definition: EF_UART_regs.h:104
-
__W TXDATA
Definition: EF_UART_regs.h:88
-
__R RX_FIFO_LEVEL
Definition: EF_UART_regs.h:95
-
__W MATCH
Definition: EF_UART_regs.h:93
-
__W CTRL
Definition: EF_UART_regs.h:90
-
__W PR
Definition: EF_UART_regs.h:89
-
__W RX_FIFO_FLUSH
Definition: EF_UART_regs.h:97
-
__W TX_FIFO_FLUSH
Definition: EF_UART_regs.h:101
-
__W GCLK
Definition: EF_UART_regs.h:107
-
__R reserved_2[1]
Definition: EF_UART_regs.h:98
-
__R reserved_3[57]
Definition: EF_UART_regs.h:102
-
__R RXDATA
Definition: EF_UART_regs.h:87
+
Definition: EF_UART_regs.h:119
+
__W TX_FIFO_THRESHOLD
Definition: EF_UART_regs.h:133
+
__R reserved_0[2]
Definition: EF_UART_regs.h:125
+
__W IC
Definition: EF_UART_regs.h:139
+
__W CFG
Definition: EF_UART_regs.h:124
+
__W RX_FIFO_THRESHOLD
Definition: EF_UART_regs.h:129
+
__R reserved_1[16248]
Definition: EF_UART_regs.h:127
+
__R TX_FIFO_LEVEL
Definition: EF_UART_regs.h:132
+
__R RIS
Definition: EF_UART_regs.h:138
+
__RW IM
Definition: EF_UART_regs.h:136
+
__R MIS
Definition: EF_UART_regs.h:137
+
__W TXDATA
Definition: EF_UART_regs.h:121
+
__R RX_FIFO_LEVEL
Definition: EF_UART_regs.h:128
+
__W MATCH
Definition: EF_UART_regs.h:126
+
__W CTRL
Definition: EF_UART_regs.h:123
+
__W PR
Definition: EF_UART_regs.h:122
+
__W RX_FIFO_FLUSH
Definition: EF_UART_regs.h:130
+
__W TX_FIFO_FLUSH
Definition: EF_UART_regs.h:134
+
__W GCLK
Definition: EF_UART_regs.h:140
+
__R reserved_2[1]
Definition: EF_UART_regs.h:131
+
__R reserved_3[57]
Definition: EF_UART_regs.h:135
+
__R RXDATA
Definition: EF_UART_regs.h:120