dm_tty_read Interface

public interface dm_tty_read

Generic TTY read function.

Calls

interface~~dm_tty_read~~CallsGraph interface~dm_tty_read dm_tty_read proc~dm_tty_read_bytes dm_tty_read_bytes interface~dm_tty_read->proc~dm_tty_read_bytes proc~dm_tty_read_request dm_tty_read_request interface~dm_tty_read->proc~dm_tty_read_request proc~dm_is_error dm_is_error proc~dm_tty_read_bytes->proc~dm_is_error proc~dm_tty_read_byte dm_tty_read_byte proc~dm_tty_read_bytes->proc~dm_tty_read_byte proc~dm_tty_read_request->interface~dm_tty_read proc~dm_ascii_escape dm_ascii_escape proc~dm_tty_read_request->proc~dm_ascii_escape proc~dm_ascii_unescape dm_ascii_unescape proc~dm_tty_read_request->proc~dm_ascii_unescape c_read c_read proc~dm_tty_read_byte->c_read

Called by

interface~~dm_tty_read~~CalledByGraph interface~dm_tty_read dm_tty_read proc~dm_tty_read_request dm_tty_read_request interface~dm_tty_read->proc~dm_tty_read_request proc~dm_tty_read_request->interface~dm_tty_read

Module Procedures

public function dm_tty_read_bytes(tty, bytes, del, nbytes) result(rc)

Reads from TTY into buf until delimiter del occurs. The number of bytes read is returned in n.

Read more…

Arguments

Type IntentOptional Attributes Name
type(tty_type), intent(inout) :: tty

TTY type.

character(len=*), intent(inout) :: bytes

Input buffer.

character(len=*), intent(in) :: del

Delimiter.

integer(kind=i8), intent(out), optional :: nbytes

Number of bytes read.

Return Value integer

public function dm_tty_read_request(tty, request) result(rc)

Reads TTY response into request. The request delimiter is unescaped. The response is escaped before being stored in the request.

Read more…

Arguments

Type IntentOptional Attributes Name
type(tty_type), intent(inout) :: tty

TTY type.

type(request_type), intent(inout) :: request

Request type.

Return Value integer