From 28fad6b3206d8b6da902be2f3d39590c75a12ef0 Mon Sep 17 00:00:00 2001 From: Donatien Garnier Date: Thu, 16 Aug 2018 16:18:02 +0100 Subject: [PATCH] Update NFC EEPROM Driver + Delegate API names --- features/nfc/nfc/NFCEEPROMDriver.h | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/features/nfc/nfc/NFCEEPROMDriver.h b/features/nfc/nfc/NFCEEPROMDriver.h index 09bcf8027d..5f4792caf1 100644 --- a/features/nfc/nfc/NFCEEPROMDriver.h +++ b/features/nfc/nfc/NFCEEPROMDriver.h @@ -75,20 +75,20 @@ namespace nfc { */ virtual void on_bytes_written(size_t count) = 0; - /** - * Completion of size setting operation. - * - * @param[in] success whether this operation succeeded - */ - virtual void on_size_set(bool success) = 0; - /** * Completion of size retrieval operation. * * @param[in] success whether this operation succeeded * @param[out] the current addressable memory size */ - virtual void on_size_gotten(bool success, size_t size) = 0; + virtual void on_size_read(bool success, size_t size) = 0; + + /** + * Completion of size setting operation. + * + * @param[in] success whether this operation succeeded + */ + virtual void on_size_written(bool success) = 0; /** * Completion of erasing operation. @@ -162,18 +162,18 @@ namespace nfc { */ virtual void write_bytes(uint32_t address, const uint8_t* bytes, size_t count) = 0; + /** + * Retrieve the size of the addressable memory. + * This method should complete asynchronously by calling has_gotten_size(). + */ + virtual void read_size() = 0; + /** * Set the size of the addressable memory. * @oaram[in] count the number of addressable bytes. * This method should complete asynchronously by calling has_set_size(). */ - virtual void set_size(size_t count) = 0; - - /** - * Get the size of the addressable memory. - * This method should complete asynchronously by calling has_gotten_size(). - */ - virtual void get_size() = 0; + virtual void write_size(size_t count) = 0; /** * Erase bytes from memory.