mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-10-31 02:31:49 +01:00 
			
		
		
		
	
							parent
							
								
									8a34bd22b8
								
							
						
					
					
						commit
						dae7d20d69
					
				| @ -63,7 +63,7 @@ function SerRead(Handle: TSerialHandle; var Buffer; Count: LongInt): LongInt; | ||||
| 
 | ||||
| { Tries to write "Count" bytes from "Buffer". | ||||
|   Result: Number of bytes written. } | ||||
| function SerWrite(Handle: TSerialHandle; var Buffer; Count: LongInt): LongInt; | ||||
| function SerWrite(Handle: TSerialHandle; Const Buffer; Count: LongInt): LongInt; | ||||
| 
 | ||||
| procedure SerSetParams(Handle: TSerialHandle; BitsPerSec: LongInt; | ||||
|   ByteSize: Integer; Parity: TParityType; StopBits: Integer; | ||||
| @ -156,7 +156,7 @@ begin | ||||
|   Result := fpRead(Handle, Buffer, Count); | ||||
| end; | ||||
| 
 | ||||
| function SerWrite(Handle: TSerialHandle; var Buffer; Count: LongInt): LongInt; | ||||
| function SerWrite(Handle: TSerialHandle; Const Buffer; Count: LongInt): LongInt; | ||||
| begin | ||||
|   Result := fpWrite(Handle, Buffer, Count); | ||||
| end; | ||||
|  | ||||
| @ -60,7 +60,7 @@ function SerRead(Handle: TSerialHandle; var Buffer; Count: LongInt): LongInt; | ||||
| 
 | ||||
| { Tries to write "Count" bytes from "Buffer". | ||||
|   Result: Number of bytes written. } | ||||
| function SerWrite(Handle: TSerialHandle; var Buffer; Count: LongInt): LongInt; | ||||
| function SerWrite(Handle: TSerialHandle; Const Buffer; Count: LongInt): LongInt; | ||||
| 
 | ||||
| procedure SerSetParams(Handle: TSerialHandle; BitsPerSec: LongInt; | ||||
|   ByteSize: Integer; Parity: TParityType; StopBits: Integer; | ||||
| @ -278,7 +278,7 @@ begin | ||||
| end { SerRead } ; | ||||
| 
 | ||||
| 
 | ||||
| function SerWrite(Handle: TSerialHandle; var Buffer; Count: LongInt): LongInt; | ||||
| function SerWrite(Handle: TSerialHandle; const Buffer; Count: LongInt): LongInt; | ||||
| 
 | ||||
| var     BytesWritten: DWORD; | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 michael
						michael