[][src]Function wpilib_sys::bindings::HAL_ReadSerial

pub unsafe extern "C" fn HAL_ReadSerial(
    port: Type,
    buffer: *mut c_char,
    count: i32,
    status: *mut i32
) -> i32

Reads data from the serial port.

Will wait for either timeout (if set), the termination char (if set), or the count to be full. Whichever one comes first.

@param port the serial port @param count the number of bytes maximum to read @return the number of bytes actually read