]> rtime.felk.cvut.cz Git - arc.git/blob - boards/ti_tms570ls/examples/tms570_hdk_can/config/Rte_Tester.c
Added an example of CAN communication for the TMS570LS31x HDK
[arc.git] / boards / ti_tms570ls / examples / tms570_hdk_can / config / Rte_Tester.c
1 /*\r
2 * Configuration of module: Rte (Rte_Tester.c)\r
3 *\r
4 * Created by:              \r
5 * Copyright:               \r
6 *\r
7 * Configured for (MCU):    TMS570\r
8 *\r
9 * Module vendor:           ArcCore\r
10 * Generator version:       0.0.13\r
11 *\r
12 * Generated by Arctic Studio (http://arccore.com) \r
13 */\r
14 \r
15 /* Rte_Tester.c */\r
16 #include <string.h>\r
17 #include "Os.h"\r
18 #include "Rte_Tester.h"\r
19 #include "Rte_Data.h"\r
20 #include "Com.h"\r
21 #include "Rte_Calculator.h"\r
22 \r
23 extern Rte_CDS_Tester Rte_Inst_Tester;\r
24 \r
25 UInt8 Rte_IRead_TesterRunnable_Arguments_arg1() {\r
26         return Rte_Inst_Tester.TesterRunnable_Arguments_arg1->value;\r
27 }\r
28 \r
29 UInt8 Rte_IRead_TesterRunnable_Arguments_arg2() {\r
30         return Rte_Inst_Tester.TesterRunnable_Arguments_arg2->value;\r
31 }\r
32 \r
33 void Rte_IWrite_TesterRunnable_Result_result(UInt16 Value) {\r
34         /** Note: this API is required to be called during execution of runnable TesterRunnable. If this API is not called invalid data will be written back to the RTE buffers. See note on page 113 of the AUTOSAR RTE specification. */\r
35         Rte_Inst_Tester.TesterRunnable_Result_result->value = Value;\r
36 }\r
37 \r
38 Std_ReturnType Rte_Call_Tester_Calculator_Multiply(const UInt8 arg1,\r
39                 const UInt8 arg2, UInt16* result) {\r
40         return Rte_Multiply(arg1, arg2, result);\r
41 }\r
42 \r
43 UInt32 Rte_IRead_FreqReqRunnable_FreqReq_freq() {\r
44         return Rte_Inst_Tester.FreqReqRunnable_FreqReq_freq->value;\r
45 }\r
46 \r
47 void Rte_IWrite_FreqReqRunnable_FreqReqInd_freq(UInt32 Value) {\r
48         /** Note: this API is required to be called during execution of runnable FreqReqRunnable. If this API is not called invalid data will be written back to the RTE buffers. See note on page 113 of the AUTOSAR RTE specification. */\r
49         Rte_Inst_Tester.FreqReqRunnable_FreqReqInd_freq->value = Value;\r
50 }\r
51 \r