Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference Intel® Fortran Libraries Reference

h.eng.cam.ac.uk
from h.eng.cam.ac.uk More from this publisher
12.07.2015 Views

2 Intel Fortran Libraries ReferenceExampleUSE IFPORTINTEGER(4) iresultiresult = SPORT_RELEASE( 2 )ENDSPORT_SET_STATESerial Port I/O Function: Sets the baud rate, parity, data bits setting, and stop bits setting of thecommunications port. This function is only available on Windows* systems.Module: USE IFPORTSyntaxresult = SPORT_SET_STATE (port [, baud] [, parity] [, dbits] [, sbits])port(Input) Integer. The port number.baud(Optional; input) Integer. The baud rate of the port.parity(Optional; input) Integer. The parity setting of the port (0 – 4 = no, odd, even, mark, space).dbits(Optional; input) Integer. The data bits for the port.sbits(Optional; input) Integer. The stop bits for the port (0, 1, 2 = 1, 1.5, 2).Results:The result type is INTEGER(4). The result is zero if successful; otherwise, a Windows error value.The following restrictions apply:• The number of data bits must be 5 to 8 bits.• The use of 5 data bits with 2 stop bits is an invalid combination, as is 6, 7, or 8 data bits with1.5 stop bits.2-464

Descriptions of the Library Routines 2NOTE. This routine must not be used when any I/O is pending. Since a readoperation is always pending after any I/O has been started, you must first callSPORT_CANCEL_IO before port parameters can be changed.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIBSee Also: “SPORT_CANCEL_IO”, “SPORT_GET_STATE”, "Using the Serial I/O PortRoutines" in your user’s guide, "Communications and "Communications Functions" in theMicrosoft* Platform SDKExampleUSE IFPORTINTEGER(4) iresultiresult = SPORT_SET_STATE( 2, 9600, 0, 7, 1 )ENDSPORT_SET_STATE_EXSerial Port I/O Function: Sets the baud rate, parity, data bits setting, stop bits, and other settingsof the communications port. This function is only available on Windows* systems.Module: USE IFPORTSyntaxresult = SPORT_SET_STATE_EX (port [, baud] [, parity] [, dbits] [, sbits] [, Binmode] [,DTRcntrl] [, RTScntrl] [, OutCTSFlow] [, OutDSRFlow] [, DSRSense] [, OutXonOff] [,InXonOff] [, XonLim] [, XoffLim] [, TXContOnXoff] [, ErrAbort] [, ErrCharEnbl] [, NullStrip][, XonChar] [, XoffChar] [, ErrChar] [, EofChar] [, EvtChar] [, fZeroDCB])port(Input) Integer. The port number.baud(Optional; input) Integer. The baud rate of the port.parity(Optional; input) Integer. The parity setting of the port (0 - 4 = no, odd, even, mark, space).2-465

Descriptions of the Library Routines 2NOTE. This routine must not be used when any I/O is pending. Since a readoperation is always pending after any I/O has been started, you must first callSPORT_CANCEL_IO before port parameters can be changed.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIBSee Also: “SPORT_CANCEL_IO”, “SPORT_GET_STATE”, "Using the Serial I/O PortRoutines" in your user’s guide, "Communications and "Communications Functions" in theMicrosoft* Platform SDKExampleUSE IFPORTINTEGER(4) iresultiresult = SPORT_SET_STATE( 2, 9600, 0, 7, 1 )ENDSPORT_SET_STATE_EXSerial Port I/O Function: Sets the baud rate, parity, data bits setting, stop bits, and other settingsof the communications port. This function is only available on Windows* systems.Module: USE IFPORTSyntaxresult = SPORT_SET_STATE_EX (port [, baud] [, parity] [, dbits] [, sbits] [, Binmode] [,DTRcntrl] [, RTScntrl] [, OutCTSFlow] [, OutDSRFlow] [, DSRSense] [, OutXonOff] [,InXonOff] [, XonLim] [, XoffLim] [, TXContOnXoff] [, ErrAbort] [, ErrCharEnbl] [, NullStrip][, XonChar] [, XoffChar] [, ErrChar] [, EofChar] [, EvtChar] [, fZeroDCB])port(Input) Integer. The port number.baud(Optional; input) Integer. The baud rate of the port.parity(Optional; input) Integer. The parity setting of the port (0 - 4 = no, odd, even, mark, space).2-465

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!