41 #ifndef __ALT_16550_UART_H__ 42 #define __ALT_16550_UART_H__ 668 uint32_t * baudrate);
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
Definition: alt_16550_uart.h:1037
enum ALT_16550_PARITY_e ALT_16550_PARITY_t
ALT_STATUS_CODE alt_16550_baudrate_set(ALT_16550_HANDLE_t *handle, uint32_t baudrate)
Definition: alt_16550_uart.c:733
ALT_STATUS_CODE alt_16550_modem_enable_dtr(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:1157
enum ALT_16550_DEVICE_e ALT_16550_DEVICE_t
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
Definition: alt_16550_uart.h:1450
ALT_STATUS_CODE alt_16550_int_disable_line(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:848
enum ALT_16550_DATABITS_e ALT_16550_DATABITS_t
ALT_STATUS_CODE alt_16550_modem_enable_out2(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:1133
ALT_16550_PARITY_e
Definition: alt_16550_uart.h:1355
Definition: alt_16550_uart.h:270
ALT_STATUS_CODE alt_16550_int_disable_all(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:866
Definition: alt_16550_uart.h:632
ALT_16550_DEVICE_e
Definition: alt_16550_uart.h:81
Definition: alt_16550_uart.h:643
Definition: alt_16550_uart.h:1438
Definition: alt_16550_uart.h:630
Definition: alt_16550_uart.h:276
Definition: alt_16550_uart.h:282
Definition: alt_16550_uart.h:1389
ALT_16550_LINE_STATUS_e
Definition: alt_16550_uart.h:1380
Definition: alt_16550_uart.h:1320
Definition: alt_16550_uart.h:1366
ALT_STATUS_CODE alt_16550_fifo_size_get_tx(ALT_16550_HANDLE_t *handle, uint32_t *size)
Definition: alt_16550_uart.c:558
Definition: alt_16550_uart.h:629
ALT_STATUS_CODE alt_16550_fifo_size_get_rx(ALT_16550_HANDLE_t *handle, uint32_t *size)
Definition: alt_16550_uart.c:535
Definition: alt_16550_uart.h:785
ALT_16550_STOPBITS_e
Definition: alt_16550_uart.h:1337
Definition: alt_16550_uart.h:1426
Definition: alt_16550_uart.h:1330
enum ALT_16550_INT_STATUS_e ALT_16550_INT_STATUS_t
Definition: alt_16550_uart.h:86
ALT_STATUS_CODE alt_16550_loopback_disable(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:1115
enum ALT_16550_BAUDRATE_e ALT_16550_BAUDRATE_t
Definition: alt_16550_uart.h:636
Definition: alt_16550_uart.h:1005
Definition: alt_16550_uart.h:627
enum ALT_16550_STOPBITS_e ALT_16550_STOPBITS_t
ALT_STATUS_CODE alt_16550_uninit(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:250
Definition: alt_16550_uart.h:1045
ALT_STATUS_CODE alt_16550_read(ALT_16550_HANDLE_t *handle, char *item)
Definition: alt_16550_uart.c:286
Definition: alt_16550_uart.h:1028
ALT_STATUS_CODE alt_16550_fifo_level_get_tx(ALT_16550_HANDLE_t *handle, uint32_t *level)
Definition: alt_16550_uart.c:609
ALT_STATUS_CODE alt_16550_modem_disable_dtr(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:1163
Definition: alt_16550_uart.h:312
ALT_STATUS_CODE alt_16550_line_status_get(ALT_16550_HANDLE_t *handle, uint32_t *status)
Definition: alt_16550_uart.c:1019
Definition: alt_16550_uart.h:628
Definition: rtemscompat1.h:15
Definition: alt_16550_uart.h:1372
ALT_STATUS_CODE alt_16550_line_break_enable(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:982
ALT_STATUS_CODE alt_16550_fifo_disable(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:367
ALT_16550_FIFO_TRIGGER_TX_e
Definition: alt_16550_uart.h:290
ALT_STATUS_CODE alt_16550_line_break_disable(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:1000
ALT_STATUS_CODE alt_16550_int_disable_tx(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:836
uint32_t alt_freq_t
Definition: alt_clock_manager.h:66
Definition: alt_16550_uart.h:640
Definition: alt_16550_uart.h:1360
struct ALT_16550_HANDLE_s ALT_16550_HANDLE_t
ALT_STATUS_CODE alt_16550_int_disable_modem(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:860
enum ALT_16550_LINE_STATUS_e ALT_16550_LINE_STATUS_t
Definition: alt_16550_uart.h:637
ALT_STATUS_CODE alt_16550_int_enable_rx(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:818
Definition: alt_16550_uart.h:644
ALT_STATUS_CODE alt_16550_fifo_clear_rx(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:453
ALT_STATUS_CODE alt_16550_fifo_enable(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:347
Definition: alt_16550_uart.h:645
Definition: alt_16550_uart.h:306
ALT_STATUS_CODE alt_16550_fifo_write(ALT_16550_HANDLE_t *handle, const char *buffer, size_t count)
Definition: alt_16550_uart.c:419
Definition: alt_16550_uart.h:642
Definition: alt_16550_uart.h:1315
Definition: alt_16550_uart.h:1061
ALT_STATUS_CODE alt_16550_flowcontrol_enable(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:1074
Definition: alt_16550_uart.h:106
ALT_STATUS_CODE alt_16550_modem_disable_out1(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:1127
Definition: alt_16550_uart.h:641
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_BAUDRATE_e
Definition: alt_16550_uart.h:625
ALT_STATUS_CODE alt_16550_modem_disable_out2(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:1139
Definition: alt_16550_uart.h:1325
enum ALT_16550_FIFO_TRIGGER_RX_e ALT_16550_FIFO_TRIGGER_RX_t
ALT_STATUS_CODE alt_16550_divisor_set(ALT_16550_HANDLE_t *handle, uint32_t divisor)
Definition: alt_16550_uart.c:763
Definition: alt_16550_uart.h:300
ALT_STATUS_CODE alt_16550_fifo_clear_all(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:505
ALT_STATUS_CODE alt_16550_flowcontrol_disable(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:1097
ALT_STATUS_CODE alt_16550_enable(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:271
ALT_STATUS_CODE alt_16550_modem_disable_rts(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:1151
ALT_STATUS_CODE alt_16550_fifo_clear_tx(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:479
Definition: alt_16550_uart.h:635
ALT_STATUS_CODE alt_16550_divisor_get(ALT_16550_HANDLE_t *handle, uint32_t *divisor)
Definition: alt_16550_uart.c:754
Definition: alt_16550_uart.h:1053
Definition: alt_16550_uart.h:639
ALT_STATUS_CODE alt_16550_int_enable_modem(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:854
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
Definition: alt_16550_uart.h:1473
enum ALT_16550_MODEM_STATUS_e ALT_16550_MODEM_STATUS_t
Definition: alt_16550_uart.h:633
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
Definition: alt_16550_uart.h:1460
ALT_STATUS_CODE alt_16550_fifo_level_get_rx(ALT_16550_HANDLE_t *handle, uint32_t *level)
Definition: alt_16550_uart.c:582
Definition: alt_16550_uart.h:634
ALT_16550_DATABITS_e
Definition: alt_16550_uart.h:1310
ALT_16550_MODEM_STATUS_e
Definition: alt_16550_uart.h:998
enum ALT_16550_FIFO_TRIGGER_TX_e ALT_16550_FIFO_TRIGGER_TX_t
ALT_16550_INT_STATUS_e
Definition: alt_16550_uart.h:755
Definition: alt_16550_uart.h:817
int32_t ALT_STATUS_CODE
Definition: hwlib.h:60
ALT_STATUS_CODE alt_16550_modem_enable_rts(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:1145
Definition: alt_16550_uart.h:638
Definition: alt_16550_uart.h:1479
ALT_STATUS_CODE alt_16550_disable(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:279
Definition: alt_16550_uart.h:763
Definition: alt_16550_uart.h:97
Definition: alt_16550_uart.h:264
Definition: alt_16550_uart.h:1013
ALT_STATUS_CODE alt_16550_modem_status_get(ALT_16550_HANDLE_t *handle, uint32_t *status)
Definition: alt_16550_uart.c:1169
ALT_16550_FIFO_TRIGGER_RX_e
Definition: alt_16550_uart.h:259
Definition: alt_16550_uart.h:631
Definition: alt_16550_uart.h:1021
Definition: alt_16550_uart.h:1348
Definition: alt_16550_uart.h:829
ALT_STATUS_CODE alt_16550_int_enable_line(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:842
Definition: alt_16550_uart.h:295
Definition: alt_16550_uart.h:1400
Definition: alt_16550_uart.h:1342
Definition: alt_16550_uart.h:91
unsigned size
Definition: tte.h:74
ALT_STATUS_CODE alt_16550_baudrate_get(ALT_16550_HANDLE_t *handle, uint32_t *baudrate)
Definition: alt_16550_uart.c:714
ALT_STATUS_CODE alt_16550_loopback_enable(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:1103
Definition: alt_16550_uart.h:796
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_STATUS_CODE alt_16550_int_disable_rx(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:824
ALT_STATUS_CODE alt_16550_int_enable_tx(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:830
ALT_STATUS_CODE alt_16550_modem_enable_out1(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:1121
ALT_STATUS_CODE alt_16550_write(ALT_16550_HANDLE_t *handle, char item)
Definition: alt_16550_uart.c:315
Definition: alt_16550_uart.h:824
ALT_STATUS_CODE alt_16550_reset(ALT_16550_HANDLE_t *handle)
Definition: alt_16550_uart.c:266