1 |
/**************************************************************************** |
2 |
/* F i l e D a t a |
3 |
/* |
4 |
/* Module : BasicSW |
5 |
/* C.I. No. : |
6 |
/* $Revision: 1.1.1.1 $ |
7 |
/* $Date: 2003/08/04 09:40:21 $ |
8 |
/* Belonging to : |
9 |
/* : |
10 |
/* $RCSfile: BI_Bus1553B_p.c,v $ |
11 |
/* Program Type : |
12 |
/* Sub-modules : |
13 |
/* |
14 |
/**************************************************************************** |
15 |
/* S W D e v e l o p m e n t E n v i r o n m e n t |
16 |
/* |
17 |
/* Host system : |
18 |
/* SW Compiler : |
19 |
/* $Author: sebastiani $ |
20 |
/* : |
21 |
/**************************************************************************** |
22 |
/* U p d a t i n g |
23 |
/* |
24 |
/* $Log: BI_Bus1553B_p.c,v $ |
25 |
/* Revision 1.1.1.1 2003/08/04 09:40:21 sebastiani |
26 |
/* Imported sources laben rel. 19.06.2003 integrated with pam2 |
27 |
/* |
28 |
/* Revision 1.4 2002/05/09 08:16:33 zulia |
29 |
/* * acceptance release |
30 |
/* |
31 |
/* |
32 |
/*****************************************************************************/ |
33 |
|
34 |
/*============================= Include File ================================*/ |
35 |
|
36 |
#include <src/BasicSW/Bus1553B/BI_Bus1553B_p.h> |
37 |
#include <src/BasicSW/Bus1553B/BI_Bus1553B_op.h> |
38 |
|
39 |
/*****************************************************************************/ |
40 |
|
41 |
/*========== B u s 1 5 5 3 B P R O V I D E D I N T E R F A C E =========*/ |
42 |
|
43 |
/*****************************************************************************/ |
44 |
|
45 |
/*****************************************************************************/ |
46 |
/* @Function: BI_piInitBus1553B */ |
47 |
/* @Purpose : */ |
48 |
/* Provided Interface to set the state of init for the SuMMIT 1553 */ |
49 |
/* Return code can be SUCCESSFUL or UNSATISFIED. */ |
50 |
/* */ |
51 |
/* @@ */ |
52 |
/* @Parameter Name @Mode @Description */ |
53 |
/* status_code OUT Return code */ |
54 |
/* @@ */ |
55 |
/*****************************************************************************/ |
56 |
status_code BI_piInitBus1553B( void ) |
57 |
{ |
58 |
return BI_opInitBus1553B(); |
59 |
} |
60 |
|
61 |
|
62 |
/*****************************************************************************/ |
63 |
/* @Function: BI_pi1553BInterruptHandler */ |
64 |
/* @Purpose : */ |
65 |
/* Provided Interface to handle 1553 interrups and to performs the high */ |
66 |
/* level protocol for macrocommands and telemetries */ |
67 |
/* Return code can be SUCCESSFUL or UNSATISFIED. */ |
68 |
/* */ |
69 |
/* @@ */ |
70 |
/* @Parameter Name @Mode @Description */ |
71 |
/* status_code OUT Return code */ |
72 |
/* @@ */ |
73 |
/*****************************************************************************/ |
74 |
status_code BI_pi1553BInterruptHandler( void ) |
75 |
{ |
76 |
return BI_op1553BInterruptHandler(); |
77 |
} |
78 |
|
79 |
|
80 |
/*****************************************************************************/ |
81 |
/* @Function: BI_pi1553BWriteHistory */ |
82 |
/* @Purpose : */ |
83 |
/* Provided Interface to write History Area Logs into 1553 memory area. */ |
84 |
/* Return code can be SUCCESSFUL or UNSATISFIED. */ |
85 |
/* */ |
86 |
/* @@ */ |
87 |
/* @Parameter Name @Mode @Description */ |
88 |
/* History IN Buffer in RAM from where to reads the data */ |
89 |
/* status_code OUT Return code */ |
90 |
/* @@ */ |
91 |
/*****************************************************************************/ |
92 |
status_code BI_pi1553BWriteHistory(unsigned short int* History) |
93 |
{ |
94 |
return BI_op1553BWriteHistory(History); |
95 |
} |
96 |
|
97 |
/*****************************************************************************/ |
98 |
/* @Function: BI_pi1553BWriteRTFrm */ |
99 |
/* @Purpose : */ |
100 |
/* Provided Interface to write Telemetry formats into 1553 memory area. */ |
101 |
/* Return code can be SUCCESSFUL or UNSATISFIED. */ |
102 |
/* */ |
103 |
/* @@ */ |
104 |
/* @Parameter Name @Mode @Description */ |
105 |
/* tmlf IN Buffer in RAM from where to reads the data */ |
106 |
/* nword16 IN number of 16 bit words to be written */ |
107 |
/* status_code OUT Return code */ |
108 |
/* @@ */ |
109 |
/*****************************************************************************/ |
110 |
status_code BI_pi1553BWriteRTFrm(unsigned short int* tmlf, unsigned int nword16) |
111 |
{ |
112 |
return BI_op1553BWriteRTFrm(tmlf, nword16); |
113 |
} |
114 |
|
115 |
|
116 |
|
117 |
/*****************************************************************************/ |
118 |
/* @Function: BI_pi1553BWriteStatusWord */ |
119 |
/* @Purpose : */ |
120 |
/* Provided Interface to write the subsystem staus word directly into */ |
121 |
/* the 1553 exchange memory at the fixed address of subaddress TSA2. */ |
122 |
/* Return code can be SUCCESSFUL or UNSATISFIED. */ |
123 |
/* */ |
124 |
/* @@ */ |
125 |
/* @Parameter Name @Mode @Description */ |
126 |
/* status_word IN Input parameter of the subsys. status word */ |
127 |
/* status_code OUT Return code */ |
128 |
/* @@ */ |
129 |
/*****************************************************************************/ |
130 |
status_code BI_pi1553BWriteStatusWord(unsigned short int status_word) |
131 |
{ |
132 |
return BI_op1553BWriteStatusWord(status_word); |
133 |
} |
134 |
|
135 |
|
136 |
|
137 |
/*****************************************************************************/ |
138 |
/* @Function: BI_piGetCCAFormat */ |
139 |
/* @Purpose : */ |
140 |
/* Provided Interface to get the CCA format words. */ |
141 |
/* */ |
142 |
/* @@ */ |
143 |
/* @Parameter Name @Mode @Description */ |
144 |
/* CCABuffer IN CCA buffer */ |
145 |
/* status_code OUT Return code */ |
146 |
/* @@ */ |
147 |
/*****************************************************************************/ |
148 |
status_code BI_piGetCCAFormat (unsigned short int* CCABuffer) |
149 |
{ |
150 |
return BI_opGetCCAFormat(CCABuffer); |
151 |
} |