Intel® Fortran Libraries Reference
Intel® Fortran Libraries Reference Intel® Fortran Libraries Reference
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
- Page 466 and 467: 2 Intel Fortran Libraries Reference
- Page 468 and 469: 2 Intel Fortran Libraries Reference
- Page 470 and 471: 2 Intel Fortran Libraries Reference
- Page 472 and 473: 2 Intel Fortran Libraries Reference
- Page 474 and 475: 2 Intel Fortran Libraries Reference
- Page 476 and 477: 2 Intel Fortran Libraries Reference
- Page 478 and 479: 2 Intel Fortran Libraries Reference
- Page 480 and 481: 2 Intel Fortran Libraries Reference
- Page 482 and 483: 2 Intel Fortran Libraries Reference
- Page 484 and 485: 2 Intel Fortran Libraries Reference
- Page 486 and 487: 2 Intel Fortran Libraries Reference
- Page 488 and 489: 2 Intel Fortran Libraries Reference
- Page 490 and 491: 2 Intel Fortran Libraries Reference
- Page 492 and 493: 2 Intel Fortran Libraries Reference
- Page 494 and 495: 2 Intel Fortran Libraries Reference
- Page 496 and 497: 2 Intel Fortran Libraries Reference
- Page 498 and 499: 2 Intel Fortran Libraries Reference
- Page 500 and 501: 2 Intel Fortran Libraries Reference
- Page 502 and 503: 2 Intel Fortran Libraries Reference
- Page 504 and 505: 2 Intel Fortran Libraries Reference
- Page 506 and 507: 2 Intel Fortran Libraries Reference
- Page 508 and 509: 2 Intel Fortran Libraries Reference
- Page 510 and 511: 2 Intel Fortran Libraries Reference
- Page 512 and 513: 2 Intel Fortran Libraries Reference
- Page 514 and 515: 2 Intel Fortran Libraries Reference
- Page 518 and 519: 2 Intel Fortran Libraries Reference
- Page 520 and 521: 2 Intel Fortran Libraries Reference
- Page 522 and 523: 2 Intel Fortran Libraries Reference
- Page 524 and 525: 2 Intel Fortran Libraries Reference
- Page 526 and 527: 2 Intel Fortran Libraries Reference
- Page 528 and 529: 2 Intel Fortran Libraries Reference
- Page 530 and 531: 2 Intel Fortran Libraries Reference
- Page 532 and 533: 2 Intel Fortran Libraries Reference
- Page 534 and 535: 2 Intel Fortran Libraries Reference
- Page 536 and 537: 2 Intel Fortran Libraries Reference
- Page 538 and 539: 2 Intel Fortran Libraries Reference
- Page 540 and 541: 2 Intel Fortran Libraries Reference
- Page 542 and 543: 2 Intel Fortran Libraries Reference
- Page 544 and 545: 2 Intel Fortran Libraries Reference
- Page 546 and 547: Intel Fortran Libraries ReferenceAU
- Page 548 and 549: Intel Fortran Libraries ReferenceCo
- Page 550 and 551: Intel Fortran Libraries ReferenceDD
- Page 552 and 553: Intel Fortran Libraries Referencefu
- Page 554 and 555: Intel Fortran Libraries ReferenceFO
- Page 556 and 557: Intel Fortran Libraries ReferenceGE
- Page 558 and 559: Intel Fortran Libraries Referenceex
- Page 560 and 561: Intel Fortran Libraries ReferenceLT
- Page 562 and 563: Intel Fortran Libraries ReferenceNL
- Page 564 and 565: Intel Fortran Libraries Referencefo
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