|
ChibiOS 21.11.4
|
Type of an MFS instance. More...
#include <hal_mfs.h>

Data Fields | |
| mfs_state_t | state |
| Driver state. | |
| const MFSConfig * | config |
| Current configuration data. | |
| mfs_bank_t | current_bank |
| Bank currently in use. | |
| uint32_t | current_counter |
| Usage counter of the current bank. | |
| flash_offset_t | next_offset |
| Pointer to the next free position in the current bank. | |
| flash_offset_t | used_space |
| Used space in the current bank without considering erased records. | |
| mfs_record_descriptor_t | descriptors [MFS_CFG_MAX_RECORDS] |
| Offsets of the most recent instance of the records. | |
| flash_offset_t | tr_next_offset |
| Next write offset for current transaction. | |
| flash_offset_t | tr_limit_offet |
| Maximum offset for the transaction. | |
| uint32_t | tr_nops |
| Number of buffered operations in current transaction. | |
| mfs_transaction_op_t | tr_ops [MFS_CFG_TRANSACTION_MAX] |
| Buffered operations in current transaction. | |
| mfs_nocache_buffer_t * | ncbuf |
| Associated non-cacheable buffer. | |
| mfs_state_t MFSDriver::state |
Driver state.
Definition at line 354 of file hal_mfs.h.
Referenced by mfs_bank_erase(), mfs_bank_verify_erase(), mfs_flash_read(), mfs_flash_write(), mfs_mount(), mfsCommitTransaction(), mfsErase(), mfsEraseRecord(), mfsObjectInit(), mfsPerformGarbageCollection(), mfsReadRecord(), mfsRollbackTransaction(), mfsStart(), mfsStartTransaction(), mfsStop(), and mfsWriteRecord().
| const MFSConfig* MFSDriver::config |
Current configuration data.
Definition at line 358 of file hal_mfs.h.
Referenced by mfs_bank_check_header(), mfs_bank_erase(), mfs_bank_scan_records(), mfs_bank_verify_erase(), mfs_bank_write_header(), mfs_flash_get_bank_offset(), mfs_flash_read(), mfs_flash_write(), mfsEraseRecord(), mfsObjectInit(), mfsStart(), mfsStartTransaction(), mfsStop(), and mfsWriteRecord().
| mfs_bank_t MFSDriver::current_bank |
Bank currently in use.
Definition at line 362 of file hal_mfs.h.
Referenced by mfs_garbage_collect(), mfs_state_reset(), mfs_try_mount(), mfsEraseRecord(), mfsStartTransaction(), and mfsWriteRecord().
| uint32_t MFSDriver::current_counter |
Usage counter of the current bank.
Definition at line 366 of file hal_mfs.h.
Referenced by mfs_garbage_collect(), mfs_state_reset(), and mfs_try_mount().
| flash_offset_t MFSDriver::next_offset |
Pointer to the next free position in the current bank.
Definition at line 370 of file hal_mfs.h.
Referenced by mfs_bank_scan_records(), mfs_garbage_collect(), mfs_state_reset(), mfsCommitTransaction(), mfsEraseRecord(), mfsStartTransaction(), and mfsWriteRecord().
| flash_offset_t MFSDriver::used_space |
Used space in the current bank without considering erased records.
Definition at line 374 of file hal_mfs.h.
Referenced by mfs_state_reset(), mfs_try_mount(), mfsCommitTransaction(), mfsEraseRecord(), mfsStartTransaction(), and mfsWriteRecord().
| mfs_record_descriptor_t MFSDriver::descriptors[MFS_CFG_MAX_RECORDS] |
Offsets of the most recent instance of the records.
Definition at line 379 of file hal_mfs.h.
Referenced by mfs_bank_scan_records(), mfs_garbage_collect(), mfs_state_reset(), mfs_try_mount(), mfsCommitTransaction(), mfsEraseRecord(), mfsReadRecord(), and mfsWriteRecord().
| flash_offset_t MFSDriver::tr_next_offset |
Next write offset for current transaction.
Definition at line 384 of file hal_mfs.h.
Referenced by mfsCommitTransaction(), mfsEraseRecord(), mfsStartTransaction(), and mfsWriteRecord().
| flash_offset_t MFSDriver::tr_limit_offet |
Maximum offset for the transaction.
Definition at line 388 of file hal_mfs.h.
Referenced by mfsEraseRecord(), mfsStartTransaction(), and mfsWriteRecord().
| uint32_t MFSDriver::tr_nops |
Number of buffered operations in current transaction.
Definition at line 392 of file hal_mfs.h.
Referenced by mfsCommitTransaction(), mfsEraseRecord(), mfsRollbackTransaction(), mfsStartTransaction(), and mfsWriteRecord().
| mfs_transaction_op_t MFSDriver::tr_ops[MFS_CFG_TRANSACTION_MAX] |
Buffered operations in current transaction.
Definition at line 396 of file hal_mfs.h.
Referenced by mfsCommitTransaction(), mfsEraseRecord(), and mfsWriteRecord().
| mfs_nocache_buffer_t* MFSDriver::ncbuf |
Associated non-cacheable buffer.
Definition at line 401 of file hal_mfs.h.
Referenced by mfs_bank_check_header(), mfs_bank_get_state(), mfs_bank_scan_records(), mfs_bank_write_header(), mfs_flash_copy(), mfs_flash_write(), mfs_try_mount(), mfsCommitTransaction(), mfsEraseRecord(), mfsObjectInit(), mfsReadRecord(), and mfsWriteRecord().