Libraries and Example of mbed parallel bus using I2C port expanders
Dependencies: HDSP253X mbed PCF8574_Bus
BusEnums.h@2:1dab1089c332, 2011-08-20 (annotated)
- Committer:
- wim
- Date:
- Sat Aug 20 12:49:44 2011 +0000
- Revision:
- 2:1dab1089c332
First commit, testloop
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
wim |
2:1dab1089c332 | 1 | /* BusEnums - Use the MBED Port pins and PCF8574s for controlling the Bus |
wim |
2:1dab1089c332 | 2 | * Copyright (c) 2011 Wim Huiskamp |
wim |
2:1dab1089c332 | 3 | * |
wim |
2:1dab1089c332 | 4 | * Released under the MIT License: http://mbed.org/license/mit |
wim |
2:1dab1089c332 | 5 | * |
wim |
2:1dab1089c332 | 6 | * version 0.2 Initial Release |
wim |
2:1dab1089c332 | 7 | */ |
wim |
2:1dab1089c332 | 8 | #ifndef _BUS_ENUMS_H |
wim |
2:1dab1089c332 | 9 | #define _BUS_ENUMS_H |
wim |
2:1dab1089c332 | 10 | |
wim |
2:1dab1089c332 | 11 | //Enums for Control Bus and Enable Bus |
wim |
2:1dab1089c332 | 12 | enum Bit_Level { LOW, HIGH }; |
wim |
2:1dab1089c332 | 13 | enum Bus_Dir { READ, WRITE }; |
wim |
2:1dab1089c332 | 14 | enum Bus_Ena { ENABLE, DISABLE }; |
wim |
2:1dab1089c332 | 15 | |
wim |
2:1dab1089c332 | 16 | |
wim |
2:1dab1089c332 | 17 | #endif |