Skip to main content

pamoja_serial_port_discard_input

Function pamoja_serial_port_discard_input 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_serial_port_discard_input( port: *const PamojaSerialPort, ) -> PamojaStatus
Expand description

Drops whatever has arrived and not been read, as a client does before a request so a stale reply cannot be taken for the new one.

§Arguments

  • port - the port.

§Returns

As pamoja_serial_port_write.

§Safety

port must be a live handle or null.