
Erste version der Software für der Prototyp
Diff: mbed-os/features/filesystem/bd/ReadOnlyBlockDevice.h
- Revision:
- 4:75df35ef4fb6
- Parent:
- 0:380207fcb5c1
--- a/mbed-os/features/filesystem/bd/ReadOnlyBlockDevice.h Thu Mar 29 14:42:59 2018 +0000 +++ b/mbed-os/features/filesystem/bd/ReadOnlyBlockDevice.h Fri Mar 30 14:07:05 2018 +0000 @@ -98,12 +98,20 @@ */ virtual bd_size_t get_program_size() const; - /** Get the size of a erasable block + /** Get the size of an erasable block * - * @return Size of a erasable block in bytes + * @return Size of an erasable block in bytes */ virtual bd_size_t get_erase_size() const; + /** Get the size of an erasable block given address + * + * @param addr Address within the erasable block + * @return Size of an erasable block in bytes + * @note Must be a multiple of the program size + */ + virtual bd_size_t get_erase_size(bd_addr_t addr) const; + /** Get the value of storage when erased * * If get_erase_value returns a non-negative byte value, the underlying