mirror of https://github.com/ARMmbed/mbed-os.git
Update NFC EEPROM Driver + Delegate API names
parent
a4a8ee1b49
commit
28fad6b320
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue