Please enable JavaScript to view this site.

Function that checks if a terminated string is present in the buffer of the specified device.

Syntax

i32 ser_ready (i32 nSer)

nSer

Serial channel number

Result

Returns:

Value

Meaning

<> 0

A terminated string is present in the buffer of the specified device

0

Otherwise

Validity

Rule, Task

Note

The channel must necessarily be initialized as ascii (PSER_ASCII)

The string must be terminated by the active terminator (terminator) or the default LF terminator (10 dec. - 0AH) or by reaching the maximum number of characters (83).

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC