pub unsafe extern "C" fn uart_configure(
dev: *const device,
cfg: *const uart_config,
) -> i32Expand description
@brief Set UART configuration.
Sets UART configuration using data from *cfg.
@param dev UART device instance. @param cfg UART configuration structure.
@retval 0 If successful. @retval -errno Negative errno code in case of failure. @retval -ENOSYS If configuration is not supported by device or driver does not support setting configuration in runtime. @retval -ENOTSUP If API is not enabled.