[riot-notifications] [RIOT-OS/RIOT] Driver for AT24CXXX EEPROM (#11929)

fabian18 notifications at github.com
Mon Jul 29 23:19:38 CEST 2019


fabian18 commented on this pull request.



> +        //check is a negative errno value
+        return check;
+    }
+
+    //current address read
+    check = i2c_read_byte(dev->params.i2c, dev->params.dev_addr, buffer, 0);
+    DEBUG("read_byte check: %d\n", check);
+    if (check < 0) {
+        //check is a negative errno value
+        return check;
+    }
+
+    return *buffer;
+}
+
+static int _read(const at24cxxx_t *dev, uint32_t pos, uint8_t *data, size_t len)

Yes, I will use  `i2c_read_regs()`.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11929#discussion_r308442601
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190729/308b59b6/attachment.htm>


More information about the notifications mailing list