opensubscriber
   Find in this group all groups
 
Unknown more information…

f : fpc-pascal@lists.freepascal.org 1 November 2009 • 10:44PM -0500

[fpc-pascal] Access to RS232 ports with fpc
by Holger Bruns

REPLY TO AUTHOR
 
REPLY TO GROUP






Hello,

I am new to this list. For programming the serial ports on a linux
system, I tried to use the "serial" unit. i don't understand the
declaration for "buffer" in the function below, because no type is
declared for "buffer". How can I read a character from the selected
serial port? This is the part of the serial unit I am talking about:

  function SerRead(Handle: TSerialHandle; var Buffer; Count: LongInt):
LongInt;
    begin
    Result := fpRead(Handle, Buffer, Count);
  end;

I hope so far, you can help me out with an advice.

Best regards, Holger

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@list...
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.