Subversion Repositories Code-Repo

Rev

Rev 260 | Blame | Last modification | View Log | RSS feed

#ifndef MCP23009_H
#define MCP23009_H

#define MCP23009_ADDR       0x20

#define MCP23009_IODIRA     0x00
#define MCP23009_IPOLA      0x01
#define MCP23009_GPINTENA   0x02
#define MCP23009_DEFVALA    0x03
#define MCP23009_INTCONA    0x04
#define MCP23009_IOCON      0x05
#define MCP23009_GPPUA      0x06
#define MCP23009_INTFA      0x07
#define MCP23009_INTCAPA    0x08
#define MCP23009_GPIOA      0x09
#define MCP23009_OLATA      0x0A

void MCP23009_Init(void);
void MCP23009_Query(BTN_STATUS *status);

#endif  /* MCP23009_H */