![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
initialisatie met niels zn functies
Dependencies: mbed
MCP23017.h@0:e206ee5c4d91, 2017-06-08 (annotated)
- Committer:
- rcwinder
- Date:
- Thu Jun 08 15:19:14 2017 +0000
- Revision:
- 0:e206ee5c4d91
initialisatie met niels zn functies
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rcwinder | 0:e206ee5c4d91 | 1 | #ifndef MCP23017_H |
rcwinder | 0:e206ee5c4d91 | 2 | #define MCP23017_H |
rcwinder | 0:e206ee5c4d91 | 3 | |
rcwinder | 0:e206ee5c4d91 | 4 | /* Register names (when IOCON.BANK is 0, which it is after POR) */ |
rcwinder | 0:e206ee5c4d91 | 5 | #define MCP_IODIRA 0x00 |
rcwinder | 0:e206ee5c4d91 | 6 | #define MCP_IODIRB 0x01 |
rcwinder | 0:e206ee5c4d91 | 7 | #define MCP_IPOLA 0x02 |
rcwinder | 0:e206ee5c4d91 | 8 | #define MCP_IPOLB 0x03 |
rcwinder | 0:e206ee5c4d91 | 9 | #define MCP_GPINTENA 0x04 |
rcwinder | 0:e206ee5c4d91 | 10 | #define MCP_GPINTENB 0x05 |
rcwinder | 0:e206ee5c4d91 | 11 | #define MCP_DEFVALA 0x06 |
rcwinder | 0:e206ee5c4d91 | 12 | #define MCP_DEFVALB 0x07 |
rcwinder | 0:e206ee5c4d91 | 13 | #define MCP_INTCONA 0x08 |
rcwinder | 0:e206ee5c4d91 | 14 | #define MCP_INTCONB 0x09 |
rcwinder | 0:e206ee5c4d91 | 15 | #define MCP_IOCON 0x0a |
rcwinder | 0:e206ee5c4d91 | 16 | #define MCP_IOCON_MIRROR 0x0b |
rcwinder | 0:e206ee5c4d91 | 17 | #define MCP_GPPUA 0x0c |
rcwinder | 0:e206ee5c4d91 | 18 | #define MCP_GPPUB 0x0d |
rcwinder | 0:e206ee5c4d91 | 19 | #define MCP_INTFA 0x0e |
rcwinder | 0:e206ee5c4d91 | 20 | #define MCP_INTFB 0x0f |
rcwinder | 0:e206ee5c4d91 | 21 | #define MCP_INTCAPA 0x10 |
rcwinder | 0:e206ee5c4d91 | 22 | #define MCP_INTCAPB 0x11 |
rcwinder | 0:e206ee5c4d91 | 23 | #define MCP_GPIOA 0x12 |
rcwinder | 0:e206ee5c4d91 | 24 | #define MCP_GPIOB 0x13 |
rcwinder | 0:e206ee5c4d91 | 25 | #define MCP_OLATA 0x14 |
rcwinder | 0:e206ee5c4d91 | 26 | #define MCP_OLATB 0x15 |
rcwinder | 0:e206ee5c4d91 | 27 | |
rcwinder | 0:e206ee5c4d91 | 28 | #endif |