Lines Matching defs:msg

33 	sc_rpc_msg_t msg;
36 RPC_VER(&msg) = SC_RPC_VERSION;
37 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_TIMER;
38 RPC_FUNC(&msg) = (uint8_t)TIMER_FUNC_SET_WDOG_TIMEOUT;
39 RPC_U32(&msg, 0U) = (uint32_t)timeout;
40 RPC_SIZE(&msg) = 2U;
42 sc_call_rpc(ipc, &msg, SC_FALSE);
44 result = RPC_R8(&msg);
51 sc_rpc_msg_t msg;
54 RPC_VER(&msg) = SC_RPC_VERSION;
55 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_TIMER;
56 RPC_FUNC(&msg) = (uint8_t)TIMER_FUNC_SET_WDOG_PRE_TIMEOUT;
57 RPC_U32(&msg, 0U) = (uint32_t)pre_timeout;
58 RPC_SIZE(&msg) = 2U;
60 sc_call_rpc(ipc, &msg, SC_FALSE);
62 result = RPC_R8(&msg);
68 sc_rpc_msg_t msg;
71 RPC_VER(&msg) = SC_RPC_VERSION;
72 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_TIMER;
73 RPC_FUNC(&msg) = (uint8_t)TIMER_FUNC_START_WDOG;
74 RPC_U8(&msg, 0U) = (uint8_t)lock;
75 RPC_SIZE(&msg) = 2U;
77 sc_call_rpc(ipc, &msg, SC_FALSE);
79 result = RPC_R8(&msg);
85 sc_rpc_msg_t msg;
88 RPC_VER(&msg) = SC_RPC_VERSION;
89 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_TIMER;
90 RPC_FUNC(&msg) = (uint8_t)TIMER_FUNC_STOP_WDOG;
91 RPC_SIZE(&msg) = 1U;
93 sc_call_rpc(ipc, &msg, SC_FALSE);
95 result = RPC_R8(&msg);
101 sc_rpc_msg_t msg;
104 RPC_VER(&msg) = SC_RPC_VERSION;
105 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_TIMER;
106 RPC_FUNC(&msg) = (uint8_t)TIMER_FUNC_PING_WDOG;
107 RPC_SIZE(&msg) = 1U;
109 sc_call_rpc(ipc, &msg, SC_FALSE);
111 result = RPC_R8(&msg);
120 sc_rpc_msg_t msg;
123 RPC_VER(&msg) = SC_RPC_VERSION;
124 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_TIMER;
125 RPC_FUNC(&msg) = (uint8_t)TIMER_FUNC_GET_WDOG_STATUS;
126 RPC_SIZE(&msg) = 1U;
128 sc_call_rpc(ipc, &msg, SC_FALSE);
131 *timeout = RPC_U32(&msg, 0U);
134 *max_timeout = RPC_U32(&msg, 4U);
137 *remaining_time = RPC_U32(&msg, 8U);
139 result = RPC_R8(&msg);
148 sc_rpc_msg_t msg;
151 RPC_VER(&msg) = SC_RPC_VERSION;
152 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_TIMER;
153 RPC_FUNC(&msg) = (uint8_t)TIMER_FUNC_PT_GET_WDOG_STATUS;
154 RPC_U8(&msg, 0U) = (uint8_t)pt;
155 RPC_SIZE(&msg) = 2U;
157 sc_call_rpc(ipc, &msg, SC_FALSE);
160 *timeout = RPC_U32(&msg, 0U);
163 *remaining_time = RPC_U32(&msg, 4U);
165 result = RPC_R8(&msg);
167 *enb = RPC_U8(&msg, 8U);
175 sc_rpc_msg_t msg;
178 RPC_VER(&msg) = SC_RPC_VERSION;
179 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_TIMER;
180 RPC_FUNC(&msg) = (uint8_t)TIMER_FUNC_SET_WDOG_ACTION;
181 RPC_U8(&msg, 0U) = (uint8_t)pt;
182 RPC_U8(&msg, 1U) = (uint8_t)action;
183 RPC_SIZE(&msg) = 2U;
185 sc_call_rpc(ipc, &msg, SC_FALSE);
187 result = RPC_R8(&msg);
195 sc_rpc_msg_t msg;
198 RPC_VER(&msg) = SC_RPC_VERSION;
199 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_TIMER;
200 RPC_FUNC(&msg) = (uint8_t)TIMER_FUNC_SET_RTC_TIME;
201 RPC_U16(&msg, 0U) = (uint16_t)year;
202 RPC_U8(&msg, 2U) = (uint8_t)mon;
203 RPC_U8(&msg, 3U) = (uint8_t)day;
204 RPC_U8(&msg, 4U) = (uint8_t)hour;
205 RPC_U8(&msg, 5U) = (uint8_t)min;
206 RPC_U8(&msg, 6U) = (uint8_t)sec;
207 RPC_SIZE(&msg) = 3U;
209 sc_call_rpc(ipc, &msg, SC_FALSE);
211 result = RPC_R8(&msg);
219 sc_rpc_msg_t msg;
222 RPC_VER(&msg) = SC_RPC_VERSION;
223 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_TIMER;
224 RPC_FUNC(&msg) = (uint8_t)TIMER_FUNC_GET_RTC_TIME;
225 RPC_SIZE(&msg) = 1U;
227 sc_call_rpc(ipc, &msg, SC_FALSE);
230 *year = RPC_U16(&msg, 0U);
232 result = RPC_R8(&msg);
234 *mon = RPC_U8(&msg, 2U);
237 *day = RPC_U8(&msg, 3U);
240 *hour = RPC_U8(&msg, 4U);
243 *min = RPC_U8(&msg, 5U);
246 *sec = RPC_U8(&msg, 6U);
253 sc_rpc_msg_t msg;
256 RPC_VER(&msg) = SC_RPC_VERSION;
257 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_TIMER;
258 RPC_FUNC(&msg) = (uint8_t)TIMER_FUNC_GET_RTC_SEC1970;
259 RPC_SIZE(&msg) = 1U;
261 sc_call_rpc(ipc, &msg, SC_FALSE);
264 *sec = RPC_U32(&msg, 0U);
266 result = RPC_R8(&msg);
274 sc_rpc_msg_t msg;
277 RPC_VER(&msg) = SC_RPC_VERSION;
278 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_TIMER;
279 RPC_FUNC(&msg) = (uint8_t)TIMER_FUNC_SET_RTC_ALARM;
280 RPC_U16(&msg, 0U) = (uint16_t)year;
281 RPC_U8(&msg, 2U) = (uint8_t)mon;
282 RPC_U8(&msg, 3U) = (uint8_t)day;
283 RPC_U8(&msg, 4U) = (uint8_t)hour;
284 RPC_U8(&msg, 5U) = (uint8_t)min;
285 RPC_U8(&msg, 6U) = (uint8_t)sec;
286 RPC_SIZE(&msg) = 3U;
288 sc_call_rpc(ipc, &msg, SC_FALSE);
290 result = RPC_R8(&msg);
296 sc_rpc_msg_t msg;
299 RPC_VER(&msg) = SC_RPC_VERSION;
300 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_TIMER;
301 RPC_FUNC(&msg) = (uint8_t)TIMER_FUNC_SET_RTC_PERIODIC_ALARM;
302 RPC_U32(&msg, 0U) = (uint32_t)sec;
303 RPC_SIZE(&msg) = 2U;
305 sc_call_rpc(ipc, &msg, SC_FALSE);
307 result = RPC_R8(&msg);
313 sc_rpc_msg_t msg;
316 RPC_VER(&msg) = SC_RPC_VERSION;
317 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_TIMER;
318 RPC_FUNC(&msg) = (uint8_t)TIMER_FUNC_CANCEL_RTC_ALARM;
319 RPC_SIZE(&msg) = 1U;
321 sc_call_rpc(ipc, &msg, SC_FALSE);
323 result = RPC_R8(&msg);
329 sc_rpc_msg_t msg;
332 RPC_VER(&msg) = SC_RPC_VERSION;
333 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_TIMER;
334 RPC_FUNC(&msg) = (uint8_t)TIMER_FUNC_SET_RTC_CALB;
335 RPC_I8(&msg, 0U) = (int8_t) count;
336 RPC_SIZE(&msg) = 2U;
338 sc_call_rpc(ipc, &msg, SC_FALSE);
340 result = RPC_R8(&msg);
346 sc_rpc_msg_t msg;
349 RPC_VER(&msg) = SC_RPC_VERSION;
350 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_TIMER;
351 RPC_FUNC(&msg) = (uint8_t)TIMER_FUNC_SET_SYSCTR_ALARM;
352 RPC_U32(&msg, 0U) = (uint32_t)(ticks >> 32U);
353 RPC_U32(&msg, 4U) = (uint32_t)ticks;
354 RPC_SIZE(&msg) = 3U;
356 sc_call_rpc(ipc, &msg, SC_FALSE);
358 result = RPC_R8(&msg);
364 sc_rpc_msg_t msg;
367 RPC_VER(&msg) = SC_RPC_VERSION;
368 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_TIMER;
369 RPC_FUNC(&msg) = (uint8_t)TIMER_FUNC_SET_SYSCTR_PERIODIC_ALARM;
370 RPC_U32(&msg, 0U) = (uint32_t)(ticks >> 32U);
371 RPC_U32(&msg, 4U) = (uint32_t)ticks;
372 RPC_SIZE(&msg) = 3U;
374 sc_call_rpc(ipc, &msg, SC_FALSE);
376 result = RPC_R8(&msg);
382 sc_rpc_msg_t msg;
385 RPC_VER(&msg) = SC_RPC_VERSION;
386 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_TIMER;
387 RPC_FUNC(&msg) = (uint8_t)TIMER_FUNC_CANCEL_SYSCTR_ALARM;
388 RPC_SIZE(&msg) = 1U;
390 sc_call_rpc(ipc, &msg, SC_FALSE);
392 result = RPC_R8(&msg);