
TPMC118-SW-95 – QNX6 Neutrino Device Driver Page 3 of 30
Table of Content
1INTRODUCTION.........................................................................................................4
2INSTALLATION..........................................................................................................5
2.1 Build the device driver ...................................................................................................................5
2.2 Start the driver process..................................................................................................................6
3DEVICE INPUT/OUTPUT FUNCTIONS .....................................................................7
3.1 open() ...............................................................................................................................................7
3.2 close()...............................................................................................................................................8
3.3 devctl() .............................................................................................................................................9
3.3.1 DCMD_TP118_READENC................................................................................................11
3.3.2 DCMD_TP118_READINP..................................................................................................13
3.3.3 DCMD_TP118_SETDAC...................................................................................................15
3.3.4 DCMD_TP118_SETRES ...................................................................................................17
3.3.5 DCMD_TP118_SETPRELD...............................................................................................19
3.3.6 DCMD_TP118_SETMODE................................................................................................21
3.3.7 DCMD_TP118_SYNCON ..................................................................................................23
3.3.8 DCMD_TP118_SYNCOFF ................................................................................................25
3.3.9 DCMD_TP118_SYNCREAD..............................................................................................27
3.3.10 DCMD_TP118_SETINTR..............................................................................................29