Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:57

0001 #ifndef __GT64260TWSI_h
0002 #define __GT64260TWSI_h
0003 
0004 /* GT64260TWSI.h -  header for the GT64260 Two-Wire Serial Interface */
0005 
0006 /* TWSI Control Register Bits */
0007 #define TWSI_ACK       4
0008 #define TWSI_INTFLG    8
0009 #define TWSI_STOP       0x10
0010 #define TWSI_START      0x20
0011 #define TWSI_TWSIEN     0x40
0012 #define TWSI_INTEN      0x80
0013 
0014 void GT64260TWSIinit(void);
0015 int GT64260TWSIstart(void);
0016 int GT64260TWSIwrite(unsigned char Data);
0017 int GT64260TWSIread(unsigned char *, int lastByte);
0018 int GT64260TWSIstop(void);
0019 
0020 #endif