Intel user manual D. Digital I/O Sample Code, Appendix, IB935 User’s Manual

Models: IB935

1 66
Download 66 pages 46.84 Kb
Page 63
Image 63
D. Digital I/O Sample Code

APPENDIX

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

IB935 User’s Manual

59

Page 63
Image 63
Intel user manual D. Digital I/O Sample Code, Appendix, IB935 User’s Manual