summaryrefslogtreecommitdiffstats
path: root/include/hardware/nfc.h
diff options
context:
space:
mode:
authorRakesh Goyal <rgoyal@nvidia.com>2012-01-27 18:13:29 +0530
committerRamanan Rajeswaran <ramanan@google.com>2012-03-09 08:51:15 -0800
commit4cbd62c2ca1600dcd2001d1c5a736abc043a0333 (patch)
tree8ee3ccc548b2df164dafb7eb0d61c9f1543c0e22 /include/hardware/nfc.h
parenta9b677fce432b29ab8f61e13796f34880dc0fe0f (diff)
downloadhardware_libhardware-4cbd62c2ca1600dcd2001d1c5a736abc043a0333.zip
hardware_libhardware-4cbd62c2ca1600dcd2001d1c5a736abc043a0333.tar.gz
hardware_libhardware-4cbd62c2ca1600dcd2001d1c5a736abc043a0333.tar.bz2
add i2c_device_address member to nfc_pn544_device_t
Add I2C slave address. Multiple I2C addresses are possible for PN544 module. Configure address according to board design. Change-Id: I847e8f3db631f5039cf15143a9982f4b9b209f27
Diffstat (limited to 'include/hardware/nfc.h')
-rw-r--r--include/hardware/nfc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/hardware/nfc.h b/include/hardware/nfc.h
index ca3683b..74b3cfb 100644
--- a/include/hardware/nfc.h
+++ b/include/hardware/nfc.h
@@ -76,6 +76,11 @@ typedef struct {
* Set to 0 to disable the workaround, 1 to enable it.
*/
uint8_t enable_i2c_workaround;
+ /* I2C slave address. Multiple I2C addresses are
+ * possible for PN544 module. Configure address according to
+ * board design.
+ */
+ uint8_t i2c_device_address;
} nfc_pn544_device_t;
static inline int nfc_pn544_open(const struct hw_module_t* module,