Intel IB940 Computer Hardware User Manual


 
APPENDIX
IB940 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 W627HF_INDEX_PORT (W627HF_BASE)
#define W627HF_DATA_PORT (W627HF_BASE+1)
//=======================================================================
#define W627HF_REG_LD 0x07
//=======================================================================
#define W627HF_UNLOCK 0x87
#define W627HF_LOCK 0xAA
//=======================================================================
unsigned int Init_W627HF(void);
void Set_W627HF_LD( unsigned char);
void Set_W627HF_Reg( unsigned char, unsigned char);
unsigned char Get_W627HF_Reg( unsigned char);
//=======================================================================
#endif //__W627HF_H