Intel AR-B1760 user manual Digital I/O Sample Code, Installations

Models: AR-B1760

1 68
Download 68 pages 47.41 Kb
Page 33
Image 33
Digital I/O Sample Code

INSTALLATIONS

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

AR-B1760 User’s Manual

29

Page 33
Image 33
Intel AR-B1760 user manual Digital I/O Sample Code, Installations