comparison src/ui/mfw/mfw_utils.h @ 3:67bfe9f274f6

src/ui: import of src/ui3 from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Oct 2020 06:33:10 +0000
parents
children 92abb46dc1ba
comparison
equal deleted inserted replaced
2:3a14ee9a9843 3:67bfe9f274f6
1 /*
2 +--------------------------------------------------------------------+
3 | PROJECT: MMI-Framework (8417) $Workfile:: mfw_utils.h $|
4 | $Author:: NDH $Revision:: 1 $|
5 | CREATED: 6.1.2003 $Modtime:: 10.04.00 14:58 $|
6 | STATE : code $|
7 +--------------------------------------------------------------------+
8
9 MODULE : MFW_UTILS
10
11 PURPOSE : This modul contains General Functional Utilities.
12
13 HISTORY:
14 Jun 05, 2004 REF: CRR 18262 NISHIKANT KULKARNI
15 Description: The sample sends a STOP DTMF message without release of the key by the user
16 Solution: Instead of sending DTMF commands in "VTS_MOD_Auto" mode, on key press DTMF tone is started
17 using VTS_MOD_ManStart and on key release DTMF tone is stopped using VTS_MOD_ManStop mode.
18
19 */
20
21 /*
22 ** Limiting Macros
23 */
24 #define MAX_CBUF_QUEUES 3
25
26 /*
27 ** Return Value Macros
28 */
29 #define MFW_CBUF_OK 1
30 #define MFW_CBUF_OK_DATA_LOSS 2
31
32 #define MFW_CBUF_INVALID_BUF_ID (-1)
33 #define MFW_CBUF_NO_BUFS_AVAILABLE (-2)
34 #define MFW_CBUF_MEM_ALLOC_FAILURE (-3)
35 #define MFW_CBUF_INVALID_ITEM_SIZE (-4)
36 #define MFW_CBUF_INVALID_MAX_ITEMS (-5)
37 #define MFW_CBUF_INVALID_BUF_PTR (-6)
38 #define MFW_CBUF_INVALID_STATIC_BUF (-7)
39 #define MFW_CBUF_PUT_FAILED_Q_FULL (-8)
40 #define MFW_CBUF_BUFFER_EMPTY (-9)
41
42 /*
43 ** Function Prototypes
44 xnkulkar SPR-18262: Added the prototypes for mfw_cbuf_put_mode() and mfw_cbuf_get_mode()
45 */
46 SHORT mfw_cbuf_create (USHORT max_num_items, USHORT item_size,
47 UBYTE overwrite, UBYTE null_char,
48 UBYTE static_buf, void *buffer_ptr);
49 SHORT mfw_cbuf_delete (SHORT bufId);
50 SHORT mfw_cbuf_reset (SHORT bufId);
51 SHORT mfw_cbuf_put (SHORT bufId, void *data_ptr);
52 SHORT mfw_cbuf_get (SHORT bufId, void *data_ptr);
53 SHORT mfw_cbuf_put_mode (SHORT bufId,UBYTE vts_mode); //xnkulkar SPR-18262
54 SHORT mfw_cbuf_get_mode (SHORT bufId); //xnkulkar SPR-18262
55 USHORT mfw_cbuf_num_elements (SHORT bufId);
56