riot_sys::bindgen

Function uart_mode

Source
pub unsafe extern "C" fn uart_mode(
    uart: uart_t,
    data_bits: uart_data_bits_t,
    parity: uart_parity_t,
    stop_bits: uart_stop_bits_t,
) -> c_int
Expand description

@brief Setup parity, data and stop bits for a given UART device

@param[in] uart UART device to configure @param[in] data_bits number of data bits in a UART frame @param[in] parity parity mode @param[in] stop_bits number of stop bits in a UART frame

@retval 0 Success @retval -ENOTSUP Given configuration not supported @retval <0 Other error