TDRV004-SW-82 - Linux Device Driver Page 3 of 62
Table of Contents
1 INTRODUCTION.........................................................................................................4
2 INSTALLATION..........................................................................................................5
2.1 Build and install the Device Driver................................................................................................5
2.2 Uninstall the Device Driver ............................................................................................................6
2.3 Install Device Driver into the running Kernel...............................................................................6
2.4 Remove Device Driver from the running Kernel..........................................................................6
2.5 Change Major Device Number.......................................................................................................7
3 API DOCUMENTATION .............................................................................................8
3.1 General Functions...........................................................................................................................8
3.1.1 tdrv004Open ......................................................................................................................8
3.1.2 tdrv004Close....................................................................................................................10
3.2 Device Access Functions.............................................................................................................12
3.2.1 tdrv004XsvfPlay...............................................................................................................12
3.2.2 tdrv004XsvfPos................................................................................................................14
3.2.3 tdrv004XsvfLastCommand...............................................................................................16
3.2.4 tdrv004Reconfigure..........................................................................................................18
3.2.5 tdrv004SetWaitstates.......................................................................................................20
3.2.6 tdrv004SetClock...............................................................................................................22
3.2.7 tdrv004SpiWrite ...............................................................................................................26
3.2.8 tdrv004SpiRead ...............................................................................................................29
3.2.9 tdrv004PlxWrite................................................................................................................32
3.2.10 tdrv004PlxRead ...............................................................................................................35
3.2.11 tdrv004ReadU8................................................................................................................38
3.2.12 tdrv004ReadU16..............................................................................................................41
3.2.13 tdrv004ReadU32..............................................................................................................44
3.2.14 tdrv004WriteU8................................................................................................................47
3.2.15 tdrv004WriteU16..............................................................................................................50
3.2.16 tdrv004WriteU32..............................................................................................................53
3.2.17 tdrv004ConfigureInterrupts..............................................................................................56
3.2.18 tdrv004WaitForINT1.........................................................................................................58
3.2.19 tdrv004WaitForINT2.........................................................................................................60
4 DIAGNOSTIC............................................................................................................62