Skip to main content

pamoja_serial_port_looped

Function pamoja_serial_port_looped 

Source
#[unsafe(no_mangle)]
pub extern "C" fn pamoja_serial_port_looped( settings: PamojaSerialSettings, ) -> *mut PamojaSerialPort
Expand description

Creates a line looped back on itself: every byte written is waiting to be read, as with TX wired to RX.

§Arguments

  • settings - the speed and format the line runs at.

§Returns

The port, which the caller releases with pamoja_serial_port_free, or null for settings the port does not have.