Appendix B : Software Functions - Vecow IVH-9200 User Manual

Vehicle computing system
Table of Contents

Advertisement

B

APPENDIX B : Software Functions

B.1 IVH9K2.Dll API
In Runtime folder, on IVH9K2.h:
BOOL Initial(BYTE Isolate_Type, BYTE DIO_NPN);
Install driver and initial machine for DIO access
Isolate_Type: DIO Isolate Type
1: Isolated DIO; 0: Non-Isolated DIO
DIO_NPN: DIO NPN mode
1: PNP (Source) mode for European rule; 0: NPN (Sink) mode for Japanese
rule
Return:
TRUE (1): Success; FALSE (0): Fail (Install error (privilege error, or driver not
work), or Initial error, or Parameter format error)
BOOL GetDI1(BYTE *DI);
Get DIO1 input
DI: DIO1 input (DI[7:0])
Return:
TRUE (1): Success; FALSE (0): Fail (driver not work, or hardware problem)
BOOL SetDO1(BYTE DO);
Set DIO1 output
DO: DIO1 output (DO[7:0])
Return:
TRUE (1): Success; FALSE (0): Fail (driver not work, or hardware problem)
BOOL GetDO1(BYTE *DO);
Get DIO1 output
DO: DIO1 output (DO[7:0])
Return:
TRUE (1): Success; FALSE (0): Fail (driver not work, or hardware problem)
BOOL GetDI2(BYTE *DI);
Get DIO2 input
DI: DIO2 input (DI[7:0])
Return:
TRUE (1): Success; FALSE (0): Fail (driver not work, or hardware problem)
Appendix B
©Vecow IVH-9200 User Manual
82

Advertisement

Table of Contents
loading

Table of Contents