52#ifndef __VSF_ESPIDF_DRIVER_UART_H__
53#define __VSF_ESPIDF_DRIVER_UART_H__
72#define UART_PIN_NO_CHANGE (-1)
75#define UART_HW_FIFO_LEN (128)
86#define UART_NUM_MAX (3)
187 int intr_alloc_flags);
232 const void *src,
size_t size);
239 const void *src,
size_t size,
276 int tx_io_num,
int rx_io_num,
277 int rts_io_num,
int cts_io_num);
int esp_err_t
Definition esp_err.h:41
uint32_t TickType_t
Definition rtos_al.h:59
esp_err_t uart_flush_input(uart_port_t uart_num)
Definition driver_uart_port.c:808
esp_err_t uart_flush(uart_port_t uart_num)
Definition driver_uart_port.c:825
esp_err_t uart_get_word_length(uart_port_t uart_num, uart_word_length_t *data_bit)
Definition driver_uart_port.c:605
esp_err_t uart_get_tx_buffer_free_size(uart_port_t uart_num, size_t *size)
Definition driver_uart_port.c:795
esp_err_t uart_param_config(uart_port_t uart_num, const uart_config_t *uart_config)
Definition driver_uart_port.c:562
bool uart_is_driver_installed(uart_port_t uart_num)
Definition driver_uart_port.c:552
esp_err_t uart_set_hw_flow_ctrl(uart_port_t uart_num, uart_hw_flowcontrol_t flow_ctrl, uint8_t rx_thresh)
Definition driver_uart_port.c:647
esp_err_t uart_get_baudrate(uart_port_t uart_num, uint32_t *baudrate)
Definition driver_uart_port.c:589
esp_err_t uart_get_buffered_data_len(uart_port_t uart_num, size_t *size)
Definition driver_uart_port.c:785
uart_hw_flowcontrol_t
Definition uart.h:113
@ UART_HW_FLOWCTRL_MAX
Definition uart.h:118
@ UART_HW_FLOWCTRL_CTS_RTS
Definition uart.h:117
@ UART_HW_FLOWCTRL_RTS
Definition uart.h:115
@ UART_HW_FLOWCTRL_CTS
Definition uart.h:116
@ UART_HW_FLOWCTRL_DISABLE
Definition uart.h:114
uart_sclk_t
Definition uart.h:131
@ UART_SCLK_APB
Definition uart.h:133
@ UART_SCLK_XTAL
Definition uart.h:134
@ UART_SCLK_DEFAULT
Definition uart.h:132
@ UART_SCLK_RTC
Definition uart.h:135
esp_err_t uart_set_stop_bits(uart_port_t uart_num, uart_stop_bits_t stop_bits)
Definition driver_uart_port.c:613
int uart_port_t
Definition uart.h:80
uart_parity_t
Definition uart.h:106
@ UART_PARITY_DISABLE
Definition uart.h:107
@ UART_PARITY_EVEN
Definition uart.h:108
@ UART_PARITY_ODD
Definition uart.h:109
uart_stop_bits_t
Definition uart.h:98
@ UART_STOP_BITS_2
Definition uart.h:101
@ UART_STOP_BITS_1
Definition uart.h:99
@ UART_STOP_BITS_MAX
Definition uart.h:102
@ UART_STOP_BITS_1_5
Definition uart.h:100
esp_err_t uart_set_baudrate(uart_port_t uart_num, uint32_t baudrate)
Definition driver_uart_port.c:581
esp_err_t uart_set_word_length(uart_port_t uart_num, uart_word_length_t data_bit)
Definition driver_uart_port.c:596
int uart_write_bytes(uart_port_t uart_num, const void *src, size_t size)
Definition driver_uart_port.c:668
esp_err_t uart_set_parity(uart_port_t uart_num, uart_parity_t parity_mode)
Definition driver_uart_port.c:630
uart_mode_t
Definition uart.h:122
@ UART_MODE_UART
Definition uart.h:123
@ UART_MODE_RS485_HALF_DUPLEX
Definition uart.h:124
@ UART_MODE_RS485_COLLISION_DETECT
Definition uart.h:126
@ UART_MODE_RS485_APP_CTRL
Definition uart.h:127
@ UART_MODE_IRDA
Definition uart.h:125
esp_err_t uart_set_mode(uart_port_t uart_num, uart_mode_t mode)
Definition driver_uart_port.c:867
int uart_read_bytes(uart_port_t uart_num, void *buf, uint32_t length, TickType_t ticks_to_wait)
Definition driver_uart_port.c:735
esp_err_t uart_set_pin(uart_port_t uart_num, int tx_io_num, int rx_io_num, int rts_io_num, int cts_io_num)
Definition driver_uart_port.c:855
uart_event_type_t
Definition uart.h:150
@ UART_BUFFER_FULL
Definition uart.h:153
@ UART_DATA_BREAK
Definition uart.h:157
@ UART_FRAME_ERR
Definition uart.h:155
@ UART_BREAK
Definition uart.h:152
@ UART_EVENT_MAX
Definition uart.h:159
@ UART_PATTERN_DET
Definition uart.h:158
@ UART_PARITY_ERR
Definition uart.h:156
@ UART_DATA
Definition uart.h:151
@ UART_FIFO_OVF
Definition uart.h:154
uart_word_length_t
Definition uart.h:89
@ UART_DATA_6_BITS
Definition uart.h:91
@ UART_DATA_5_BITS
Definition uart.h:90
@ UART_DATA_8_BITS
Definition uart.h:93
@ UART_DATA_BITS_MAX
Definition uart.h:94
@ UART_DATA_7_BITS
Definition uart.h:92
esp_err_t uart_get_hw_flow_ctrl(uart_port_t uart_num, uart_hw_flowcontrol_t *flow_ctrl)
Definition driver_uart_port.c:658
esp_err_t uart_get_parity(uart_port_t uart_num, uart_parity_t *parity_mode)
Definition driver_uart_port.c:639
esp_err_t uart_get_stop_bits(uart_port_t uart_num, uart_stop_bits_t *stop_bits)
Definition driver_uart_port.c:622
esp_err_t uart_wait_tx_done(uart_port_t uart_num, TickType_t ticks_to_wait)
Definition driver_uart_port.c:832
int uart_write_bytes_with_break(uart_port_t uart_num, const void *src, size_t size, int brk_len)
Definition driver_uart_port.c:721
esp_err_t uart_driver_delete(uart_port_t uart_num)
Definition driver_uart_port.c:515
esp_err_t uart_driver_install(uart_port_t uart_num, int rx_buffer_size, int tx_buffer_size, int queue_size, QueueHandle_t *uart_queue, int intr_alloc_flags)
Definition driver_uart_port.c:428
esp_err_t uart_set_rx_timeout(uart_port_t uart_num, uint8_t tout)
Definition driver_uart_port.c:875
unsigned uint32_t
Definition stdint.h:9
unsigned char uint8_t
Definition stdint.h:5
uint8_t rx_flow_ctrl_thresh
Definition uart.h:145
uart_parity_t parity
Definition uart.h:142
uart_word_length_t data_bits
Definition uart.h:141
uart_sclk_t source_clk
Definition uart.h:146
int baud_rate
Definition uart.h:140
uart_hw_flowcontrol_t flow_ctrl
Definition uart.h:144
uart_stop_bits_t stop_bits
Definition uart.h:143
uart_event_type_t type
Definition uart.h:164
bool timeout_flag
Definition uart.h:166
size_t size
Definition uart.h:165
uint32_t size
Definition vsf_memfs.h:50
uint_fast8_t length
Definition vsf_pbuf.c:38