mbed-os for GR-LYCHEE

Dependents:   mbed-os-example-blinky-gr-lychee GR-Boads_Camera_sample GR-Boards_Audio_Recoder GR-Boads_Camera_DisplayApp ... more

Embed: (wiki syntax)

« Back to documentation index

_FlashJournal_Info Struct Reference

_FlashJournal_Info Struct Reference

Flash Journal information. More...

#include <flash_journal.h>

Data Fields

uint64_t capacity
 Maximum capacity (in octets) of the flash journal--i.e. the largest 'blob' which can be contained as payload.
uint64_t sizeofJournaledBlob
 size (in octets) of the most recently logged blob.
uint32_t program_unit
 Minimum programming size (in units of octets) for the current storage block--the one which will be used for the next log() operation.

Detailed Description

Flash Journal information.

This contains journal-metadata, and is the return value from calling GetInfo() on the journal driver.

Definition at line 69 of file flash_journal.h.


Field Documentation

uint64_t capacity

Maximum capacity (in octets) of the flash journal--i.e. the largest 'blob' which can be contained as payload.

Definition at line 70 of file flash_journal.h.

uint32_t program_unit

Minimum programming size (in units of octets) for the current storage block--the one which will be used for the next log() operation.

This value may change as we cycle through the blocks of the underlying MTD. Callers of FlashJournal_log() should refer to this field upon receiving the error JOURNAL_STATUS_SMALL_LOG_REQUEST (of when the actual amount of data logged is smaller than the requested amount).

Definition at line 72 of file flash_journal.h.

size (in octets) of the most recently logged blob.

Definition at line 71 of file flash_journal.h.