Download User Manual - powerbridge.de

Transcript
Table of Contents
1
2
INTRODUCTION......................................................................................................... 4
INSTALLATION.......................................................................................................... 6
2.1 Device Driver Installation ...............................................................................................................7
2.1.1 Static Installation ..................................................................................................................7
2.1.1.1 Build the Driver Object..................................................................................................7
2.1.1.2 Create Device Information Declaration ........................................................................7
2.1.1.3 Modify the Device and Driver Configuration File ..........................................................7
2.1.1.4 Rebuild the Kernel ........................................................................................................8
2.1.2 Dynamic Installation .............................................................................................................9
2.1.2.1 Build the Driver Object..................................................................................................9
2.1.2.2 Create Device Information Declaration ........................................................................9
2.1.2.3 Uninstall dynamic loaded Driver ...................................................................................9
2.1.3 Device Information Definition File ......................................................................................10
2.1.4 Configuration File: CONFIG.TBL .......................................................................................12
3
TDRV002 DEVICE DRIVER PROGRAMMING......................................................... 13
3.1.1
3.1.2
3.1.3
3.1.4
3.1.5
3.1.6
4
TIOSHWH ..........................................................................................................................14
TIOCHWH ..........................................................................................................................15
TIOSLOCLOOP .................................................................................................................16
TIOCLOCLOOP .................................................................................................................17
TIOSELFTEST ...................................................................................................................18
TIOSETINTERFACE..........................................................................................................20
COMMAND LINE TOOLS AND EXAMPLES ........................................................... 22
4.1 tdrv002config.................................................................................................................................22
4.2 tdrv002exa .....................................................................................................................................24
5
APPENDIX................................................................................................................ 25
5.1 Known Problems...........................................................................................................................25
5.1.1 Data Loss with Hardware Handshake................................................................................25
5.1.2 Inconsistent Definitions for Baud Rates .............................................................................25
TDRV002-SW-72 – LynxOS Device Driver
Page 3 of 25