SOFTWARE USER’S GUIDE Linux デバイスドライ readシステムコール..... 16 2.5.4 writeシステムコール

Embed Size (px)

Text of SOFTWARE USER’S GUIDE Linux デバイスドライ readシステムコール..... 16 2.5.4...

  • Linux DVEX-13-006764-01

    2013 Interface Corporation. All rights reserved.

    1/178

    SOFTWARE USERS GUIDE

    Linux

  • Linux MLH-J2003-01

    2013 Interface Corporation. All rights reserved.

    2/178

    Windows Linux

    Linux WindowsLinuxLinuxWindows

    Linux LinuxOS

    Linux()

    LinuxI/O

    :Web site (www.interface.co.jp) :()CD-ROM

    http://www.interface.co.jp/

  • Linux MLH-J2003-01

    2013 Interface Corporation. All rights reserved.

    3/178

    1 6

    1.1 ................................................................................................................................................. 6 1.2 ................................................................................................................................................................. 6

    2 7 2.1 .................................................................................................................................... 7 2.2 ............................................................................................................................... 8 2.3 ............................................................................................ 9 2.4 ............................................................................................................................. 10 2.4.1 ...................................................................................................................... 11 2.4.2 ......................................................................................................................... 11 2.4.3 ...................................................................................................................... 12 2.4.4 ....................................................................................................................... 12 2.4.5 ................................................................................................... 12

    2.5 ............................................................................................................................................ 13 2.5.1 open............................................................................................................................ 14 2.5.2 close ........................................................................................................................... 15 2.5.3 read............................................................................................................................. 16 2.5.4 write ........................................................................................................................... 17 2.5.5 ioctl ............................................................................................................................ 18

    3 20 3.0 ............................................................................................................................. 20 3.0 ........................................................................................................................ 21 3.0 Windows................................................................................................................................... 21

    4 22 4.1 ............................................................................................................................... 22 4.2 ....................................................................................................................................................... 23 4.3 .............................................................................................................................................. 24 4.3.1 ....................................................................................................................................... 24 4.3.2 ....................................................................................................................................... 28 4.3.3 ....................................................................................................................................... 31

    5 37 5.1 ........................................................................................................................................... 37 5.1.1 A/D ..................................................................................................................................... 37 5.1.2 A/D......................................................................................................................... 38 5.1.3 ....................................................................................................................................... 38 5.1.4 ......................................................................................................... 41 5.1.5 ..................................................................................................................... 42 5.1.6 ........................................................................................................ 42 5.1.7 .......................................................................................................................................... 43

  • Linux MLH-J2003-01

    2013 Interface Corporation. All rights reserved.

    4/178

    5.1.8 ADC ........................................................................................... 43 5.1.9 ................................................................................................................................... 46 5.1.10 .................................................................................................. 48

    5.2 ....................................................................................................................................................... 49 5.3 ........................................................................................................................................................... 49 5.4 .............................................................................................................................................. 50 5.4.1 1 AD .......................................................................................................................... 50 5.4.2 ........................................................................................................................................ 55 5.4.3 ....................................................................................................................................... 62

    6 68 6.1 ........................................................................................................................................... 68 6.1.1 D/A ..................................................................................................................................... 68 6.1.2 ....................................................................................................................................... 69 6.1.3 ....................................................................................................................................... 69 6.1.4 ..................................................................................................................... 70 6.1.5 ....................................................................................... 71 6.1.6 ................................................................................................................................... 72

    6.2 ....................................................................................................................................................... 74 6.3 ........................................................................................................................................................... 74 6.4 .............................................................................................................................................. 75 6.4.1 1 ............................................................................................................................................... 75 6.4.2 .............................................................................................................................................. 80 6.4.3 ....................................................................................................................................... 85

    7 91 7.1 ................................................................................................................................... 91 7.1.1 ........................................................................................................................................ 91 7.1.2 RS-232CRS-485 ............................................................................................................................... 92 7.1.3 .............................................................................................................................................. 93 7.1.4 ...................................................................................................................................... 93 7.1.5 ............................................................................................................................................... 94 7.1.6 ........................................................................................................................................ 94 7.1.7 (bps)............................................................................................................. 95 7.1.8 ............................................................................................................................................ 95 7.1.9 ......................................................