APPENDIX
IB935 User’s Manual 59
D. Digital I/O Sample Code
Filename: W627hf.h
//=====================================================================
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
// PURPOSE.
//
//=====================================================================
#ifndef __W627HF_H
#define __W627HF_H 1
//=====================================================================
#define W627_IOBASE 0x4E
//=====================================================================
#define W627HF_INDEX_PORT (W627_IOBASE+0)
#define W627HF_DATA_PORT (W627_IOBASE+1)
//=====================================================================
#define W627HF_REG_LD 0x07
//=====================================================================
#define W627HF_UNLOCK 0x87
#define W627HF_LOCK 0xAA
//=====================================================================
void Set_W627HF_LD( unsigned char);
void Set_W627HF_Reg( unsigned char, unsigned char);
unsigned char Get_W627HF_Reg( unsigned char);
//=====================================================================
#endif //__W627HF_H