Please enable JavaScript to view this site.

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:

Value

Meaning

<> 0

Operation performed correctly

0

Otherwise

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

 

  

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