DVBCore  17.9.0
Open Source DVB Engine
 All Data Structures Files Functions Typedefs Macros Pages
stbnvm.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3  * Copyright © 2004 Ocean Blue Software Ltd
4  *
5  * This file is part of a DTVKit Software Component
6  * You are permitted to copy, modify or distribute this file subject to the terms
7  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
8  *
9  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
10  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
11  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
12  *
13  * If you or your organisation is not a member of DTVKit then you have access
14  * to this source code outside of the terms of the licence agreement
15  * and you are expected to delete this and any associated files immediately.
16  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
17  *******************************************************************************/
24 #ifndef _STBNVM_H
25 
26 #define _STBNVM_H
27 
28 #include "techtype.h"
29 
30 //---Constant and macro definitions for public use-----------------------------
31 
32 //---Enumerations for public use-----------------------------------------------
33 
34 //---Global type defs for public use-------------------------------------------
35 
36 //---Global Function prototypes for public use---------------------------------
37 
38 void STB_NVMInitialise(void);
39 
45 U32BIT STB_NVMGetDataBlockSize(U32BIT data_block_id);
46 
54 BOOLEAN STB_NVMDataBlockRead(U32BIT data_block_id, U32BIT bytes, U8BIT *dest_addr);
55 
63 BOOLEAN STB_NVMDataBlockWrite(U32BIT data_block_id, U32BIT num_bytes, U8BIT *src_addr);
64 
65 #if 0
66 U32BIT STB_NVMGetDvbSize(void);
67 BOOLEAN STB_NVMDvbRead(U32BIT offset, U32BIT bytes, U8BIT *dest_addr);
68 BOOLEAN STB_NVMDvbWrite(U32BIT offset, U32BIT bytes, U8BIT *src_addr);
69 #endif
70 
71 U32BIT STB_NVMGetSTBSize(void);
72 BOOLEAN STB_NVMSTBRead(U32BIT offset, U32BIT bytes, U8BIT *dest_addr);
73 BOOLEAN STB_NVMSTBWrite(U32BIT offset, U32BIT bytes, U8BIT *src_addr);
74 
75 #endif // _STBNVM_H
76 
77 //*****************************************************************************
78 // End of file
79 //*****************************************************************************
80 
U32BIT STB_NVMGetSTBSize(void)
Returns size of STB database storage are (in bytes).
Definition: stbnvm.c:478
U32BIT STB_NVMGetDataBlockSize(U32BIT data_block_id)
Returns the number of bytes of data stored for the given data block.
Definition: stbnvm.c:302
System Wide Global Technical Data Type Definitions.
BOOLEAN STB_NVMSTBRead(U32BIT offset, U32BIT bytes, U8BIT *dest_addr)
Reads bytes from the given position of the STB area of NVM.
Definition: stbnvm.c:506
void STB_NVMInitialise(void)
Initialises NVM control.
Definition: stbnvm.c:284
BOOLEAN STB_NVMDataBlockRead(U32BIT data_block_id, U32BIT bytes, U8BIT *dest_addr)
Reads data bytes for the given data block from NVM.
Definition: stbnvm.c:332
BOOLEAN STB_NVMDataBlockWrite(U32BIT data_block_id, U32BIT num_bytes, U8BIT *src_addr)
Writes data bytes for the given data block to NVM.
Definition: stbnvm.c:363
BOOLEAN STB_NVMSTBWrite(U32BIT offset, U32BIT bytes, U8BIT *src_addr)
Writes bytes into the given position of the STB area of NVM.
Definition: stbnvm.c:539