projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Comply to cfg name.
[bertos.git]
/
bertos
/
drv
/
pcf8574.h
diff --git
a/bertos/drv/pcf8574.h
b/bertos/drv/pcf8574.h
index 7d53d95ec88cc0268f719c9cc37225c128868014..1a1f186d4d8dd7a775e0eccf012bf730c005bc1a 100644
(file)
--- a/
bertos/drv/pcf8574.h
+++ b/
bertos/drv/pcf8574.h
@@
-30,10
+30,16
@@
*
* -->
*
*
* -->
*
- * \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>
*
* \version $Id: ft245rl.c 22301 2008-09-09 16:53:17Z batt $
* \author Francesco Sacchi <batt@develer.com>
+ *
+ * $WIZARD_MODULE = {
+ * "name" : "pcf8574",
+ * "depends" : ["i2c"],
+ * "configuration" : ""
+ * }
*/
#ifndef DRV_PCF8574_H
*/
#ifndef DRV_PCF8574_H
@@
-51,6
+57,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);