<p><b>@fabian18</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/11929#discussion_r308442531">drivers/at24cxxx/at24cxxx.c</a>:</p>
<pre style='color:#555'>> +    page 5: 320-383
+    page 6: 384-447
+    page 7: 448-511
+    page 8: 512-575
+    ...
+ */
+static inline void _position_to_address_words(uint8_t addr[AT24CXXX_ADDR_LEN],
+                                              uint32_t pos)
+{
+    uint16_t a = pos & 0xFFFF;
+
+    addr[0] = (a & 0xFF00) >> 8;
+    addr[1] = a & 0x00FF;
+}
+
+static int _read_byte(const at24cxxx_t *dev, uint32_t pos)
</pre>
<p>How about <code>_read_byte()</code> calling <code>i2c_read_reg()</code>, while it also polls for the EEPROM to respond.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/11929?email_source=notifications&email_token=ABE7WYD3Y3QOSIVZCK2D3MLQB5NF3A5CNFSM4IHRRDRKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB75BEPI#discussion_r308442531">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYGAD7ZPI33ZTGC7HDLQB5NF3ANCNFSM4IHRRDRA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYGGZ35DPVUGWMSHPMTQB5NF3A5CNFSM4IHRRDRKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB75BEPI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/11929?email_source=notifications\u0026email_token=ABE7WYD3Y3QOSIVZCK2D3MLQB5NF3A5CNFSM4IHRRDRKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB75BEPI#discussion_r308442531",
"url": "https://github.com/RIOT-OS/RIOT/pull/11929?email_source=notifications\u0026email_token=ABE7WYD3Y3QOSIVZCK2D3MLQB5NF3A5CNFSM4IHRRDRKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB75BEPI#discussion_r308442531",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>