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: Networking With Open Transport / Part 2 - Open Transport Reference
Chapter 31 - Serial Endpoint Reference / Serial-Specific Commands
/


I_SetSerialBreak

This command controls a break signal on the serial connection. It is a 4-byte unsigned integer. Its value is kOTSerialSetBreakOff to unconditionally turn the break signal off, kOTSerialSetBreakOn to unconditionally turn the break signal on, and any other value to turn the break signal on for a specified number of milliseconds. The following line of code turns the break on:

OTIoctl(theSerialEndpoint, I_SetSerialBreak, kOTSerialSetBreakOn);
Note
Note that the on value is 0 and the off value is 1.
Asserting a break signal is equivalent to using a serial driver control call with a csCode value of 12, and deasserting the break signal is equivalent to using a csCode value of 11.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998