projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
First version of new i2c bitbang API.
[bertos.git]
/
bertos
/
drv
/
pcf8574.h
diff --git
a/bertos/drv/pcf8574.h
b/bertos/drv/pcf8574.h
index 7d53d95ec88cc0268f719c9cc37225c128868014..2041b4808c58af5e995020070162b39cd8c3221d 100644
(file)
--- a/
bertos/drv/pcf8574.h
+++ b/
bertos/drv/pcf8574.h
@@
-30,10
+30,12
@@
*
* -->
*
*
* -->
*
- * \brief PCF8574 i2c port expander driver
(interface)
.
+ * \brief PCF8574 i2c port expander driver.
*
*
- * \version $Id: ft245rl.c 22301 2008-09-09 16:53:17Z batt $
* \author Francesco Sacchi <batt@develer.com>
* \author Francesco Sacchi <batt@develer.com>
+ *
+ * $WIZ$ module_name = "pcf8574"
+ * $WIZ$ module_depends = "i2c"
*/
#ifndef DRV_PCF8574_H
*/
#ifndef DRV_PCF8574_H
@@
-51,6
+53,7
@@
typedef struct Pcf8574
pcf8574_addr addr;
} Pcf8574;
pcf8574_addr addr;
} Pcf8574;
+#define PCF8574ID 0x40 ///< I2C address
int pcf8574_get(Pcf8574 *pcf);
bool pcf8574_put(Pcf8574 *pcf, uint8_t data);
int pcf8574_get(Pcf8574 *pcf);
bool pcf8574_put(Pcf8574 *pcf, uint8_t data);