pub unsafe fn vexSerialPeekChar(channel: u32) -> i32
Expand description
Returns the next available byte to be read in the input buffer without removing it from the buffer.
§Arguments
channel
: The serial communications channel to read from. Use1
for stdio.
§Return
The next byte in the input buffer, or -1 if no character is available to be read.
§Safety
Calls to jumptable functions are unsafe because jumptable functions are owned by VEXos and we cannot guarantee their safety.