vex_sdk::serial

Function vexSerialWriteFree

Source
pub unsafe fn vexSerialWriteFree(channel: u32) -> i32
Expand description

Returns the number of free bytes (out of 2048) remaining in the serial output buffer.

§Arguments

  • channel: The serial communications channel to read from. Use 1 for stdio.

§Return

The number of remaining available bytes.

§Safety

Calls to jumptable functions are unsafe because jumptable functions are owned by VEXos and we cannot guarantee their safety.