uart_poll_out_u16

Function uart_poll_out_u16 

Source
pub unsafe extern "C" fn uart_poll_out_u16(
    dev: *const device,
    out_u16: u16,
)
Expand description

@brief Write a 16-bit datum to the device for output.

This routine checks if the transmitter is full. When the transmitter is not full, it writes a 16-bit datum to the data register. It waits and blocks the calling thread, otherwise. This function is a blocking call.

To send a datum when hardware flow control is enabled, the handshake signal CTS must be asserted.

@param dev UART device instance. @param out_u16 Wide data to send.