uart_get_word_length() function
Get the UART data bit configuration.
Arguments
uart_num
UART port number, the max port number is (UART_NUM_MAX -1).
data_bit
Pointer to accept value of UART data bits.
Return value
- ESP_FAIL Parameter error - ESP_OK Success, result will be put in (*data_bit)
![]()
if (uart_get_word_length(fd, &data_bits) != ESP_OK) {
uart_get_word_length() is called by 1 function and calls 3 functions:
![]()
uart_get_word_length()
uart_get_word_length() reads 9 variables:
![]()
uart_get_word_length()