Skip to main content

pamoja_serial_port_remaining

Function pamoja_serial_port_remaining 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_serial_port_remaining( port: *const PamojaSerialPort, out_remaining: *mut usize, ) -> bool
Expand description

Reports how many steps a scripted port has left.

§Arguments

  • port - the port.
  • out_remaining - receives the steps not yet reached.

§Returns

true with the count in out_remaining for a scripted port; false for any other port, a null port, or a null out_remaining.

§Safety

port must be a live handle or null, and out_remaining a writable pointer or null.