v 0.4
Dependents: MCP23S17Test MCP23S17_Basic_IO_Demo HelloWorld Lab3-SnakeGame ... more
Revision 3:089a2a754567, committed 2010-08-22
- Comitter:
- romilly
- Date:
- Sun Aug 22 12:05:06 2010 +0000
- Parent:
- 2:6144709f1700
- Child:
- 4:d501c74550a0
- Commit message:
Changed in this revision
MCP23S17.cpp | Show annotated file Show diff for this revision Revisions of this file |
MCP23S17.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/MCP23S17.cpp Sat Aug 21 14:46:59 2010 +0000 +++ b/MCP23S17.cpp Sun Aug 22 12:05:06 2010 +0000 @@ -43,6 +43,10 @@ _write(IODIRB, direction); } + void intconA(char interruptsEnabledMask) { + _write(INTCONA, interruptsEnabledMask); + } + void MCP23S17::outputA(char byte) { _write(OLATA, byte); }
--- a/MCP23S17.h Sat Aug 21 14:46:59 2010 +0000 +++ b/MCP23S17.h Sun Aug 22 12:05:06 2010 +0000 @@ -30,6 +30,7 @@ MCP23S17(SPI& spi, PinName ncs, char writeOpcode); void directionA(char direction); void directionB(char direction); + void intconA(char interruptsEnabledMask); char inputA(); char inputB(); void outputA(char byte);