12.07.2015 Views

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2 Intel <strong>Fortran</strong> <strong>Libraries</strong> <strong>Reference</strong>SPORT_GET_STATESerial Port I/O Function: Returns the baud rate, parity, data bits setting, and stop bits setting ofthe communications port. This function is only available on Windows* systems.Module: USE IFPORTSyntaxresult = SPORT_GET_STATE (port [, baud] [, parity] [, dbits] [, sbits])port(Input) Integer. The port number.baud(Optional; output) Integer. The baud rate of the port.parity(Optional; output) Integer. The parity setting of the port (0 - 4 = no, odd, even, mark, space).dbits(Optional; output) Integer. The data bits for the port.sbits(Optional; output) 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.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIBSee Also: “SPORT_SET_STATE”, "Using the Serial I/O Port Routines" in your user’s guide,"Communications and "Communications Functions" in the Microsoft* Platform SDKExampleUSE IFPORTINTEGER(4) iresultINTEGER baudINTEGER parityINTEGER dbitsINTEGER sbitsiresult = SPORT_GET_STATE( 2, baud, parity, dbits, sbits )END2-454

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

Saved successfully!

Ooh no, something went wrong!