pub unsafe extern "C" fn uart_config_get(
dev: *const device,
cfg: *mut uart_config,
) -> i32Expand description
@brief Get UART configuration.
Stores current UART configuration to *cfg, can be used to retrieve initial configuration after device was initialized using data from DTS.
@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 driver does not support getting current configuration. @retval -ENOTSUP If API is not enabled.