RTEMS: bsps/arm/altera-cyclone-v/include/bsp/alt_16550_uart.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
alt_16550_uart.h
Go to the documentation of this file.
1
7/*
8 * Altera - SoC UART Manager
9 */
10
11/*****************************************************************************
12 *
13 * Copyright 2013 Altera Corporation. All Rights Reserved.
14 *
15 * Redistribution and use in source and binary forms, with or without
16 * modification, are permitted provided that the following conditions are met:
17 *
18 * 1. Redistributions of source code must retain the above copyright notice,
19 * this list of conditions and the following disclaimer.
20 *
21 * 2. Redistributions in binary form must reproduce the above copyright notice,
22 * this list of conditions and the following disclaimer in the documentation
23 * and/or other materials provided with the distribution.
24 *
25 * 3. The name of the author may not be used to endorse or promote products
26 * derived from this software without specific prior written permission.
27 *
28 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER "AS IS" AND ANY EXPRESS OR
29 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
30 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ARE DISCLAIMED. IN NO
31 * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
32 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
33 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
34 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
35 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
36 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
37 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38 *
39 *****************************************************************************/
40
41#ifndef __ALT_16550_UART_H__
42#define __ALT_16550_UART_H__
43
44#include "hwlib.h"
45#include "alt_clock_manager.h"
46
47#ifdef __cplusplus
48extern "C"
49{
50#endif
51
81 typedef enum ALT_16550_DEVICE_e
82{
86 ALT_16550_DEVICE_SOCFPGA_UART0 = 0,
87
91 ALT_16550_DEVICE_SOCFPGA_UART1 = 1,
92
97 ALT_16550_DEVICE_ALTERA_16550_UART = 0x100
98}
99ALT_16550_DEVICE_t;
100
106 typedef struct ALT_16550_HANDLE_s
107{
108 ALT_16550_DEVICE_t device;
109 void * location;
110 alt_freq_t clock_freq;
111 uint32_t data;
112 uint32_t fcr;
113}
114ALT_16550_HANDLE_t;
115
147 ALT_STATUS_CODE alt_16550_init(ALT_16550_DEVICE_t device,
148 void * location,
149 alt_freq_t clock_freq,
150 ALT_16550_HANDLE_t * handle);
151
166 ALT_STATUS_CODE alt_16550_uninit(ALT_16550_HANDLE_t * handle);
167
179 ALT_STATUS_CODE alt_16550_reset(ALT_16550_HANDLE_t * handle);
180
191 ALT_STATUS_CODE alt_16550_enable(ALT_16550_HANDLE_t * handle);
192
204 ALT_STATUS_CODE alt_16550_disable(ALT_16550_HANDLE_t * handle);
205
221 ALT_STATUS_CODE alt_16550_read(ALT_16550_HANDLE_t * handle,
222 char * item);
223
238 ALT_STATUS_CODE alt_16550_write(ALT_16550_HANDLE_t * handle,
239 char item);
240
259 typedef enum ALT_16550_FIFO_TRIGGER_RX_e
260{
264 ALT_16550_FIFO_TRIGGER_RX_ANY = 0,
265
270 ALT_16550_FIFO_TRIGGER_RX_QUARTER_FULL = 1,
271
276 ALT_16550_FIFO_TRIGGER_RX_HALF_FULL = 2,
277
282 ALT_16550_FIFO_TRIGGER_RX_ALMOST_FULL = 3
283}
284ALT_16550_FIFO_TRIGGER_RX_t;
285
290 typedef enum ALT_16550_FIFO_TRIGGER_TX_e
291{
295 ALT_16550_FIFO_TRIGGER_TX_EMPTY = 0,
296
300 ALT_16550_FIFO_TRIGGER_TX_ALMOST_EMPTY = 1,
301
306 ALT_16550_FIFO_TRIGGER_TX_QUARTER_FULL = 2,
307
312 ALT_16550_FIFO_TRIGGER_TX_HALF_FULL = 3
313}
314ALT_16550_FIFO_TRIGGER_TX_t;
315
327 ALT_STATUS_CODE alt_16550_fifo_enable(ALT_16550_HANDLE_t * handle);
328
340 ALT_STATUS_CODE alt_16550_fifo_disable(ALT_16550_HANDLE_t * handle);
341
382 ALT_STATUS_CODE alt_16550_fifo_read(ALT_16550_HANDLE_t * handle,
383 char * buffer,
384 size_t count);
385
424 ALT_STATUS_CODE alt_16550_fifo_write(ALT_16550_HANDLE_t * handle,
425 const char * buffer,
426 size_t count);
427
442 ALT_STATUS_CODE alt_16550_fifo_clear_rx(ALT_16550_HANDLE_t * handle);
443
458 ALT_STATUS_CODE alt_16550_fifo_clear_tx(ALT_16550_HANDLE_t * handle);
459
474 ALT_STATUS_CODE alt_16550_fifo_clear_all(ALT_16550_HANDLE_t * handle);
475
490 ALT_STATUS_CODE alt_16550_fifo_size_get_rx(ALT_16550_HANDLE_t * handle,
491 uint32_t * size);
492
507 ALT_STATUS_CODE alt_16550_fifo_size_get_tx(ALT_16550_HANDLE_t * handle,
508 uint32_t * size);
509
532 ALT_STATUS_CODE alt_16550_fifo_level_get_rx(ALT_16550_HANDLE_t * handle,
533 uint32_t * level);
534
557 ALT_STATUS_CODE alt_16550_fifo_level_get_tx(ALT_16550_HANDLE_t * handle,
558 uint32_t * level);
559
579 ALT_STATUS_CODE alt_16550_fifo_trigger_set_rx(ALT_16550_HANDLE_t * handle,
580 ALT_16550_FIFO_TRIGGER_RX_t trigger);
581
601 ALT_STATUS_CODE alt_16550_fifo_trigger_set_tx(ALT_16550_HANDLE_t * handle,
602 ALT_16550_FIFO_TRIGGER_TX_t trigger);
603
625 typedef enum ALT_16550_BAUDRATE_e
626{
627 ALT_16550_BAUDRATE_50 = 50,
628 ALT_16550_BAUDRATE_75 = 75,
629 ALT_16550_BAUDRATE_150 = 150,
630 ALT_16550_BAUDRATE_300 = 300,
631 ALT_16550_BAUDRATE_600 = 600,
632 ALT_16550_BAUDRATE_900 = 900,
633 ALT_16550_BAUDRATE_1200 = 1200,
634 ALT_16550_BAUDRATE_1800 = 1800,
635 ALT_16550_BAUDRATE_2400 = 2400,
636 ALT_16550_BAUDRATE_3600 = 3600,
637 ALT_16550_BAUDRATE_4800 = 4800,
638 ALT_16550_BAUDRATE_7200 = 7200,
639 ALT_16550_BAUDRATE_9600 = 9600,
640 ALT_16550_BAUDRATE_14400 = 14400,
641 ALT_16550_BAUDRATE_19200 = 19200,
642 ALT_16550_BAUDRATE_28800 = 28800,
643 ALT_16550_BAUDRATE_38400 = 38400,
644 ALT_16550_BAUDRATE_57600 = 57600,
645 ALT_16550_BAUDRATE_115200 = 115200
646}
647ALT_16550_BAUDRATE_t;
648
667 ALT_STATUS_CODE alt_16550_baudrate_get(ALT_16550_HANDLE_t * handle,
668 uint32_t * baudrate);
669
690 ALT_STATUS_CODE alt_16550_baudrate_set(ALT_16550_HANDLE_t * handle,
691 uint32_t baudrate);
692
710 ALT_STATUS_CODE alt_16550_divisor_get(ALT_16550_HANDLE_t * handle,
711 uint32_t * divisor);
712
733 ALT_STATUS_CODE alt_16550_divisor_set(ALT_16550_HANDLE_t * handle,
734 uint32_t divisor);
735
755 typedef enum ALT_16550_INT_STATUS_e
756{
763 ALT_16550_INT_STATUS_LINE = 0x6,
764
785 ALT_16550_INT_STATUS_RX_DATA = 0x4,
786
796 ALT_16550_INT_STATUS_RX_TIMEOUT = 0xC,
797
817 ALT_16550_INT_STATUS_TX_IDLE = 0x2,
818
824 ALT_16550_INT_STATUS_MODEM = 0x0,
825
829 ALT_16550_INT_STATUS_NONE = 0x1
830}
831ALT_16550_INT_STATUS_t;
832
850 ALT_STATUS_CODE alt_16550_int_enable_rx(ALT_16550_HANDLE_t * handle);
851
862 ALT_STATUS_CODE alt_16550_int_disable_rx(ALT_16550_HANDLE_t * handle);
863
880 ALT_STATUS_CODE alt_16550_int_enable_tx(ALT_16550_HANDLE_t * handle);
881
892 ALT_STATUS_CODE alt_16550_int_disable_tx(ALT_16550_HANDLE_t * handle);
893
908 ALT_STATUS_CODE alt_16550_int_enable_line(ALT_16550_HANDLE_t * handle);
909
920 ALT_STATUS_CODE alt_16550_int_disable_line(ALT_16550_HANDLE_t * handle);
921
936 ALT_STATUS_CODE alt_16550_int_enable_modem(ALT_16550_HANDLE_t * handle);
937
948 ALT_STATUS_CODE alt_16550_int_disable_modem(ALT_16550_HANDLE_t * handle);
949
960 ALT_STATUS_CODE alt_16550_int_disable_all(ALT_16550_HANDLE_t * handle);
961
978 ALT_STATUS_CODE alt_16550_int_status_get(ALT_16550_HANDLE_t * handle,
979 ALT_16550_INT_STATUS_t * status);
980
998 typedef enum ALT_16550_MODEM_STATUS_e
999{
1005 ALT_16550_MODEM_STATUS_DCD = 1 << 7,
1006
1013 ALT_16550_MODEM_STATUS_RI = 1 << 6,
1014
1021 ALT_16550_MODEM_STATUS_DSR = 1 << 5,
1022
1028 ALT_16550_MODEM_STATUS_CTS = 1 << 4,
1029
1037 ALT_16550_MODEM_STATUS_DDCD = 1 << 3,
1038
1045 ALT_16550_MODEM_STATUS_TERI = 1 << 2,
1046
1053 ALT_16550_MODEM_STATUS_DDSR = 1 << 1,
1054
1061 ALT_16550_MODEM_STATUS_DCTS = 1 << 0
1062}
1063ALT_16550_MODEM_STATUS_t;
1064
1088 ALT_STATUS_CODE alt_16550_flowcontrol_enable(ALT_16550_HANDLE_t * handle);
1089
1108 ALT_STATUS_CODE alt_16550_flowcontrol_disable(ALT_16550_HANDLE_t * handle);
1109
1131 ALT_STATUS_CODE alt_16550_loopback_enable(ALT_16550_HANDLE_t * handle);
1132
1143 ALT_STATUS_CODE alt_16550_loopback_disable(ALT_16550_HANDLE_t * handle);
1144
1158 ALT_STATUS_CODE alt_16550_modem_enable_out1(ALT_16550_HANDLE_t * handle);
1159
1173 ALT_STATUS_CODE alt_16550_modem_disable_out1(ALT_16550_HANDLE_t * handle);
1174
1188 ALT_STATUS_CODE alt_16550_modem_enable_out2(ALT_16550_HANDLE_t * handle);
1189
1203 ALT_STATUS_CODE alt_16550_modem_disable_out2(ALT_16550_HANDLE_t * handle);
1204
1223 ALT_STATUS_CODE alt_16550_modem_enable_rts(ALT_16550_HANDLE_t * handle);
1224
1242 ALT_STATUS_CODE alt_16550_modem_disable_rts(ALT_16550_HANDLE_t * handle);
1243
1259 ALT_STATUS_CODE alt_16550_modem_enable_dtr(ALT_16550_HANDLE_t * handle);
1260
1275 ALT_STATUS_CODE alt_16550_modem_disable_dtr(ALT_16550_HANDLE_t * handle);
1276
1291 ALT_STATUS_CODE alt_16550_modem_status_get(ALT_16550_HANDLE_t * handle,
1292 uint32_t * status);
1293
1310 typedef enum ALT_16550_DATABITS_e
1311{
1315 ALT_16550_DATABITS_5 = 0,
1316
1320 ALT_16550_DATABITS_6 = 1,
1321
1325 ALT_16550_DATABITS_7 = 2,
1326
1330 ALT_16550_DATABITS_8 = 3
1331}
1332ALT_16550_DATABITS_t;
1333
1337 typedef enum ALT_16550_STOPBITS_e
1338{
1342 ALT_16550_STOPBITS_1 = 0,
1343
1348 ALT_16550_STOPBITS_2 = 1
1349}
1350ALT_16550_STOPBITS_t;
1351
1355 typedef enum ALT_16550_PARITY_e
1356{
1360 ALT_16550_PARITY_DISABLE = 0,
1361
1366 ALT_16550_PARITY_ODD = 1,
1367
1372 ALT_16550_PARITY_EVEN = 2
1373}
1374ALT_16550_PARITY_t;
1375
1380 typedef enum ALT_16550_LINE_STATUS_e
1381{
1389 ALT_16550_LINE_STATUS_RFE = 1 << 7,
1390
1400 ALT_16550_LINE_STATUS_TEMT = 1 << 6,
1401
1426 ALT_16550_LINE_STATUS_THRE = 1 << 5,
1427
1438 ALT_16550_LINE_STATUS_BI = 1 << 4,
1439
1450 ALT_16550_LINE_STATUS_FE = 1 << 3,
1451
1460 ALT_16550_LINE_STATUS_PE = 1 << 2,
1461
1473 ALT_16550_LINE_STATUS_OE = 1 << 1,
1474
1479 ALT_16550_LINE_STATUS_DR = 1 << 0
1480}
1481ALT_16550_LINE_STATUS_t;
1482
1502 ALT_STATUS_CODE alt_16550_line_config_set(ALT_16550_HANDLE_t * handle,
1503 ALT_16550_DATABITS_t databits,
1504 ALT_16550_PARITY_t parity,
1505 ALT_16550_STOPBITS_t stopbits);
1506
1518 ALT_STATUS_CODE alt_16550_line_break_enable(ALT_16550_HANDLE_t * handle);
1519
1530 ALT_STATUS_CODE alt_16550_line_break_disable(ALT_16550_HANDLE_t * handle);
1531
1546 ALT_STATUS_CODE alt_16550_line_status_get(ALT_16550_HANDLE_t * handle,
1547 uint32_t * status);
1548
1557#ifdef __cplusplus
1558}
1559#endif
1560
1561#endif /* __ALT_16550_UART_H__ */
alt_clock_manager.h
alt_freq_t
uint32_t alt_freq_t
Definition: alt_clock_manager.h:66
alt_16550_read
ALT_STATUS_CODE alt_16550_read(ALT_16550_HANDLE_t *handle, char *item)
Definition: alt_16550_uart.c:286
alt_16550_disable
ALT_STATUS_CODE alt_16550_disable(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:279
alt_16550_uninit
ALT_STATUS_CODE alt_16550_uninit(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:250
ALT_16550_HANDLE_t
struct ALT_16550_HANDLE_s ALT_16550_HANDLE_t
ALT_16550_DEVICE_e
ALT_16550_DEVICE_e
Definition: alt_16550_uart.h:82
alt_16550_init
ALT_STATUS_CODE alt_16550_init(ALT_16550_DEVICE_t device, void *location, alt_freq_t clock_freq, ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:189
alt_16550_enable
ALT_STATUS_CODE alt_16550_enable(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:271
alt_16550_write
ALT_STATUS_CODE alt_16550_write(ALT_16550_HANDLE_t *handle, char item)
Definition: alt_16550_uart.c:315
alt_16550_reset
ALT_STATUS_CODE alt_16550_reset(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:266
ALT_16550_DEVICE_t
enum ALT_16550_DEVICE_e ALT_16550_DEVICE_t
ALT_16550_DEVICE_SOCFPGA_UART1
@ ALT_16550_DEVICE_SOCFPGA_UART1
Definition: alt_16550_uart.h:91
ALT_16550_DEVICE_SOCFPGA_UART0
@ ALT_16550_DEVICE_SOCFPGA_UART0
Definition: alt_16550_uart.h:86
ALT_16550_DEVICE_ALTERA_16550_UART
@ ALT_16550_DEVICE_ALTERA_16550_UART
Definition: alt_16550_uart.h:97
ALT_16550_BAUDRATE_e
ALT_16550_BAUDRATE_e
Definition: alt_16550_uart.h:626
alt_16550_divisor_get
ALT_STATUS_CODE alt_16550_divisor_get(ALT_16550_HANDLE_t *handle, uint32_t *divisor)
Definition: alt_16550_uart.c:754
ALT_16550_BAUDRATE_t
enum ALT_16550_BAUDRATE_e ALT_16550_BAUDRATE_t
alt_16550_divisor_set
ALT_STATUS_CODE alt_16550_divisor_set(ALT_16550_HANDLE_t *handle, uint32_t divisor)
Definition: alt_16550_uart.c:763
alt_16550_baudrate_set
ALT_STATUS_CODE alt_16550_baudrate_set(ALT_16550_HANDLE_t *handle, uint32_t baudrate)
Definition: alt_16550_uart.c:733
alt_16550_baudrate_get
ALT_STATUS_CODE alt_16550_baudrate_get(ALT_16550_HANDLE_t *handle, uint32_t *baudrate)
Definition: alt_16550_uart.c:714
ALT_16550_BAUDRATE_600
@ ALT_16550_BAUDRATE_600
Definition: alt_16550_uart.h:631
ALT_16550_BAUDRATE_38400
@ ALT_16550_BAUDRATE_38400
Definition: alt_16550_uart.h:643
ALT_16550_BAUDRATE_4800
@ ALT_16550_BAUDRATE_4800
Definition: alt_16550_uart.h:637
ALT_16550_BAUDRATE_115200
@ ALT_16550_BAUDRATE_115200
Definition: alt_16550_uart.h:645
ALT_16550_BAUDRATE_14400
@ ALT_16550_BAUDRATE_14400
Definition: alt_16550_uart.h:640
ALT_16550_BAUDRATE_19200
@ ALT_16550_BAUDRATE_19200
Definition: alt_16550_uart.h:641
ALT_16550_BAUDRATE_50
@ ALT_16550_BAUDRATE_50
Definition: alt_16550_uart.h:627
ALT_16550_BAUDRATE_7200
@ ALT_16550_BAUDRATE_7200
Definition: alt_16550_uart.h:638
ALT_16550_BAUDRATE_2400
@ ALT_16550_BAUDRATE_2400
Definition: alt_16550_uart.h:635
ALT_16550_BAUDRATE_9600
@ ALT_16550_BAUDRATE_9600
Definition: alt_16550_uart.h:639
ALT_16550_BAUDRATE_900
@ ALT_16550_BAUDRATE_900
Definition: alt_16550_uart.h:632
ALT_16550_BAUDRATE_3600
@ ALT_16550_BAUDRATE_3600
Definition: alt_16550_uart.h:636
ALT_16550_BAUDRATE_28800
@ ALT_16550_BAUDRATE_28800
Definition: alt_16550_uart.h:642
ALT_16550_BAUDRATE_75
@ ALT_16550_BAUDRATE_75
Definition: alt_16550_uart.h:628
ALT_16550_BAUDRATE_300
@ ALT_16550_BAUDRATE_300
Definition: alt_16550_uart.h:630
ALT_16550_BAUDRATE_1200
@ ALT_16550_BAUDRATE_1200
Definition: alt_16550_uart.h:633
ALT_16550_BAUDRATE_57600
@ ALT_16550_BAUDRATE_57600
Definition: alt_16550_uart.h:644
ALT_16550_BAUDRATE_150
@ ALT_16550_BAUDRATE_150
Definition: alt_16550_uart.h:629
ALT_16550_BAUDRATE_1800
@ ALT_16550_BAUDRATE_1800
Definition: alt_16550_uart.h:634
alt_16550_fifo_trigger_set_tx
ALT_STATUS_CODE alt_16550_fifo_trigger_set_tx(ALT_16550_HANDLE_t *handle, ALT_16550_FIFO_TRIGGER_TX_t trigger)
Definition: alt_16550_uart.c:674
alt_16550_fifo_size_get_tx
ALT_STATUS_CODE alt_16550_fifo_size_get_tx(ALT_16550_HANDLE_t *handle, uint32_t *size)
Definition: alt_16550_uart.c:558
alt_16550_fifo_read
ALT_STATUS_CODE alt_16550_fifo_read(ALT_16550_HANDLE_t *handle, char *buffer, size_t count)
Definition: alt_16550_uart.c:385
ALT_16550_FIFO_TRIGGER_TX_t
enum ALT_16550_FIFO_TRIGGER_TX_e ALT_16550_FIFO_TRIGGER_TX_t
alt_16550_fifo_clear_rx
ALT_STATUS_CODE alt_16550_fifo_clear_rx(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:453
ALT_16550_FIFO_TRIGGER_RX_t
enum ALT_16550_FIFO_TRIGGER_RX_e ALT_16550_FIFO_TRIGGER_RX_t
ALT_16550_FIFO_TRIGGER_RX_e
ALT_16550_FIFO_TRIGGER_RX_e
Definition: alt_16550_uart.h:260
alt_16550_fifo_trigger_set_rx
ALT_STATUS_CODE alt_16550_fifo_trigger_set_rx(ALT_16550_HANDLE_t *handle, ALT_16550_FIFO_TRIGGER_RX_t trigger)
Definition: alt_16550_uart.c:636
alt_16550_fifo_clear_tx
ALT_STATUS_CODE alt_16550_fifo_clear_tx(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:479
alt_16550_fifo_enable
ALT_STATUS_CODE alt_16550_fifo_enable(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:347
alt_16550_fifo_level_get_tx
ALT_STATUS_CODE alt_16550_fifo_level_get_tx(ALT_16550_HANDLE_t *handle, uint32_t *level)
Definition: alt_16550_uart.c:609
alt_16550_fifo_size_get_rx
ALT_STATUS_CODE alt_16550_fifo_size_get_rx(ALT_16550_HANDLE_t *handle, uint32_t *size)
Definition: alt_16550_uart.c:535
alt_16550_fifo_level_get_rx
ALT_STATUS_CODE alt_16550_fifo_level_get_rx(ALT_16550_HANDLE_t *handle, uint32_t *level)
Definition: alt_16550_uart.c:582
alt_16550_fifo_write
ALT_STATUS_CODE alt_16550_fifo_write(ALT_16550_HANDLE_t *handle, const char *buffer, size_t count)
Definition: alt_16550_uart.c:419
alt_16550_fifo_disable
ALT_STATUS_CODE alt_16550_fifo_disable(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:367
alt_16550_fifo_clear_all
ALT_STATUS_CODE alt_16550_fifo_clear_all(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:505
ALT_16550_FIFO_TRIGGER_TX_e
ALT_16550_FIFO_TRIGGER_TX_e
Definition: alt_16550_uart.h:291
ALT_16550_FIFO_TRIGGER_RX_ALMOST_FULL
@ ALT_16550_FIFO_TRIGGER_RX_ALMOST_FULL
Definition: alt_16550_uart.h:282
ALT_16550_FIFO_TRIGGER_RX_QUARTER_FULL
@ ALT_16550_FIFO_TRIGGER_RX_QUARTER_FULL
Definition: alt_16550_uart.h:270
ALT_16550_FIFO_TRIGGER_RX_HALF_FULL
@ ALT_16550_FIFO_TRIGGER_RX_HALF_FULL
Definition: alt_16550_uart.h:276
ALT_16550_FIFO_TRIGGER_RX_ANY
@ ALT_16550_FIFO_TRIGGER_RX_ANY
Definition: alt_16550_uart.h:264
ALT_16550_FIFO_TRIGGER_TX_QUARTER_FULL
@ ALT_16550_FIFO_TRIGGER_TX_QUARTER_FULL
Definition: alt_16550_uart.h:306
ALT_16550_FIFO_TRIGGER_TX_HALF_FULL
@ ALT_16550_FIFO_TRIGGER_TX_HALF_FULL
Definition: alt_16550_uart.h:312
ALT_16550_FIFO_TRIGGER_TX_ALMOST_EMPTY
@ ALT_16550_FIFO_TRIGGER_TX_ALMOST_EMPTY
Definition: alt_16550_uart.h:300
ALT_16550_FIFO_TRIGGER_TX_EMPTY
@ ALT_16550_FIFO_TRIGGER_TX_EMPTY
Definition: alt_16550_uart.h:295
ALT_16550_INT_STATUS_e
ALT_16550_INT_STATUS_e
Definition: alt_16550_uart.h:756
alt_16550_int_disable_all
ALT_STATUS_CODE alt_16550_int_disable_all(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:866
alt_16550_int_enable_modem
ALT_STATUS_CODE alt_16550_int_enable_modem(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:854
alt_16550_int_disable_line
ALT_STATUS_CODE alt_16550_int_disable_line(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:848
alt_16550_int_disable_modem
ALT_STATUS_CODE alt_16550_int_disable_modem(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:860
alt_16550_int_disable_rx
ALT_STATUS_CODE alt_16550_int_disable_rx(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:824
alt_16550_int_disable_tx
ALT_STATUS_CODE alt_16550_int_disable_tx(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:836
alt_16550_int_status_get
ALT_STATUS_CODE alt_16550_int_status_get(ALT_16550_HANDLE_t *handle, ALT_16550_INT_STATUS_t *status)
Definition: alt_16550_uart.c:879
ALT_16550_INT_STATUS_t
enum ALT_16550_INT_STATUS_e ALT_16550_INT_STATUS_t
alt_16550_int_enable_tx
ALT_STATUS_CODE alt_16550_int_enable_tx(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:830
alt_16550_int_enable_rx
ALT_STATUS_CODE alt_16550_int_enable_rx(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:818
alt_16550_int_enable_line
ALT_STATUS_CODE alt_16550_int_enable_line(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:842
ALT_16550_INT_STATUS_NONE
@ ALT_16550_INT_STATUS_NONE
Definition: alt_16550_uart.h:829
ALT_16550_INT_STATUS_RX_DATA
@ ALT_16550_INT_STATUS_RX_DATA
Definition: alt_16550_uart.h:785
ALT_16550_INT_STATUS_LINE
@ ALT_16550_INT_STATUS_LINE
Definition: alt_16550_uart.h:763
ALT_16550_INT_STATUS_TX_IDLE
@ ALT_16550_INT_STATUS_TX_IDLE
Definition: alt_16550_uart.h:817
ALT_16550_INT_STATUS_RX_TIMEOUT
@ ALT_16550_INT_STATUS_RX_TIMEOUT
Definition: alt_16550_uart.h:796
ALT_16550_INT_STATUS_MODEM
@ ALT_16550_INT_STATUS_MODEM
Definition: alt_16550_uart.h:824
ALT_16550_DATABITS_t
enum ALT_16550_DATABITS_e ALT_16550_DATABITS_t
alt_16550_line_config_set
ALT_STATUS_CODE alt_16550_line_config_set(ALT_16550_HANDLE_t *handle, ALT_16550_DATABITS_t databits, ALT_16550_PARITY_t parity, ALT_16550_STOPBITS_t stopbits)
Definition: alt_16550_uart.c:899
ALT_16550_LINE_STATUS_t
enum ALT_16550_LINE_STATUS_e ALT_16550_LINE_STATUS_t
alt_16550_line_break_disable
ALT_STATUS_CODE alt_16550_line_break_disable(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:1000
ALT_16550_PARITY_t
enum ALT_16550_PARITY_e ALT_16550_PARITY_t
ALT_16550_STOPBITS_e
ALT_16550_STOPBITS_e
Definition: alt_16550_uart.h:1338
ALT_16550_PARITY_e
ALT_16550_PARITY_e
Definition: alt_16550_uart.h:1356
ALT_16550_DATABITS_e
ALT_16550_DATABITS_e
Definition: alt_16550_uart.h:1311
ALT_16550_LINE_STATUS_e
ALT_16550_LINE_STATUS_e
Definition: alt_16550_uart.h:1381
ALT_16550_STOPBITS_t
enum ALT_16550_STOPBITS_e ALT_16550_STOPBITS_t
alt_16550_line_status_get
ALT_STATUS_CODE alt_16550_line_status_get(ALT_16550_HANDLE_t *handle, uint32_t *status)
Definition: alt_16550_uart.c:1019
alt_16550_line_break_enable
ALT_STATUS_CODE alt_16550_line_break_enable(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:982
ALT_16550_STOPBITS_2
@ ALT_16550_STOPBITS_2
Definition: alt_16550_uart.h:1348
ALT_16550_STOPBITS_1
@ ALT_16550_STOPBITS_1
Definition: alt_16550_uart.h:1342
ALT_16550_PARITY_DISABLE
@ ALT_16550_PARITY_DISABLE
Definition: alt_16550_uart.h:1360
ALT_16550_PARITY_ODD
@ ALT_16550_PARITY_ODD
Definition: alt_16550_uart.h:1366
ALT_16550_PARITY_EVEN
@ ALT_16550_PARITY_EVEN
Definition: alt_16550_uart.h:1372
ALT_16550_DATABITS_8
@ ALT_16550_DATABITS_8
Definition: alt_16550_uart.h:1330
ALT_16550_DATABITS_6
@ ALT_16550_DATABITS_6
Definition: alt_16550_uart.h:1320
ALT_16550_DATABITS_5
@ ALT_16550_DATABITS_5
Definition: alt_16550_uart.h:1315
ALT_16550_DATABITS_7
@ ALT_16550_DATABITS_7
Definition: alt_16550_uart.h:1325
ALT_16550_LINE_STATUS_DR
@ ALT_16550_LINE_STATUS_DR
Definition: alt_16550_uart.h:1479
ALT_16550_LINE_STATUS_PE
@ ALT_16550_LINE_STATUS_PE
Definition: alt_16550_uart.h:1460
ALT_16550_LINE_STATUS_OE
@ ALT_16550_LINE_STATUS_OE
Definition: alt_16550_uart.h:1473
ALT_16550_LINE_STATUS_TEMT
@ ALT_16550_LINE_STATUS_TEMT
Definition: alt_16550_uart.h:1400
ALT_16550_LINE_STATUS_THRE
@ ALT_16550_LINE_STATUS_THRE
Definition: alt_16550_uart.h:1426
ALT_16550_LINE_STATUS_FE
@ ALT_16550_LINE_STATUS_FE
Definition: alt_16550_uart.h:1450
ALT_16550_LINE_STATUS_BI
@ ALT_16550_LINE_STATUS_BI
Definition: alt_16550_uart.h:1438
ALT_16550_LINE_STATUS_RFE
@ ALT_16550_LINE_STATUS_RFE
Definition: alt_16550_uart.h:1389
alt_16550_loopback_disable
ALT_STATUS_CODE alt_16550_loopback_disable(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:1115
alt_16550_flowcontrol_disable
ALT_STATUS_CODE alt_16550_flowcontrol_disable(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:1097
ALT_16550_MODEM_STATUS_e
ALT_16550_MODEM_STATUS_e
Definition: alt_16550_uart.h:999
alt_16550_modem_enable_out1
ALT_STATUS_CODE alt_16550_modem_enable_out1(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:1121
alt_16550_modem_disable_out2
ALT_STATUS_CODE alt_16550_modem_disable_out2(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:1139
alt_16550_flowcontrol_enable
ALT_STATUS_CODE alt_16550_flowcontrol_enable(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:1074
alt_16550_modem_enable_out2
ALT_STATUS_CODE alt_16550_modem_enable_out2(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:1133
alt_16550_modem_enable_dtr
ALT_STATUS_CODE alt_16550_modem_enable_dtr(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:1157
alt_16550_loopback_enable
ALT_STATUS_CODE alt_16550_loopback_enable(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:1103
alt_16550_modem_disable_dtr
ALT_STATUS_CODE alt_16550_modem_disable_dtr(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:1163
alt_16550_modem_disable_out1
ALT_STATUS_CODE alt_16550_modem_disable_out1(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:1127
alt_16550_modem_disable_rts
ALT_STATUS_CODE alt_16550_modem_disable_rts(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:1151
alt_16550_modem_enable_rts
ALT_STATUS_CODE alt_16550_modem_enable_rts(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:1145
alt_16550_modem_status_get
ALT_STATUS_CODE alt_16550_modem_status_get(ALT_16550_HANDLE_t *handle, uint32_t *status)
Definition: alt_16550_uart.c:1169
ALT_16550_MODEM_STATUS_t
enum ALT_16550_MODEM_STATUS_e ALT_16550_MODEM_STATUS_t
ALT_16550_MODEM_STATUS_DCTS
@ ALT_16550_MODEM_STATUS_DCTS
Definition: alt_16550_uart.h:1061
ALT_16550_MODEM_STATUS_DDSR
@ ALT_16550_MODEM_STATUS_DDSR
Definition: alt_16550_uart.h:1053
ALT_16550_MODEM_STATUS_DSR
@ ALT_16550_MODEM_STATUS_DSR
Definition: alt_16550_uart.h:1021
ALT_16550_MODEM_STATUS_TERI
@ ALT_16550_MODEM_STATUS_TERI
Definition: alt_16550_uart.h:1045
ALT_16550_MODEM_STATUS_RI
@ ALT_16550_MODEM_STATUS_RI
Definition: alt_16550_uart.h:1013
ALT_16550_MODEM_STATUS_DDCD
@ ALT_16550_MODEM_STATUS_DDCD
Definition: alt_16550_uart.h:1037
ALT_16550_MODEM_STATUS_CTS
@ ALT_16550_MODEM_STATUS_CTS
Definition: alt_16550_uart.h:1028
ALT_16550_MODEM_STATUS_DCD
@ ALT_16550_MODEM_STATUS_DCD
Definition: alt_16550_uart.h:1005
hwlib.h
ALT_STATUS_CODE
int32_t ALT_STATUS_CODE
Definition: hwlib.h:60
ALT_16550_HANDLE_s
Definition: alt_16550_uart.h:107
device
Definition: rtemscompat1.h:15