source: svn/newcon3bcm2_21bu/dta/tests/unit_test/umstore.h @ 66

Last change on this file since 66 was 66, checked in by megakiss, 11 years ago

키패드 기능 연결

전원키 누르고 리모콘 누르면 학습
CH+ 간격 1초 증가 MAX:15
CH- 간격 1초 감소 MIN :1

  • Property svn:executable set to *
File size: 2.9 KB
Line 
1/***************************************************************************
2 *     Copyright (c) 2011, Broadcom Corporation
3 *     All Rights Reserved
4 *     Confidential Property of Broadcom Corporation
5 *
6 *  THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE
7 *  AGREEMENT  BETWEEN THE USER AND BROADCOM.  YOU HAVE NO RIGHT TO USE OR
8 *  EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT.
9 *
10 * $brcm_Workfile: $
11 * $brcm_Revision: $
12 * $brcm_Date: $
13 *
14 * Module Description: UDTA message storage interface.
15 *
16 * Revision History:
17 *
18 * $brcm_Log: $
19 *
20 *
21 ***************************************************************************/
22#if !defined(__umstore_h__)
23#define __umstore_h__
24
25
26#define BUMS_OK 0
27#define BUMS_ERROR 1
28
29
30#define BUMS_ID_START 100
31#define BUMS_ID_CA_SYS_ID BUMS_ID_START
32/* must point to the last defined id */
33#define BUMS_ID_LAST BUMS_ID_CA_SYS_ID
34
35typedef struct bums_data_t * bums_handle;
36
37/***************************************************************************
38Summary:
39 Open flash database and initialize it for access.
40Description:
41 Database will be positioned on the first valid record;
42Input:
43Output:
44Returns:
45SeeAlso:
46None
47***************************************************************************/
48void bums_open(void);
49
50/***************************************************************************
51Summary:
52 Close flash database and free data structures
53Description:
54 Database is closed and all allocated memory is freed.
55Input:
56Output:
57Returns:
58SeeAlso:
59None
60***************************************************************************/
61void bums_close(void);
62
63/***************************************************************************
64Summary:
65 Read data with given ID from the database.
66Description:
67 Read data from the database and place it in the provided memory.
68 If there is no record in the database return error.
69Input:
70Output:
71Returns:
72SeeAlso:
73None
74***************************************************************************/
75int bums_read_data(unsigned char data_id, char * data, size_t size);
76
77/***************************************************************************
78Summary:
79 Write data with given ID in to the database.
80Description:
81 Write data in to the database.
82 Previous data with the same ID will be replaced with the new data.
83Input:
84Output:
85Returns:
86SeeAlso:
87None
88***************************************************************************/
89int bums_write_data(unsigned char data_id, char * data, size_t size);
90
91/***************************************************************************
92Summary:
93 Erase data with given ID from the database.
94Description:
95 Erase data from the database.
96 Previous data with the same ID will be replaced with the new data.
97Input:
98Output:
99Returns:
100SeeAlso:
101None
102***************************************************************************/
103int bums_delete_data(unsigned char data_id);
104
105#endif
Note: See TracBrowser for help on using the repository browser.