X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fio%2Fkblock.h;h=f2966bafea2fd4def8512452e760a98f6e03e6c1;hb=8863f70e42fd5c7f2a503afb147bbc21b4a42c97;hp=9ac358ce37e34e01122a924c55018fea8de2b2ca;hpb=b5f1efac2381ba2a14397e0343b097e9f87c363d;p=bertos.git diff --git a/bertos/io/kblock.h b/bertos/io/kblock.h index 9ac358ce..f2966baf 100644 --- a/bertos/io/kblock.h +++ b/bertos/io/kblock.h @@ -72,7 +72,7 @@ typedef void (* kblock_clearerr_t) (struct KBlock *b); typedef int (* kblock_close_t) (struct KBlock *b); /* \} */ -/** +/* * Table of interface functions for a KBlock device. */ typedef struct KBlockVTable @@ -85,10 +85,10 @@ typedef struct KBlockVTable kblock_load_t load; kblock_store_t store; - kblock_error_t error; ///< \sa kblock_error() - kblock_clearerr_t clearerr; ///< \sa kblock_clearerr() + kblock_error_t error; // \sa kblock_error() + kblock_clearerr_t clearerr; // \sa kblock_clearerr() - kblock_close_t close; ///< \sa kblock_close() + kblock_close_t close; // \sa kblock_close() } KBlockVTable; @@ -96,24 +96,21 @@ typedef struct KBlockVTable #define KB_CACHE_DIRTY BV(1) ///< Internal flag: true if the cache is dirty #define KB_PARTIAL_WRITE BV(2) ///< Internal flag: true if the device allows partial block write -#define KB_WRITE_ONCE BV(3) ///< Allow only the one write on select block. -#define KB_OPEN_BUFF BV(4) ///< Open flash memory using page caching, allowing the modification and partial write. -#define KB_OPEN_UNBUFF BV(5) ///< Open flash memory whitout memory caching. -/** +/* * KBlock private members. * These are the private members of the KBlock interface, please do not * access these directly, use the KBlock API. */ typedef struct KBlockPriv { - DB(id_t type); ///< Used to keep track, at runtime, of the class type. - int flags; ///< Status and error flags. - void *buf; ///< Pointer to the page buffer for RAM-cached KBlocks. - block_idx_t blk_start; ///< Start block number when the device is trimmed. \sa kblock_trim(). - block_idx_t curr_blk; ///< Current cached block number in cached KBlocks. + DB(id_t type); // Used to keep track, at runtime, of the class type. + int flags; // Status and error flags. + void *buf; // Pointer to the page buffer for RAM-cached KBlocks. + block_idx_t blk_start; // Start block number when the device is trimmed. \sa kblock_trim(). + block_idx_t curr_blk; // Current cached block number in cached KBlocks. - const struct KBlockVTable *vt; ///< Virtual table of interface functions. + const struct KBlockVTable *vt; // Virtual table of interface functions. } KBlockPriv; /**