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:
|
||||||
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.