riot_sys

Function uart_write

Source
pub unsafe extern "C" fn uart_write(
    uart: uart_t,
    data: *const u8,
    len: size_t,
)
Expand description

@brief Write data from the given buffer to the specified UART device

This function is blocking, as it will only return after @p len bytes from the given buffer have been send. The way this data is send is up to the implementation: active waiting, interrupt driven, DMA, etc.

@param[in] uart UART device to use for transmission @param[in] data data buffer to send @param[in] len number of bytes to send