Function to read a specific number of characters from the specified device.
Syntax |
i32 ser_bin_in (i32 nSer, string dst, i32 nChar) |
||||||
---|---|---|---|---|---|---|---|
nSer |
Number of the serial channel |
||||||
dst |
Buffer in which to download the information |
||||||
nChar |
Number of bytes to read |
||||||
Result |
Returns:
|
||||||
Validity |
Rule, Task |
||||||
Note |
The function is non-blocking. If n characters are requested to be read and there are r characters in the receive buffer, the behavior is as follows:
•r < n, no characters are read and the function returns 0
•r >= n, exactly n characters are read and the function returns a TRUE value