[][src]Function mraa_sys::mraa_uart_read

pub unsafe extern "C" fn mraa_uart_read(
    dev: mraa_uart_context,
    buf: *mut c_char,
    length: usize
) -> c_int

Read bytes from the device into a buffer

@param dev uart context @param buf buffer pointer @param length maximum size of buffer @return the number of bytes read, or -1 if an error occurred