RTEMS: bsps/powerpc/mvme5500/include/bsp/GT64260TWSI.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
GT64260TWSI.h
1#ifndef __GT64260TWSI_h
2#define __GT64260TWSI_h
3
4/* GT64260TWSI.h - header for the GT64260 Two-Wire Serial Interface */
5
6/* TWSI Control Register Bits */
7#define TWSI_ACK 4
8#define TWSI_INTFLG 8
9#define TWSI_STOP 0x10
10#define TWSI_START 0x20
11#define TWSI_TWSIEN 0x40
12#define TWSI_INTEN 0x80
13
14void GT64260TWSIinit(void);
15int GT64260TWSIstart(void);
16int GT64260TWSIwrite(unsigned char Data);
17int GT64260TWSIread(unsigned char *, int lastByte);
18int GT64260TWSIstop(void);
19
20#endif