Please enable JavaScript to view this site.

Function that moves a string from the receive buffer of the specified device to the destination string.

Syntax

i32 ser_in (i32 nSer, string dst)

nSer

Number of the serial channel

dst

Buffer into which to download the information

Result

Returns:

Value

Meaning

<> 0

Operation performed correctly

0

Otherwise

Validity

Rule, Task

Notes

The channel must necessarily be initialized as ascii (PSER_ASCII)

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

If in the specified buffer the string is not terminated then the function remains in idle state.

 

  

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