Subversion Repositories Code-Repo

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
260 Kevin 1
#ifndef MCP23009_H
2
#define	MCP23009_H
3
 
4
#define MCP23009_ADDR       0x20
5
 
6
#define MCP23009_IODIRA     0x00
7
#define MCP23009_IPOLA      0x01
8
#define MCP23009_GPINTENA   0x02
9
#define MCP23009_DEFVALA    0x03
10
#define MCP23009_INTCONA    0x04
11
#define MCP23009_IOCON      0x05
12
#define MCP23009_GPPUA      0x06
13
#define MCP23009_INTFA      0x07
14
#define MCP23009_INTCAPA    0x08
15
#define MCP23009_GPIOA      0x09
16
#define MCP23009_OLATA      0x0A
17
 
273 Kevin 18
void MCP23009_Init(BTN_STATUS *status);
19
void MCP23009_Query(void);
20
void MSP23009_Interrupt(void);
260 Kevin 21
 
22
#endif	/* MCP23009_H */
23