13.07.2015 Views

User manual - ICP DAS USA

User manual - ICP DAS USA

User manual - ICP DAS USA

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.

• sio_closeDescription:If you have used the function of sio_open() to open the specified serial port in theLinPAC-8000, you need to use the sio_close() function to close the specified serial port inthe LinPAC-8000. For example, once you have finished sending or receiving data from aspecified serial port, this function would then need to be called.Syntax:int sio_close(int port)[ C ]Parameter:port :[Input] device name: /dev/ttyS2, /dev/ttyS3…/dev/ttyS34Return Value:NoneExample:#define COM_M2 "/dev/ttyS3" // Defined the second port of I-8144 in slot 1char fd[5];fd[0]=sio_open(COM_M2, B9600, DATA_BITS_8, NO_PARITY,ONE_STOP_BIT);sio_close (fd[0]);// The second port of i8144 in slot 1 will be closed.Remark:This function can be applied on modules: I-8114, I-8112, I-8142 and I-8144.LinPAC-8x4x SDK:52

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

Saved successfully!

Ooh no, something went wrong!