comparison services/dar/dar_structs_i.h @ 0:75a11d740a02

initial import of gsm-fw from freecalypso-sw rev 1033:5ab737ac3ad7
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 09 Jun 2016 00:02:41 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:75a11d740a02
1 /******************************************************************************/
2 /* */
3 /* File Name: dar_structs_i.h */
4 /* */
5 /* Purpose: This file contains constants, data type, and data */
6 /* structures that are used by the diagnose's task. */
7 /* */
8 /* Note: */
9 /* None. */
10 /* */
11 /* Revision History: */
12 /* 26 september 01 Stephanie Gerthoux Create */
13 /* */
14 /* (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved. */
15 /* */
16 /******************************************************************************/
17 #include "../../riviera/rv/rv_defined_swe.h"
18 #ifdef RVM_DAR_SWE
19 #ifndef _DAR_STRUCTS_I_
20 #define _DAR_STRUCTS_I_
21
22 #include "../../riviera/rvm/rvm_gen.h"
23 #include "dar_gen.h"
24 #include "dar_const_i.h"
25
26 #ifdef __cplusplus
27 extern "C"
28 {
29 #endif
30
31 /* ***************** DAR internal structures *************************/
32
33 /* Diagnose Use parameter with masks for warning and debug messages */
34 typedef struct
35 {
36 UINT16 group_nb;
37 UINT16 mask_warning;
38 UINT16 mask_debug;
39 }T_DAR_FILTER_PARAMETER;
40
41 /* Diagnose Use Messages parameter (used to send messages in DAR
42 mailbox) */
43 typedef struct
44 {
45 UINT16 group_nb;
46 UINT16 mask;
47 UINT8 level;
48 }T_DAR_MSG_PARAM;
49
50 /* Diagnose write data messages paremeters*/
51 typedef struct
52 {
53 T_DAR_INFO *char_p;
54 T_DAR_FORMAT data_format;
55 T_DAR_LEVEL level;
56 T_DAR_USE_ID use_id;
57 }T_DAR_WRITE;
58
59
60 /****************************** DAR'S ENVIRONMENT **********************/
61 /* Define a structure used to store all information related to the */
62 /* DAR's task & memory bank identifiers. */
63
64 typedef struct
65 {
66 /* DAR addr ID. */
67 T_RVF_ADDR_ID addrId;
68 /* DAR FFS addr ID */
69 T_RVF_ADDR_ID ffs_addrId;
70
71 /* DAR memory bank. */
72 T_RVF_MB_ID mb_dar;
73 /* DAR state */
74 UINT8 state;
75 /* data format: ASCII or binary */
76 T_DAR_FORMAT format;
77 /* data level : Error/Warning/ Debug */
78 T_DAR_LEVEL diagnose_level;
79 /* DAR use id */
80 T_DAR_USE_ID dar_use_id;
81 /* return path of the function that previously start the diagnose */
82 T_RV_RETURN return_path;
83 /* Pointer to the error function */
84 T_RVM_RETURN (*callBackFctError) (T_RVM_NAME SWEntName,
85 T_RVM_RETURN errorCause,
86 T_RVM_ERROR_TYPE errorType,
87 T_RVM_STRING errorMsg);
88 /* Pointer to the DAR callback function */
89 T_RV_RET (*entity_dar_callback)(T_DAR_BUFFER buffer_p,
90 UINT16 length);
91 /* Filter Array that contains the group and the masks */
92 /* (Warning, debug) in order to filter messages */
93 T_DAR_FILTER_PARAMETER dar_filter_array[DAR_MAX_GROUP_NB];
94 /* index to indicate the group position in the dar_filter_array */
95 UINT16 index;
96 /* free index to indicate the first free group position in the */
97 /* dar_filter_array ( to add a new group in the array) */
98 UINT16 free_index;
99 /* Buffer to store diagnose data*/
100
101 } T_DAR_ENV_CTRL_BLK;
102
103 #ifdef __cplusplus
104 }
105 #endif
106
107 #endif
108
109 #endif /* #ifdef RVM_DAR_SWE */