BALTECH Docs |
C API for BALTECH SDK
|
#include "../typedefs.h"
Go to the source code of this file.
Macros | |
#define | BRP_FlashFS_ErrFsCorrupt BRP_ERR_STATUS(0x4900, 0x01) |
#define | BRP_FlashFS_ErrRecordCorrupt BRP_ERR_STATUS(0x4900, 0x02) |
#define | BRP_FlashFS_ErrFlashAccess BRP_ERR_STATUS(0x4900, 0x03) |
#define | BRP_FlashFS_ErrDirectoryFull BRP_ERR_STATUS(0x4900, 0x04) |
#define | BRP_FlashFS_ErrFileNotFound BRP_ERR_STATUS(0x4900, 0x05) |
#define | BRP_FlashFS_ErrEndOfFile BRP_ERR_STATUS(0x4900, 0x06) |
#define | BRP_FlashFS_ErrFull BRP_ERR_STATUS(0x4900, 0x07) |
#define | BRP_FlashFS_ErrFileExist BRP_ERR_STATUS(0x4900, 0x08) |
Functions | |
brp_errcode | brp_FlashFS_GetMemoryInfo (brp_protocol protocol, unsigned *TotalMem, unsigned *FreeMem) |
brp_errcode | brp_FlashFS_Format (brp_protocol protocol, bool QuickFormat) |
brp_errcode | brp_FlashFS_CreateFile (brp_protocol protocol, unsigned FileId, unsigned RecordSize) |
brp_errcode | brp_FlashFS_DeleteFile (brp_protocol protocol, unsigned FileId) |
brp_errcode | brp_FlashFS_RenameFile (brp_protocol protocol, unsigned FileId, unsigned NewFileId) |
brp_errcode | brp_FlashFS_GetRecordSize (brp_protocol protocol, unsigned FileId, unsigned *RecordSize) |
brp_errcode | brp_FlashFS_GetFileSize (brp_protocol protocol, unsigned FileId, unsigned *FileSize) |
brp_errcode | brp_FlashFS_ReadRecords (brp_protocol protocol, unsigned FileId, unsigned StartRecord, unsigned RecordCount, brp_FlashFS_ReadRecords_RecordList_Entry **RecordList, size_t *RecordList_len, brp_mempool *mempool) |
brp_errcode | brp_FlashFS_WriteRecords (brp_protocol protocol, unsigned FileId, unsigned StartRecord, brp_FlashFS_WriteRecords_RecordList_Entry *RecordList, size_t RecordList_len) |
This command group provides access to custom data that is stored in a dataflash device.
The access is handled through a flash file system. Each file, which is identified with a 16-bit ID, is organized in records of a fixed size. The record size can be between 1 and 254 and must be determined at file creation, but can be chosen individually for every file. All read and write operations use a record as the smallest storage unit. Records may be appended to the end of a file or they may overwrite existing records with new data.
Definition in file flashfs.h.