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

benpicco notifications at github.com
Wed Jul 31 23:58:25 CEST 2019

benpicco commented on this pull request.

> +uint8_t at24cxxx_read_byte(const at24cxxx_t *dev, uint32_t pos);
+ * @brief Sequentially read \p len bytes from a given position \p pos
+ *
+ * errno is set to ERANGE if EEPROM bounds would be exceeded.
+ *
+ * @param[in] dev       AT24CXXX device handle
+ * @param[in] pos       position in EEPROM memory
+ * @param[out] data     read buffer
+ * @param[in] len       requested length to be read
+ *
+ * @return    \p len on success
+ * @return    0 on failure
+ */
+size_t at24cxxx_read(const at24cxxx_t *dev, uint32_t pos, uint8_t *data,

You can make data a `void*` so the caller doesn't have to cast if they want to read anything other than a `uint8_t[]`.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190731/6d171459/attachment.htm>

More information about the notifications mailing list