1 |
/**************************************************************************** |
2 |
/* F i l e D a t a |
3 |
/* |
4 |
/* Module : MCMDManager |
5 |
/* C.I. No. : |
6 |
/* $Revision: 1.1.1.1 $ |
7 |
/* $Date: 2003/08/04 09:40:21 $ |
8 |
/* Belonging to : |
9 |
/* : |
10 |
/* $RCSfile: MD_MCMDDispatcher_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: MD_MCMDDispatcher_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.3 2002/05/09 08:16:34 zulia |
29 |
/* * acceptance release |
30 |
/* |
31 |
/* |
32 |
/*****************************************************************************/ |
33 |
|
34 |
|
35 |
/*============================= Include File ================================*/ |
36 |
|
37 |
#include <src/MCMDManager/MCMDDispatcher/MD_MCMDDispatcher_p.h> |
38 |
#include <src/MCMDManager/MCMDDispatcher/MD_MCMDDispatcher_op.h> |
39 |
|
40 |
|
41 |
/*****************************************************************************/ |
42 |
|
43 |
/*==== M C M D i s p a t c h e r P R O V I D E D I N T E R F A C E ====*/ |
44 |
|
45 |
/*****************************************************************************/ |
46 |
|
47 |
|
48 |
/*****************************************************************************/ |
49 |
/* @Function: MD_piInitMCMDDispatcher */ |
50 |
/* @Purpose : */ |
51 |
/* Provided Interface to initialize the MCMDDispatcher object. */ |
52 |
/* */ |
53 |
/* @@ */ |
54 |
/* @Parameter Name @Mode @Description */ |
55 |
/* status_code OUT Return code */ |
56 |
/* @@ */ |
57 |
/*****************************************************************************/ |
58 |
|
59 |
status_code MD_piInitMCMDDispatcher (void) |
60 |
{ |
61 |
status_code status; |
62 |
|
63 |
status =MD_opInitMCMDDispatcher(); |
64 |
return (status); |
65 |
|
66 |
} |
67 |
|
68 |
|
69 |
|
70 |
/*****************************************************************************/ |
71 |
/* @Function: MD_piSndMsgMCMDDispatcher */ |
72 |
/* @Purpose : */ |
73 |
/* Provided Interface to invoke a specific operation of the MCMDDispatcher */ |
74 |
/* task. This is done by sending a message into MCMDDispatcher mailbox. */ |
75 |
/* The sent message has the following structure : */ |
76 |
/* Structure -MsgTsk- : */ |
77 |
/* Field -Code- Code of the task operation */ |
78 |
/* Field -Info- Buffer that contains the task operation parameters */ |
79 |
/* Filed -LlInfo- Parameters size. */ |
80 |
/* The operations code and the parameters type of the MCMDDispatcher task */ |
81 |
/* are the following : */ |
82 |
/* */ |
83 |
/* Code operation Parameters (Type assigned to -Info- field) */ |
84 |
/* MD_MCMD_EXEC MA_HEADER_MCMD structure (MCMD header) */ |
85 |
/*/* */ |
86 |
/* @@ */ |
87 |
/* @Parameter Name @Mode @Description */ |
88 |
/* SndMsg IN Pointer to task message */ |
89 |
/* status_code OUT Return code */ |
90 |
/* @@ */ |
91 |
/*****************************************************************************/ |
92 |
|
93 |
status_code MD_piSndMsgMCMDDispatcher (MsgTsk* SndMsg) |
94 |
{ |
95 |
rtems_status_code status; |
96 |
|
97 |
status =MD_opSndMsgMCMDDispatcher(SndMsg); |
98 |
return (status); |
99 |
|
100 |
} |