summaryrefslogtreecommitdiffstatshomepage
path: root/extmod/machine_i2c.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-11-23 16:34:25 +1100
committerDamien George <damien.p.george@gmail.com>2016-11-23 17:05:38 +1100
commit07e83573c8f69c673a8bea78d6a2f242152da00c (patch)
treee9767170b4eeaed8e837e9daa8c44e24043278fa /extmod/machine_i2c.h
parentced240e72a933eec0bfabe236d96f383cb64241c (diff)
downloadmicropython-07e83573c8f69c673a8bea78d6a2f242152da00c.tar.gz
micropython-07e83573c8f69c673a8bea78d6a2f242152da00c.zip
extmod/machine_i2c: Add 'nack' argument to i2c.readinto.
Diffstat (limited to 'extmod/machine_i2c.h')
-rw-r--r--extmod/machine_i2c.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/machine_i2c.h b/extmod/machine_i2c.h
index c971f4b195..39f4858348 100644
--- a/extmod/machine_i2c.h
+++ b/extmod/machine_i2c.h
@@ -34,7 +34,7 @@
typedef struct _mp_machine_i2c_p_t {
int (*start)(mp_obj_base_t *obj);
int (*stop)(mp_obj_base_t *obj);
- int (*read)(mp_obj_base_t *obj, uint8_t *dest, size_t len);
+ int (*read)(mp_obj_base_t *obj, uint8_t *dest, size_t len, bool nack);
int (*write)(mp_obj_base_t *obj, const uint8_t *src, size_t len);
int (*readfrom)(mp_obj_base_t *obj, uint16_t addr, uint8_t *dest, size_t len, bool stop);
int (*writeto)(mp_obj_base_t *obj, uint16_t addr, const uint8_t *src, size_t len, bool stop);