pub unsafe extern "C" fn uart_drv_cmd(
dev: *const device,
cmd: u32,
p: u32,
) -> i32Expand description
@brief Send extra command to driver.
Implementation and accepted commands are driver specific. Refer to the drivers for more information.
@param dev UART device instance. @param cmd Command to driver. @param p Parameter to the command.
@retval 0 If successful. @retval -ENOSYS If this function is not implemented. @retval -ENOTSUP If API is not enabled. @retval -errno Other negative errno value in case of failure.