FreeCalypso > hg > freecalypso-sw
comparison nuc-fw/riviera/rvm/rvm_api.h @ 119:dd56546ad9e0
starting to compile RVF
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Wed, 30 Oct 2013 23:19:21 +0000 |
parents | 21de8d8e6ea7 |
children |
comparison
equal
deleted
inserted
replaced
118:21de8d8e6ea7 | 119:dd56546ad9e0 |
---|---|
20 | 20 |
21 | 21 |
22 #ifndef __RVM_API_H_ | 22 #ifndef __RVM_API_H_ |
23 #define __RVM_API_H_ | 23 #define __RVM_API_H_ |
24 | 24 |
25 #include "rv/rv_general.h" | 25 #include "../rv/rv_general.h" |
26 //#include "rvf_i.h" | 26 //#include "rvf_i.h" |
27 | 27 |
28 | 28 |
29 #ifdef __cplusplus | 29 #ifdef __cplusplus |
30 extern "C" { | 30 extern "C" { |
45 /* Return type */ | 45 /* Return type */ |
46 typedef T_RV_RET T_RVM_RETURN; | 46 typedef T_RV_RET T_RVM_RETURN; |
47 | 47 |
48 | 48 |
49 /* RVM return parameters definition */ | 49 /* RVM return parameters definition */ |
50 #define RVM_OK RV_OK | 50 #define RVM_OK RV_OK |
51 #define RVM_NOT_SUPPORTED RV_NOT_SUPPORTED | 51 #define RVM_NOT_SUPPORTED RV_NOT_SUPPORTED |
52 #define RVM_NOT_READY RV_NOT_READY | 52 #define RVM_NOT_READY RV_NOT_READY |
53 #define RVM_MEMORY_ERR RV_MEMORY_ERR | 53 #define RVM_MEMORY_ERR RV_MEMORY_ERR |
54 #define RVM_INTERNAL_ERR RV_INTERNAL_ERR | 54 #define RVM_INTERNAL_ERR RV_INTERNAL_ERR |
55 #define RVM_INVALID_PARAMETER RV_INVALID_PARAMETER | 55 #define RVM_INVALID_PARAMETER RV_INVALID_PARAMETER |
56 | 56 |
57 | 57 |
58 /******************************************************************/ | 58 /******************************************************************/ |
59 /* Definition / Types related to both API functions and messages */ | 59 /* Definition / Types related to both API functions and messages */ |
88 | 88 |
89 | 89 |
90 /* structure of RVM returned message to appli */ | 90 /* structure of RVM returned message to appli */ |
91 typedef struct | 91 typedef struct |
92 { | 92 { |
93 T_RV_HDR header; // event field will be RVM_EVT_TO_APPLI | 93 T_RV_HDR header; // event field will be RVM_EVT_TO_APPLI |
94 T_RV_RETURN_PATH rp; | 94 T_RV_RETURN_PATH rp; |
95 T_RVM_APPLI_ACTION action; // Indicates if the result is coming from a rvm_start or a rvm_stop function call | 95 T_RVM_APPLI_ACTION action; // Indicates if the result is coming from a rvm_start or a rvm_stop function call |
96 T_RVM_NAME swe_name; // Name of the SW entity | 96 T_RVM_NAME swe_name; // Name of the SW entity |
97 UINT8 swe_index; // Number of the SW entity | 97 UINT8 swe_index; // Number of the SW entity |
98 T_RVM_RETURN result; | 98 T_RVM_RETURN result; |
99 } T_RVM_APPLI_RESULT; | 99 } T_RVM_APPLI_RESULT; |
100 | 100 |
101 | 101 |
102 | 102 |
104 /***************************************/ | 104 /***************************************/ |
105 /* RVM external functions declarations */ | 105 /* RVM external functions declarations */ |
106 /***************************************/ | 106 /***************************************/ |
107 | 107 |
108 /* enable init at boot up */ | 108 /* enable init at boot up */ |
109 BOOLEAN rvm_init(void); | 109 BOOLEAN rvm_init(void); |
110 /* launch the creation process to start the specified SWE */ | 110 /* launch the creation process to start the specified SWE */ |
111 T_RVM_RETURN rvm_start_swe( T_RVM_USE_ID swe_id, T_RV_RETURN_PATH return_path); | 111 T_RVM_RETURN rvm_start_swe( T_RVM_USE_ID swe_id, T_RV_RETURN_PATH return_path); |
112 | 112 |
113 /* stop the specified SWE */ | 113 /* stop the specified SWE */ |
114 T_RVM_RETURN rvm_stop_swe( T_RVM_USE_ID swe_id, T_RV_RETURN_PATH return_path); | 114 T_RVM_RETURN rvm_stop_swe( T_RVM_USE_ID swe_id, T_RV_RETURN_PATH return_path); |