diff options
author | Damien George <damien.p.george@gmail.com> | 2016-11-23 16:34:25 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-11-23 17:05:38 +1100 |
commit | 07e83573c8f69c673a8bea78d6a2f242152da00c (patch) | |
tree | e9767170b4eeaed8e837e9daa8c44e24043278fa /extmod/machine_i2c.h | |
parent | ced240e72a933eec0bfabe236d96f383cb64241c (diff) | |
download | micropython-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.h | 2 |
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); |