36 #define NVM_INVALID_BLOCK_ID 0xffff 63 void STB_NVMChanged(BOOLEAN state);
U16BIT STB_GetNVMBlocksNeeded(U16BIT size)
Returns number of NVM database blocks needed for specified number of bytes.
Definition: stbdbnvm.c:704
U16BIT STB_FindNVMRecordFromId(U8BIT rec_id, U16BIT last_blk)
Finds next record of the type given in NVM.
Definition: stbdbnvm.c:969
NVM database access defines, structures and functions.
BOOLEAN STB_ReadNVMData(U16BIT offset, U16BIT size, U8BIT *data_ptr)
Reads data from the NVM into the given buffer.
Definition: stbdbnvm.c:1297
void STB_WriteNVMData(U16BIT offset, U16BIT size, U8BIT *data_ptr)
Writes the given data to NVM.
Definition: stbdbnvm.c:1262
void STB_NVMSave(void)
Saves the RAM cache data to NVM.
Definition: stbdbnvm.c:1047
void STB_InitNVMAccess(U16BIT offset)
Initialises parameters needed for NVM block access.
Definition: stbdbnvm.c:472
U8BIT * STB_GetNVMRecordString(U16BIT block_no, U16BIT offset, U16BIT size)
Reads string of a field from a NVM record.
Definition: stbdbnvm.c:1171
void STB_SetNVMRecordString(U16BIT block_no, U16BIT offset, U16BIT size, U8BIT *string)
Writes the specified value into a field of a NVM record.
Definition: stbdbnvm.c:1074
U16BIT STB_GetNextNVMBlock(U16BIT block_no)
Returns the block number of the next NVM record pointed to by the NVM record starting at the specifie...
Definition: stbdbnvm.c:918
void STB_SetNextNVMBlock(U16BIT block_no, U16BIT next_block)
Repairs NVM linked list by pointing the NVM record starting at the specified block number to the reco...
Definition: stbdbnvm.c:865
void STB_DestroyNVMRecord(U16BIT block_no)
Destroys NVM record by marking all NVM blocks used by the record as invalid.
Definition: stbdbnvm.c:805
System Wide Global Technical Data Type Definitions.
BOOLEAN STB_CheckNVMDatabaseIntegrity(void)
Reads each database block from NVM and checks its checksum. If the data has already been read into th...
Definition: stbdbnvm.c:564
U16BIT STB_GetNVMBlockSize(void)
Returns the size of an NVM database block, in bytes.
Definition: stbdbnvm.c:686
void STB_InitNVMMap(void)
Initialises parameters needed for NVM block access (calcs num blocks if required) ...
Definition: stbdbnvm.c:504
U16BIT STB_GetNVMBlockCount(void)
Returns total number of NVM database blocks.
Definition: stbdbnvm.c:637
U32BIT STB_GetNVMRecordNumber(U16BIT block_no, U16BIT offset, U16BIT size)
Reads the specified value of a field from a NVM record.
Definition: stbdbnvm.c:1208
void STB_SetNVMAccessRAM(U8BIT *ram_ptr)
Sets all DB NVM access to RAM block supplied instead of NVM (cancel if NULL).
Definition: stbdbnvm.c:599
U16BIT STB_GetNVMBlocksUsed(void)
Returns total number of NVM database blocks in use.
Definition: stbdbnvm.c:661
void STB_SetNVMRecordNumber(U16BIT block_no, U16BIT offset, U16BIT size, U32BIT value)
Writes the specified value into a field of a NVM record.
Definition: stbdbnvm.c:1120
void STB_NVMFlushCache(BOOLEAN clear)
Flush cached changes.
Definition: stbdbnvm.c:1017
U8BIT * STB_GetNVMAccessRAM(void)
Returns the current RAM pointer used for DB NVM access.
Definition: stbdbnvm.c:619
U16BIT STB_CreateNVMRecord(U8BIT rec_id, U16BIT size)
Creates a record of the type given in NVM by overwriting invalid blocks.
Definition: stbdbnvm.c:731