uart_rx_disable

Function uart_rx_disable 

Source
pub unsafe extern "C" fn uart_rx_disable(dev: *const device) -> i32
Expand description

@brief Disable RX

#UART_RX_BUF_RELEASED event will be generated for every buffer scheduled, after that #UART_RX_DISABLED event will be generated. Additionally, if there is any pending received data, the #UART_RX_RDY event for that data will be generated before the #UART_RX_BUF_RELEASED events.

@param dev UART device instance.

@retval 0 If successful. @retval -ENOTSUP If API is not enabled. @retval -EFAULT There is no active reception. @retval -errno Other negative errno value in case of failure.