Ask AI
Skip to content

_AWEFlashFSInstance

The DSPC Flash File System Instance. More...

#include <Include/FlashFSInstance.h>

Public Attributes

Name
UINT32 flashSizeInBytes
Size of flash memory - if non-zero, next two values must also be non-zero.
UINT32 flashErasableBlockSizeInBytes
Size of flash erase block.
UINT32 flashStartOffsetInBytes
Offset into start of flash used for file system.
UINT32 flashEraseTimeInMs
Flash erase time in milliseconds.
BOOL(*)(void) cbInit
User function to initialize flash file system.
BOOL(*)(UINT32 nStartingAddress, UINT32 nNumberOfSectors) cbEraseSector
User callback function to erase one or more sectors.
BOOL(*)(UINT32 nFlashAddress, UINT32 *pBuffer, UINT32 nDWordsToWrite) cbFlashWrite
User callback function to write to flash.
BOOL(*)(UINT32 nFlashAddress, UINT32 *pBuffer, UINT32 nDWordsToRead) cbFlashRead
User function to read from flash.
INT32(*)(struct _AWEInstance *pAWE) cbFlashProcessCmd
Optional user callback function to return the next command from an awb in flash.
UINT32[61] _Reserved

Detailed Description

struct _AWEFlashFSInstance;

The DSPC Flash File System Instance.

Optional – SINGLE INSTANCE ONLY

Examples: LinuxAppMulti.c

Public Attributes Documentation

variable flashSizeInBytes

UINT32 flashSizeInBytes;

Size of flash memory - if non-zero, next two values must also be non-zero.

Examples: LinuxAppMulti.c

variable flashErasableBlockSizeInBytes

UINT32 flashErasableBlockSizeInBytes;

Size of flash erase block.

Examples: LinuxAppMulti.c

variable flashStartOffsetInBytes

UINT32 flashStartOffsetInBytes;

Offset into start of flash used for file system.

Examples: LinuxAppMulti.c

variable flashEraseTimeInMs

UINT32 flashEraseTimeInMs;

Flash erase time in milliseconds.

Examples: LinuxAppMulti.c

variable cbInit

BOOL(*)(void) cbInit;

User function to initialize flash file system.

Examples: LinuxAppMulti.c

variable cbEraseSector

BOOL(*)(UINT32 nStartingAddress, UINT32 nNumberOfSectors) cbEraseSector;

User callback function to erase one or more sectors.

Examples: LinuxAppMulti.c

variable cbFlashWrite

BOOL(*)(UINT32 nFlashAddress, UINT32 *pBuffer, UINT32 nDWordsToWrite) cbFlashWrite;

User callback function to write to flash.

Examples: LinuxAppMulti.c

variable cbFlashRead

BOOL(*)(UINT32 nFlashAddress, UINT32 *pBuffer, UINT32 nDWordsToRead) cbFlashRead;

User function to read from flash.

Examples: LinuxAppMulti.c

variable cbFlashProcessCmd

INT32(*)(struct _AWEInstance *pAWE) cbFlashProcessCmd;

Optional user callback function to return the next command from an awb in flash.

Only required for multi-instance BSPs. If not defined, awb commands are processed internally in the associated AWEInstance. The command to be processed is in pAWE->pPacketBuffer. Parse the instanceID/opcode with AWECoreUtils, and route/process it on the desired instance.

variable _Reserved

UINT32[61] _Reserved;