[riot-notifications] [RIOT-OS/RIOT] [WIP, RFC] drivers/eeprom: Common API to access EEPROM memory (#12091)

Marian Buschsieweke notifications at github.com
Tue Sep 10 09:35:27 CEST 2019


maribu commented on this pull request.



> + * @brief   Driver interface for EEPROM devices
+ *
+ * This interface must be implemented by every EEPROM device driver. The
+ * function pointer in @ref eeprom_driver_t::erase can be `NULL`.
+ */
+typedef struct {
+    /**
+     * @brief   Initialize the data structures for the EEPROM device
+     *
+     * @param[in,out]   handle  Device handle to initialize
+     * @param[in]       params  Initialization parameters of the device
+     *
+     * @retval  0       Failed to initialize the device
+     * @return          The size of the device in bytes
+     */
+    eeprom_off_t (*init)(void *handle, const void *params);

@aabadie: You suggested to drop the `params` here, right?

-- 
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/12091#pullrequestreview-285956207
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190910/22f4865b/attachment.htm>


More information about the notifications mailing list