Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Devices /
Chapter 7 - Serial Driver / Serial Driver Reference
Serial Driver Routines /


SerSetBuf

You can use the SerSetBuf function to increase the size of the serial input buffer, or to restore the driver's default buffer.

FUNCTION SerSetBuf (refNum: Integer; serBPtr: Ptr; 
                     serBLen: Integer): OSErr
refNum
The driver reference number of the serial input driver.
serBPtr
A pointer to the new input buffer.
serBLen
The size of the new input buffer, or 0 to restore the default buffer.
DESCRIPTION
The SerSetBuf function replaces the input buffer for the specified input driver. The serBPtr parameter points to the buffer, and the serBLen parameter specifies the number of bytes in the buffer. The buffer must be locked while in use. Before closing the driver you must restore the default buffer by calling SerSetBuf with the serBLen parameter equal to 0.

ASSEMBLY-LANGUAGE INFORMATION
The SerSetBuf function is equivalent to a Device Manager control request with a csCode value of 9. You pass the serBPtr and serBLen parameters in the csParam field (csParam[0] = serBPtr; csParam[4] = serBLen).

RESULT CODE
noErr0No error

Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996