FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/services/dar/dar_structs_i.h @ 305:4dccc9d3305f
gsm-fw: checking in DAR from Leonardo source
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sun, 16 Mar 2014 05:48:58 +0000 |
parents | |
children | 81bee6125882 |
comparison
equal
deleted
inserted
replaced
304:e0ca3ca46a06 | 305:4dccc9d3305f |
---|---|
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 "rv/rv_defined_swe.h" | |
18 #ifdef RVM_DAR_SWE | |
19 #ifndef _DAR_STRUCTS_I_ | |
20 #define _DAR_STRUCTS_I_ | |
21 | |
22 #include "rvm/rvm_gen.h" | |
23 #include "dar/dar_gen.h" | |
24 #include "dar/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 mailbox) */ | |
42 typedef struct | |
43 { | |
44 UINT16 group_nb; | |
45 UINT16 mask; | |
46 UINT8 level; | |
47 }T_DAR_MSG_PARAM; | |
48 | |
49 /* Diagnose write data messages paremeters*/ | |
50 typedef struct | |
51 { | |
52 T_DAR_INFO *char_p; | |
53 T_DAR_FORMAT data_format; | |
54 T_DAR_LEVEL level; | |
55 T_DAR_USE_ID use_id; | |
56 }T_DAR_WRITE; | |
57 | |
58 | |
59 /****************************** DAR'S ENVIRONMENT **************************** */ | |
60 /* Define a structure used to store all information related to the DAR's task */ | |
61 /* & memory bank identifiers. */ | |
62 | |
63 typedef struct | |
64 { | |
65 /* DAR addr ID. */ | |
66 T_RVF_ADDR_ID addrId; | |
67 /* DAR FFS addr ID */ | |
68 T_RVF_ADDR_ID ffs_addrId; | |
69 | |
70 /* DAR memory bank. */ | |
71 T_RVF_MB_ID mb_dar; | |
72 /* DAR state */ | |
73 UINT8 state; | |
74 /* data format: ASCII or binary */ | |
75 T_DAR_FORMAT format; | |
76 /* data level : Error/Warning/ Debug */ | |
77 T_DAR_LEVEL diagnose_level; | |
78 /* DAR use id */ | |
79 T_DAR_USE_ID dar_use_id; | |
80 /* return path of the function that previously start the diagnose */ | |
81 T_RV_RETURN return_path; | |
82 /* Pointer to the error function */ | |
83 T_RVM_RETURN (*callBackFctError) (T_RVM_NAME SWEntName, | |
84 T_RVM_RETURN errorCause, | |
85 T_RVM_ERROR_TYPE errorType, | |
86 T_RVM_STRING errorMsg); | |
87 /* Pointer to the DAR callback function */ | |
88 T_RV_RET (*entity_dar_callback)(T_DAR_BUFFER buffer_p, | |
89 UINT16 length); | |
90 /* Filter Array that contains the group and the masks ( Warning, debug) */ | |
91 /* in order to filter messages */ | |
92 T_DAR_FILTER_PARAMETER dar_filter_array[DAR_MAX_GROUP_NB]; | |
93 /* index to indicate the group position in the dar_filter_array */ | |
94 UINT16 index; | |
95 /* free index to indicate the first free group position in the */ | |
96 /* dar_filter_array ( to add a new group in the array) */ | |
97 UINT16 free_index; | |
98 /* Buffer to store diagnose data*/ | |
99 | |
100 } T_DAR_ENV_CTRL_BLK; | |
101 | |
102 #ifdef __cplusplus | |
103 } | |
104 #endif | |
105 | |
106 #endif | |
107 | |
108 #endif /* #ifdef RVM_DAR_SWE */ |