![Tews Technologies TDRV006-SW-82 User Manual Download Page 3](http://html1.mh-extra.com/html/tews-technologies/tdrv006-sw-82/tdrv006-sw-82_user-manual_1093641003.webp)
TDRV006-SW-82 - Linux Device Driver
Page 3 of 31
Table of Contents
1
INTRODUCTION......................................................................................................... 4
2
INSTALLATION.......................................................................................................... 5
Build and install the Device Driver................................................................................................5
2.1
Uninstall the Device Driver ............................................................................................................6
2.2
Install Device Driver into the running Kernel ...............................................................................6
2.3
Remove Device Driver from the running Kernel ..........................................................................6
2.4
Change Major Device Number .......................................................................................................7
2.5
Configuration...................................................................................................................................7
2.6
3
API DOCUMENTATION ............................................................................................. 8
General Functions...........................................................................................................................8
3.1
3.1.1
tdrv006Open .......................................................................................................................8
3.1.2
tdrv006Close.....................................................................................................................10
Device Access Functions.............................................................................................................12
3.2
3.2.1
tdrv006Read .....................................................................................................................12
3.2.2
tdrv006Write .....................................................................................................................14
3.2.3
tdrv006WriteMasked.........................................................................................................16
3.2.4
tdrv006SetOutputLine.......................................................................................................18
3.2.5
tdrv006ClearOutputLine ...................................................................................................20
3.2.6
tdrv006OutputEnable........................................................................................................22
Input Event Functions ..................................................................................................................24
3.3
3.3.1
tdrv006WaitForLowToHigh ...............................................................................................24
3.3.2
tdrv006WaitForHighToLow ...............................................................................................26
3.3.3
tdrv006WaitForAnyTrans..................................................................................................28
4
DIAGNOSTIC............................................................................................................ 30