pipe_install_as_stdio

Function pipe_install_as_stdio 

Source
pub unsafe extern "C" fn pipe_install_as_stdio(pipe: *mut PipeSide)
Expand description

Connects the pipe to the stdin and stdout of the current thread.

After performing this operation, you can use getc, puts, etc. to send and receive data to and from the pipe. If the pipe becomes broken, C stdlib calls will return EOF wherever possible.

You can disconnect the pipe by manually calling furi_thread_set_stdout_callback and furi_thread_set_stdin_callback with NULL.

ยงArguments

  • [in] - pipe Pipe side to connect to the stdio