serGetBufferLevel (Function) |
Top Previous Next |
This function will return the amount of space used in the serial buffer for the specific serial port. The returned value is on a scale between 0 and 1000 (permille). The exact size of the receive buffer is specified in the help section for serFrameReceiver().
Input: port : SINT (0..127) (default 0) Selects which serial port to use.
Returns: INT This is the amount of space used in the serial buffer for that port, 0..1000 per-mille.
Declaration: FUNCTION serGetBufferLevel : INT;
Example: INCLUDE rtcu.inc |