Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: M24512.h
- Revision:
- 4:336ef5db5e78
- Parent:
- 3:b6d7714cd171
- Child:
- 5:431b0b0c00d3
--- a/M24512.h Mon Sep 16 16:30:00 2019 +0100
+++ b/M24512.h Wed Oct 16 13:30:15 2019 +0100
@@ -11,6 +11,9 @@
* [+] Initial release
* v1.0.1 - 16 September 2019
* [+] Add retry to Write()
+ * v1.0.2 - 16 October 2019
+ * [*] Decreased retry limit as to not WDT
+ * [+] Allow ready routine from public
* </p>
*/
#ifndef _M24512_H_
@@ -126,6 +129,13 @@
*/
uint32_t get_total_memory() const;
+
+ /** Check status of Memory chip after writing data
+ *
+ * @returns - @see status_t enum typedef
+ */
+ status_t ready(void);
+
private:
/*! i2c driver class */
@@ -143,11 +153,7 @@
*/
status_t write_page(uint16_t addr, const char* data, uint16_t size);
- /** Check status of Memory chip after writing data
- *
- * @returns - @see status_t enum typedef
- */
- status_t ready(void);
+
};
#endif /* _M24512_H_ */